diff options
-rw-r--r-- | espeak_gst.py | 4 |
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') |