Jump to content

View more

Image of the Day

Full Syncs #screenshotsaturday favourites https://t.co/i1Flnwcg3l #xbox #ps4 https://t.co/m0v2F1SxGs
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Text to speech

2: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Hawkblood   Members   

1000
Like
0Likes
Like

Posted 26 February 2013 - 12:22 PM

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



#2 frob   Moderators   

43611
Like
4Likes
Like

Posted 26 February 2013 - 01:17 PM

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.


Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.

Also check out my personal website at bryanwagstaff.com, where I occasionally write about assorted stuff.


#3 Hawkblood   Members   

1000
Like
0Likes
Like

Posted 27 February 2013 - 02:01 AM

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



#4 Hawkblood   Members   

1000
Like
0Likes
Like

Posted 27 February 2013 - 07:19 AM

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?






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.