Wednesday, March 13, 2013

Give voice to your computer

Add a reference to the SAPI from COM tab, and select "Microsoft Speech Object Library"


using SpeechLib;
...
SpVoice voice = new SpVoice();
voice.Speak(rtbSpeachText.Text, SpeechVoiceSpeakFlags.SVSFDefault);

No comments:

Post a Comment