I know we just tromped through espeak, but it’s so much fun to hear your computer speak out loud.
If you read that post, you might already have the syntax for festival worked out.
fortune | festival --tts
festival needs a little more attention than espeak did. For one, the tts flag lets it read from stdin, which is what we want for fortune’s output.
If you see this:
Linux: can't open /dev/dsp
don’t cry. It just means there’s a little more configuration to be done. Send a thank-you note to Aditya Arie Nugraha, who had the foresight to paste the fix into a blog post way back in 2008. In .festivalrc,
(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE") (Parameter.set 'Audio_Method 'Audio_Command)
And with that, it should sing like a bird for you. 😉
festival might be more attractive to you than espeak, since it has better speech output. festival also has some supplemental accents that you can install, for variety.
And I think that’s everything. Except maybe to remember not to listen to all the advice you get from your computer. It’s just a machine.