Search Site

Feed Section

Friday, March 12, 2010



Text-to-Speech Software for Linux

Posted: 12 Mar 2010 03:15 AM PST

Text-to-Speech Software for Linux: If you've been using Mac OS X or Windows Vista before, you may be a bit disappointed to learn that there's no speech synthesizer or text-to-speech (TTS) application that is installed by default on your Linux distribution. For those of you who don't know what a speech synthesizer is, it's simply a computer program that converts normal language text into speech. Text-to-speech software can be of great help particularly for people who are visually impaired and those who are mute.

If you've been looking for a free speech synthesizer for Linux, the one that I can highly recommend is a program called Festival. As described from its project website: Festival offers a general framework for building speech synthesis systems as well as including examples of various modules. As a whole, it offers full text to speech through a number APIs: from shell level, though a Scheme command interpreter, as a C++ library, from Java, and an Emacs interface. Festival is multi-lingual (currently English (British and American), and Spanish) though English is the most advanced.

Festival is probably available in most distro repositories so just search for it and install it via the package manager. Once installed, you can immediately set it to work. Here are some basic uses of Festival:

It can read whatever you type on the command line. Open a terminal and start festival with this command:

$ festival

A prompt will appear. Make it speak by typing this from the command line:

(SayText "festival will read this line")

Festival can also be very useful if you want it to read a whole text file. From the terminal, simply navigate to where your text file is located, and use this command:

$ festival --tts your_text_file.txt

For more information and other options on using Festival, you can read the complete manual from HERE.

In KDE desktop, there's already a text-to-speech software installed by default called KTTS, but it is currently under development. Try to make it speak "Hello World" by typing these commands from the Linux terminal:

$ kttsd
$ dcop kttsd KSpeech setText "Hello World" "en"
$ dcop kttsd KSpeech startText 0

KTTS has a GUI front-end called KMouth.


A user can type a word, phrase, or sentences that he/she wants to hear through its input field. KMouth also contains a history of spoken phrases so the users can easily select phrases from the history which he/she wants to be re-spoken using a few mouse clicks. It also has a phrase book and word completion options.

For GNOME users, you can use Orca's speech synthesizer. I haven't tried it yet so for those of you who have, please share with us your experiences of using Orca.

I've used the text-to-speech software of Mac OS X before and I must say that it's more functional than those we currently have for Linux. But, that's just my opinion.

How about you? How do you compare Linux speech synthesizers to those available for Windows or Mac?

No comments:

Post a Comment