内容表

上一话题

QTextToSpeechEngine

下一话题

PySide2.QtUiTools

QVoice

QVoice class allows to set and retrieve values of a particular voice. 更多

Inheritance diagram of PySide2.QtTextToSpeech.QVoice

概要

函数

静态函数

详细描述

class QVoice

QVoice(other)

参数

other QVoice

PySide2.QtTextToSpeech.QVoice. Gender

The gender of a voice.

常量

描述

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.

常量

描述

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 ( )
返回类型

Age

Returns the age of a voice.

static PySide2.QtTextToSpeech.QVoice. ageName ( age )
参数

age Age

返回类型

unicode

Returns a string representing the age class of a voice.

PySide2.QtTextToSpeech.QVoice. gender ( )
返回类型

Gender

Returns the gender of a voice.

static PySide2.QtTextToSpeech.QVoice. genderName ( gender )
参数

gender Gender

返回类型

unicode

̈́ Returns the gender name of a voice.

PySide2.QtTextToSpeech.QVoice. name ( )
返回类型

unicode

Returns the name of a voice.

PySide2.QtTextToSpeech.QVoice. __ne__ ( other )
参数

other QVoice

返回类型

bool

Compares the name , gender ,和 age of this voice with other 。返回 true if they are not identical.

PySide2.QtTextToSpeech.QVoice. __eq__ ( other )
参数

other QVoice

返回类型

bool

Compares the name , gender ,和 age of this voice with other 。返回 true if all of them match.