[Sugar-devel] Global text to speech

Tony Anderson tony_anderson at usa.net
Wed Nov 23 16:18:00 EST 2011


Would the mechanism used to implement this be exposed in a way that it 
could also be used for a global dictionary (i.e. the user could click on 
a word or phrase and get a definition (in the same or a different language)?


On 11/23/2011 07:00 PM, sugar-devel-request at lists.sugarlabs.org wrote:
> Send Sugar-devel mailing list submissions to
> 	sugar-devel at lists.sugarlabs.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.sugarlabs.org/listinfo/sugar-devel
> or, via email, send a message with subject or body 'help' to
> 	sugar-devel-request at lists.sugarlabs.org
>
> You can reach the person managing the list at
> 	sugar-devel-owner at lists.sugarlabs.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Sugar-devel digest..."
>
>
> Today's Topics:
>
>     1. Re: [FEATURE] Global Text to Speech (Gonzalo Odiard)
>     2. Re: automatic backlight control (Paul Fox)
>     3. Re: [FEATURE] Global Text to Speech (James Simmons)
>     4. Re: [FEATURE] Global Text to Speech (Peter Robinson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 23 Nov 2011 09:21:44 -0300
> From: Gonzalo Odiard<gonzalo at laptop.org>
> To: Peter Robinson<pbrobinson at gmail.com>
> Cc: Chris Leonard<cjlhomeaddress at gmail.com>,	Sugar-dev Devel
> 	<sugar-devel at lists.sugarlabs.org>
> Subject: Re: [Sugar-devel] [FEATURE] Global Text to Speech
> Message-ID:
> 	<CAJ+iPVS0FxtiD9erex+hogSsFkjM0mzznvM+LegatTrUKhNmWQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>> There's also speech-dispatcher which is an option (and which I think
>> was used by OLPC quite some time ago).
>>
>> Petr
>>
>>
>
> Yes. I like the possibility of using not only espeak but festival too,
> but right now will be add another dependency.
>
> I  have heard very nice examples of Festival voices,
> but I have tried using Festival from the python api of speech-dispatcher
> without success.
>
> In F16 if I do:
>
> [gonzalo at nautilus honey]$ python
> Python 2.7.2 (default, Oct 27 2011, 01:40:22)
> [GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>>
> ...
>>>> import speechd
>>>> client = speechd.SSIPClient('test')
>>>> client.list_output_modules()
> ('espeak', 'dummy')
>
> I have installed:
>
> [root at nautilus /]# rpm -qa | grep festival
> festival-freebsoft-utils-0.10-2.fc15.noarch
> festival-1.96-18.fc16.x86_64
> festival-speechtools-libs-1.2.96-18.fc16.x86_64
> festival-lib-1.96-18.fc16.x86_64
>
> [root at nautilus /]# rpm -qa | grep speech
> speech-dispatcher-0.7.1-6.fc16.x86_64
> festival-speechtools-libs-1.2.96-18.fc16.x86_64
> speech-dispatcher-python-0.7.1-6.fc16.x86_64
>
> Do you know if I need install anything more?
>
> Gonzalo
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:<http://lists.sugarlabs.org/archive/sugar-devel/attachments/20111123/ba282f71/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 23 Nov 2011 09:17:37 -0500
> From: Paul Fox<pgf at laptop.org>
> To: forster at ozonline.com.au
> Cc: devel at lists.laptop.org, sugar-devel at lists.sugarlabs.org
> Subject: Re: [Sugar-devel] automatic backlight control
> Message-ID:<8178.1322057857 at foxharp.boston.ma.us>
> Content-Type: text/plain; charset="us-ascii"
>
> forster at ozonline.com.au wrote:
>   >  Thanks Paul
>
> thanks for testing!
>
>   >
>   >  The logic appears to be buggy, see #11487:  XO-1.75 OS12 backlight
>   >  is off when you come back inside
>
> okay, more testing is needed.  as you noted, it's quite hard to tell
> when it's on and off.  i'll see if i can come up with an indicator,
> on the display or on the LEDs, which will help during debug.
>
>   >
>   >  As it stands, neither the monochrome nor colour modes are OK in
>   >  full sunlight.  The colour mode causes a significant loss of
>   >  resolution for reading small black text and even more resolution
>   >  loss with coloured text.
>
> to clarify -- neither of these issues is caused by the auto-turnoff,
> but they might suggest that one or the other modes is a better target
> in full sun -- is that what you're saying?
>
> where can i find some colored text on the laptop?
>
>   >
>   >  With the monochrome mode, the shadow of your hands as you type is
>   >  enough to switch mode which is quite distracting
>
> the color/mono selection shouldn't have affect on how much light
> causes the mode switch.
>
>   >
>   >  The cutin cutout settings are 50 (bright)and 80 (dark).  It does
>   >  not seem worth raising the 80 figure because there is still visible
>   >  colour information at 70.  The 50 figure could be lowered, direct
>   >  sunlight is 5-10, so I tried 15, this still could give mode
>   >  switching from your hands' shadow in direct sunlight.
>
> how can you tell the switch has occurred, if you're in full sunlight?
> i honestly can't tell when it's happened.
>
>   >
>   >  What I suggest is that the backlight not switch off unless you have
>   >  been in the sun for (eg) 5 minutes, but switch back on immediately
>   >  in the dark.  I don't have the coding skills or I would have tried
>   >  it out.
>   >
>   >  For anybody who wants to try it powerd is at /usr/sbin/power
>   >
>   >  the brightness settings are at line1853 monochrome is commented out
>   >  at lines 1764&1793
>   >
>   >  uncommenting these lines reenables monochrome in response to the
>   >  sensor but surprisingly not the control keys
>
> i don't follow -- the code in powerd currently has (or should have) no
> effect on how the brightness keys work.  they're handled by
> olpc-brightness.  so they should continue doing what they were doing
> before you modified those lines to reenable "zero brightness gives mono"
> behavior.
>
> paul
>
>   >
>   >  Tony
>   >
>   >  >  forster at ozonline.com.au wrote:
>   >  >   >  The shift from colour to monochrome is noticable and would be annoying if
>   >  it
>   >  >   >  happened a lot, for example as clouds pass, trees and people move.
>   >  >   >
>   >  >   >  If the hysterisis, the difference between cutin and cutout brightness is
>   >  large,
>   >  >   >  the change in mode will happen a lot less frequently and not be annoying.
>   >  >   >
>   >  >   >  I would like to try it switching automatically to monochrome but with
>   >  large
>   >  >   >  hysterisis.
>   >  >   >
>   >  >   >  I'll wait to try OS12
>   >  >
>   >  >
>   >  >  you may be in a better position to play with this, geographically
>   >  >  speaking, than i am -- we're running low on sunlight these days.
>   >  >
>   >  >  the hysteresis is currently hard-coded in powerd -- you'll find it in
>   >  >  the function ambient_adjust_init().  it only gets set once, though, so
>   >  >  after powerd starts, you can change the limits directly and they
>   >  >  should take effect immediately.
>   >  >
>   >  >  additionally, to cause auto-monochrome to happen, uncomment the
>   >  >  obvious lines at the end of set_brightness() and brightness_ramp().
>   >  >
>   >  >  paul
>   >  >
>   >  >   >
>   >  >   >  Tony
>   >  >   >  _______________________________________________
>   >  >   >  Devel mailing list
>   >  >   >  Devel at lists.laptop.org
>   >  >   >  http://lists.laptop.org/listinfo/devel
>   >  >
>   >  >  =---------------------
>   >  >   paul fox, pgf at laptop.org
>   >  >  _______________________________________________
>   >  >  Sugar-devel mailing list
>   >  >  Sugar-devel at lists.sugarlabs.org
>   >  >  http://lists.sugarlabs.org/listinfo/sugar-devel
>   >  >
>   >  >  _____________________________________________________
>   >  >  This mail has been virus scanned by Australia On Line
>   >  >  see http://www.australiaonline.net.au/mailscanning
>
> =---------------------
>   paul fox, pgf at laptop.org
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 23 Nov 2011 10:20:52 -0600
> From: James Simmons<nicestep at gmail.com>
> To: Gonzalo Odiard<gonzalo at laptop.org>
> Cc: Chris Leonard<cjlhomeaddress at gmail.com>,	Sugar-dev Devel
> 	<sugar-devel at lists.sugarlabs.org>,	Peter Robinson
> 	<pbrobinson at gmail.com>
> Subject: Re: [Sugar-devel] [FEATURE] Global Text to Speech
> Message-ID:
> 	<CAN6VRWyrD4_Ea74D-FRYZuG0KyqpOUho9TPCrS2jXv+C64gr9Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> All,
>
> Speech-dispatcher was used by the earliest version of Read Etexts to
> support speech.  The big downside is that you need to configure it.  When
> you install the RPM for it it installs espeak, Festival, and some other
> stuff too.  Aleksey Lim created the gstreamer plugin, and also modified
> Read Etexts so that it could use either speech-dispatcher or gstreamer.  I
> prefer gstreamer myself because it Just Works.  I've heard nice things
> about Festival voices but I never got them working.
>
> James Simmons
>
>
> On Wed, Nov 23, 2011 at 6:21 AM, Gonzalo Odiard<gonzalo at laptop.org>  wrote:
>
>>
>> There's also speech-dispatcher which is an option (and which I think
>>> was used by OLPC quite some time ago).
>>>
>>> Petr
>>>
>>>
>>
>> Yes. I like the possibility of using not only espeak but festival too,
>> but right now will be add another dependency.
>>
>> I  have heard very nice examples of Festival voices,
>> but I have tried using Festival from the python api of speech-dispatcher
>> without success.
>>
>> In F16 if I do:
>>
>> [gonzalo at nautilus honey]$ python
>> Python 2.7.2 (default, Oct 27 2011, 01:40:22)
>> [GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>
>> ...
>>>>> import speechd
>>>>> client = speechd.SSIPClient('test')
>>>>> client.list_output_modules()
>> ('espeak', 'dummy')
>>
>> I have installed:
>>
>> [root at nautilus /]# rpm -qa | grep festival
>> festival-freebsoft-utils-0.10-2.fc15.noarch
>> festival-1.96-18.fc16.x86_64
>> festival-speechtools-libs-1.2.96-18.fc16.x86_64
>> festival-lib-1.96-18.fc16.x86_64
>>
>> [root at nautilus /]# rpm -qa | grep speech
>> speech-dispatcher-0.7.1-6.fc16.x86_64
>> festival-speechtools-libs-1.2.96-18.fc16.x86_64
>> speech-dispatcher-python-0.7.1-6.fc16.x86_64
>>
>> Do you know if I need install anything more?
>>
>> Gonzalo
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:<http://lists.sugarlabs.org/archive/sugar-devel/attachments/20111123/19d0443f/attachment-0001.html>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 23 Nov 2011 16:24:01 +0000
> From: Peter Robinson<pbrobinson at gmail.com>
> To: James Simmons<nicestep at gmail.com>
> Cc: Gonzalo Odiard<gonzalo at laptop.org>,	Chris Leonard
> 	<cjlhomeaddress at gmail.com>,	Sugar-dev Devel
> 	<sugar-devel at lists.sugarlabs.org>
> Subject: Re: [Sugar-devel] [FEATURE] Global Text to Speech
> Message-ID:
> 	<CALeDE9OBO_ijLL-EJjj8zai4mn-HNC0Qke5P9=dpbXT+kNtx0g at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, Nov 23, 2011 at 4:20 PM, James Simmons<nicestep at gmail.com>  wrote:
>> All,
>> Speech-dispatcher was used by the earliest version of Read Etexts to support
>> speech. ?The big downside is that you need to configure it. ?When you
>> install the RPM for it it installs espeak, Festival, and some other stuff
>> too. ?Aleksey Lim created the gstreamer plugin, and also modified Read
>> Etexts so that it could use either speech-dispatcher or gstreamer. ?I prefer
>> gstreamer myself because it Just Works. ?I've heard nice things about
>> Festival voices but I never got them working.
>> James Simmons
>
> I did quite a bit of work on speech-dispatcher a couple of releases
> ago and I believe (from testers on bugreports) that it mostly just
> works out of the box now for most standard use cases.
>
> Peter
>
>> On Wed, Nov 23, 2011 at 6:21 AM, Gonzalo Odiard<gonzalo at laptop.org>  wrote:
>>>
>>>> There's also speech-dispatcher which is an option (and which I think
>>>> was used by OLPC quite some time ago).
>>>>
>>>> Petr
>>>>
>>>
>>> Yes. I like the possibility of using not only espeak but festival too,
>>> but right now will be add another dependency.
>>>
>>> I? have heard very nice examples of Festival voices,
>>> but I have tried using Festival from the python api of speech-dispatcher
>>> without success.
>>>
>>> In F16 if I do:
>>>
>>> [gonzalo at nautilus honey]$ python
>>> Python 2.7.2 (default, Oct 27 2011, 01:40:22)
>>> [GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>>
>>> ...
>>>>>> import speechd
>>>>>> client = speechd.SSIPClient('test')
>>>>>> client.list_output_modules()
>>> ('espeak', 'dummy')
>>>
>>> I have installed:
>>>
>>> [root at nautilus /]# rpm -qa | grep festival
>>> festival-freebsoft-utils-0.10-2.fc15.noarch
>>> festival-1.96-18.fc16.x86_64
>>> festival-speechtools-libs-1.2.96-18.fc16.x86_64
>>> festival-lib-1.96-18.fc16.x86_64
>>>
>>> [root at nautilus /]# rpm -qa | grep speech
>>> speech-dispatcher-0.7.1-6.fc16.x86_64
>>> festival-speechtools-libs-1.2.96-18.fc16.x86_64
>>> speech-dispatcher-python-0.7.1-6.fc16.x86_64
>>>
>>> Do you know if I need install anything more?
>>>
>>> Gonzalo
>>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel at lists.sugarlabs.org
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>
>>
>
>
> ------------------------------
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> End of Sugar-devel Digest, Vol 37, Issue 75
> *******************************************
> .
>



More information about the Sugar-devel mailing list