QVoice Class

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

頭: #include <QVoice>
qmake: QT += texttospeech

公共類型

enum Age { Child, Teenager, Adult, Senior, Other }
enum Gender { Male, Female, Unknown }

公共函數

QVoice::Age age () const
QVoice::Gender gender () const
QString name () const
bool operator!= (const QVoice & other )
bool operator== (const QVoice & other )

靜態公共成員

QString ageName (QVoice::Age age )
QString genderName (QVoice::Gender gender )

詳細描述

成員類型文檔編製

enum QVoice:: Age

The age of a voice.

常量 描述
QVoice::Child 0 Voice of a child
QVoice::Teenager 1 Voice of a teenager
QVoice::Adult 2 Voice of an adult
QVoice::Senior 3 Voice of a senior
QVoice::Other 4 Voice of unknown age

enum QVoice:: Gender

The gender of a voice.

常量 描述
QVoice::Male 0 Voice of a male
QVoice::Female 1 Voice of a female
QVoice::Unknown 2 Voice of unknown gender

成員函數文檔編製

QVoice::Age QVoice:: age () const

Returns the age of a voice.

[static] QString QVoice:: ageName ( QVoice::Age age )

Returns a string representing the age class of a voice.

QVoice::Gender QVoice:: gender () const

Returns the gender of a voice.

[static] QString QVoice:: genderName ( QVoice::Gender gender )

̈́ Returns the gender name of a voice.

QString QVoice:: name () const

Returns the name of a voice.

bool QVoice:: operator!= (const QVoice & other )

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

bool QVoice:: operator== (const QVoice & other )

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