Sha256: 83ace3caec945c6596f64ec810c727555d4fa0b76458b9d45966ab28f868f90f
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# TTSBasedOnGoogle This Ruby gem provides Text-to-speech functionality in many languages. Result can be stored in MP3 file. Based on technologies from Google. ## Installation Add this line to your application's Gemfile: gem 'tts_based_on_google' And then execute: $ bundle Or install it yourself as: $ gem install tts_based_on_google ## Usage Basic example: file = File.new("test.mp3", "w+") TextToSpeech.new("Hi guys, hope you will love it!", :en, file).save_to_file Or you don't have to specify instance of file, it will automatically write into Tempfile, so if you can just send it to output, try something like this: speech = TextToSpeech.new("Hi guys, home you will love it!", :en).save_to_file send_file(speech.path, :type => 'audio/mp3', :disposition => 'inline') ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tts_based_on_google-1.0.0 | README.md |