[Sugar-devel] Text-to-speech on the XO 1.5 with 10.1.3

Chris Ball cjb at laptop.org
Tue Feb 22 20:19:18 EST 2011


Hi,

   > Chat also has text to speech
   > it might be tapping into some common library?

There's a remarkable aversion to looking at source code in this
thread.  :)

Speak.activity/espeak_cmd.py:

import espeak
...
    def speak(self, status, text):
        subprocess.call(["espeak", "-w", wavpath, "-p", str(status.pitch),
                "-s", str(rate), "-v", status.voice.name, text],
                stdout=subprocess.PIPE)

- Chris.
-- 
Chris Ball   <cjb at laptop.org>
One Laptop Per Child


More information about the Sugar-devel mailing list