mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
GLK: Avoid back and forth conversion between UTF-32 and UTF-8 for TTS
This commit is contained in:
parent
94035cf7aa
commit
dc977ffd85
@ -121,11 +121,8 @@ void SpeechManager::speak(const Common::U32String &text, Speech *speechSource) {
|
||||
//speechAction = Common::TextToSpeechManager::INTERRUPT;
|
||||
_lastSpeechSource = speechSource;
|
||||
}
|
||||
// Curently the TextToSpeechManager takes a String, which does not properly support
|
||||
// UTF-32. So convert to UTF-8.
|
||||
Common::String textUtf8 = text.encode();
|
||||
debugC(kDebugSpeech, "Speaking: \"%s\"", textUtf8.c_str());
|
||||
_ttsMan->say(textUtf8, speechAction, "utf-8");
|
||||
//debugC(kDebugSpeech, "Speaking: \"%s\"", text.encode().c_str());
|
||||
_ttsMan->say(text, speechAction);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user