Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/espeak_gst.py
diff options
context:
space:
mode:
Diffstat (limited to 'espeak_gst.py')
-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')