diff options
author | Ariel Calzada <ariel.calzada@gmail.com> | 2012-04-17 15:31:26 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2012-04-17 15:48:20 (GMT) |
commit | fb3819774867c814a65d201d5b8cdb9d4767702e (patch) | |
tree | b9368c1081592535219df0b91d89ebda4dbdcdf7 | |
parent | d84e6ea41eaa37ed71a5fc6ad32783c1ecf98c54 (diff) |
PATCH for Words Activity that fix https://dev.laptop.org.au/issues/1078 Speak option says the word twice in words activity.
PATCH for Words Activity that fix https://dev.laptop.org.au/issues/1078 Speak option says the word twice in words activity.
Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
-rw-r--r-- | wordsactivity.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/wordsactivity.py b/wordsactivity.py index 5c241f7..cfb8794 100644 --- a/wordsactivity.py +++ b/wordsactivity.py @@ -201,20 +201,15 @@ class WordsActivity(activity.Activity): # No Portuguese accent yet. if lang == "portuguese": lang = "spanish" - tmpfile = "/tmp/something.wav" - subprocess.call(["espeak", text, "-w", tmpfile, "-v", lang]) - subprocess.call(["aplay", tmpfile]) - os.unlink(tmpfile) - #AU costumization - if lang == "english": + elif 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 |