Talking with VB (Part 1)
When the machines record a voice and reproduce the human try to talking with the machines, so now with VB this is more easy, so I begin with a serie of posts begin to reproduce a voice until to talk with the machine, entire with VB.net 2008 code.
So, we are starting, the following code you can reproduce a voice and save the results, easy:
Dim SpSynt As New Speech.Synthesis.SpeechSynthesizer
Dim voces As ReadOnlyCollection(Of InstalledVoice) = SpSynt.GetInstalledVoices()
For Each vo As InstalledVoice In voces
Console.WriteLine(
"Motor: " + vo.VoiceInfo.Name + " Cultura: " + vo.VoiceInfo.Culture.TextInfo.CultureName)
Next
SpSynt.SelectVoice(voces(0).VoiceInfo.Name)
SpSynt.Volume = 100
SpSynt.Rate = -5
SpSynt.SetOutputToWaveFile(
"c:\test.wav")
SpSynt.SpeakAsync(
"Jessus is the best boide")
Console.Read()
Best Regards,
Franklin Garzón
MVP Visual FoxPro