github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

gisikw / acts_as_sayable

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 26
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rails plugin to provide text2speech functionality over models — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Restored original files 
gisikw (author)
Sat Dec 20 13:16:54 -0800 2008
commit  898c07a915ae52cf164ed134a182ead43185e2df
tree    7495fbbca6c54cf3c2429f487677ed75fb8dc6b7
parent  47550cd61d06f34f0b57e0805052db8106cae90f
acts_as_sayable /
name age
history
message
file MIT-LICENSE Loading commit data...
file README.md
file Rakefile
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file 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

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server