Thread: Text to speech
View Single Post
Old 05-13-2013, 05:48 AM   #55
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
Quote:
Originally Posted by Quinton_Upchurch View Post
Ah okay thanks. Good work.

On another TTS matter, do you know how OOTP chooses the TTS voice?
I have a number of various downloaded voices on my machine. For all the American accented ones, I can simply change my default Windows setting and this is reflected in the game. But if I use a British English voice, say, as my default Windows option, OOTP reverts to using one of my American voices.

Is there a setting somewhere where I can get OOTP to use non-American voices?
This is the code which selects the voice for the TTS in OOTP:

Code:
hr = SpFindBestToken(SPCAT_VOICES, L"Language=409", L"Gender=Male;Age=Adult", &cpVoiceToken); // use US English adult male voice if installed
I'll add a flag to force OOTP to use the default TTS voice in a later patch.
Andreas Raht is offline   Reply With Quote