EDN Admin
Well-known member
<p align=left><font face=Arial size=4>I want to use SAPI (Speech To Text API) in C#. Ive made a VbScript file with the simple text I want. The problem is I want to use variable texts.</font>
<p align=left><font face=Arial size=4></font>
<p align=left><font face=Arial size=4>This is just gibberish:</font>
<p align=left><font size=4></font>
<p align=left><font face=Arial size=4>Set spSpeak = CreateObject ( "SAPI.spvoice" )
spSpeak.Speak ("A new exec CAAntiSpyware appeared")
</font>
<p align=left><font face=Arial size=4>It works. How can I manipulate the text by dumping commands or messages from C# code into this .vbs file if I want to "pronounce" a different message?</font>
<p align=left><font size=4></font>
<p align=left><font size=4>The simplest solution will probably be just editing this file thru File class. </font>
<p align=left><font size=4></font>
<p align=left><font size=4>I am wondering if there are other ways? Also I am wondering if there is a way to use SAPI directly in C# without creating a .vbs file? In order to do this I need to find its GUID. How can I do it?</font>
<p align=left><font size=4></font>
<p align=left><font size=4>Thanks.</font>
View the full article
<p align=left><font face=Arial size=4></font>
<p align=left><font face=Arial size=4>This is just gibberish:</font>
<p align=left><font size=4></font>
<p align=left><font face=Arial size=4>Set spSpeak = CreateObject ( "SAPI.spvoice" )
spSpeak.Speak ("A new exec CAAntiSpyware appeared")
</font>
<p align=left><font face=Arial size=4>It works. How can I manipulate the text by dumping commands or messages from C# code into this .vbs file if I want to "pronounce" a different message?</font>
<p align=left><font size=4></font>
<p align=left><font size=4>The simplest solution will probably be just editing this file thru File class. </font>
<p align=left><font size=4></font>
<p align=left><font size=4>I am wondering if there are other ways? Also I am wondering if there is a way to use SAPI directly in C# without creating a .vbs file? In order to do this I need to find its GUID. How can I do it?</font>
<p align=left><font size=4></font>
<p align=left><font size=4>Thanks.</font>
View the full article