Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hogelog/aozora-polly
https://github.com/hogelog/aozora-polly
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hogelog/aozora-polly
- Owner: hogelog
- License: mit
- Created: 2017-01-14T14:57:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-19T16:41:33.000Z (about 8 years ago)
- Last Synced: 2024-03-14T21:05:14.593Z (10 months ago)
- Language: Ruby
- Size: 405 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# AozoraPolly
[![Build Status](https://travis-ci.org/hogelog/aozora-polly.svg?branch=master)](https://travis-ci.org/hogelog/aozora-polly)
[![Gem Version](https://badge.fury.io/rb/aozora-polly.svg)](http://badge.fury.io/rb/aozora-polly)Aozora Bunko XHTML to mp3 converter powered by [Amazon Polly](https://aws.amazon.com/polly/).
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'aozora-polly'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install aozora-polly
## Usage```bash
$ 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
``````ruby
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](http://opensource.org/licenses/MIT).