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 QVoice

QVoice(other)

Parameters

otherQVoice

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

unicode

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

unicode

̈́ Returns the gender name of a voice.

PySide2.QtTextToSpeech.QVoice.name()
Return type

unicode

Returns the name of a voice.

PySide2.QtTextToSpeech.QVoice.__ne__(other)
Parameters

otherQVoice

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

otherQVoice

Return type

bool

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