Re: Text-to-speech on the XO 1.5 with 10.1.3
Thank Mikus. Thats fantastic. Turtle Art now has text to speech http://tonyforster.blogspot.com/2011/02/turtle-art-text-to-speech.html Tony > Haven't sugarized espeak, but can run it from the command line: > > espeak "hello" --stdout | aplay > > > mikus ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Text-to-speech on the XO 1.5 with 10.1.3
Gonzalzo, Thanks for your help with this. I can see now pasting text into Speak. And I understand about Read Ebooks. What the teachers were asking for was for the ability to have text read in Browse and Write. The use case would be highlighting text and then taking some action which results in the text being spoken by the XO. Let me know if you need more detail or information. Thanks again. Gerald On Wed, Feb 23, 2011 at 1:35 AM, Gonzalo Odiard wrote: > Read Ebooks activity have text to speech capabilities, and i am adding this > to Read activity too. > Can you describe what you and your teachers need? > > Gonzalo > > On Tue, Feb 22, 2011 at 9:39 PM, Dr. Gerald Ardito < > gerald.ard...@gmail.com> wrote: > >> Hello all. >> >> I am working with some teachers and students using XO 1.5 and version >> 10.1.3 of the software. >> The teachers really want to make use of a text to speech functionality. >> I can't seem to find out how this works. >> >> I would appreciate any help you can offer. >> >> Thanks. >> Gerald >> >> ___ >> Sugar-devel mailing list >> sugar-de...@lists.sugarlabs.org >> http://lists.sugarlabs.org/listinfo/sugar-devel >> >> > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Text-to-speech on the XO 1.5 with 10.1.3
Mikus, Thanks. Gerald On Wed, Feb 23, 2011 at 2:52 AM, Mikus Grinbergs wrote: > Haven't sugarized espeak, but can run it from the command line: > > espeak "hello" --stdout | aplay > > > mikus > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Text-to-speech on the XO 1.5 with 10.1.3
Haven't sugarized espeak, but can run it from the command line: espeak "hello" --stdout | aplay mikus ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Text-to-speech on the XO 1.5 with 10.1.3
Read Ebooks activity have text to speech capabilities, and i am adding this to Read activity too. Can you describe what you and your teachers need? Gonzalo On Tue, Feb 22, 2011 at 9:39 PM, Dr. Gerald Ardito wrote: > Hello all. > > I am working with some teachers and students using XO 1.5 and version > 10.1.3 of the software. > The teachers really want to make use of a text to speech functionality. > I can't seem to find out how this works. > > I would appreciate any help you can offer. > > Thanks. > Gerald > > ___ > Sugar-devel mailing list > sugar-de...@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Text-to-speech on the XO 1.5 with 10.1.3
On Wed, Feb 23, 2011 at 12:13:22PM +1100, fors...@ozonline.com.au wrote: > Chat also has text to speech > it might be tapping into some common library? Yes. Speak uses espeak via command line, as Chris pointed out. I found that in the source too. I didn't find anything in Chat. In 10.1.3, apart from Speak, I'm not aware of a way to either: - select some text and press a button to have it read out. - tab to screen objects and have them read out. Both these features are available in other contexts for sight impaired usage. I've no idea if that is what was required. There appears to be some way to use Alt/Shift/S to deliver the current selection to a speech proxy via DBus, but it doesn't do anything for me on 10.1.3. sugar.git/src/jarabe/view/keyhandler.py -- James Cameron http://quozl.linux.org.au/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Text-to-speech on the XO 1.5 with 10.1.3
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 One Laptop Per Child ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Text-to-speech on the XO 1.5 with 10.1.3
Chat also has text to speech it might be tapping into some common library? Tony > The Sugar Speak activity provides a keyboard to speech function. The > learner types words, then presses enter. The text is spoken. > > I'm personally not aware of a general purpose text to speech function > for the rest of the Sugar user interface, but someone else may know of > one. > > -- > James Cameron > http://quozl.linux.org.au/ > ___ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel > > _ > This mail has been virus scanned by Australia On Line > see http://www.australiaonline.net.au/mailscanning > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Text-to-speech on the XO 1.5 with 10.1.3
James, Thanks. This is very helpful. Gerald On Wed, Feb 23, 2011 at 1:00 AM, James Cameron wrote: > The Sugar Speak activity provides a keyboard to speech function. The > learner types words, then presses enter. The text is spoken. > > I'm personally not aware of a general purpose text to speech function > for the rest of the Sugar user interface, but someone else may know of > one. > > -- > James Cameron > http://quozl.linux.org.au/ > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Sugar-devel] Text-to-speech on the XO 1.5 with 10.1.3
The Sugar Speak activity provides a keyboard to speech function. The learner types words, then presses enter. The text is spoken. I'm personally not aware of a general purpose text to speech function for the rest of the Sugar user interface, but someone else may know of one. -- James Cameron http://quozl.linux.org.au/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Text-to-speech on the XO 1.5 with 10.1.3
Hello all. I am working with some teachers and students using XO 1.5 and version 10.1.3 of the software. The teachers really want to make use of a text to speech functionality. I can't seem to find out how this works. I would appreciate any help you can offer. Thanks. Gerald ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
[PATCH 2/2] osbuilder: skip obvious tmp and backup files
From: Martin Langhoff Makes life much easier when using a development copy of OOB -- avoids running the temp files emacs creates. Based on ye olde run-parts, plus a few obvious ones. --- osbuilder.py |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/osbuilder.py b/osbuilder.py index fc5d577..bfcceec 100755 --- a/osbuilder.py +++ b/osbuilder.py @@ -138,10 +138,16 @@ class Stage(object): % (self.osb.moddir, mod, self.name)) partlist.extend(matches) -# sort them +# filter and sort them parts = {} +skipprefixes = re.compile('(#|\.)') +skipsuffixes = re.compile('(\.rpmsave|\.rpmorig|\.rpmnew|swp|~|#)$') for part in partlist: bname = os.path.basename(part) +if skipprefixes.match(bname): +continue +if skipsuffixes.search(bname): +continue mod = os.path.basename(os.path.dirname(part)) parts[bname + "//" + mod] = os.path.join(mod, bname) items = parts.keys() -- 1.6.2.5 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
[PATCH 1/2] custom_scripts: check that scripts are executable early on
From: Martin Langhoff --- .../custom_scripts/prepare.20.custom_scripts.sh| 20 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 modules/custom_scripts/prepare.20.custom_scripts.sh diff --git a/modules/custom_scripts/prepare.20.custom_scripts.sh b/modules/custom_scripts/prepare.20.custom_scripts.sh new file mode 100644 index 000..6bd35da --- /dev/null +++ b/modules/custom_scripts/prepare.20.custom_scripts.sh @@ -0,0 +1,20 @@ +# Copyright (C) 2009 One Laptop Per Child +# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details. + +. $OOB__shlib + +oIFS=$IFS +IFS=$'\n' +BADSCRIPT='false' +for line in $(env); do + [[ "${line:0:34}" == "CFG_custom_scripts__custom_script_" ]] || continue + script=${line#*=} + if [ ! -x $script ]; then + BADSCRIPT='yes' + echo "$script is not executable" + fi +done +if [ "$BADSCRIPT" = 'yes' ];then +exit 1 +fi +IFS=$oIFS -- 1.6.2.5 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] wwwoffle?
On 02/22/2011 07:59 AM, Martin Langhoff wrote: > At first reading, I'm realizing that there's many things I don't know > about wwwoffle! > > - Current rpms are available, but not in Fedora. > http://www.google.com/search?q=wwwoffle+rpm+2.9 so we'd need to review > the spec and see if Fedora is interested in carrying it... > I referenced the ubuntu init.d file as a model. There was a lot of stuff in there for different offline search engines, among other things. It brought to light a lot of situations that I hadn't thought of, and integrated into the script. > - So xs-config will likely contain /etc/xs-wwwoffle files and an > /etc/init.d/xs-wwwoffle init script that points to that directory (and > /var/cache/xs-wwwoffle, etc). All of this can be modelled on what's in > the rpm. > There were some custom ubuntu/debian binaries to handle cert generation and other tasks that I ran into. In order to keep any random system utility binaries from breaking, I had the xs-wwwoffle script back up /etc/wwwoffle and link it to /etc/xs-wwwoffle. I don't pretend we'd ever get all the special cases handled, so hence the tendency to force the system to use our config file and directory. > - wwwoffle does act as a normal proxy too when online... but can't > handle the switching between modes, is that right? So it seems we'll > need a "controller" daemon that monitors whether we have uplink or > not, and switches wwwoffle between modes. > That's what this script does. I did not use the facility to have pppd set wwwoffle online, instead I opted for a check to see if the machine was online in *any* way at all, and then control wwwoffle. > This script is probably the interesting part. Maybe there's something > interesting in the rpm init script that we can copy or reuse. It'll > probably need to handle > > - online / offline cases in a "pure wwwoffle" case > > - "wwwoffle + conventional online proxy" case, where when online we > just call wwwoffle --fetch. Note that the conventional proxy may not > be squid ;-) > In the case where there's another proxy, our setup wouldn't affect normal operation at all. But then if a user is advanced enough to install another proxy, they would know how to adjust wwwoffle's settings as well. I gotta say...I've run a number of proxies, and squid has been the most efficient and configurable. I use it at home and get a very high hit rate. There are other proxies, apache comes up on the list, but squid really takes the cake. It's a shame it didn't preform well in low memory environments. -Dan ___ Server-devel mailing list server-de...@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
os-builder: minor enhancements
I've had these minor patches in my tree for a while. Make my life easier. Hopefully of use in master. [PATCH 1/2] custom_scripts: check that scripts are executable early on [PATCH 2/2] osbuilder: skip obvious tmp and backup files ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: oob: add oats_cfg.stream (trivial)
Updated with a fix. m On Fri, Feb 18, 2011 at 12:26 PM, Martin Langhoff wrote: > -- > mar...@laptop.org -- Software Architect - OLPC > - ask interesting questions > - don't get distracted with shiny stuff - working code first > - http://wiki.laptop.org/go/User:Martinlanghoff > -- mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff 0001-oats_cfg-add-support-for-setting-the-stream.patch Description: Binary data ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] Fwd: wwwoffle, patched squid+some form of dns
Hey David, have you _looked_ at the "patch" you attached? ;-) cheers, m On Sat, Feb 19, 2011 at 12:28 PM, David Van Assche wrote: -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list server-de...@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] wwwoffle?
On Tue, Feb 22, 2011 at 1:39 AM, Dan Zubey wrote: > Well, I had been wondering where was the *appropriate* place to post it. Once it's cooked, I guess it'll be included in the XS config rpm :-) In fact, being in the xs config rpm solves several problems -- installation of files, etc. At first reading, I'm realizing that there's many things I don't know about wwwoffle! - Current rpms are available, but not in Fedora. http://www.google.com/search?q=wwwoffle+rpm+2.9 so we'd need to review the spec and see if Fedora is interested in carrying it... - So xs-config will likely contain /etc/xs-wwwoffle files and an /etc/init.d/xs-wwwoffle init script that points to that directory (and /var/cache/xs-wwwoffle, etc). All of this can be modelled on what's in the rpm. - wwwoffle does act as a normal proxy too when online... but can't handle the switching between modes, is that right? So it seems we'll need a "controller" daemon that monitors whether we have uplink or not, and switches wwwoffle between modes. This script is probably the interesting part. Maybe there's something interesting in the rpm init script that we can copy or reuse. It'll probably need to handle - online / offline cases in a "pure wwwoffle" case - "wwwoffle + conventional online proxy" case, where when online we just call wwwoffle --fetch. Note that the conventional proxy may not be squid ;-) thoughts? m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list server-de...@lists.laptop.org http://lists.laptop.org/listinfo/server-devel