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