public
Description: Rails plugin to provide text2speech functionality over models
Homepage:
Clone URL: git://github.com/gisikw/acts_as_sayable.git
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