Text to speech (TTS) is the conversion of written text into spoken voice.You can create TTS programs in ruby. The quality of the spoken voice depends on your speech engine.
In this article you’ll learn how to create your own TTS program.
The program ‘espeak’ is a simple speech synthesizer which converst written text into spoken voice. The espeak program does sound a bit robotic, but its simple enough to build a basic program.
You can use the Google TTS service as speech engine. This generates either an mp3 on your disk, or you can play it directly from within your Ruby program.
# gem install tts
This will output spoken voice / an mp3 file.