Sha256: 12d491c02fcc3835b0a38648a471e272f2050aa77dc3179def50dd45cb6f0140

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

# 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).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aozora-polly-0.3.1 README.md
aozora-polly-0.3.0 README.md