QVoice Class
The QVoice class allows to set and retrieve values of a particular voice. More...
Header: | #include <QVoice> |
qmake: | QT += texttospeech |
Public Types
Public Functions
QVoice() | |
QVoice(const QVoice &other) | |
~QVoice() | |
QVoice::Age | age() const |
QVoice::Gender | gender() const |
QString | name() const |
bool | operator!=(const QVoice &other) |
void | operator=(const QVoice &other) |
bool | operator==(const QVoice &other) |
Static Public Members
QString | ageName(QVoice::Age age) |
QString | genderName(QVoice::Gender gender) |
Detailed Description
The QVoice class allows to set and retrieve values of a particular voice.
Member Type Documentation
enum QVoice::Age
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 |
enum QVoice::Gender
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 |
Member Function Documentation
QVoice::QVoice()
Default constructs an instance of QVoice.
QVoice::QVoice(const QVoice &other)
Default constructs an instance of QVoice.
QVoice::~QVoice()
Destroys the instance of QVoice.
QVoice::Age QVoice::age() const
Returns the age of a voice.
[static]
QString QVoice::ageName(QVoice::Age age)
Returns a string representing the age class of a voice.
QVoice::Gender QVoice::gender() const
Returns the gender of a voice.
[static]
QString QVoice::genderName(QVoice::Gender gender)
̈́ Returns the gender name of a voice.
QString QVoice::name() const
Returns the name of a voice.
bool QVoice::operator!=(const QVoice &other)
Compares the name, gender, and age of this voice with other. Returns true
if they are not identical.
void QVoice::operator=(const QVoice &other)
Copy-assignment operator.
bool QVoice::operator==(const QVoice &other)
Compares the name, gender, and age of this voice with other. Returns true
if all of them match.
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.