- class QTextToSpeechEngine¶
-
Synopsis¶
Methods¶
def
__init__()
Virtual methods¶
def
capabilities()
def
errorReason()
def
errorString()
def
locale()
def
pause()
def
pitch()
def
rate()
def
resume()
def
say()
def
setLocale()
def
setPitch()
def
setRate()
def
setVoice()
def
setVolume()
def
state()
def
stop()
def
synthesize()
def
voice()
def
volume()
Signals¶
def
errorOccurred()
def
sayingWord()
def
stateChanged()
def
synthesized()
Static functions¶
def
createVoice()
def
voiceData()
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¶
- capabilities()¶
- Return type:
Combination of
Capability
- static createVoice(name, locale, gender, age, data)¶
- errorOccurred(error, errorString)¶
- Parameters:
error –
ErrorReason
errorString – str
- abstract errorReason()¶
- Return type:
- abstract errorString()¶
- Return type:
str
- abstract pause(boundaryHint)¶
- Parameters:
boundaryHint –
BoundaryHint
- 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 setPitch(pitch)¶
- Parameters:
pitch – float
- Return type:
bool
- abstract setRate(rate)¶
- Parameters:
rate – float
- Return type:
bool
- abstract setVolume(volume)¶
- Parameters:
volume – float
- Return type:
bool
- abstract stop(boundaryHint)¶
- Parameters:
boundaryHint –
BoundaryHint
- abstract synthesize(text)¶
- Parameters:
text – str
- synthesized(format, data)¶
- Parameters:
format –
QAudioFormat
data –
QByteArray
- abstract volume()¶
- Return type:
float