From 34d70208493457c24f648ff779977fe22b601982 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 29 Feb 2012 00:00:16 +0000 Subject: Supplement c02aca65850836d4a8bcee1e730e21927e12051c and rebump v36 --- (limited to 'espeak_gst.py') 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') -- cgit v0.9.1