The QVoice class allows to set and retrieve values of a particular voice. More...
Header: | #include <QVoice> |
qmake: | QT += texttospeech |
enum | Age { Child, Teenager, Adult, Senior, Other } |
enum | Gender { Male, Female, Unknown } |
QVoice::Age | age() const |
QVoice::Gender | gender() const |
QString | name() const |
bool | operator!=(const QVoice &other) |
bool | operator==(const QVoice &other) |
QString | ageName(QVoice::Age age) |
QString | genderName(QVoice::Gender gender) |
The age of a voice.
Constant | Value | Description |
---|---|---|
QVoice::Child |
0 |
Voice of a child |
QVoice::Teenager |
1 |
Voice of a teenager |
QVoice::Adult |
2 |
Voice of an adult |
QVoice::Senior |
3 |
Voice of a senior |
QVoice::Other |
4 |
Voice of unknown age |
The gender of a voice.
Constant | Value | Description |
---|---|---|
QVoice::Male |
0 |
Voice of a male |
QVoice::Female |
1 |
Voice of a female |
QVoice::Unknown |
2 |
Voice of unknown gender |
Returns the age of a voice.
[static]
QString QVoice::ageName(QVoice::Age age)
Returns a string representing the age class of a voice.
Returns the gender of a voice.
[static]
QString QVoice::genderName(QVoice::Gender gender)
̈́ Returns the gender name of a voice.
Returns the name of a voice.
Compares the name, gender, and age of this voice with other. Returns true
if they are not identical.
Compares the name, gender, and age of this voice with other. Returns true
if all of them match.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qvoice.html