Speakers

Speakers handle the voice synthesis part of Dobby.

Base

class dobby.speakers.Speaker(tts_queue)[source]

Bases: threading.Thread

Threaded Speaker base. Its task is to speak each actions it gets in a row

Parameters:tts_queue (Queue.Queue) – where to pick text-to-speech
run()[source]

Wait for events in the tts_queue and speak the received TTS. Once the thread is told to stop, terminate() is called

speak(text)[source]

Speak the text and block until it’s said

Parameters:text (string) – text to speech
stop()[source]

Stop the thread

terminate()[source]

Terminate the thread

Speechd