Flite for Ruby – speech synthesis library

Flite4r is a small library to allows speech synthesis via Edinburgh University’s flite library.

Version

1.0.1

Links

Documents

flite4r.rubyforge.org

RubyGems

Install with: gem install flite4r

Download

Download from RubyForge at rubyforge.org/frs/?group_id=4498

Installation

Flite4r has only been tested on Ubuntu GNU/Linux 7.04 and 7.10. It requires that the flite1-dev and libflite1 packages are already installed. On Ubuntu you can install with the following commands.

$ sudo apt-get install flite1-dev
$ gem install flite4r

Simple Example

Flite4r only provides two methods as extensions to the String class: “to_speech” and “to_speech_file”.

Here’s an example:

require 'rubygems'
require 'flite4r'

"It's working!".to_speech

"I am saved as a wav file".to_speech_file("myfile.wav")

License and Warranty

Copyright © 2007 by Geoff Jacobsen <[email protected]>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Credits

Hubert Łępicki: to_speech_file method

Other stuff

Author

Geoff Jacobsen <[email protected]>

Requires

Ruby 1.8.x or later libflite1 1.2 or later