<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Sugar however has tts built in powered by espeak.  Users can highlight speech and use a button in the frame to play it back.<br><br></div>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.<br><br></div></div></div></div></blockquote><div><br></div><div>You can see how the web activity communicate with sugar by example in datastore.js.</div><div>You will find that use bus.js and in the case of the activity running in Sugar,</div><div>use websockets. You will need add in sugar code (src/jarabe/apisocket.py)</div><div>code to process a specific message (like 'sayText') and use our speech api,</div><div>located in sugar-toolkit-gtk3 (src/sugar3/speech.py)</div><div><br></div><div>Gonzalo</div></div>
</div></div>