QTextToSpeechEngine Class▲
-
Header: QTextToSpeechEngine
-
qmake: QT += texttospeech
-
Inherits: QObject
-
Inherited By:
Detailed Description▲
An engine implementation must derive from QTextToSpeechEngine and implement all its pure virtual methods.
Member Function Documentation▲
[explicit] QTextToSpeechEngine::QTextToSpeechEngine(QObject *parent = nullptr)▲
Constructs the text-to-speech engine base class with parent.
[pure virtual] QVector<QLocale> QTextToSpeechEngine::availableLocales() const▲
Implementation of QTextToSpeech::availableLocales().
[pure virtual] QVector<QVoice> QTextToSpeechEngine::availableVoices() const▲
Implementation of QTextToSpeech::availableVoices().
[static protected] QVoice QTextToSpeechEngine::createVoice(const QString &name, QVoice::Gender gender, QVoice::Age age, const QVariant &data)▲
Creates a voice for a text-to-speech engine.
Parameters name, gender, age and data are directly stored in the QVoice instance.
[pure virtual] QLocale QTextToSpeechEngine::locale() const▲
[pure virtual] void QTextToSpeechEngine::pause()▲
Implementation of QTextToSpeech::pause().
[pure virtual] double QTextToSpeechEngine::pitch() const▲
[pure virtual] double QTextToSpeechEngine::rate() const▲
[pure virtual] void QTextToSpeechEngine::resume()▲
Implementation of QTextToSpeech::resume().
[pure virtual] void QTextToSpeechEngine::say(const QString &text)▲
Implementation of QTextToSpeech::say(text).
[pure virtual] bool QTextToSpeechEngine::setLocale(const QLocale &locale)▲
Implementation QTextToSpeech::setLocale(locale).
Return true if the operation was successful. In this case, the current voice (as returned by voice()) should also be updated to a new, valid value.
See Also▲
See also locale()
[pure virtual] bool QTextToSpeechEngine::setPitch(double pitch)▲
Implementation of QTextToSpeech::setPitch(pitch).
Return true if the operation was successful.
See Also▲
See also pitch()
[pure virtual] bool QTextToSpeechEngine::setRate(double rate)▲
Implementation of QTextToSpeech::setRate(rate).
Return true if the operation was successful.
See Also▲
See also rate()
[pure virtual] bool QTextToSpeechEngine::setVoice(const QVoice &voice)▲
Implementation of QTextToSpeech::setVoice(voice).
Return true if the operation was successful.
See Also▲
See also voice()
[pure virtual] bool QTextToSpeechEngine::setVolume(double volume)▲
Implementation of QTextToSpeech::setVolume(volume).
Return true if the operation was successful.
See Also▲
See also volume()
[pure virtual] QTextToSpeech::State QTextToSpeechEngine::state() const▲
Implementation of QTextToSpeech::state().
void QTextToSpeechEngine::stateChanged(QTextToSpeech::State state)▲
Emitted when the text-to-speech engine state has changed.
This signal is connected to QTextToSpeech::stateChanged() signal.
[pure virtual] void QTextToSpeechEngine::stop()▲
Implementation of QTextToSpeech::stop().
[pure virtual] QVoice QTextToSpeechEngine::voice() const▲
[static protected] QVariant QTextToSpeechEngine::voiceData(const QVoice &voice)▲
Returns the engine-specific private data for the given voice.