//
you're reading...
Tech

How to invoke Windows SAPI (Speech Application Program Interface) using C#?

Most of the credit of this post goes to http://www.geekpedia.com/tutorial207_Speaking-Computer-in-Csharp.html

How to use SAPI:

STEP 1: add reference in your project – Microsoft Speech Object Library (under the COM tab);

STEP 2: in your source code, include the namespace SpeechLib;

STEP 3: create an object from SpVoice class;

STEP 4: invoke the method Speak(string, SpeechVoiceSpeakFlags) from SpVoice.

Advertisements

About Xiang 'Anthony' Chen

Making an Impact in Your Life

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Twitter Updates

%d bloggers like this: