Jump to content
  • Advertisement
Sign in to follow this  
Hawkblood

Text to speech

This topic is 2087 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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......

Share this post


Link to post
Share on other sites
Advertisement

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!