QTextToSpeechEngine露

The QTextToSpeechEngine class is the base for text-to-speech engine integrations. More鈥�

Inheritance diagram of PySide2.QtTextToSpeech.QTextToSpeechEngine

Synopsis露

Virtual functions露

Signals露

Static functions露

Detailed Description露

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

class PySide2.QtTextToSpeech.QTextToSpeechEngine([parent=None])露
param parent:

PySide2.QtCore.QObject

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

PySide2.QtTextToSpeech.QTextToSpeechEngine.availableLocales()露
Return type:

Implementation of availableLocales() .

PySide2.QtTextToSpeech.QTextToSpeechEngine.availableVoices()露
Return type:

Implementation of availableVoices() .

static PySide2.QtTextToSpeech.QTextToSpeechEngine.createVoice(name, gender, age, data)露
Parameters:
  • name 鈥� str

  • gender 鈥� Gender

  • age 鈥� Age

  • data 鈥� object

Return type:

PySide2.QtTextToSpeech.QVoice

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

Parameters name , gender , age and data are directly stored in the QVoice instance.

PySide2.QtTextToSpeech.QTextToSpeechEngine.locale()露
Return type:

PySide2.QtCore.QLocale

Implementation of locale() .

See also

setLocale()

PySide2.QtTextToSpeech.QTextToSpeechEngine.pause()露

Implementation of pause() .

PySide2.QtTextToSpeech.QTextToSpeechEngine.pitch()露
Return type:

double

Implementation of pitch() .

See also

setPitch()

PySide2.QtTextToSpeech.QTextToSpeechEngine.rate()露
Return type:

double

Implementation of rate() .

See also

setRate()

PySide2.QtTextToSpeech.QTextToSpeechEngine.resume()露

Implementation of resume() .

PySide2.QtTextToSpeech.QTextToSpeechEngine.say(text)露
Parameters:

text 鈥� str

Implementation of say (text ).

PySide2.QtTextToSpeech.QTextToSpeechEngine.setLocale(locale)露
Parameters:

locale 鈥� PySide2.QtCore.QLocale

Return type:

bool

Implementation setLocale (locale ).

Return 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.

See also

locale()

PySide2.QtTextToSpeech.QTextToSpeechEngine.setPitch(pitch)露
Parameters:

pitch 鈥� double

Return type:

bool

Implementation of setPitch (pitch ).

Return true if the operation was successful.

See also

pitch()

PySide2.QtTextToSpeech.QTextToSpeechEngine.setRate(rate)露
Parameters:

rate 鈥� double

Return type:

bool

Implementation of setRate (rate ).

Return true if the operation was successful.

See also

rate()

PySide2.QtTextToSpeech.QTextToSpeechEngine.setVoice(voice)露
Parameters:

voice 鈥� PySide2.QtTextToSpeech.QVoice

Return type:

bool

Implementation of setVoice (voice ).

Return true if the operation was successful.

See also

voice()

PySide2.QtTextToSpeech.QTextToSpeechEngine.setVolume(volume)露
Parameters:

volume 鈥� double

Return type:

bool

Implementation of setVolume (volume ).

Return true if the operation was successful.

See also

volume()

PySide2.QtTextToSpeech.QTextToSpeechEngine.state()露
Return type:

State

Implementation of state() .

PySide2.QtTextToSpeech.QTextToSpeechEngine.stateChanged(state)露
Parameters:

state 鈥� State

PySide2.QtTextToSpeech.QTextToSpeechEngine.stop()露

Implementation of stop() .

PySide2.QtTextToSpeech.QTextToSpeechEngine.voice()露
Return type:

PySide2.QtTextToSpeech.QVoice

Implementation of voice() .

See also

setVoice()

static PySide2.QtTextToSpeech.QTextToSpeechEngine.voiceData(voice)露
Parameters:

voice 鈥� PySide2.QtTextToSpeech.QVoice

Return type:

object

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

PySide2.QtTextToSpeech.QTextToSpeechEngine.volume()露
Return type:

double

Implementation of volume() .

See also

setVolume()