Using the festivaltts4r gem
Installation
apt-get install festival lamegem install festivaltt4r
Usage
require 'festivaltts4r' "I'm talking".to_speech "I'm talking".to_mp3 'talking.mp3'
Output:
Listen to the talking.mp3 file
Resources
- festivaltts4r[rubygems.org]
- Spejman On Rails[blogspot.co.uk]
- Festival TTS for Ruby - Make your Ruby Strings talk![rubyforge.org]