G
Giftzwockel
Guest
Hi together,
actually I'm writing an application with SAPI Speech and want start an event when the text is completed.
I found the SpeakComplete -Event and tried it as shown below.
Try
Button2.Focus()
SAPI.Volume = trVolume.Value
SAPI.Rate = trSpeed.Value
SAPI.Speak(TextBox1.Text, SpeechLib.SpeechVoiceSpeakFlags.SVSFlagsAsync)
Modus.Text = 0 'Lesemodus
SAPI.SpeakCompleteEvent()
MsgBox("Erledigt.")
Catch ex As Exception
End Try
Unfortuneately the Message Box-Message appears directly when my application start to read.
What is wrong in my code.
Thank all in advance.
Liebe Grüße Stefan | Cheers Stefan I'm using VB 2008 and VB 2010 Express Be a good forum member - mark posts that contain the answers to your questions or those that are helpful. c# in vb Translator: Convert C# to VB.NET - A free code conversion tool - developer Fusion
Continue reading...
actually I'm writing an application with SAPI Speech and want start an event when the text is completed.
I found the SpeakComplete -Event and tried it as shown below.
Try
Button2.Focus()
SAPI.Volume = trVolume.Value
SAPI.Rate = trSpeed.Value
SAPI.Speak(TextBox1.Text, SpeechLib.SpeechVoiceSpeakFlags.SVSFlagsAsync)
Modus.Text = 0 'Lesemodus
SAPI.SpeakCompleteEvent()
MsgBox("Erledigt.")
Catch ex As Exception
End Try
Unfortuneately the Message Box-Message appears directly when my application start to read.
What is wrong in my code.
Thank all in advance.
Liebe Grüße Stefan | Cheers Stefan I'm using VB 2008 and VB 2010 Express Be a good forum member - mark posts that contain the answers to your questions or those that are helpful. c# in vb Translator: Convert C# to VB.NET - A free code conversion tool - developer Fusion
Continue reading...