From 068d6f26797e9514751a7e079219414aef477ac5 Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Mon, 7 Oct 2019 13:51:31 -0400 Subject: [PATCH] For TTS to use English --- src/Audio/AudioOutput.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Audio/AudioOutput.cc b/src/Audio/AudioOutput.cc index 6fb95195d..18455653e 100644 --- a/src/Audio/AudioOutput.cc +++ b/src/Audio/AudioOutput.cc @@ -20,6 +20,11 @@ AudioOutput::AudioOutput(QGCApplication* app, QGCToolbox* toolbox) : QGCTool(app, toolbox) , _tts(new QTextToSpeech(this)) { + //-- Force TTS engine to English as all incoming messages from the autopilot + // are in English and not localized. +#ifdef Q_OS_LINUX + _tts->setLocale(QLocale("en_US")); +#endif connect(_tts, &QTextToSpeech::stateChanged, this, &AudioOutput::_stateChanged); } -- 2.22.0