QTextToSpeechEngine#
Synopsis#
Virtual functions#
def
availableLocales
()def
availableVoices
()def
capabilities
()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
synthesize
(text)def
voice
()def
volume
()
Signals#
def
errorOccurred
(error, errorString)def
sayingWord
(word, start, length)def
stateChanged
(state)def
synthesized
(format, data)
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()#
- Return type:
.list of QLocale
- PySide6.QtTextToSpeech.QTextToSpeechEngine.capabilities()#
- Return type:
Combination of
QTextToSpeech.Capability
- 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:
float
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.rate()#
- Return type:
float
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.resume()#
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.say(text)#
- Parameters:
text – str
- PySide6.QtTextToSpeech.QTextToSpeechEngine.sayingWord(word, start, length)#
- Parameters:
word – str
start – int
length – int
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.setLocale(locale)#
- Parameters:
locale –
PySide6.QtCore.QLocale
- Return type:
bool
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.setPitch(pitch)#
- Parameters:
pitch – float
- Return type:
bool
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.setRate(rate)#
- Parameters:
rate – float
- 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 – float
- Return type:
bool
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.stop(boundaryHint)#
- Parameters:
boundaryHint –
BoundaryHint
- abstract PySide6.QtTextToSpeech.QTextToSpeechEngine.synthesize(text)#
- Parameters:
text – str
- PySide6.QtTextToSpeech.QTextToSpeechEngine.synthesized(format, data)#
- Parameters:
format –
PySide6.QtMultimedia.QAudioFormat
data –
PySide6.QtCore.QByteArray
- 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:
float