From 4fc9567ff2c326c348e559c681679363b01daf59 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 24 Sep 2014 15:28:06 +0200 Subject: Remove TTS_ENGINES constant from `client/speaker.py` --- client/speaker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client/speaker.py') diff --git a/client/speaker.py b/client/speaker.py index 8cedaa2..96fb3ed 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -282,8 +282,6 @@ class googleSpeaker(AbstractMp3Speaker): self.play_mp3(tmpfile) os.remove(tmpfile) -TTS_ENGINES = [googleSpeaker, picoSpeaker, eSpeakSpeaker, saySpeaker] - def newSpeaker(): """ Returns: @@ -309,7 +307,7 @@ def newSpeaker(): else: tts_engine = 'espeak-tts' - selected_engines = filter(lambda engine: hasattr(engine, "SLUG") and engine.SLUG == tts_engine, TTS_ENGINES) + selected_engines = filter(lambda engine: hasattr(engine, "SLUG") and engine.SLUG == tts_engine, get_engines()) if len(selected_engines) == 0: raise ValueError("No TTS engine found for slug '%s'" % tts_engine) else: -- cgit v1.3.1