How to make everything on stdout be read aloud (using eSpeak)?
I've got the eSpeak TTS system up and running, and I like it quite a bit.
I'm wondering, is there a way to pipe EVERYTHING that gets printed to STDOUT to espeak? I'm trying to set up a system without a monitor that would speak the terminal output to me. I've found the brltty-espeak package, but I have no idea how to set it up. |
I do not know this eSpeak system, but I know every terminal has its own stdout and probably you do not really need all the stdouts, just some specific one. The normal approach is to attach TTS to a given terminal.
Based on the documentation you need to redirect stdout to espeak |
Okay then, how do I redirect stdout to espeak? It seems to take normal pipe input like any other program, but how do I direct all of stdout on a terminal to espeak?
|
Code:
echo hello world | espeak Code:
cat /dev/pts/1 | espeak |
Is there a way to pipe every command to espeak without having to manually type it each time? My goal is to have a computer without a monitor which will read everything on stdout to me.
|
yes, there is a way (several ways). Actually I have no espeak, so I cannot test it, but in general it should work:
Code:
#you can create a fifo |
All times are GMT -5. The time now is 05:35 AM. |