AozoraPolly
Aozora Bunko XHTML to mp3 converter powered by Amazon Polly.
Installation
Add this line to your application's Gemfile:
gem 'aozora-polly'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aozora-polly
Usage
$ aozora2ssml http://www.aozora.gr.jp/cards/000035/files/1567_14913.html merosu.ssml
$ aozora2mp3 http://www.aozora.gr.jp/cards/000035/files/1567_14913.html merosu.mp3
AozoraPolly.url2mp3("http://www.aozora.gr.jp/cards/000035/files/1567_14913.html", "merosu.mp3")
AozoraPolly.url2ssml("http://www.aozora.gr.jp/cards/000035/files/1567_14913.html") # => ssml string
AozoraPolly.html2ssml(html) # => ssml string
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/hogelog/aozora-polly.
License
The gem is available as open source under the terms of the MIT License.