|
QGroundControl
Ground Control Station for MAVLink Drones
|
The AudioOutput class provides functionality for audio output using text-to-speech. More...
#include <AudioOutput.h>
Inheritance diagram for AudioOutput:
Collaboration diagram for AudioOutput:Public Types | |
| enum class | TextMod { None = 0 , Translate = 1 << 0 } |
| Enumeration for text modification options. More... | |
Public Member Functions | |
| AudioOutput (QObject *parent=nullptr) | |
| ~AudioOutput () | |
| Destructor for the AudioOutput class. | |
| void | init (Fact *volumeFact, Fact *mutedFact) |
| Initialize the Singleton. | |
| void | say (const QString &text, TextMods textMods=TextMod::None) |
| void | testAudioOutput () |
| Tests the audio output. Will stop current output before test. | |
Static Public Member Functions | |
| static AudioOutput * | instance () |
The AudioOutput class provides functionality for audio output using text-to-speech.
Definition at line 11 of file AudioOutput.h.
|
strong |
Enumeration for text modification options.
| Enumerator | |
|---|---|
| None | |
| Translate | |
Definition at line 19 of file AudioOutput.h.
|
explicit |
Constructs an AudioOutput object.
| parent | The parent QObject. |
Definition at line 39 of file AudioOutput.cc.
| AudioOutput::~AudioOutput | ( | ) |
Destructor for the AudioOutput class.
Definition at line 46 of file AudioOutput.cc.
Initialize the Singleton.
Definition at line 56 of file AudioOutput.cc.
References errorString, and Fact::valueChanged().
|
static |
Gets the singleton instance of AudioOutput.
Definition at line 51 of file AudioOutput.cc.
Referenced by QGroundControlQmlGlobal::testAudioOutput().
| void AudioOutput::say | ( | const QString & | text, |
| TextMods | textMods = TextMod::None |
||
| ) |
Reads the specified text with optional text modifications.
| text | The text to be read. |
| textMods | The text modifications to apply. |
Definition at line 158 of file AudioOutput.cc.
References QGC::runningUnitTests(), and Translate.
Referenced by testAudioOutput().
| void AudioOutput::testAudioOutput | ( | ) |
Tests the audio output. Will stop current output before test.
Definition at line 199 of file AudioOutput.cc.
References say().
Referenced by QGroundControlQmlGlobal::testAudioOutput().