From 7d72fc0d60fef9babbb5a8579b152a42d7f5d3d2 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Sun, 14 Jul 2019 19:28:04 +0200 Subject: TTS: Restrict TTS on linux to only english Unfortunatedly the encoding used by ScummVM breaks the speech-dispatcher, so after trying to say non-ascii character the connection has to be restarted. So for now I am restricting the GUI TTS to english only. --- backends/text-to-speech/linux/linux-text-to-speech.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'backends/text-to-speech') diff --git a/backends/text-to-speech/linux/linux-text-to-speech.cpp b/backends/text-to-speech/linux/linux-text-to-speech.cpp index 49aefdb8b4..770a56c1d6 100644 --- a/backends/text-to-speech/linux/linux-text-to-speech.cpp +++ b/backends/text-to-speech/linux/linux-text-to-speech.cpp @@ -101,6 +101,7 @@ bool LinuxTextToSpeechManager::say(Common::String str) { return true; if (isSpeaking()) stop(); + debug("say: %s", str.c_str()); return spd_say(_connection, SPD_MESSAGE, str.c_str()) == -1; } -- cgit v1.2.3