diff options
author | Charles Chen <clchen@google.com> | 2009-07-21 15:10:22 -0700 |
---|---|---|
committer | Charles Chen <clchen@google.com> | 2009-07-21 15:10:22 -0700 |
commit | ce9b03d78cf10028173ca4d060eeb603d36373b6 (patch) | |
tree | 940e875de4861852d43be068108528b7bfde1656 /pico/tts | |
parent | 54625893d271f1153e3c69b5ab5cd35cc31da515 (diff) | |
download | external_svox-ce9b03d78cf10028173ca4d060eeb603d36373b6.zip external_svox-ce9b03d78cf10028173ca4d060eeb603d36373b6.tar.gz external_svox-ce9b03d78cf10028173ca4d060eeb603d36373b6.tar.bz2 |
Applying a workaround to fix the language switching problem
with Pico TTS.
Diffstat (limited to 'pico/tts')
-rw-r--r-- | pico/tts/com_svox_picottsengine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pico/tts/com_svox_picottsengine.cpp b/pico/tts/com_svox_picottsengine.cpp index ea1b6ea..6d298a6 100644 --- a/pico/tts/com_svox_picottsengine.cpp +++ b/pico/tts/com_svox_picottsengine.cpp @@ -815,6 +815,13 @@ tts_result TtsEngine::init( synthDoneCB_t synthDoneCBPtr ) picoSynthDoneCBPtr = synthDoneCBPtr; + // TODO: Remove this workaround once a proper fix is made to the underlying + // Pico engine. This workaround is currently needed as there is a problem + // switching languages if the first language that the engine is set to is + // not English. As long as the first language is English, switching to other + // languages after that will work fine. + doLanguageSwitchFromLangIndex(0); + picoCurrentLangIndex = -1; return TTS_SUCCESS; |