<br><br><div class="gmail_quote">On Tue, Apr 17, 2012 at 10:41 AM, Ariel Calzada <span dir="ltr"><<a href="mailto:ariel.calzada@gmail.com">ariel.calzada@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On 04/17/2012 10:31 AM, Ariel Calzada wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
PATCH for Words Activity that fix <a href="https://dev.laptop.org.au/issues/1078" target="_blank">https://dev.laptop.org.au/<u></u>issues/1078</a> Speak option says the  word twice in words activity.<br>
<br>
---<br>
  wordsactivity.py |    9 ++-------<br>
  1 files changed, 2 insertions(+), 7 deletions(-)<br>
<br>
diff --git a/wordsactivity.py b/wordsactivity.py<br>
index 5c241f7..cfb8794 100644<br>
--- a/wordsactivity.py<br>
+++ b/wordsactivity.py<br>
@@ -201,20 +201,15 @@ class WordsActivity(activity.<u></u>Activity):<br>
          # No Portuguese accent yet.<br>
          if lang == "portuguese":<br>
              lang = "spanish"<br>
-        tmpfile = "/tmp/something.wav"<br>
-        subprocess.call(["espeak", text, "-w", tmpfile, "-v", lang])<br>
-        subprocess.call(["aplay", tmpfile])<br>
-        os.unlink(tmpfile)<br>
-<br>
          #AU costumization<br>
-        if lang == "english":<br>
+        elif lang == "english":<br>
              lang = "english_rp"<br>
+<br>
          tmpfile = "/tmp/something.wav"<br>
          subprocess.call(["espeak", text, "-w", tmpfile, "-v", lang])<br>
          subprocess.call(["aplay", tmpfile])<br>
          os.unlink(tmpfile)<br>
<br>
-<br>
      def lang1combo_cb(self, combo):<br>
          pass<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div>Thanks for the catch, applied as<div><br></div><div><br></div><div><a href="http://git.sugarlabs.org/words-activity/words-activity/commit/fb3819774867c814a65d201d5b8cdb9d4767702e">http://git.sugarlabs.org/words-activity/words-activity/commit/fb3819774867c814a65d201d5b8cdb9d4767702e</a><br>

<div><br></div><div>Will be in next version.</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div></div>