Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-02-29 00:00:16 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-02-29 00:00:16 (GMT)
commit34d70208493457c24f648ff779977fe22b601982 (patch)
tree13c3329725c2dfefdab5526cd3538d75857784d6
parent1c97a8bcfb0e06e8a2518e31da5931a07696d627 (diff)
Supplement c02aca65850836d4a8bcee1e730e21927e12051c and rebump v36v36
-rw-r--r--espeak_gst.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/espeak_gst.py b/espeak_gst.py
index b4af2c8..a492cf6 100644
--- a/espeak_gst.py
+++ b/espeak_gst.py
@@ -26,8 +26,8 @@ RATE_MAX = 200
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 unicode(i, 'utf-8', errors='ignore').isalnum()]:
+ if not [i for i in unicode(text, 'utf-8', errors='ignore') \
+ if i.isalnum()]:
return
self.make_pipeline('espeak name=espeak ! wavenc')