diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2011-08-30 15:23:07 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2011-08-30 15:23:07 (GMT) |
commit | 186d19b9ca5e095c2a42decdc0591ec16cca1b99 (patch) | |
tree | e9f604fe6e58297d24c0cca90053636e903ce535 /wordsactivity.py | |
parent | ba3e81db4ac2c09829dbee682e754450196049dd (diff) |
Diffstat (limited to 'wordsactivity.py')
-rw-r--r-- | wordsactivity.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wordsactivity.py b/wordsactivity.py index afa7369..0b53a27 100644 --- a/wordsactivity.py +++ b/wordsactivity.py @@ -206,6 +206,15 @@ class WordsActivity(activity.Activity): subprocess.call(["aplay", tmpfile]) os.unlink(tmpfile) + #AU costumization + if lang == "english": + lang = "english_rp" + tmpfile = "/tmp/something.wav" + subprocess.call(["espeak", text, "-w", tmpfile, "-v", lang]) + subprocess.call(["aplay", tmpfile]) + os.unlink(tmpfile) + + def lang1combo_cb(self, combo): pass |