class QTextToSpeechEngine

Inheritance diagram of PySide6.QtTextToSpeech.QTextToSpeechEngine

Synopsis

Methods

Virtual methods

Signals

Static functions

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

__init__([parent=None])
Parameters:

parentQObject

abstract availableLocales()
Return type:

.list of QLocale

abstract availableVoices()
Return type:

.list of QVoice

capabilities()
Return type:

Combination of Capability

static createVoice(name, locale, gender, age, data)
Parameters:
Return type:

QVoice

errorOccurred(error, errorString)
Parameters:
abstract errorReason()
Return type:

ErrorReason

abstract errorString()
Return type:

str

abstract locale()
Return type:

QLocale

abstract pause(boundaryHint)
Parameters:

boundaryHintBoundaryHint

abstract pitch()
Return type:

float

abstract rate()
Return type:

float

abstract resume()
abstract say(text)
Parameters:

text – str

sayingWord(word, start, length)
Parameters:
  • word – str

  • start – int

  • length – int

abstract setLocale(locale)
Parameters:

localeQLocale

Return type:

bool

abstract setPitch(pitch)
Parameters:

pitch – float

Return type:

bool

abstract setRate(rate)
Parameters:

rate – float

Return type:

bool

abstract setVoice(voice)
Parameters:

voiceQVoice

Return type:

bool

abstract setVolume(volume)
Parameters:

volume – float

Return type:

bool

abstract state()
Return type:

State

stateChanged(state)
Parameters:

stateState

abstract stop(boundaryHint)
Parameters:

boundaryHintBoundaryHint

abstract synthesize(text)
Parameters:

text – str

synthesized(format, data)
Parameters:
abstract voice()
Return type:

QVoice

static voiceData(voice)
Parameters:

voiceQVoice

Return type:

object

abstract volume()
Return type:

float