The QVoice class represents a particular voice. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS TextToSpeech) |
target_link_libraries(mytarget PRIVATE Qt6::TextToSpeech)
|qmake:||QT += texttospeech|
|QVoice(const QVoice &other)|
|QVoice &||operator=(QVoice &&other)|
|QVoice &||operator=(const QVoice &other)|
|bool||operator!=(const QVoice &lhs, const QVoice &rhs)|
|bool||operator==(const QVoice &lhs, const QVoice &rhs)|
To get a voice that is supported by the current text-to-speech engine, use QTextToSpeech::availableVoices().
Member Type Documentation
The age of a voice.
|Voice of a child|
|Voice of a teenager|
|Voice of an adult|
|Voice of a senior|
|Voice of unknown age|
The gender of a voice.
|Voice of a male|
|Voice of a female|
|Voice of unknown gender|
[read-only] age : const Age
This property holds the age of a voice
[read-only] gender : const Gender
This property holds the gender of a voice
[read-only, since 6.4] locale : const QLocale
This property holds the locale of the voice
The locale includes the language and the territory (i.e. accent or dialect) of the voice.
This property was introduced in Qt 6.4.
[read-only] name : const QString
This property holds the name of a voice
Member Function Documentation
Constructs a QVoice object by moving from other.
QVoice::QVoice(const QVoice &other)
Copy-constructs a QVoice from other.
Constructs an empty QVoice.
Moves other into this QVoice object.
Assigns other to this QVoice object.
Destroys the QVoice instance.
[static] QString QVoice::ageName(QVoice::Age age)
Returns a string representing the age class of a voice.
[static] QString QVoice::genderName(QVoice::Gender gender)
̈́ Returns the gender name of a voice.
Returns whether the lhs voice and the rhs voice are different.
Returns whether the lhs voice and the rhs voice are identical.
© 2022 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.