TextEditTextToSpeech::TextToSpeech Class

The TextToSpeech class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextEditTextToSpeech/TextToSpeech>
CMake: find_package(KF6TextEditTextToSpeech REQUIRED)
target_link_libraries(mytarget PRIVATE KF6::TextEditTextToSpeech)
Inherits: QObject

Public Functions

virtual ~TextToSpeech() override
QStringList availableEngines() const
QList<QLocale> availableLocales() const
QStringList availableVoices() const
qsizetype enqueue(const QString &text)
bool isReady() const
QLocale locale() const
void reloadSettings()
double volume() const

Public Slots

void pause()
void resume()
void say(const QString &text)
void setLocale(const QLocale &locale)
void setPitch(double pitch)
void setRate(double rate)
void setVolume(double volume)
void stop()

Signals

void aboutToSynthesize(qsizetype previousId, qsizetype currentId)
void stateChanged(TextEditTextToSpeech::TextToSpeech::State)

Static Public Members

TextEditTextToSpeech::TextToSpeech *self()

Detailed Description

Member Function Documentation

[override virtual noexcept] TextToSpeech::~TextToSpeech()

[signal] void TextToSpeech::aboutToSynthesize(qsizetype previousId, qsizetype currentId)

QStringList TextToSpeech::availableEngines() const

QList<QLocale> TextToSpeech::availableLocales() const

QStringList TextToSpeech::availableVoices() const

qsizetype TextToSpeech::enqueue(const QString &text)

bool TextToSpeech::isReady() const

QLocale TextToSpeech::locale() const

See also setLocale().

[slot] void TextToSpeech::pause()

void TextToSpeech::reloadSettings()

[slot] void TextToSpeech::resume()

[slot] void TextToSpeech::say(const QString &text)

[static] TextEditTextToSpeech::TextToSpeech *TextToSpeech::self()

[slot] void TextToSpeech::setLocale(const QLocale &locale)

See also locale().

[slot] void TextToSpeech::setPitch(double pitch)

[slot] void TextToSpeech::setRate(double rate)

[slot] void TextToSpeech::setVolume(double volume)

See also volume().

[signal] void TextToSpeech::stateChanged(TextEditTextToSpeech::TextToSpeech::State)

[slot] void TextToSpeech::stop()

double TextToSpeech::volume() const

See also setVolume().