[Sugar-devel] [PATCH] PATCH for Words Activity that fix https://dev.laptop.org.au/issues/1078 Speak option says the word twice in words activity.

Ariel Calzada ariel.calzada at gmail.com
Tue Apr 17 11:41:49 EDT 2012


On 04/17/2012 10:31 AM, Ariel Calzada wrote:
> PATCH for Words Activity that fix 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
>



More information about the Sugar-devel mailing list