gisikw / acts_as_sayable
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.md | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README.md
ActsAsSayable
Copyright 2008 by Kevin Wythe Gisi
Abstract
ActsAsSayable provides an API for working with text-to-speech tools like Festival. Defining that a model acts_as_sayable adds a to_mp3 method to every instance, which returns an audio file of the to_speech function (which defaults to to_s).
Supported Configurations
- Festival/LAME
Installation
Add a file to your config/initializers folder to set up the configuration for the plugin:
Acts::Sayable.configure(:os => "linux",:filter=>false)
In your model, simply add:
acts_as_sayable
If you want to be able to render mp3 objects, don't forget to add the following to your config/initializers/mime_types.rb:
Mime::Type.register "audio/mpeg", :mp3

