"pmclinn" <pm*****@gmail. comwrote:
>With the Microsoft SDK can you use different voices like the AT&T
voices? If so, does anyone have any code examples.
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
' AddReference COM objects Microsoft Speech
' "Imports SpeechLib" at the top of your VB program
Dim speech = New SpVoice
Dim voices = speech.GetVoice s()
For i As Integer = 0 To voices.Count - 1
Dim voice = voices.Item(i)
ListBox1.Items. Add(voice.GetAt tribute("Name") & " - " &
voice.GetAttrib ute("Language") )
Next
' That listed the possibilities. But I'll hard-code this one for
now:
speech.voice = speech.GetVoice s("Name=LH Michelle",
"Language=409") .Item(0)
speech.Speak("H ello World", SpeechVoiceSpea kFlags.SVSFDefa ult)
speech.WaitUnti lDone(-1)
End Sub
--
Lucian