PySide6.QtTextToSpeech.QTextToSpeech引擎¶
- class QTextToSpeechEngine¶
-
概要¶
方法¶
def
__init__()
虚拟方法¶
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()
信号¶
def
errorOccurred()
def
sayingWord()
def
stateChanged()
def
synthesized()
静态函数¶
def
createVoice()
def
voiceData()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
- capabilities()¶
- Return type:
Capability
的组合
- static createVoice(name, locale, gender, age, data)¶
- errorOccurred(error, errorString)¶
- Parameters:
错误 –
ErrorReason
errorString – str
- abstract errorReason()¶
- Return type:
- abstract errorString()¶
- Return type:
字符串
- abstract pause(boundaryHint)¶
- Parameters:
boundaryHint –
BoundaryHint
- abstract pitch()¶
- Return type:
浮点数
- abstract rate()¶
- Return type:
浮点数
- abstract resume()¶
- abstract say(text)¶
- Parameters:
文本 – str
- sayingWord(word, start, length)¶
- Parameters:
word – str
start – int
length – int
- abstract setPitch(pitch)¶
- Parameters:
pitch – 浮点数
- Return type:
布尔
- abstract setRate(rate)¶
- Parameters:
rate – 浮点数
- Return type:
布尔
- abstract setVolume(volume)¶
- Parameters:
volume – 浮点数
- Return type:
布尔
- abstract stop(boundaryHint)¶
- Parameters:
boundaryHint –
BoundaryHint
- abstract synthesize(text)¶
- Parameters:
文本 – str
- synthesized(format, data)¶
- Parameters:
format –
QAudioFormat
data –
QByteArray
- abstract volume()¶
- Return type:
浮点数