
"Talk to me".to_speech
Will speech the phrase "Talk to me"
by the computer speakers.
<%= text_to_flash_player "I am a web page, \ but I talk" %>
Will generate:
Tested and working in Ubuntu linux
and in Mac (tested in Mac by Daniel Andrade Molina, www.railsmx.com)
sudo apt-get install festival lame
sudo gem install festivaltts4r
require "rubygems" require "festivaltts4r" "I'm talking".to_speech
script/plugin install \ svn://rubyforge.org/var/svn/\ festivaltts4r/plugins/festivaltts_on_rails
<%= text_to_flash_player "Talk me!" %>
You can found more information in my english blog spejman-on-rails.blogspot.com
or in the spanish one spejman.blogspot.com.
Work done by Sergio Espeja ( sergio.espeja at bee.com.es ). Contributed by Mike Mondragon ( mikemondragon at gmail.com ).
The flash mp3 player used to play the voice has been developed by dew under Creative Commons Attribution-ShareAlike License France license.
It is free software, and may be redistributed under GPL license.
Copyright (c) 2007 Sergio Espeja