内容表

上一话题

QTextToSpeech

下一话题

QVoice

QTextToSpeechEngine

QTextToSpeechEngine class is the base for text-to-speech engine integrations. 更多

Inheritance diagram of PySide2.QtTextToSpeech.QTextToSpeechEngine

概要

虚函数

信号

静态函数

详细描述

An engine implementation must derive from QTextToSpeechEngine and implement all its pure virtual methods.

class QTextToSpeechEngine ( [ parent=None ] )
param parent

QObject

Constructs the text-to-speech engine base class with parent .

PySide2.QtTextToSpeech.QTextToSpeechEngine. availableLocales ( )
返回类型

Implementation of availableLocales() .

PySide2.QtTextToSpeech.QTextToSpeechEngine. availableVoices ( )
返回类型

Implementation of availableVoices() .

static PySide2.QtTextToSpeech.QTextToSpeechEngine. createVoice ( name , gender , age , data )
参数
  • name – unicode

  • gender Gender

  • age Age

  • data – object

返回类型

QVoice

Creates a voice for a text-to-speech engine.

参数 name , gender , age and data are directly stored in the QVoice 实例。

PySide2.QtTextToSpeech.QTextToSpeechEngine. locale ( )
返回类型

QLocale

Implementation of locale() .

另请参阅

setLocale()

PySide2.QtTextToSpeech.QTextToSpeechEngine. pause ( )

Implementation of pause() .

PySide2.QtTextToSpeech.QTextToSpeechEngine. pitch ( )
返回类型

double

Implementation of pitch() .

另请参阅

setPitch()

PySide2.QtTextToSpeech.QTextToSpeechEngine. rate ( )
返回类型

double

Implementation of rate() .

另请参阅

setRate()

PySide2.QtTextToSpeech.QTextToSpeechEngine. resume ( )

Implementation of resume() .

PySide2.QtTextToSpeech.QTextToSpeechEngine. say ( text )
参数

text – unicode

Implementation of say ( text ).

PySide2.QtTextToSpeech.QTextToSpeechEngine. setLocale ( locale )
参数

locale QLocale

返回类型

bool

实现 setLocale ( locale ).

返回 true if the operation was successful. In this case, the current voice (as returned by voice() ) should also be updated to a new, valid value.

另请参阅

locale()

PySide2.QtTextToSpeech.QTextToSpeechEngine. setPitch ( pitch )
参数

pitch double

返回类型

bool

Implementation of setPitch ( pitch ).

返回 true if the operation was successful.

另请参阅

pitch()

PySide2.QtTextToSpeech.QTextToSpeechEngine. setRate ( rate )
参数

rate double

返回类型

bool

Implementation of setRate ( rate ).

返回 true if the operation was successful.

另请参阅

rate()

PySide2.QtTextToSpeech.QTextToSpeechEngine. setVoice ( voice )
参数

voice QVoice

返回类型

bool

Implementation of setVoice ( voice ).

返回 true if the operation was successful.

另请参阅

voice()

PySide2.QtTextToSpeech.QTextToSpeechEngine. setVolume ( volume )
参数

volume double

返回类型

bool

Implementation of setVolume ( volume ).

返回 true if the operation was successful.

另请参阅

volume()

PySide2.QtTextToSpeech.QTextToSpeechEngine. state ( )
返回类型

State

Implementation of state() .

PySide2.QtTextToSpeech.QTextToSpeechEngine. stateChanged ( state )
参数

state State

PySide2.QtTextToSpeech.QTextToSpeechEngine. stop ( )

Implementation of stop() .

PySide2.QtTextToSpeech.QTextToSpeechEngine. voice ( )
返回类型

QVoice

Implementation of voice() .

另请参阅

setVoice()

static PySide2.QtTextToSpeech.QTextToSpeechEngine. voiceData ( voice )
参数

voice QVoice

返回类型

object

Returns the engine-specific private data for the given voice .

PySide2.QtTextToSpeech.QTextToSpeechEngine. volume ( )
返回类型

double

Implementation of volume() .

另请参阅

setVolume()