>
> Sugar however has tts built in powered by espeak.  Users can highlight
> speech and use a button in the frame to play it back.
>
> Maybe you should look into exposing the tts functions provided by sugar3
> to web activities?  Then you could make an abstraction between the 2
> backends.
>
>
You can see how the web activity communicate with sugar by example in
datastore.js.
You will find that use bus.js and in the case of the activity running in
Sugar,
use websockets. You will need add in sugar code (src/jarabe/apisocket.py)
code to process a specific message (like 'sayText') and use our speech api,
located in sugar-toolkit-gtk3 (src/sugar3/speech.py)

Gonzalo
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to