QVoice露

The QVoice class allows to set and retrieve values of a particular voice. More鈥�

Inheritance diagram of PySide2.QtTextToSpeech.QVoice

Synopsis露

Functions露

Static functions露

Detailed Description露

class PySide2.QtTextToSpeech.QVoice露

PySide2.QtTextToSpeech.QVoice(other)

Parameters:

other 鈥� PySide2.QtTextToSpeech.QVoice

PySide2.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

PySide2.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

PySide2.QtTextToSpeech.QVoice.age()露
Return type:

Age

Returns the age of a voice.

static PySide2.QtTextToSpeech.QVoice.ageName(age)露
Parameters:

age 鈥� Age

Return type:

str

Returns a string representing the age class of a voice.

PySide2.QtTextToSpeech.QVoice.gender()露
Return type:

Gender

Returns the gender of a voice.

static PySide2.QtTextToSpeech.QVoice.genderName(gender)露
Parameters:

gender 鈥� Gender

Return type:

str

蛣 Returns the gender name of a voice.

PySide2.QtTextToSpeech.QVoice.name()露
Return type:

str

Returns the name of a voice.

PySide2.QtTextToSpeech.QVoice.__ne__(other)露
Parameters:

other 鈥� PySide2.QtTextToSpeech.QVoice

Return type:

bool

Compares the name , gender , and age of this voice with other . Returns true if they are not identical.

PySide2.QtTextToSpeech.QVoice.__eq__(other)露
Parameters:

other 鈥� PySide2.QtTextToSpeech.QVoice

Return type:

bool

Compares the name , gender , and age of this voice with other . Returns true if all of them match.