01-27-2017, 12:56 PM | #1 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
KSpeak - eSpeak TTS porting for kindle
Amazon's TTS support is very limitated: Voiceview supports only english language.
So i ported eSpeak, an open source speech synthesizer (http://espeak.sourceforge.net/) You can use it by command line, or you can use a simple kindlet frontend i made for it. You can speak a free text or a text file, i'm looking for a command line tool to extract text from epub/mobi/azw/kfx/whatev files (if anyone knows please tell me ) I tested on my PW3 with a cheap usb audio adapter (like this) and some earphones Install instructions:
hope you enjoy it Last edited by encol; 01-31-2017 at 05:13 AM. |
01-27-2017, 02:05 PM | #2 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Our speaker independent voice recognition system (Vague) includes embedded Flite:
http://www.speech.cs.cmu.edu/flite/ You can get the K5 build from here: http://www.mediafire.com/file/tlmcf5...dded-flite.zip The KUAL menu item for flite is: */extensions/flite (where else would you expect it?) Last edited by knc1; 01-27-2017 at 02:15 PM. |
Advert | |
|
01-28-2017, 03:16 AM | #3 |
Addict
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
|
Wanted to try it out on my PW3 - I'm getting an "Error while getting voices list: java.security.AccessControlException-", when launching the KSpeak azw2. The rest of the error message is cut off.
|
01-28-2017, 03:45 AM | #4 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Is the device Jailbroken?
Go to the /mnt/us/developer/KSpeak/work folder. There are some log files there. Post them |
01-28-2017, 03:52 AM | #5 |
Addict
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
|
KSpeak.log
http://pastebin.com/ST7M9pzN crash.log http://pastebin.com/r4UkZZd1 And yes - the device is jailbroken. I played around with the PW3s native TTS speech engine in the past, but this error seems to be unrelated.. I'm on 5.8.2 - so an older version of the firmware - but not that old. |
Advert | |
|
01-28-2017, 03:54 AM | #6 |
Addict
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
|
Ah, there is no KSpeak_prefs.xml file.
edit: Also the /lib/ld-linux.so.3 file is in place with 777 permissions... Last edited by notimp; 01-28-2017 at 04:02 AM. |
01-28-2017, 03:55 AM | #7 | |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Quote:
|
|
01-28-2017, 03:59 AM | #8 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
|
01-28-2017, 04:42 AM | #9 | |
Addict
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
|
Quote:
( https://www.mobileread.com/forums/sh...postcount=1597 ) - which comes with MKK (made sure of it - renamed the MKK folder to oldmkk, installed hot fix - new MKK folder was created), same issue. That said KUAL works perfectly an so do about 10 other KUAL extensions I use on a regular basis. If other people don't come up experiencing the same issue - maybe I'll install MKK from the stand alone package - but I am hesitant, as this is not the recommended way to install MKK on newer Jailbreaks/Firmwares. |
|
01-28-2017, 04:59 AM | #10 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Have you kterm installed, or you can access via ssh?
If yes, try this: Code:
cd /mnt/us/extensions/espeak/ ./espeak.sh english-us "hello world" Last edited by encol; 01-28-2017 at 05:06 AM. |
01-28-2017, 05:09 AM | #11 |
Addict
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
|
Also - as a Test, opened a new pdf in KOReader (started from KUAL), modified some settings, closed KOReader - and sure enough it created a new folder containing the settings file in /mnt/us/documents/
KSpeak.azw2 does nothing but crash. On my PW3 that is. edit: I can ssh into the device - give me a sec. |
01-28-2017, 05:17 AM | #12 |
Addict
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
|
Running the command via usb gives me a bunch of errors related to the soundcard not being attached -
http://pastebin.com/KSidfXYW I'll try kterm next (easier than to setup ssh via wifi just now.. ) - with the soundcard attached. Last edited by notimp; 01-28-2017 at 05:26 AM. |
01-28-2017, 05:22 AM | #13 |
Addict
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
|
'hello world' (used single quotes) worked in kterm. (Heard the voice.) Screenshot soon to follow.
|
01-28-2017, 05:26 AM | #14 |
Addict
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
|
Screenshot of kterm executing the command:
http://i.imgur.com/feOjYXW.png edit: Redownloaded the .azw2 file - moved it to /mnt/us/documents/ via usb, then via sftp (ssh) - same result (so its not related to file corruption or the Mas OS temp file that gets created if you copy it over via usb). Last edited by notimp; 01-28-2017 at 05:36 AM. |
01-28-2017, 05:36 AM | #15 | |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Quote:
and where you attached the sound card? Last edited by encol; 01-28-2017 at 05:44 AM. |
|
Tags |
espeak, speech, synthesizer, text to speak, tts |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Request] Porting choose your own adventure games to kindle | #gabriel | Kindle Developer's Corner | 3 | 05-03-2016 01:11 PM |
Porting Anki to Kindle Touch - please comment | koziej | Kindle Developer's Corner | 17 | 01-10-2014 06:39 AM |
Porting Kindle Paperwhite OS to Kindle Keyboard | mrzerga | Kindle Developer's Corner | 5 | 06-30-2013 10:44 AM |
GUI Launcher greyed out when TTS is on and does not come back when TTS is off | jmseight | Kindle Developer's Corner | 4 | 07-28-2012 02:48 AM |
Android porting on my kindle touch? | acajac | Kindle Developer's Corner | 1 | 04-12-2012 08:42 AM |