Browse Source

Merge pull request #6176 from patrickelectric/audioOutput

AudioOutput: Create text to speech in constructor
QGC4.4
Don Gagne 7 years ago committed by GitHub
parent
commit
a67223f16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Audio/AudioOutput.cc

2
src/Audio/AudioOutput.cc

@ -18,8 +18,8 @@
AudioOutput::AudioOutput(QGCApplication* app, QGCToolbox* toolbox) AudioOutput::AudioOutput(QGCApplication* app, QGCToolbox* toolbox)
: QGCTool(app, toolbox) : QGCTool(app, toolbox)
, _tts(new QTextToSpeech(this))
{ {
_tts = new QTextToSpeech(this);
connect(_tts, &QTextToSpeech::stateChanged, this, &AudioOutput::_stateChanged); connect(_tts, &QTextToSpeech::stateChanged, this, &AudioOutput::_stateChanged);
} }

Loading…
Cancel
Save