diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-10 20:22:44 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-26 13:34:45 +0200 |
| commit | 7cafe838582598a6881182e48dda360f74c0a312 (patch) | |
| tree | 04d1184fc63d2175058573131d37d94dbd32032c | |
| parent | d7319a92bd4a2b86b8180268087418dc8e5e51f4 (diff) | |
| download | jasper-client-7cafe838582598a6881182e48dda360f74c0a312.tar.gz jasper-client-7cafe838582598a6881182e48dda360f74c0a312.zip | |
Added slugs to TTS engines
| -rw-r--r-- | client/speaker.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/speaker.py b/client/speaker.py index a63b04f..027e973 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -87,6 +87,9 @@ class eSpeakSpeaker(AbstractSpeaker): Uses the eSpeak speech synthesizer included in the Jasper disk image Requires espeak to be available """ + + SLUG = "espeak-tts" + @classmethod def is_available(cls): return (super(cls, cls).is_available() and subprocess.call(['which','espeak']) == 0) @@ -108,6 +111,8 @@ class saySpeaker(AbstractSpeaker): Uses the OS X built-in 'say' command """ + SLUG = "osx-tts" + @classmethod def is_available(cls): return (subprocess.call(['which','say']) == 0) @@ -125,6 +130,9 @@ class picoSpeaker(AbstractSpeaker): Uses the svox-pico-tts speech synthesizer Requires pico2wave to be available """ + + SLUG = "pico-tts" + @classmethod def is_available(cls): return (super(cls, cls).is_available() and subprocess.call(['which','pico2wave']) == 0) @@ -164,6 +172,9 @@ class googleSpeaker(AbstractMp3Speaker): Uses the Google TTS online translator Requires pymad and gTTS to be available """ + + SLUG = "google-tts" + @classmethod def is_available(cls): return (super(cls, cls).is_available() and 'gtts' in sys.modules.keys()) |
