QVoice#
The QVoice
class represents a particular voice. More…
Synopsis#
Functions#
Static functions#
def
ageName
(age)def
genderName
(gender)
Detailed Description#
To get a voice that is supported by the current text-to-speech engine, use availableVoices()
.
- class PySide6.QtTextToSpeech.QVoice#
PySide6.QtTextToSpeech.QVoice(other)
- Parameters
other –
PySide6.QtTextToSpeech.QVoice
Constructs an empty QVoice
.
Copy-constructs a QVoice
from other
.
- PySide6.QtTextToSpeech.QVoice.Gender#
The gender of a voice.
Constant
Description
QVoice.Male
Voice of a male
QVoice.Female
Voice of a female
QVoice.Unknown
Voice of unknown gender
- PySide6.QtTextToSpeech.QVoice.Age#
The age of a voice.
Constant
Description
QVoice.Child
Voice of a child
QVoice.Teenager
Voice of a teenager
QVoice.Adult
Voice of an adult
QVoice.Senior
Voice of a senior
QVoice.Other
Voice of unknown age
This property holds the age of a voice.
Returns a string representing the age
class of a voice.
This property holds the gender of a voice.
̈́ Returns the gender
name of a voice.
- PySide6.QtTextToSpeech.QVoice.locale()#
- Return type
This property holds the locale of the voice.
The locale includes the language and the territory (i.e. accent or dialect) of the voice.
- PySide6.QtTextToSpeech.QVoice.name()#
- Return type
str
This property holds the name of a voice.
- PySide6.QtTextToSpeech.QVoice.__ne__(rhs)#
- Parameters
- Return type
bool
Returns whether the lhs
voice and the rhs
voice are different.
- PySide6.QtTextToSpeech.QVoice.__eq__(rhs)#
- Parameters
- Return type
bool
Returns whether the lhs
voice and the rhs
voice are identical.
Two voices are identical if name
, locale
, gender
, and age
are identical, and if they belong to the same text-to-speech engine.
- PySide6.QtTextToSpeech.QVoice.swap(other)#
- Parameters
other –
PySide6.QtTextToSpeech.QVoice
Swaps other
with this voice. This operation is very fast and never fails.