Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2010-03-09 09:09:13 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2010-03-09 09:09:13 (GMT)
commit401be3dd227fc5ea51ef190807cfe6f4f2d525b7 (patch)
treed94683e50aaffa00c8097b1c5360cfff0bd986ce
parentdd009375ac1c051ab10fa1de96057577987dab2a (diff)
Workaround for #1801
-rw-r--r--espeak_gst.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/espeak_gst.py b/espeak_gst.py
index 85cfa26..59fe2c0 100644
--- a/espeak_gst.py
+++ b/espeak_gst.py
@@ -25,6 +25,10 @@ RATE_DEFAULT = RATE_MAX/2
class AudioGrabGst(espeak.BaseAudioGrab):
def speak(self, status, text):
+ # XXX workaround for http://bugs.sugarlabs.org/ticket/1801
+ if not [i for i in text if i.isalnum()]:
+ return
+
self.make_pipeline('espeak name=espeak ! wavenc')
src = self.pipeline.get_by_name('espeak')