Skip to content

Commit

Permalink
Don't change speaking voice at runtime
Browse files Browse the repository at this point in the history
Will be turned into a setting soon and needs to be global anyway
  • Loading branch information
steveatinfincia committed Oct 14, 2019
1 parent 8969ab6 commit 82901d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions src/mavlinktelemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,7 @@ void MavlinkTelemetry::init() {
#endif

#if defined(ENABLE_SPEECH)

m_speech = new QTextToSpeech(this);

auto m_voices = m_speech->availableVoices();
QVoice currentVoice = m_speech->voice();
foreach (const QVoice &voice, m_voices) {
if (voice.name() == "Nicky") {
m_speech->setVoice(voice);
break;
}
}
#endif
}

Expand Down
9 changes: 0 additions & 9 deletions src/openhdrc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ OpenHDRC::OpenHDRC(QObject *parent): QObject(parent) {

#if defined(ENABLE_SPEECH)
m_speech = new QTextToSpeech(this);

auto m_voices = m_speech->availableVoices();
QVoice currentVoice = m_speech->voice();
foreach (const QVoice &voice, m_voices) {
if (voice.name() == "Nicky") {
m_speech->setVoice(voice);
break;
}
}
#endif

initRC();
Expand Down

0 comments on commit 82901d3

Please sign in to comment.