Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2011-06-03 19:59:51 (GMT)
committer Gary Martin <gary@garycmartin.com>2011-06-03 19:59:51 (GMT)
commit3623aac9e17427bc9fafeba0b94131684c461976 (patch)
treebc2c1b64d5a8fe43c5d763ac7c0bf6313da42aa8
parentc26a1a645278ddd378b8ded537ed04ad59c9a5f3 (diff)
Ignore any errors from espeak (current olpc os19/20/21 have three), trying to catch them borks the espeak process at 50-99% cpu busy on XO-1.
-rwxr-xr-xspeaker.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/speaker.py b/speaker.py
index bec926b..03c7275 100755
--- a/speaker.py
+++ b/speaker.py
@@ -57,9 +57,7 @@ class Speaker:
text = text.replace("\"", "\\\"")
child = os.popen("espeak -p%s -s%s -g%s -v%s \"%s\"" % (Speaker.PITCH, Speaker.SPEED, Speaker.WORD_GAP, Speaker.VOICE, text))
data = child.read()
- err = child.close()
- if err:
- print "espeak terminated with return code %d" % err
+ child.close()
if __name__ == "__main__":