Flite4r is a small library to allows speech synthesis via Edinburgh University‘s flite library.
| Version : | 1.0.1 |
| Documents : | flite4r.rubyforge.org |
| RubyGems : | Install with: gem install flite4r |
| Download : | Download from RubyForge at rubyforge.org/frs/?group_id=4498 |
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
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")
Copyright (C) 2007 by Geoff Jacobsen <geoffjacobsen@gmail.com>
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
Hubert Łępicki: to_speech_file method
| Author: | Geoff Jacobsen <geoffjacobsen@gmail.com> |
| Requires: | Ruby 1.8.x or later libflite1 1.2 or later |