Posts tagged ‘Speech’
A long time ago it was cool to have your computer speak to you and/or read books in the same monotone speech package that comes standard on Windows.Â Well, the times have changed, but the language packs are the same…Â It’s very easy to throw some .Net code together to get your application to speak.
1) Add the speech reference to your project.
Project -> Add Reference -> Com – > Microsoft Speech Object Library
2) Create the unmanaged object in your code.
SpVoice speaker = new SpVoice();
3) Use it’s various methods to invoke the speaker.
speaker.Speak("text to speak", SpeechVoiceSpeakFlags.SVSFDefault);