Welcome to Foxite.COM Community Weblog Sign in | Join | Help

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

Published Sunday, June 15, 2008 10:45 AM by frankling
Filed Under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

What do you think?

(required) 
required 
(required)