eSpeak is a command line tool for Linux that converts text to speech. This is a compact speech synthesizer that provides support to English and many other languages. It is written in C.
eSpeak reads the text from the standard input or the input file. The voice generated, however, is nowhere close to a human voice. But it is still a compact and handy tool if you want to use it in your projects.
Some of the main features of eSpeak are:
- A command line tool for Linux and Windows
- Speaks text from a file or from stdin
- Shared library version for use by other programs
- SAPI5 version for Windows, so it can be used with screen-readers and other programs that support the Windows SAPI5 interface.
- Ported to other platforms, including Android, Mac OSX etc.
- Several voice characteristics to choose from
- speech output can be saved as .WAV file
- SSML (Speech Synthesis Markup Language) is supported partially along with HTML
- Tiny in size, the complete program with language support etc is under 2 MB.
- Can translate text into phoneme codes, so it could be adapted as a front end for another speech synthesis engine.
- Development tools available for producing and tuning phoneme data.
Install eSpeak
To install eSpeak in Ubuntu based system, use the command below in a terminal:
sudo apt-get install espeak
eSpeak is an old tool and I presume that it should be available in the repositories of other Linux distributions such as Arch Linux, Fedora etc. You can install eSpeak easily using dnf, pacman etc.
To use eSpeak, just use it like: espeak and press enter to hear it aloud. Use Ctrl+C to close the running program.
There are several other options available. You can browse through them through the help section of the program.
GUI version: Gespeaker
If you prefer the GUI version over the command line, you can install Gespeaker that provides a GTK front end to eSpeak.
Use the command below to install Gespeaker:
sudo apt-get install gespeaker
The interface is straightforward and easy to use. You can explore it all by yourself.
While such tools might not be useful for general computing need, it could be handy if you are working on some projects where text to speech conversion is required. I let you decide the usage of this speech synthesizer.
I am very much impressed with your work. I think there is lot of work to be done on signal processing part to make it more realistic. I would love to work on that part. Please let me know if that is possible (Mr. Abhishek Prakash).
Sir I want to convert text file to speech.i get “hello world” from.arduino to Rasberry pi now i want to convert it to voice data.
what i do ?
To RW
Maybe you could use Select and Speak ( https://chrome.google.com/webstore/detail/select-and-speak-text-to/gfjopfpjmkcfgjpogepmdjmcnihfpokn?hl=en ) from your browser directly.
You can test the demo sound here: http://www.ispeech.org/text.to.speech
Is there any free software with natural voices for Linux? I think it is the biggest disadvantage of Linux, that there is no natural TTS like in Windows. I particularly need it for reeding pdf files. Espeak is far away from natural voice. I have installed svoxpico2wave, it is better but still far behind good natural sound.
And also it pretty much complicated to install new voices. I am hoping to hear a good natural voice in Linux