[Sugar-devel] Working text to speech example needed

James Cameron quozl at laptop.org
Fri Jan 22 21:56:14 EST 2016

G'day James,

Here's some ideas.

Can you try the imports by hand in a Python interpreter to find which
are failing and why?

Can you remove your exception handlers temporarily to find out whether
the import is failing, or something else?

What environment are you developing within?

Can you use 'from sugar3.speech import SpeechManager'?


See example of use, the Clock activity:


Can you check you are looking at latest Speak source?  It looks
different to yours.  See Speech activity on GitHub:


On Fri, Jan 22, 2016 at 08:21:21PM -0600, James Simmons wrote:
> I have been neglecting my Sugar Activities for a long time, and I'm trying to
> get them back in shape and using GTK3. I find that my Read Etexts Activity, one
> of the first to use Aleksey Lim's gstreamer for espeak, no longer works. I have
> code in there which is supposed to detect the presence of the gst espeak
> package and use it if available and hide the speech buttons on the toolbar if
> it cannot.
> Needless to say, the buttons are hidden.
> I'm looking for Activities that use speech and work. The obvious candidate,
> Speak, has code in Git that looks very much like the code I'm using. I saw
> several versions in Git and they all use similar code:
> [1]http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py
> shows the code I use to detect whether gst-plugins-espeak will work. The log
> messages show it disabled.
> I thought updating the code to use Gst might be the answer, but I don't have
> that working either.
> Are there any working applications that use gst-plugins-espeak?
> James Simmons
> References:
> [1] http://git.sugarlabs.org/readetexts/mainline/blobs/master/speech.py

> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

James Cameron

More information about the Sugar-devel mailing list