Author Topic: Opie-reader Learns Speaking  (Read 19297 times)

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Opie-reader Learns Speaking
« Reply #15 on: March 03, 2005, 12:24:33 pm »
Quote
I've got something working using the "invoke flite for each paragraph" approach. It works surprisingly well but I was only just able to run it on my SL5000D. OTOH, I do use very highly compressed documents which require several

Tim, PM me or send me an email if you want me to test it on Qtopia 1.7 on a Yopy with flite.
-Francis-
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Opie-reader Learns Speaking
« Reply #16 on: March 06, 2005, 04:44:38 am »
I've fixed everything and it all works, now (actually it was already working. All the problems I saw were down to my SD card corruption). The only other minor glitch is that flite doesn't like the "fi", "fl" etc ligatures so you have to turn "kerning" off (I got the name wrong when I wrote the dialog). If you don't you only get the paragraph read out as far as the first occurrence of such a ligature (this may be a problem with the way QT converts QStrings to char* rather than with flite but the net effect is the same - turn kerning off to make it work properly).

I've even gone one step further and I can now use the flite shared libraries directly but you need a version of flite compiled as shared libraries. I have an ipk for it but insufficient space/bandwidth to host it, plus I can't build for opie (ironically) ATM because I can't get a version of the build tools which supports softfloat (and don't tell me about OE - I have a modem connection to the internet with a cut off time far too short to get all the necessary atomic downloads done).

I've added a small architectural change to opie-reader so that it can load small plug-ins for output which means it supports either using the shared objects, or calling the pre-built binary via runtime configuration so even without the special build of flite you can still use tts in opie-reader (which means that I can do something for opie users providing they steer clear of the one floating point operation in opie-reader - using the "jump" dialog to jump to a %age location in the file rather than an absolute one).

As always, anyone who wants to try it, send me an e-mail. I may put out a proper release soon but the table support is a long way from being finalised so it'll be an unstable release (I don't think I've ever done anything other than unstable releases 8^) - its all relative).

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Opie-reader Learns Speaking
« Reply #17 on: March 06, 2005, 07:22:23 am »
Quote
I've even gone one step further and I can now use the flite shared libraries directly but you need a version of flite compiled as shared libraries. I have an ipk for it but insufficient space/bandwidth to host it, plus I can't build for opie (ironically) ATM because I can't get a version of the build tools which supports softfloat (and don't tell me about OE - I have a modem connection to the internet with a cut off time far too short to get all the necessary atomic downloads done).

Hi Tim,

Send me an email with the details plus any .bb/.oe files you have and I'll see what I can do this week to update the version in OE and send you an OZ binary too if that's what you're after.

I can also send you a (few?) CD(s) with the latest version of bb/oe/source code (I'll need a bit of time to download all of the source though), so that you have a working setup.

Cheers,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

caunt

  • Newbie
  • *
  • Posts: 48
    • View Profile
Opie-reader Learns Speaking
« Reply #18 on: March 22, 2005, 12:34:38 pm »
I need some help with trying out the speaking version:

Tim has tried emailing me the archive twice now, and both times it has arrived corrupted...
but some of you have gotten it with no problems.
- Is there anyone who might be able to try sending me the package again
- or have in on a site where I can download it
- or even send me the pieces so I can package it into an ipk?
- any other ideas?

I really would like to try this out and Tim has already gone the extra mile.

Thanks

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Opie-reader Learns Speaking
« Reply #19 on: March 22, 2005, 01:28:42 pm »
Sorry, I got a bit busy and it would take a while to sort out the individual files to put in a tar so haven't had a chance to do that yet.

However, I have managed to ftp a version of opie-reader with flite support to my website so you should be able to get it from this url.

ads

  • Newbie
  • *
  • Posts: 40
    • View Profile
Opie-reader Learns Speaking
« Reply #20 on: March 26, 2005, 07:54:33 am »
Tim...great work , you have just made opie reader twice as useful.

Just a hint for any having problems....flite needs to be in /home/QtPalmtop/bin/   and it needs to have the file name "flite" not "flite16k".

Also a bug ...you have to stop flite before exiting opiereader...otherwise flite will carry on reading and on restart only flite will be working (opiereader will be hidden in the background?)

Anyway thanks again Tim
c750. Cacko Qt elena

caunt

  • Newbie
  • *
  • Posts: 48
    • View Profile
Opie-reader Learns Speaking
« Reply #21 on: March 26, 2005, 02:54:12 pm »
OUTSTANDING!

Thanks Tim, this is great!  

Thanks to the hint by ads about renaming flite.  

I'm still learning how to control all this...first I thought I had a suggestion or two for Tim, but then I found he had already implemented what was needed...I just hadn't found it yet!

Sorry I didn't post here sooner Tim (you had to email me   ).  Actually I thought I had posted to tell you the link you posted had just what I needed, but didn't check back to see if it was successful.

EDIT:
Now I DO have a suggestion.  Paragraph-at-a-time seems to lend itself to freezing - or at least seeming to.  Have you tried sentence-at-a-time?  At least the interface would be better able to respond to the user's wishes to start and stop it would seem.
« Last Edit: March 26, 2005, 04:03:10 pm by caunt »

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Opie-reader Learns Speaking
« Reply #22 on: March 26, 2005, 06:41:08 pm »
I don't know how to use the i version with flite. seems i'm missing some of the basics here, could anybody teach me how?
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

caunt

  • Newbie
  • *
  • Posts: 48
    • View Profile
Opie-reader Learns Speaking
« Reply #23 on: March 26, 2005, 11:44:05 pm »
xjqian

- make sure you've followed the advice of ads above:
  flite needs to be in /home/QtPalmtop/bin/ and it needs to have the file    name "flite" not "flite16k".

- in the reader, in the settings, on the MISC tab of the configuration dialog:
    -go to the "scroll" section
    - under "scroll step" , choose "send to codec"
    -the box underneath that should be "flitecmd"

to read, you "scroll"


That said, I keep running into a few glitches myself.
« Last Edit: March 26, 2005, 11:44:35 pm by caunt »

caunt

  • Newbie
  • *
  • Posts: 48
    • View Profile
Opie-reader Learns Speaking
« Reply #24 on: March 26, 2005, 11:50:43 pm »
Tim,

I really would like to see the operation go to sentence-by-sentence now that I've been playing with it some.
I guess I read text with long paragraphs, but I've  been maxing out the available memory (not that I have that much I guess).
The reader seems to work fine on short, choppy texts, but throw in a nice long paragraph and my Z chokes.  

Now THAT being said, I'm afraid I'm not much of a debugger/tester in this environment.  I've been playing with C++ and QT for the first time this week, and I've gotten myself stuck already. [sigh].  I'll sleep on it.

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Opie-reader Learns Speaking
« Reply #25 on: March 27, 2005, 05:59:23 am »
thanks caunt for the how-to. only wish it could pick up where it stops in the paragraph, apparent not possible with the current mechanism as discussed above.  i guess i should take some time to read the whole thread again, a third time. I'm slow
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Opie-reader Learns Speaking
« Reply #26 on: March 29, 2005, 04:06:33 am »
Quote
I really would like to see the operation go to sentence-by-sentence now that I've been playing with it some.
I guess I read text with long paragraphs, but I've  been maxing out the available memory (not that I have that much I guess).
The reader seems to work fine on short, choppy texts, but throw in a nice long paragraph and my Z chokes. 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72438\"][{POST_SNAPBACK}][/a][/div]

I don't think that the length of the paragraph should have too much effect on the memory used so you must be pretty much at the limit already. I have a SL5000D with a Cacko ROM so my memory is pretty limited but I haven't had too much trouble (but I have made sure that *no* programs are fast loaded etc, and I have no programs installed to RAM).

It should be better using the shared library solution so I'll try and find a way of providing the ipk I created for that.

As for sending the text a sentence at a time rather than a paragraph at a time - the only reason I send a paragraph at a time is because I already had a function to read the next paragraph so, once I get the time, it shouldn't be a problem to change it to doing it a sentence at a time.
« Last Edit: March 29, 2005, 04:07:47 am by TimW »

pframpton

  • Newbie
  • *
  • Posts: 24
    • View Profile
Opie-reader Learns Speaking
« Reply #27 on: March 30, 2005, 05:29:01 am »
Is there anychance you could post the source code, so that the opie cvs can be updated with this new feature.

Has anyone written a .bb for flite as a shared library?
SL-5500, 256MB SD, 16 and 512MB CFs.
eTrex GPS and homemade cable.
Nokia 6610i via IR.
OZ 3.5.2
Fedora Core2 on linux box.

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Opie-reader Learns Speaking
« Reply #28 on: March 30, 2005, 06:00:18 am »
Quote
Is there anychance you could post the source code, so that the opie cvs can be updated with this new feature.

Has anyone written a .bb for flite as a shared library?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72793\"][{POST_SNAPBACK}][/a][/div]

Thanks to lardman I now have a working oe install so I'm currently updating my source so that it'll build properly with oe (previously someone had to move the sources around and rewrite the *.pro files every time I updated the code). I've got as far as updating what is already in CVS up to my current unstable and I'm now starting on adding the new stuff (REB support, bug fixes to html/chm/mobipocket, and the flite support). It shouldn't take long so I expect that it'll be in an "upgrade" feed pretty soon. I'm still behind a firewall so I will have to "post the code" but at least someone else getting it into CVS for me should be a "no-brainer" this time around (relatively, at least).

There is a bb file for flite as a shared library but it didn't build for me when I tried it. I haven't tried too hard yet, though.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Opie-reader Learns Speaking
« Reply #29 on: March 30, 2005, 07:02:38 am »
flite built fine for me when I tried it - see the download date on the source I sent you for the exact date.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva