Skip to main content
GameDev.net gamedev.net
🔒 Locked

Text to speech

Started by Hawkblood Feb 26, 2013 at 6:22 PM 2 replies 1.6k views
Original Post
Hawkblood
Hawkblood

I want to add text-to-speech to my game. I searched for some downloads (microsoft), but I haven't been able to find anything that works without making my game pause as it speaks. As you can imagine, this is a problem. Does anyone have a solution? Free is best......

frob
frob

The Microsoft SAPI TTS engine can pause, but it doesn't need to.

Set the SPF_ASYNC flag to cause the functions work asynchronously. (That means they run in the background and don't stall your app.) You will need to properly handle the asynchronous events as they come through which usually isn't too hard to do.

Hawkblood
Hawkblood

YES! I'll try that when I get home. Thanks for the tip.

Hawkblood
Hawkblood

That worked great. I'm now trying to change the voice from female to male. The only option I can get to work is changing the pitch (not enough to be "male sounding"). Anybody know how?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.