eSpeak Speech Synthesizer is an open source speech synthesizer for Windows, Mac and Linux based OS. It provides the option for listening to text in multiple languages. The speech is clear and the available text in English, can be listened to in any alternative language easily.
eSpeak does text to speech synthesis for the following languages, some better than others. 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, Welsh.
You can download espeak from the official download page.
How to use espeak?
1-choose your voice Language
# espeak --voice
2- Speak the words specified in command line
This is the default usage
# espeak --stdout 'words to speak' | aplay
3-Speak your document
# espeak --stdout -t mydocument.txt | aplay
4-Generate voice file from text document
# espeak -t mydocument.txt -w myaudio.wav