Skip to content

TextToSpeech

Qt Base Class: QTextToSpeech

Signature: QTextToSpeech(self, engine: str, params: Dict[str, Any], parent: Optional[PySide6.QtCore.QObject] = None) -> None QTextToSpeech(self, engine: str, parent: Optional[PySide6.QtCore.QObject] = None) -> None QTextToSpeech(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object
QTextToSpeech
PySide6.QtTextToSpeech
QTextToSpeech(self, engine: str, params: Dict[str, Any], parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473574597072["texttospeech.TextToSpeech"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473574603904["QtTextToSpeech.QTextToSpeech"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299815024 --> 1473574597072
  140713234304496 --> 1473299815024
  1473574603904 --> 1473574597072
  1473288842240 --> 1473574603904
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: ObjectMixin, QTextToSpeech

Source code in prettyqt\texttospeech\texttospeech.py
class TextToSpeech(core.ObjectMixin, texttospeech.QTextToSpeech):
    def get_state(self) -> StateStr:
        return STATE.inverse[self.state()]

    def get_locale(self) -> core.Locale:
        return core.Locale(self.locale())

    def get_available_locales(self) -> list[core.Locale]:
        return [core.Locale(locale) for locale in self.availableLocales()]

    def get_voice(self) -> texttospeech.Voice:
        return texttospeech.Voice(self.voice())

    def get_available_voices(self) -> list[texttospeech.Voice]:
        return [texttospeech.Voice(voice) for voice in self.availableVoices()]

⌗ Property table

Qt Property Type Doc
objectName QString
engine QString
state QTextToSpeech::State
volume double
rate double
pitch double
locale QLocale
voice QVoice