QTextToSpeechEngine#
Synopsis#
Virtual functions#
def
availableLocales
()def
availableVoices
()def
errorReason
()def
errorString
()def
locale
()def
pause
(boundaryHint)def
pitch
()def
rate
()def
resume
()def
say
(text)def
setLocale
(locale)def
setPitch
(pitch)def
setRate
(rate)def
setVoice
(voice)def
setVolume
(volume)def
state
()def
stop
(boundaryHint)def
voice
()def
volume
()
Signals#
def
errorOccurred
(error, errorString)def
stateChanged
(state)
Static functions#
def
createVoice
(name, locale, gender, age, data)def
voiceData
(voice)
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#
- class PySide6.QtTextToSpeech.QTextToSpeechEngine([parent=None])#
- Parameters:
parent –
PySide6.QtCore.QObject
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.availableLocales()#
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.availableVoices()#
- static PySide6.QtTextToSpeech.QTextToSpeechEngine.createVoice(name, locale, gender, age, data)#
- Parameters:
name – str
locale –
PySide6.QtCore.QLocale
gender –
Gender
age –
Age
data – object
- Return type:
- PySide6.QtTextToSpeech.QTextToSpeechEngine.errorOccurred(error, errorString)#
- Parameters:
error –
ErrorReason
errorString – str
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.errorReason()#
- Return type:
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.errorString()#
- Return type:
str
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.locale()#
- Return type:
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.pause(boundaryHint)#
- Parameters:
boundaryHint –
BoundaryHint
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.pitch()#
- Return type:
double
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.rate()#
- Return type:
double
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.resume()#
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.say(text)#
- Parameters:
text – str
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.setLocale(locale)#
- Parameters:
locale –
PySide6.QtCore.QLocale
- Return type:
bool
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.setPitch(pitch)#
- Parameters:
pitch –
double
- Return type:
bool
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.setRate(rate)#
- Parameters:
rate –
double
- Return type:
bool
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.setVoice(voice)#
- Parameters:
voice –
PySide6.QtTextToSpeech.QVoice
- Return type:
bool
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.setVolume(volume)#
- Parameters:
volume –
double
- Return type:
bool
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.stop(boundaryHint)#
- Parameters:
boundaryHint –
BoundaryHint
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.voice()#
- Return type:
- static PySide6.QtTextToSpeech.QTextToSpeechEngine.voiceData(voice)#
- Parameters:
voice –
PySide6.QtTextToSpeech.QVoice
- Return type:
object
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.volume()#
- Return type:
double