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......
Moderators - Reputation: 22796
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 write about assorted stuff.