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 Optional[bool]

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

property lang Optional[str]

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

property volume Optional[float]

(Optional) Volume for utterances., _: /

property pitch Optional[float]

(Optional) Pitch for utterances,

property rate Optional[float]

(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.