screenreader / TTS linkage?
Posted: Thu Dec 19, 2013 7:40 pm
I've been trying to use $hookdata to pipe text to espeak and other TTS engines but have had trouble getting it to work with multiple lines and lines followed by empty lines. Also I end up hearing the 0m at the end of every line. (presumably the hidden 'end line' character in mud protocol)
Does anyone have a script or link to plugins that work? The only links I've found so far are to the portugese one and I can't seem to get it to work. I e-mailed the coder a couple weeks back, but have had no response...
my current solution is
/use Clipboard
(with a copy of Clipboard.pm in usr/share/kildclient)
and
Hooks for 'OnReceivedText':
Num Ena Action
--- --- --------------------------------------------------------
0 y /Clipboard->copy($hookdata)
with
#!/bin/sh
while (sleep 1) do
[ "`xclip -o`" != "${LAST}" -a $DISPLAY ] && LAST=`xclip -o` && echo $LAST | speak -w /dev/stdout --stdin |aplay -
done
running in the bacround
it is hardly ideal...
Thank you for your consideration!
mt0neg@gmail.com
Does anyone have a script or link to plugins that work? The only links I've found so far are to the portugese one and I can't seem to get it to work. I e-mailed the coder a couple weeks back, but have had no response...
my current solution is
/use Clipboard
(with a copy of Clipboard.pm in usr/share/kildclient)
and
Hooks for 'OnReceivedText':
Num Ena Action
--- --- --------------------------------------------------------
0 y /Clipboard->copy($hookdata)
with
#!/bin/sh
while (sleep 1) do
[ "`xclip -o`" != "${LAST}" -a $DISPLAY ] && LAST=`xclip -o` && echo $LAST | speak -w /dev/stdout --stdin |aplay -
done
running in the bacround
it is hardly ideal...
Thank you for your consideration!
mt0neg@gmail.com