Xbmc not working for blind users.
(2014-03-28, 23:44)domasofan Wrote: hi,

(2014-03-28, 22:36)ruuk Wrote: domasofan: Try changing the poll interval to higher values and see if you get better results.

I guess i found the culprit.
it seems that all the time this service seems to generate wav files which are saved to the sd card.
so basically you send a string of text maybe to the espeak command line program.
it generates a wav file and needs to play it back.

can't we just talk to the espeak library?
so we could directly output speech and not use wav files which would greatly redouce pressure on the sd card, the processor and all other things which could create a big lag.
maybe this is also why the service seems to crash after a while.

maybe also speech dispatcher might be useful to use many different synthesizers without the implementation of each synth into the addon.

greetings,
simon

We have a speech-dispatcher backend already. The problems with speech dispatcher is that it doesn't work on all of XBMC's platforms, and it doesn't allow the same control that implementing the engines directly does, and it can't direct it's audio to a wav for playback in XBMC (which is necessary for some setups).

The thing about openelec, is that they have to include the backend in the installation. Sraue chose eSpeak, I believe, because it is available on on the platforms that openelec supports and because it can output to a wav file. I believe we have to output to a wav file because openelec has no audio outside of XBMC on some platforms, and the only way we can output sound is through XBMC by playing a wav. I'm sure ATV2 is one of these, and I think the Pi is the same.

If you can type 'espeak test' in a terminal on the Pi and get speech, let me know so I can add a version that uses eSpeak to output the audio, which I plan to do eventually anyway.

You said the service seems to crash after a while. What do you mean by that. Does XBMC lock up on shutdown, or does the addon just stop speaking, or does it crash XBMC at random times, and if so, how have you determined that the addon is causing the issue? The only issues I've had is with XBMC hanging on shutdown, for which I know the base cause and just need to work out where I'm not properly closing a thread or process. If the addon stops speaking while XBMC continues to run, a log would be useful to determine the cause.

In any case, the addon is still in early development, so many things will be added, improved and fixed as time goes on.

I also wanted to point out that outputting via eSpeak directly only saves the processing power it takes to read and write the wav file. Since they are generally small and likely cached, they are probably read by the audio player before even being written to disk.


Messages In This Thread
[No subject] - by natethomas - 2011-12-19, 05:25
[No subject] - by Ned Scott - 2011-12-19, 05:43
[No subject] - by Banjer - 2011-12-19, 18:58
[No subject] - by jhsrennie - 2011-12-19, 19:05
[No subject] - by Anders74 - 2011-12-20, 17:54
[No subject] - by Anders74 - 2011-12-20, 17:55
[No subject] - by Ned Scott - 2011-12-20, 19:08
[No subject] - by skybird1980 - 2011-12-21, 00:47
Xbmc not working for blind users. - by hellow - 2014-03-15, 16:55
RE: Xbmc not working for blind users. - by ruuk - 2014-03-29, 00:57
v0.0.34 - by ruuk - 2014-03-31, 01:28
v0.0.37 - by ruuk - 2014-04-16, 02:20
v0.0.38 - by ruuk - 2014-04-17, 02:54
v0.0.40 - by ruuk - 2014-04-18, 19:59
v0.0.42 - by ruuk - 2014-04-24, 02:29
v0.0.43 - by ruuk - 2014-04-24, 21:39
v0.0.44 - by ruuk - 2014-04-27, 23:32
v0.0.46 - by ruuk - 2014-04-29, 03:15
v0.0.47 - by ruuk - 2014-05-01, 02:25
v0.0.48 - by ruuk - 2014-05-02, 22:02
v0.0.49 - by ruuk - 2014-05-06, 01:49
v0.0.51 - by ruuk - 2014-05-08, 08:08
v0.0.52 - by ruuk - 2014-05-09, 19:16
v0.0.53 - by ruuk - 2014-05-11, 01:22
v0.0.54 - by ruuk - 2014-05-15, 04:05
v0.0.56 - by ruuk - 2014-05-22, 02:04
v0.0.59 - by ruuk - 2014-05-23, 19:42
v0.0.60 - by ruuk - 2014-05-23, 21:35
v0.0.62 - by ruuk - 2014-05-25, 03:09
v0.0.63 - by ruuk - 2014-05-25, 22:14
v0.0.64 - by ruuk - 2014-05-26, 03:07
v0.0.65 - by ruuk - 2014-05-26, 15:19
v0.0.66 - by ruuk - 2014-05-31, 21:01
Logout Mark Read Team Forum Stats Members Help
Xbmc not working for blind users.5