sudo apt-get install festival speech-tools aumix (if using Hardy, festvox-rablpc16k is needed too)
printf ”;use ALSA\n(Parameter.set 'Audio_Method 'Audio_Command)\n(Parameter.set 'Audio_Command \”aplay -q -c 1 -t raw -f s16 -r \$SR \$FILE\”)\n” > ~/.festivalrc
aumix -v 100 (set volume to max)
echo “I locked myself out downstairs ” | festival –tts
Other useful commands:
Read every line you enter until ctrl+c:
while read x; do echo $x |festival --tts; done