- class QTextToSpeechEngine#
-
摘要#
方法#
def
__init__()
虚拟方法#
def
capabilities()def
errorReason()def
errorString()def
locale()定义
pause()定义
pitch()定义
rate()定义
resume()定义
say()定义
setLocale()定义
setPitch()定义
setRate()定义
setVoice()定义
setVolume()定义
state()定义
stop()定义
synthesize()定义
voice()定义
volume()
信号#
定义
sayingWord()
静态函数#
定义
voiceData()
注意
此文档可能包含自动从C++翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译存在问题,您也可以通过在https:/bugreports.qt.io/projects/PYSIDE创建工单的方式来通知我们。
详细描述#
- 抽象的 availableLocales()#
- 返回类型:
QLocale列表
- 抽象的 availableVoices()#
- 返回类型:
QVoice列表
- capabilities()#
- 返回类型:
- 静态的 createVoice(name, locale, gender, age, data)#
- errorOccurred(error, errorString)#
- 参数:
error –
ErrorReasonerrorString – str
- 抽象的 errorReason()#
- 返回类型:
- 抽象 errorString()#
- 返回类型:
str
- 抽象 pause(boundaryHint)#
- 参数:
boundaryHint –
BoundaryHint
- 抽象 pitch()#
- 返回类型:
float
- 抽象 rate()#
- 返回类型:
float
- 抽象 resume()#
- 抽象 say(text)#
- 参数:
text – str
- sayingWord(word, start, length)#
- 参数:
word – str
start – int
length – int
- 抽象 setPitch(pitch)#
- 参数:
pitch – float
- 返回类型:
bool
- 抽象 setRate(rate)#
- 参数:
rate – float
- 返回类型:
bool
- 抽象 setVolume(volume)#
- 参数:
volume – float
- 返回类型:
bool
- 抽象 stop(boundaryHint)#
- 参数:
boundaryHint –
BoundaryHint
- 抽象 synthesize(text)#
- 参数:
text – str
- synthesized(format, data)#
- 参数:
format –
QAudioFormatdata –
QByteArray
- 抽象 volume()#
- 返回类型:
float