I've been using the
say command in terminal to get my computer to talk, ie.
How can I pipe the text of a .txt file to the
say command to get it to read aloud the text in a file ?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I am just adding that if you really want to pipe the output of a command to the
say command, you can use named pipes.
Basically, just doing
mkfifo myNamedPipe say -f myNamedPipe & cat > myNamedPipe
should allow you to use speech synthesis on an arbitrary source (here, words from the keyboard using cat).
I do not however have the required configuration to actually try this, so I could have got something wrong.