IvonaSpeechCloud
A Ruby client for Amazon's Text-to-Speech Service (Ivona Speech Cloud).
See: http://www.ivona.com/us/for-business/speech-cloud/
Speech Cloud documentation: http://developer.ivona.com/en/speechcloud/introduction.html
Installation
Add this line to your application's Gemfile:
gem 'ivona_speech_cloud', github: "martianinteractive/ivona_speech_cloud"
And then execute:
$ bundle
Setup
client = IvonaSpeechCloud::Client.new do |config|
config.access_key = "YOUR-ACCESS-KEY"
config.secret_key = "YOUR-SECRET-KEY"
config.region = "us-east-1"
end
Creating Speech Files
client.create_speech('Hello world!')
You can pass a hash of options as the second argument, i.e:
client.create_speech('Hola mundo!', {language: "es-ES", gender: "Female", voice_name: "Conchita"})
Listing Voices
client.list_voices
# => {"Voices"=>[{"Gender"=>"Female", "Language"=>"en-US", "Name"=>"Salli"},... ]}
client.list_voices({Language: "es-ES"})
# => {"Voices"=>[{"Gender"=>"Female", "Language"=>"es-ES", "Name"=>"Conchita"}, {"Gender"=>"Male", "Language"=>"es-ES", "Name"=>"Enrique"}]}
Contributing
- Fork it ( https://github.com/[my-github-username]/ivona_speech_cloud/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request