QTextToSpeechEngine¶
The
QTextToSpeechEngine
class is the base for text-to-speech engine integrations. More…
Synopsis¶
Virtual functions¶
Signals¶
def
stateChanged
(state)
Static functions¶
def
createVoice
(name, gender, age, data)def
voiceData
(voice)
Detailed Description¶
An engine implementation must derive from
QTextToSpeechEngine
and implement all its pure virtual methods.
-
class
QTextToSpeechEngine
([parent=None])¶ - param parent
QObject
Constructs the text-to-speech engine base class with
parent
.
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
availableLocales
()¶ - Return type
Implementation of
availableLocales()
.
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
availableVoices
()¶ - Return type
Implementation of
availableVoices()
.
-
static
PySide2.QtTextToSpeech.QTextToSpeechEngine.
createVoice
(name, gender, age, data)¶ - Parameters
name – unicode
gender –
Gender
age –
Age
data – object
- Return type
Creates a voice for a text-to-speech engine.
Parameters
name
,gender
,age
anddata
are directly stored in theQVoice
instance.
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
locale
()¶ - Return type
QLocale
Implementation of
locale()
.See also
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
pitch
()¶ - Return type
double
Implementation of
pitch()
.See also
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
rate
()¶ - Return type
double
Implementation of
rate()
.See also
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
say
(text)¶ - Parameters
text – unicode
Implementation of
say
(text
).
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setLocale
(locale)¶ - Parameters
locale –
QLocale
- Return type
bool
Implementation
setLocale
(locale
).Return
true
if the operation was successful. In this case, the current voice (as returned byvoice()
) should also be updated to a new, valid value.See also
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setPitch
(pitch)¶ - Parameters
pitch –
double
- Return type
bool
Implementation of
setPitch
(pitch
).Return
true
if the operation was successful.See also
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setRate
(rate)¶ - Parameters
rate –
double
- Return type
bool
Implementation of
setRate
(rate
).Return
true
if the operation was successful.See also
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setVoice
(voice)¶ - Parameters
voice –
QVoice
- Return type
bool
Implementation of
setVoice
(voice
).Return
true
if the operation was successful.See also
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
setVolume
(volume)¶ - Parameters
volume –
double
- Return type
bool
Implementation of
setVolume
(volume
).Return
true
if the operation was successful.See also
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
stateChanged
(state)¶ - Parameters
state –
State
-
PySide2.QtTextToSpeech.QTextToSpeechEngine.
voice
()¶ - Return type
Implementation of
voice()
.See also
-
static
PySide2.QtTextToSpeech.QTextToSpeechEngine.
voiceData
(voice)¶ - Parameters
voice –
QVoice
- Return type
object
Returns the engine-specific private data for the given
voice
.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.