Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-03-2015, 05:28 PM   #76
sstuardo
Junior Member
sstuardo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2015
Device: kindle keyboard
Hi.
I recently managed to install your wonderful tts hack. Well... struggled a little actually cause since amazon updated my firmware, no .bin files were working because of the target OTA number (I guess). So I used the KindleTool to fix the files, and it worked.

BUT...
Once I did it, I realized amazon in one of the firmwares has disabled the TTS option for (it seems to me) all non english writen books.
So I did some research, tried to mount --bind the folder /opt/amazon/cant-remember-the-rest containing the jar files with FW ver 3.4 I extracted from the unbrick patch (mine is 3.4.2), but couldnt make it work (not sure if it was because of the mount --bind didnt work, or it did but 3.4 didnt support it, or maybe I guessed wrong and the code disabling the option is somewhere else)

Any ideas?
sstuardo is offline   Reply With Quote
Old 08-03-2015, 05:42 PM   #77
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
On a K3? These things are the electronic equivalent of a paperback book, your suppose to throw them away after 6 months.

Ah, is this suppose to work on 3.4.x? (link please to post in this thread).
I only read the first few pages and found only 3.2 and 3.3 mentioned.

And at the voice pack download link, I only see 3r3 as the most recent, no 3r4.

(I am getting too close to #8,000 - somebody put me out of my misery.)

Last edited by knc1; 08-03-2015 at 05:58 PM.
knc1 is offline   Reply With Quote
Advert
Old 08-06-2015, 09:28 PM   #78
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Only 8000? Sheesh.
eschwartz is offline   Reply With Quote
Old 08-07-2015, 01:15 AM   #79
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by eschwartz View Post
Only 8000? Sheesh.
Single forum user.
knc1 is offline   Reply With Quote
Old 08-07-2015, 07:37 AM   #80
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by sstuardo View Post
...

BUT...
Once I did it, I realized amazon in one of the firmwares has disabled the TTS option for (it seems to me) all non english writen books.
So I did some research, tried to mount --bind the folder /opt/amazon/cant-remember-the-rest containing the jar files with FW ver 3.4 I extracted from the unbrick patch (mine is 3.4.2), but couldnt make it work (not sure if it was because of the mount --bind didnt work, or it did but 3.4 didnt support it, or maybe I guessed wrong and the code disabling the option is somewhere else)

Any ideas?
Sorry no idea. I wanted to report TTS still works fine on my K3 v3.4.2 I just had it "speak" a french book (per metadata) in the hacked french language.
PoP is offline   Reply With Quote
Advert
Old 08-07-2015, 09:00 AM   #81
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by sstuardo View Post
- - - -
So I did some research, tried to mount --bind the folder /opt/amazon/cant-remember-the-rest containing the jar files with FW ver 3.4 I extracted from the unbrick patch (mine is 3.4.2), but couldnt make it work (not sure if it was because of the mount --bind didnt work, or it did but 3.4 didnt support it, or maybe I guessed wrong and the code disabling the option is somewhere else)

Any ideas?
Issue the command:
mount
without any options, see if your bind mount is listed.
knc1 is offline   Reply With Quote
Old 08-07-2015, 09:08 AM   #82
sstuardo
Junior Member
sstuardo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2015
Device: kindle keyboard
Well, I made some advance
I find some cool hack in the forums called jbpatch here:
https://www.mobileread.com/forums/sho...d.php?t=175512

It's a hack that runs before the framework startup and modifies java bytecode on runtime (thus no need to modify the original jar files). Although it's written for K5, arikfunke reports it runs also for k3 (https://www.mobileread.com/forums/sho....php?p=2263991). But it's just the "barebone", it has no particular hack enabled.

So all i had to do was to find in the .jar files where does it grays out tts and modify it (and Bingo!). "Shouldn't be so difficult" I thought...
I used jd-gui to explore the code and allthough I finally found a tts class, I simply cannot read the f**king code with all the single letter nested useless functions and stuff like " a = d; return a.a.d;" (I'm actually a newbie programmer but I guess that's ofuscation). Most likely its just a single f**kng boolean to be true, I just cannot find it,

Looking for ideas anyways


****
BTW, hey knc1!
What do you mean by "per metadata"? Maybe there's an easier way than what I'm working on.

Quote:
Originally Posted by PoP View Post
Sorry no idea. I wanted to report TTS still works fine on my K3 v3.4.2 I just had it "speak" a french book (per metadata) in the hacked french language.
****
Worked so hard on the other way that almost forgot!!! I'll give it a try
Quote:
Originally Posted by knc1 View Post
Issue the command:
mount
without any options, see if your bind mount is listed.

Last edited by sstuardo; 08-07-2015 at 09:13 AM.
sstuardo is offline   Reply With Quote
Old 08-07-2015, 12:52 PM   #83
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Well, it was PoP that reported this hack working on 3.4.2, not I.

He must mean the metadata of the book (I.E: includes what language it is written in).

So check your book before you try to make a working application work for you.

- - - -

"No hacks enabled" only because you haven't written any of them yet.
(nor has anybody else, IIRC.)

- - - -

If any of the jbpatch stuff seems intimidating, keep in mind that ixtab was working towards his PhD. in Computer Science when he wrote this stuff.

Last edited by knc1; 08-07-2015 at 01:10 PM.
knc1 is offline   Reply With Quote
Old 08-07-2015, 08:53 PM   #84
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by knc1 View Post
Well, it was PoP that reported this hack working on 3.4.2, not I.

He must mean the metadata of the book (I.E: includes what language it is written in).

...
Exactly what I meant, and wrote.
PoP is offline   Reply With Quote
Old 08-08-2015, 09:01 AM   #85
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by PoP View Post
Exactly what I meant, and wrote.
yes, sorry about that, but the post I read seemed to imply that the poster did not know that books have language metadata.

(oh, boy, just wait until they learn what stuff images carry around with them other than what you can see. )
knc1 is offline   Reply With Quote
Old 08-08-2015, 10:02 AM   #86
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by knc1 View Post
yes, sorry about that, but the post I read seemed to imply that the poster did not know that books have language metadata.

(oh, boy, just wait until they learn what stuff images carry around with them other than what you can see. )
No need to be sorry -- I never meant to sound snarky, just wanted to reply directly.

BTW I am sending you some meta-Karma You gave me ideas to possibly enhance my Avatar...

[EDIT 14:37] Done. Thanks Phil Harvey!






Last edited by PoP; 08-08-2015 at 02:43 PM. Reason: linking to howto
PoP is offline   Reply With Quote
Old 08-09-2015, 07:24 PM   #87
sstuardo
Junior Member
sstuardo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2015
Device: kindle keyboard
Finally managed to do it. Here is what I did:

Target file is /opt/amazon/ebook/lib/booklet.jar
Class: com.amazon.ebook.common.gui.overlay.l
method ZrB

That method gathers the text-to-speech strings when you press the Aa button and returns them, so it says "Text-to-speech Turn On Turn Off" or "Texto-to-speech Turn off Pause" etc, depending on the situation . When tts is off, It also sets wether the menu is enabled or disabled (visible but gray)
If you explore (I used JD-gui) the file I mentioned, you'll find the last line of the method contains an "if (...) then a.setEnabled(false)". That's the line to avoid.

So I tried to fix it the "elegant" way: make a jbpatch, so needed to install eclipse and jadclipse and jbpatch and make a project and compile it and after 2 days of hard work... I failed miserably (and realized I'm no programmer)

So unzipped the jar, searched for the class file, grabbed JBE and edited the method. Replaced the bytecode instruction iconst_0 to iconst_m1 (equivalent to changing a.setEnabled(false) to a.setEnabled(true)), saved the file, zipped the jar, copied to my kindle the standard way (to user root directory), mount --bind the modified jar to cover-instead-of-replacing the original file and Bingo!

Well... I know... ugliest solution, but it works for me. Now I can tts any book. If any newbie as me is going to try this my way, I strongly recommend disabling kindle's automatic OTA updates, as I guess the file may get corrupted.

Also, dsmid, could you add a little note on this on your first post?

For the record, I own a Kindle Keyboard wifi (B008), firmware version 3.4.2 (2687240004)

(Cannot post the modified file because it's amazons copyrighted.)

Last edited by sstuardo; 08-10-2015 at 09:22 AM. Reason: remove Amazon-copyrighted IP / text clarity
sstuardo is offline   Reply With Quote
Old 08-09-2015, 08:04 PM   #88
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by sstuardo View Post
- - - -
If you explore (I used JD-gui) the file I mentioned, you'll find the last line of the method contains an "if (...) then a.setEnabled(false)". That's the line to avoid.
- - - -
Now I can tts any book.
- - - -
For the record, I own a Kindle Keyboard wifi (B008), firmware version 3.4.2 (2687240004)
- - - -
Hmm...

I have to read between the lines here to figure out why PoP reported it working and you had to 'fix' it.

From what I see now - Yours **did not work on all books** before, and evidently PoP tested the unmodified version on a book that would have worked for you.

I.E: The inside of the IF (...) that you eluded is checking the metadata of the book.
The book you where working with and the book PoP was working with returned different results of the test.

- - - -

That is a copyrighted .jar file - you can't post it here.
Please read the site Guidelines about I.P.

Last edited by knc1; 08-09-2015 at 08:08 PM.
knc1 is offline   Reply With Quote
Old 08-09-2015, 09:05 PM   #89
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Moderator Notice

Sorry, no posting of Amazon's actual content. See our Posting Guidelines.
Instructions to help other people recreate your results are completely acceptable though.

Attachment removed.

Last edited by eschwartz; 08-09-2015 at 09:07 PM.
eschwartz is offline   Reply With Quote
Old 08-09-2015, 09:34 PM   #90
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Documenting, If it can help.

My firmware version:
Click image for larger version

Name:	screen_shot-29181.gif
Views:	305
Size:	14.8 KB
ID:	140908

The specific (public domain) book I tested:
Madame Bovary - Gustave Flaubert.azw3

Its metadata:
Click image for larger version

Name:	MobiMetaEditor.png
Views:	337
Size:	61.0 KB
ID:	140910

Its metadata language:
Click image for larger version

Name:	Mobi Meta Editor Language.png
Views:	309
Size:	15.0 KB
ID:	140911

TTS enabled in my Aa options on this book:
Click image for larger version

Name:	screen_shot-29180.gif
Views:	301
Size:	18.7 KB
ID:	140907

BTW, I can TTS all of my books with the unmodified hack and I have removed DRM in all of them.
PoP is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Text to Speech voice packs chyron8472 Amazon Kindle 4 05-11-2012 04:55 AM
Paid Hack Request: Photo Slideshow Hack for Kindle 3 chmreader Kindle Developer's Corner 0 05-25-2011 01:24 PM
Which link for jailbreak & hack now? harpangel36 Kindle Developer's Corner 2 02-26-2011 11:04 PM
Hack Wanted: K3 TTS Voice Change anmend43 Kindle Developer's Corner 7 10-17-2010 02:37 PM
Free on Kindle - The Voice koland Deals and Resources (No Self-Promotion or Affiliate Links) 0 12-09-2009 02:06 PM


All times are GMT -4. The time now is 10:25 AM.


MobileRead.com is a privately owned, operated and funded community.