Select a speech synthesis tool, then install it following the instructions below. For English, French, Italian, German and Spanish, SVOX Pico is a good choice. For Czech, Finnish, Hindi, Marathi, Russian and Telugu, festival is recommended. You can use espeak to read many other languages as well.
Get the extension at the Extensions web site. Open the extension with the LibreOffice or Apache OpenOffice program. Approve the extension. Restart the program.
The Pico speech synthesizer speaks clearly and is simple to use. The pico speech description files are in binary format only, so unlike espeak, you can't edit the speech rules for localized pronunciation of particular words or place names. The SVOX Pico speech synthesizer uses Hidden Markov Model (HMM) algorithms to produce clear speech output in the form of an audio file. It works with German, English, Spanish, French and Italian text. Read Text Extension now includes a python script to read the SVOX Pico audio file aloud using an audio or movie player.
Festival is an open source text to speech program. Festival text to speech is available for Catalan, Czech, English, Finnish, Hindi, Italian, Marathi, Spanish, Russian and Telugu. With Festival, custom voices will only work if they are installed. If you try to use a voice that is not installed, Festival will be silent. If you are using a Linux distribution that includes a package manager like Synaptic or apt-get, you can use it to install the necessary programs, lexicons and voices. If you want to hear English with Festival, and your distribution includes apt-get, use this command while connected to the Internet:
Your package manager might not be able to install all the voices listed in the Read Selection script dialog. Voices that include “mbrola” in the name may need to be installed manually if you want to use them. If you are using Festival, see the Festival web page or the Ubuntu forum for instructions how to install voices from the mbrola project.
The Festival package includes a tool for converting text to a wave sound file called text2wav. To use text2wav:
Espeak includes languages that are not installed by default with Festival or with sox. It is available for Windows and Linux. The package includes a speech program that can run from a command line. It can be used with the Mbrola program to generate speech using high quality Mbrola voices. If you want to try it with Linux, and your distribution includes apt-get, use this command to install it:
Languages supported by espeak include Afrikaans, Albanian, Armenian, Cantonese, Catalan, Croatian, Czech, Danish, Dutch, English, Esperanto, Finnish, French, German, Greek, Hindi, Hungarian, Icelandic, Indonesian, Italian, Kurdish, Latvian, Lojban, Macedonian, Mandarin, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Spanish, Swahili, Swedish, Tamil, Turkish, Vietnamese, and Welsh. For best results with Cantonese, Mandarin and Russian, see the eSpeak data page. Versions of eSpeak for other operating platforms are available at http://espeak.sourceforge.net/.
The newest version of espeak allows you to specify an mbrola voice directly in the command line. With the newest version, you don't need to create a script to use mbrola voices.
Not all mbrola voices are supported yet in eSpeak. Check the eSpeak web site for more information.
If you are using an older version of Linux, you can still use espeak with mbrola and aplay to read different languages and use high quality voices. For this add-on, you need to get an mbrola voice and create a bash script that uses pipes to pass information between the programs.
The eSpeak program is used to convert words and phrases like manipulate or
The Mbrola program converts the phonetic code to an audio file. The aplay program plays the audio file out loud.
Make sure espeak, mbrola and aplay are installed.
For French, download the fr1: French Male (4.4Mb) voice from the mbrola web site. With administrator privileges,
extract the contents into a directory accessible to all users and set the permissions of the subdirectories and files to
allow read access for all. To use the example script below, extract the zip file to /usr/share/festival/voices/fr/, which
creates a directory /usr/share/festival/voices/fr/fr1. The bash script below reads a plain text file in French, and will
work as long as there are no spaces in the file name or file path. Name this script read_in_french.sh and save it to
~/.gnome2/nautilus-scripts. Be sure to set the file permissions to allow the script to execute.
Web applications let you do on-line translation, read multiple languages and try different voices. Some web applications require that you install Adobe Flash.
For more information about web applications, read Use With Web Applications.
If you have difficulties reading the screen, consider a system-wide accessibility solution like Orca for the Gnome desktop or KTTS for the KDE desktop. If you have installed a system-wide accessibility solution, and it is activated, then you don't need this Add-On to read text aloud. However, you can use it with a script to save speech as an audio file.