PySide6.QtTextToSpeech.QTextToSpeech引擎

class QTextToSpeechEngine

PySide6.QtTextToSpeech.QTextToSpeechEngine 的继承图

概要

方法

虚拟方法

信号

静态函数

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

__init__([parent=None])
Parameters:

父对象QObject

abstract availableLocales()
Return type:

QLocale的列表

abstract availableVoices()
Return type:

QVoice的列表

capabilities()
Return type:

Capability的组合

static createVoice(name, locale, gender, age, data)
Parameters:
Return type:

QVoice

errorOccurred(error, errorString)
Parameters:
abstract errorReason()
Return type:

ErrorReason

abstract errorString()
Return type:

字符串

abstract locale()
Return type:

QLocale

abstract pause(boundaryHint)
Parameters:

boundaryHintBoundaryHint

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 setLocale(locale)
Parameters:

localeQLocale

Return type:

布尔

abstract setPitch(pitch)
Parameters:

pitch – 浮点数

Return type:

布尔

abstract setRate(rate)
Parameters:

rate – 浮点数

Return type:

布尔

abstract setVoice(voice)
Parameters:

语音QVoice

Return type:

布尔

abstract setVolume(volume)
Parameters:

volume – 浮点数

Return type:

布尔

abstract state()
Return type:

State

stateChanged(state)
Parameters:

状态State

abstract stop(boundaryHint)
Parameters:

boundaryHintBoundaryHint

abstract synthesize(text)
Parameters:

文本 – str

synthesized(format, data)
Parameters:
abstract voice()
Return type:

QVoice

static voiceData(voice)
Parameters:

语音QVoice

Return type:

对象

abstract volume()
Return type:

浮点数