This gem is Voice Text Web API(https://cloud.voicetext.jp/webapi/docs/introduction) for Ruby.
Add this line to your application's Gemfile:
gem 'text2voice'
And then execute:
$ bundle
Or install it yourself as:
$ gem install text2voice
require 'text2voice'
voice = TextToVoice.new("Your API key")
voice.speak("こころぴょんぴょん")
.speaker("haruka")
.emotion(emotion: :happiness, level: :high)
voice.save_as("test.wav")
- Fork it ( http://github.com//text2voice/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 new Pull Request