QTextToSpeechEngineclass is the base for text-to-speech engine integrations. 更多 …
def
stateChanged
(state)
def
createVoice
(name, gender, age, data)
def
voiceData
(voice)
An engine implementation must derive from
QTextToSpeechEngineand implement all its pure virtual methods.
QTextToSpeechEngine
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs the text-to-speech engine base class with
parent
.
PySide2.QtTextToSpeech.QTextToSpeechEngine.
availableLocales
(
)
¶
Implementation of
availableLocales()
.
PySide2.QtTextToSpeech.QTextToSpeechEngine.
availableVoices
(
)
¶
Implementation of
availableVoices()
.
PySide2.QtTextToSpeech.QTextToSpeechEngine.
createVoice
(
name
,
gender
,
age
,
data
)
¶
name – unicode
gender
–
Gender
age
–
Age
data – object
Creates a voice for a text-to-speech engine.
参数
name
,
gender
,
age
and
data
are directly stored in the
QVoice
实例。
PySide2.QtTextToSpeech.QTextToSpeechEngine.
locale
(
)
¶
QLocale
Implementation of
locale()
.
另请参阅
PySide2.QtTextToSpeech.QTextToSpeechEngine.
pitch
(
)
¶
double
Implementation of
pitch()
.
另请参阅
PySide2.QtTextToSpeech.QTextToSpeechEngine.
say
(
text
)
¶
text – unicode
Implementation of
say
(
text
).
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setLocale
(
locale
)
¶
locale
–
QLocale
bool
实现
setLocale
(
locale
).
返回
true
if the operation was successful. In this case, the current voice (as returned by
voice()
) should also be updated to a new, valid value.
另请参阅
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setPitch
(
pitch
)
¶
pitch
–
double
bool
Implementation of
setPitch
(
pitch
).
返回
true
if the operation was successful.
另请参阅
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setRate
(
rate
)
¶
rate
–
double
bool
Implementation of
setRate
(
rate
).
返回
true
if the operation was successful.
另请参阅
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setVoice
(
voice
)
¶
voice
–
QVoice
bool
Implementation of
setVoice
(
voice
).
返回
true
if the operation was successful.
另请参阅
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setVolume
(
volume
)
¶
volume
–
double
bool
Implementation of
setVolume
(
volume
).
返回
true
if the operation was successful.
另请参阅
PySide2.QtTextToSpeech.QTextToSpeechEngine.
stateChanged
(
state
)
¶
state
–
State
PySide2.QtTextToSpeech.QTextToSpeechEngine.
voiceData
(
voice
)
¶
voice
–
QVoice
object
Returns the engine-specific private data for the given
voice
.