OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> Opie-reader Learns Speaking
padishah_emperor
post Mar 3 2005, 09:24 AM
Post #16





Group: Members
Posts: 849
Joined: 6-March 04
Member No.: 2,180



QUOTE(TimW @ Mar 3 2005, 12:55 PM)
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-
Go to the top of the page
 
+Quote Post
TimW
post Mar 6 2005, 01:44 AM
Post #17





Group: Members
Posts: 288
Joined: 8-December 03
From: London, UK
Member No.: 1,065



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).
Go to the top of the page
 
+Quote Post
lardman
post Mar 6 2005, 04:22 AM
Post #18





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
Go to the top of the page
 
+Quote Post
caunt
post Mar 22 2005, 09:34 AM
Post #19





Group: Members
Posts: 48
Joined: 11-November 04
Member No.: 5,427



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
Go to the top of the page
 
+Quote Post
TimW
post Mar 22 2005, 10:28 AM
Post #20





Group: Members
Posts: 288
Joined: 8-December 03
From: London, UK
Member No.: 1,065



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.
Go to the top of the page
 
+Quote Post
ads
post Mar 26 2005, 04:54 AM
Post #21





Group: Members
Posts: 40
Joined: 21-March 04
Member No.: 2,320



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
Go to the top of the page
 
+Quote Post
caunt
post Mar 26 2005, 11:54 AM
Post #22





Group: Members
Posts: 48
Joined: 11-November 04
Member No.: 5,427



OUTSTANDING!

Thanks Tim, this is great!

Thanks to the hint by ads about renaming flite. smile.gif

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 sad.gif ). 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.
Go to the top of the page
 
+Quote Post
xjqian
post Mar 26 2005, 03:41 PM
Post #23





Group: Members
Posts: 500
Joined: 17-January 04
From: St. Louis, USA
Member No.: 1,478



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?
Go to the top of the page
 
+Quote Post
caunt
post Mar 26 2005, 08:44 PM
Post #24





Group: Members
Posts: 48
Joined: 11-November 04
Member No.: 5,427



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.
Go to the top of the page
 
+Quote Post
caunt
post Mar 26 2005, 08:50 PM
Post #25





Group: Members
Posts: 48
Joined: 11-November 04
Member No.: 5,427



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. sad.gif

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.
Go to the top of the page
 
+Quote Post
xjqian
post Mar 27 2005, 02:59 AM
Post #26





Group: Members
Posts: 500
Joined: 17-January 04
From: St. Louis, USA
Member No.: 1,478



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 wink.gif
Go to the top of the page
 
+Quote Post
TimW
post Mar 29 2005, 01:06 AM
Post #27





Group: Members
Posts: 288
Joined: 8-December 03
From: London, UK
Member No.: 1,065



QUOTE(caunt @ Mar 27 2005, 04:50 AM)
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.  sad.gif
*


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.
Go to the top of the page
 
+Quote Post
pframpton
post Mar 30 2005, 02:29 AM
Post #28





Group: Members
Posts: 24
Joined: 25-June 04
Member No.: 3,822



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?
Go to the top of the page
 
+Quote Post
TimW
post Mar 30 2005, 03:00 AM
Post #29





Group: Members
Posts: 288
Joined: 8-December 03
From: London, UK
Member No.: 1,065



QUOTE(pframpton @ Mar 30 2005, 10:29 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?
*


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.
Go to the top of the page
 
+Quote Post
lardman
post Mar 30 2005, 04:02 AM
Post #30





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



flite built fine for me when I tried it - see the download date on the source I sent you for the exact date.


Si
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2014 - 08:31 AM