Browse Source

Merge pull request #7883 from mavlink/ForceEnglishTTS

For TTS to use English
QGC4.4
Gus Grubba 6 years ago committed by GitHub
parent
commit
8c3b9bc65d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Audio/AudioOutput.cc

5
src/Audio/AudioOutput.cc

@ -20,6 +20,11 @@ AudioOutput::AudioOutput(QGCApplication* app, QGCToolbox* toolbox)
: QGCTool(app, toolbox) : QGCTool(app, toolbox)
, _tts(new QTextToSpeech(this)) , _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); connect(_tts, &QTextToSpeech::stateChanged, this, &AudioOutput::_stateChanged);
} }

Loading…
Cancel
Save