On Tue, Apr 17, 2012 at 10:41 AM, Ariel Calzada <ariel.calz...@gmail.com>wrote:
> On 04/17/2012 10:31 AM, Ariel Calzada wrote: > >> PATCH for Words Activity that fix >> https://dev.laptop.org.au/**issues/1078<https://dev.laptop.org.au/issues/1078>Speak >> option says the word twice in words activity. >> >> --- >> 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 >> >> > Thanks for the catch, applied as http://git.sugarlabs.org/words-activity/words-activity/commit/fb3819774867c814a65d201d5b8cdb9d4767702e Will be in next version. Thanks.
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel