diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2012-02-17 18:11:41 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2012-02-17 18:11:41 (GMT) |
commit | 5d364205636a346cfbe177f56b98e92171905379 (patch) | |
tree | a4cf3e871e9652163751f2a60bbefca286f142a3 | |
parent | 502e9d25556778690547f42bcf1eaa9363aeb569 (diff) |
assuring proper en pronuntiation
-rw-r--r-- | wordsactivity.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wordsactivity.py b/wordsactivity.py index 0bdfc5b..5c241f7 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 |