0
Reply

Performance issue using SpeechLib to speak the voice.

Ask a question
Nageswararao Dhulipalla

Nageswararao Dhulipalla

13 years ago
2.2k
1
Hi,
 
I have used SpeechLib.dll to Speak the Synthetic Voices. When we call the Speak method some times it take lot of time to speak the voice.
 
To Speak the voice we have used below code:
 
voice.Voice = voice.GetVoices().Item(ddlVoices.SelectedIndex);
voice.Volume = trackBarVolume.Value;
voice.Rate = trackBarSpeed.Value;
speakingText = txtUserInput.Text;
voice.Speak(speakingText, SpeechLib.SpeechVoiceSpeakFlags.SVSFlagsAsync);
 
To Stop the Async speaking voice use below code:
 
voice.Speak("", SpeechLib.SpeechVoiceSpeakFlags.SVSFPurgeBeforeSpeak);
 
And in our application we are not playing single sentance, one sentance complete we have to call the Speak method to play the next sentance.
 
Please suggest how to resolve this issues.