• 24
  • Nov

TTSText-to-speech is really convenient, especially when you are lazy like me. Festival enables us to achieve a TTS system with limitless possibilities thanks to our Linux bash shell. I will show you some ways that we can use Festival as an enabler to our laziness and also produce some really cool and useful effects when coupling this technology with common things like PHP, cron, dnotify, or login scripts.

Remember the movie 2001: A Space Odyssey? I’d like to think that I am Dave, I just hope that my PC doesn’t turn on me (Although, I think it has in the past).

Credit were credit is due - some ideas from xenocafe.com and linuxgazette.net.

image via link
 

Installation

You need to install Festival. su root if need be.

Ubuntu:

sudo apt-get install festival festvox-kallpc16k

festvox-kallpc16k is the male american voice. Ubuntu doesn’t install a voice unless you specify which will cause the program to crash. Look in synaptic for other voices and language support.

Fedora - CentOS - Redhat:

yum install festival

openSUSE:

yast -i festival

The Basics

Now that we have Festival installed, lets start with the basics.

Make Festival say something:

echo “My talking Linux PC efin rocks” | festival --tts

Make Festival read a text file:

cat -A file.txt | festival --tts

Make Festival say the time:

date ‘+%I, %M %p’ | festival --tts

Read the rest of this entry …