• 1
  • 20
  • 21
  • 22(current)
  • 23
  • 24
  • 43
Release Kodi Screen Reader (Text to speech)
Seems to work with Windows 8.1 Pro and the default TTS engine. But if I try to configure the speech engine properties, it chokes all over it and hangs Kodi.

Anyone else having this issue? v1.0.1 and the latest Kodi
Reply
(2015-05-24, 22:05)noybman Wrote: Seems to work with Windows 8.1 Pro and the default TTS engine. But if I try to configure the speech engine properties, it chokes all over it and hangs Kodi.

Anyone else having this issue? v1.0.1 and the latest Kodi

Could you be more specific? What exactly were you doing when Kodi crashed?
Reply
So what seems to to be the problem with the Google Engine. I enable it but seems never to produce any sound even though. This is what I get in the log.

-- CUT --
02:43:45 T:2765507392 NOTICE: service.xbmc.tts: Threaded TTS Started: Google
02:43:45 T:2675956544 NOTICE: service.xbmc.tts: Player: SOX
02:43:45 T:2675956544 NOTICE: service.xbmc.tts: Mode: WAVOUT
02:43:45 T:2675956544 NOTICE: service.xbmc.tts: Backend: Google
02:43:45 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10146 Handler: default File: DialogAddonInfo.xml
02:43:45 T:2675956544 NOTICE: service.xbmc.tts: Control: 9
02:43:45 T:2419030848 NOTICE: service.xbmc.tts: Threaded TTS Finished: Flite
02:43:47 T:2675956544 NOTICE: service.xbmc.tts: Control: 6
02:44:29 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10040 Handler: default File: AddonBrowser.xml
02:44:29 T:2675956544 NOTICE: service.xbmc.tts: Control: 550
02:44:37 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
03:43:55 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10004 Handler: settings File: Settings.xml
03:43:55 T:2675956544 NOTICE: service.xbmc.tts: Control: 9000
03:43:56 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10000 Handler: default File: Home.xml
03:43:58 T:2675956544 NOTICE: service.xbmc.tts: Control: 90132
03:43:59 T:2675956544 NOTICE: service.xbmc.tts: Control: 9000
03:44:07 T:2675956544 NOTICE: service.xbmc.tts: Control: 90132
03:44:10 T:2675956544 NOTICE: service.xbmc.tts: Control: 9000
03:46:41 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10615 Handler: pvrchannels File: MyPVRChannels.xml
03:46:41 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
09:35:53 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10138 Handler: busydialog File: DialogBusy.xml
09:35:53 T:2675956544 NOTICE: service.xbmc.tts: Control: 0
09:36:06 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10615 Handler: pvrchannels File: MyPVRChannels.xml
09:36:06 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
09:40:31 T:2675956544 NOTICE: service.xbmc.tts: Control: 0
09:40:35 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 12005 Handler: playerstatus File: VideoFullScreen.xml
09:41:07 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10615 Handler: pvrchannels File: MyPVRChannels.xml
09:41:07 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
09:46:41 T:2675956544 NOTICE: service.xbmc.tts: Control: 100
09:46:48 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
09:47:16 T:2675956544 NOTICE: service.xbmc.tts: Control: 0
09:47:18 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
09:48:11 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10000 Handler: default File: Home.xml
09:48:11 T:2675956544 NOTICE: service.xbmc.tts: Control: 9000
09:48:29 T:2675956544 NOTICE: service.xbmc.tts: Control: 90143
09:48:31 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10615 Handler: pvrchannels File: MyPVRChannels.xml
09:48:31 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
09:48:43 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10138 Handler: busydialog File: DialogBusy.xml
09:48:43 T:2675956544 NOTICE: service.xbmc.tts: Control: 0
09:48:45 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10615 Handler: pvrchannels File: MyPVRChannels.xml
09:48:45 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
09:48:49 T:2675956544 NOTICE: service.xbmc.tts: Control: 100
09:48:53 T:2675956544 NOTICE: service.xbmc.tts: Control: 101
09:48:56 T:2675956544 NOTICE: service.xbmc.tts: Control: 102
09:48:58 T:2675956544 NOTICE: service.xbmc.tts: Control: 103
09:48:59 T:2675956544 NOTICE: service.xbmc.tts: Control: 104
09:49:00 T:2675956544 NOTICE: service.xbmc.tts: Control: 28
09:49:00 T:2675956544 NOTICE: service.xbmc.tts: Control: 2
09:49:01 T:2675956544 NOTICE: service.xbmc.tts: Control: 3
09:49:06 T:2675956544 NOTICE: service.xbmc.tts: Control: 2
09:49:09 T:2675956544 NOTICE: service.xbmc.tts: Control: 28
09:49:13 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 12000 Handler: selectdialog File: DialogSelect.xml
09:49:13 T:2675956544 NOTICE: service.xbmc.tts: Control: 3
09:49:29 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10615 Handler: pvrchannels File: MyPVRChannels.xml
09:49:29 T:2675956544 NOTICE: service.xbmc.tts: Control: 28
09:49:34 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 12000 Handler: selectdialog File: DialogSelect.xml
09:49:34 T:2675956544 NOTICE: service.xbmc.tts: Control: 3
09:49:46 T:2675956544 NOTICE: service.xbmc.tts: Window ID: 10615 Handler: pvrchannels File: MyPVRChannels.xml
09:49:46 T:2675956544 NOTICE: service.xbmc.tts: Control: 28
09:49:50 T:2675956544 NOTICE: service.xbmc.tts: Control: 104
09:49:52 T:2675956544 NOTICE: service.xbmc.tts: Control: 103
09:49:53 T:2675956544 NOTICE: service.xbmc.tts: Control: 102
09:49:55 T:2675956544 NOTICE: service.xbmc.tts: Control: 101
09:49:56 T:2675956544 NOTICE: service.xbmc.tts: Control: 100
09:50:01 T:2675956544 NOTICE: service.xbmc.tts: Control: 50
09:50:10 T:2765507392 NOTICE: service.xbmc.tts: ERROR: Failed to open Google TTS URL - HTTP Error 500: Internal Server Error
--CUT--

Has the url string to google TTS changed? Is that why Google is broken? How can I help debug this?

For the record the other engines work pretty well espeak flite festival even speech-dispatcher but Google has better quality foreign voices which is why I wish to use it.

Thanks.
Reply
Installed it in reppo in Kodibuntu, it throws errors

Code:
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: ERROR: Failed to get speech.server version - <urlopen error [Errno 111] Connection refused>
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: No server detected. Flagging as dead.
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend: ttsd
17:30:03 T:140702499456768  NOTICE: service.xbmc.tts: Threaded TTS Finished: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend falling back to: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Using tmpfs at: /run/shm
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Player: XBMC PlaySFX
17:30:03 T:140702499456768  NOTICE: service.xbmc.tts: Threaded TTS Started: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Mode: WAVOUT
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: ERROR: Failed to get speech.server version - <urlopen error [Errno 111] Connection refused>
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: No server detected. Flagging as dead.
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend: ttsd
17:30:03 T:140701489645312  NOTICE: service.xbmc.tts: Threaded TTS Finished: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend falling back to: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Using tmpfs at: /run/shm
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Player: XBMC PlaySFX
17:30:03 T:140701489645312  NOTICE: service.xbmc.tts: Threaded TTS Started: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Mode: WAVOUT
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: ERROR: Failed to get speech.server version - <urlopen error [Errno 111] Connection refused>
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: No server detected. Flagging as dead.
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend: ttsd
17:30:03 T:140702499456768  NOTICE: service.xbmc.tts: Threaded TTS Finished: ttsd

How can I fix this?
Reply
Unfortunately I can't be of much help here.
Reply
(2015-06-09, 16:31)masinad Wrote: Installed it in reppo in Kodibuntu, it throws errors

Code:
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: ERROR: Failed to get speech.server version - <urlopen error [Errno 111] Connection refused>
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: No server detected. Flagging as dead.
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend: ttsd
17:30:03 T:140702499456768  NOTICE: service.xbmc.tts: Threaded TTS Finished: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend falling back to: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Using tmpfs at: /run/shm
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Player: XBMC PlaySFX
17:30:03 T:140702499456768  NOTICE: service.xbmc.tts: Threaded TTS Started: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Mode: WAVOUT
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: ERROR: Failed to get speech.server version - <urlopen error [Errno 111] Connection refused>
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: No server detected. Flagging as dead.
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend: ttsd
17:30:03 T:140701489645312  NOTICE: service.xbmc.tts: Threaded TTS Finished: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend falling back to: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Using tmpfs at: /run/shm
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Player: XBMC PlaySFX
17:30:03 T:140701489645312  NOTICE: service.xbmc.tts: Threaded TTS Started: ttsd
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Mode: WAVOUT
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: ERROR: Failed to get speech.server version - <urlopen error [Errno 111] Connection refused>
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: No server detected. Flagging as dead.
17:30:03 T:140703774525184  NOTICE: service.xbmc.tts: Backend: ttsd
17:30:03 T:140702499456768  NOTICE: service.xbmc.tts: Threaded TTS Finished: ttsd

How can I fix this?
From the log snippet, it looks like you are trying to use the speech server. Since the error message is 'Connection refused', either the speech server is not started, or the port in the add-on settings does not match the server port, or some other routing issue depending on your setup.
Reply
(2015-06-01, 13:29)lookidok Wrote: So what seems to to be the problem with the Google Engine. I enable it but seems never to produce any sound even though. This is what I get in the log.

-- CUT --
09:50:10 T:2765507392 NOTICE: service.xbmc.tts: ERROR: Failed to open Google TTS URL - HTTP Error 500: Internal Server Error
--CUT--

Has the url string to google TTS changed? Is that why Google is broken? How can I help debug this?

For the record the other engines work pretty well espeak flite festival even speech-dispatcher but Google has better quality foreign voices which is why I wish to use it.

Thanks.

Does it work at all on google, or does it just die at some point? I did a quick test and the URL still seems to work for google. What language are you using, and is it set in the addon settings?
Reply
Got it working. Had to download speech.server and start ./server.py.

How can I make this to read movie description or tv show session/episod info automaticly when highlighted. right now it speaks everything and kinda spam tts.
Reply
(2015-06-10, 17:11)masinad Wrote: Got it working. Had to download speech.server and start ./server.py.

How can I make this to read movie description or tv show session/episod info automaticly when highlighted. right now it speaks everything and kinda spam tts.
You can install the keymap and then F2 and F3 will read additional info for the item and window respectively. You can also enable auto read extra info in settings and it will read extra info for the item automatically after a delay.
Reply
Hi!

I apologize if this has already been asked before. I did some searching around first and I found something about reviewing text with screen reader, but it only seemed to mention some issue with a keyboard dialog in reply.

I did install Keymap as well, since that seems very handy in general.

Is there a way for Kodi screen reader to review text? At least on OS X, it tends to interrupt itself when something new appears on the screen, for instance when you are trying to authorize an account for the Facebook addon, it interrupts what it is about to tell me to do because it lands on the cancel button.

Initially, I'd like to have a way to review the text if possible, or even if you just missed what it said. Hopefully something can be done about this, but obviously I realize this is in its early stages.

Aside from this, it rules. Smile
Reply
hi,
I am quite new to Kodi, i've got used to using the screen reader version on windows, installing addons watching tv and love it, my question is can i use your add on on the apple tv 2. I read your posts about using the speech server with other devices, sorry if this questions been asked before. i use nvda on windows, thanks for all the work you do.
Reply
(2015-06-12, 16:08)chojiro Wrote: Hi!

I apologize if this has already been asked before. I did some searching around first and I found something about reviewing text with screen reader, but it only seemed to mention some issue with a keyboard dialog in reply.

I did install Keymap as well, since that seems very handy in general.

Is there a way for Kodi screen reader to review text? At least on OS X, it tends to interrupt itself when something new appears on the screen, for instance when you are trying to authorize an account for the Facebook addon, it interrupts what it is about to tell me to do because it lands on the cancel button.

Initially, I'd like to have a way to review the text if possible, or even if you just missed what it said. Hopefully something can be done about this, but obviously I realize this is in its early stages.

Aside from this, it rules. Smile
The addon currently doesn't keep any sort of history of text, but that is a good idea. Currently the best you can do with the keymap installed is use F1 to repeat the current control. F3 should read the text of the current window or dialog. So if the cancel button interrupted that should work to get the text of the dialog. If not let me know. I may need to take a look at handling for that dialog as it should finish reading the dialog before the button.
(2015-06-14, 18:30)Joe_B Wrote: hi,
I am quite new to Kodi, i've got used to using the screen reader version on windows, installing addons watching tv and love it, my question is can i use your add on on the apple tv 2. I read your posts about using the speech server with other devices, sorry if this questions been asked before. i use nvda on windows, thanks for all the work you do.

Way back in when I started I had it working badly on apple tv 2. It might still work if you install the flite package (i think it was flite that worked). I don't think it's necessarily worth the effort though. I haven't messed with it for a while, but I believe that speech wasn't interruptible so if you navigated through a bunch of buttons quickly, you would get to hear all of them at the end. Also, the ATV2 is a slow device, so performance was bad with speech in any case.
Reply
It worked, but it worked, really bad with ATV2, Even using the server. The ATV2 barely had the power to actually run Kodi/XBMC, Add in speech and it pretty much killed it.
Reply
(2015-06-09, 20:21)ruuk Wrote:
(2015-06-01, 13:29)lookidok Wrote: So what seems to to be the problem with the Google Engine. I enable it but seems never to produce any sound even though. This is what I get in the log.

-- CUT --
09:50:10 T:2765507392 NOTICE: service.xbmc.tts: ERROR: Failed to open Google TTS URL - HTTP Error 500: Internal Server Error
--CUT--

Has the url string to google TTS changed? Is that why Google is broken? How can I help debug this?

For the record the other engines work pretty well espeak flite festival even speech-dispatcher but Google has better quality foreign voices which is why I wish to use it.

Thanks.

Does it work at all on google, or does it just die at some point? I did a quick test and the URL still seems to work for google. What language are you using, and is it set in the addon settings?

Well I can use a Python script to contact google TTS and that works fine, but I get nothing at all from Google within Kodi. Does not matter what language I set. English Italian French none of it seems to work. Sad

It is a pity because it has quite a nice interface to setting it up and I would really like to use those voices as I already do some transcription for my partially sighted father and he understands those voices perfectly when played back at 0.85 speed.

How can I help to debug this issue? I don't think the logs are being terrible verbose but is there something I can do to patch the module to make it output more verbose messages about the transport communications between the plugin and google?

I am willing to go the extra mile simply because this is the last piece of a puzzle when I can move my father off off traditional TV watching to a more liberated and engaging way of watching TV.

Thanks.

EDIT:

Ahh I have just done some testing by dumping the http traffic and looking at the strings. Seems it is being passed correctly and and something is being sent back but no audio is being played.

This is what it looks like.

--- CUT ---
Frame 23: 304 bytes on wire (2432 bits), 304 bytes captured (2432 bits)
Ethernet II, Src: QuantaCo_db:d3:3c (00:16:36:db:d3:3c), Dst: LinksysG_ff:b1:8f (00:06:25:ff:b1:8f)
Internet Protocol Version 4, Src: 192.168.0.58 (192.168.0.58), Dst: 216.58.210.78 (216.58.210.78)
Transmission Control Protocol, Src Port: 56180 (56180), Dst Port: 80 (80), Seq: 1, Ack: 1, Len: 238
Hypertext Transfer Protocol

No. Time Source Destination Protocol Length Info
29 5.408273 216.58.210.78 192.168.0.58 HTTP 1162 HTTP/1.1 200 OK (audio/mpeg)

Frame 29: 1162 bytes on wire (9296 bits), 1162 bytes captured (9296 bits)
Ethernet II, Src: LinksysG_ff:b1:8f (00:06:25:ff:b1:8f), Dst: QuantaCo_db:d3:3c (00:16:36:db:d3:3c)
Internet Protocol Version 4, Src: 216.58.210.78 (216.58.210.78), Dst: 192.168.0.58 (192.168.0.58)
Transmission Control Protocol, Src Port: 80 (80), Dst Port: 56180 (56180), Seq: 2837, Ack: 239, Len: 1096
[3 Reassembled TCP Segments (3932 bytes): #25(1418), #27(1418), #29(1096)]
Hypertext Transfer Protocol
Media Type

No. Time Source Destination Protocol Length Info
38 7.935690 192.168.0.58 216.58.210.78 HTTP 307 GET /translate_tts?tl=en&q=PROGRAMS HTTP/1.1

Frame 38: 307 bytes on wire (2456 bits), 307 bytes captured (2456 bits)
Ethernet II, Src: QuantaCo_db:d3:3c (00:16:36:db:d3:3c), Dst: LinksysG_ff:b1:8f (00:06:25:ff:b1:8f)
Internet Protocol Version 4, Src: 192.168.0.58 (192.168.0.58), Dst: 216.58.210.78 (216.58.210.78)
Transmission Control Protocol, Src Port: 56181 (56181), Dst Port: 80 (80), Seq: 1, Ack: 1, Len: 241
Hypertext Transfer Protocol

No. Time Source Destination Protocol Length Info
46 7.965605 216.58.210.78 192.168.0.58 HTTP 752 HTTP/1.1 200 OK (audio/mpeg)



--- CUT ---

So where are the samples being saved to? Maybe I can examine them directly?

For the record I tried those strings with wget and a custom Useragent string and it downloaded the file down fine.. without the useragent it would not. Oh well.

EDIT2:

Ok I think the problem is loclalised because I just tried the plugin on my laptop with kodi and it worked fine. It might be a audio permission error on the other machine but not for flite or festival.. weird. What it does mean is I can get ti working on a new build and so for that THANK YOU! Great plugin and will help my father enormously.
Reply
lookidok: What is the OS and version where you have the issue?
Reply
  • 1
  • 20
  • 21
  • 22(current)
  • 23
  • 24
  • 43

Logout Mark Read Team Forum Stats Members Help
Kodi Screen Reader (Text to speech)10