[VB.NET] Microsoft Speech 05-22-2011, 07:48 AM
#1
You will have to include System.Speech as a reference in your project. System.Speech is a part of .net framework 3.0 iirc........
[/php]Code: (vb) [Select]
Sub Talk(byval data as string)
Dim Talker As New Synthesis.SpeechSynthesizer
Talker .SpeakAsync(data)
End sub
Usage:
Code: (vb) [Select]
Talk("Hello, my name is karan ")
The program will use the machines default voice, so if you want something other than Microsoft Sam, you can install someone else and make it the default voice, and the program will use that
[/php]Code: (vb) [Select]
Sub Talk(byval data as string)
Dim Talker As New Synthesis.SpeechSynthesizer
Talker .SpeakAsync(data)
End sub
Usage:
Code: (vb) [Select]
Talk("Hello, my name is karan ")
The program will use the machines default voice, so if you want something other than Microsoft Sam, you can install someone else and make it the default voice, and the program will use that