Hi,
I use the speech sdk 5.1 for text to speech. Here is how you could
set the voice to LH Michelle.
Dim tts As SpeechLib.SpVoi ce
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
tts = New SpeechLib.SpVoi ce
Dim tMichelle As SpeechLib.SpObj ectToken
For Each t As SpeechLib.ISpee chObjectToken In tts.GetVoices
Trace.WriteLine (t.GetDescripti on.ToString)
If t.GetDescriptio n.ToString = "LH Michelle" Then tMichelle =
CType(t, SpeechLib.SpObj ectToken)
Next
tts.Voice = tMichelle
btnSay.PerformC lick()
End Sub
Private Sub btnSay_Click(By Val sender As System.Object, ByVal e As
System.EventArg s) Handles btnSay.Click
tts.Speak(txtSp eak.Text,
SpeechLib.Speec hVoiceSpeakFlag s.SVSFlagsAsync )
End Sub
Ken
------------------
<zo****@yahoo.c om> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
i'm developing a text-to-speech for my system. i use the text-to-speech
component from the .net. but the voice sometimes is mary and sometimes
is sam. Is there any way to default the voice i use in vb.net.
thanks