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:

otherPySide2.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:

ageAge

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:

genderGender

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:

otherPySide2.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:

otherPySide2.QtTextToSpeech.QVoice

Return type:

bool

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