|Sometimes we want our Linux box to speak to/for us.This ability is very useful to make announcements and alerts in case of many critical events in our machines or can be used just for sheer fun. There exists a command line synthesized known as eSpeak that comes pre installed in Ubuntu.
$ sudo apt-get install espeak
eSpeak uses a "formant synthesis" method. This allows many languages to be provided in a small size. The speech is clear, and can be used at high speeds, but is not as natural or smooth as larger synthesizers which are based on human speech recordings.
eSpeak is available as:
The usage of espeak is pretty straight forward, just type espeak “text to announce” in a text console and listen your computer speaking the text.Some basic options to control espeak are :
a <integer> sets the amplitude/loudness of the speech
f <filename> speaks the content of the given file
p <integer> sets the pitch/frequency of the speech
s <integer> sets the speed of the speech in words/minute
Espeak is a cross platform utility that runs on more than half a dozen of OS platforms. So go through its man page by typing man espeak in a text console , explore it more and make your machine speak.