Text to speech with the Linux command line
2012-11-21
I'm working on a new side-project I had the need for some text to speech functionality from a Linux command line. I found a program called Festival
that seems to work pretty well. sudo apt-get install festival
will get it for you on Ubuntu and
echo "Hello, Festival" | text2wave > hello.wav; aplay hello.wav
will create a wav file named hello.wav
that says "Hello, Festival" and then play it.