jacdac.speech_synthesis

Submodules

Package Contents

Classes

SpeechSynthesisClient

A speech synthesizer

class jacdac.speech_synthesis.SpeechSynthesisClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

A speech synthesizer Implements a client for the Speech synthesis service.

property enabled: bool | None

Determines if the speech engine is in a non-paused state.,

property lang: str | None

(Optional) Language used for utterances as defined in https://www.ietf.org/rfc/bcp/bcp47.txt.,

property volume: float | None

(Optional) Volume for utterances., _: /

property pitch: float | None

(Optional) Pitch for utterances,

property rate: float | None

(Optional) Rate for utterances,

speak(text: str) None

Adds an utterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.

cancel() None

Cancels current utterance and all utterances from the utterance queue.