Text-to-speech (speaker) back-ends

SpeakerBase text-to-speech class

The dragonfly.engines.engine.base.SpeakerBase class forms the base class for the specific text-to-speech (speaker) classes. It defines the stubs required and performs some of the logic necessary for Dragonfly to be able to interact with a text-to-speech engine.

class SpeakerBase[source]

Base Speaker class for text-to-speech back-ends.

property name

The human-readable name of this speaker.

speak(text)[source]

Speak the given text using text-to-speech.

SAPI 5 text-to-speech class

class Sapi5Speaker[source]

This speaker class uses the SAPI 5 text-to-speech functionality. It is available on Microsoft Windows Vista and above.

It has no specific requirements other than the pywin32 library, which is required to use Dragonfly on Microsoft Windows.

property name

The human-readable name of this speaker.

speak(text)[source]

Speak the given text using text-to-speech.

eSpeak text-to-speech class

class EspeakSpeaker[source]

This speaker class uses eSpeak to synthesize specified text into speech.

The espeak command-line program must be installed in order to use this implementation. eSpeak is available on most platforms.

property name

The human-readable name of this speaker.

speak(text)

Speak the given text using text-to-speech.

CMU Flite text-to-speech class

class FliteSpeaker[source]

This speaker class uses CMU Flite to synthesize specified text into speech.

The flite command-line program must be installed in order to use this implementation. CMU Flite is available on most platforms.

property name

The human-readable name of this speaker.

speak(text)

Speak the given text using text-to-speech.

Text fallback class

class TextSpeaker[source]

This speaker class is used as a fallback when no real speaker implementation is available. Specified text is written to stdout, i.e., it is printed to the console.

property name

The human-readable name of this speaker.

speak(text)[source]

Speak the given text using text-to-speech.