From ce9b03d78cf10028173ca4d060eeb603d36373b6 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Tue, 21 Jul 2009 15:10:22 -0700 Subject: Applying a workaround to fix the language switching problem with Pico TTS. --- pico/tts/com_svox_picottsengine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pico/tts') 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; -- cgit v1.1