diff options
author | Gary Martin <gary@garycmartin.com> | 2011-06-03 19:59:51 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2011-06-03 19:59:51 (GMT) |
commit | 3623aac9e17427bc9fafeba0b94131684c461976 (patch) | |
tree | bc2c1b64d5a8fe43c5d763ac7c0bf6313da42aa8 | |
parent | c26a1a645278ddd378b8ded537ed04ad59c9a5f3 (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-x | speaker.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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__": |