Skip to content

kbrock/audio_book_creator

Repository files navigation

AudioBookCreator

Gem Version Build Status Dependency Status Code Climate Coverage Status

Description

This takes html files and creates a chapterized audiobook. It leverages Apple's speak command and audio book binder

Goals

  1. create an audio book.
  2. explore mutant usage and full test coverage.
  3. explore functional core imperative shell
  4. explore local queued components
  5. explore javascript plugins that leverage local daemons [TODO]

Installation

Download audio book binder, link the executable into the path, and install gem. The current app store version of the application does not have the cli available.

$ ln -s /Applications/AudioBookBinder.app/Contents/MacOS/abbinder /usr/local/bin/
$ gem install audio_book_creator

Usage

audio_book_creator http://bookurl.com/greak_book/ --body '.content p' --link 'a.page' --chapter 'a.chapter'

it will spider the files referenced by the url and create the following:

pages.db the_great_book.m4b the_great_book/chapter1.txt the_great_book/chapter1.mpg the_great_book/chapter2.txt the_great_book/chapter2.mpg the_great_book/chapter3.txt the_great_book/chapter3.mpg

If you tend to visit bookurl.com often, then setup the values as defaults

audio_book_creator http://bookurl.com/greak_book/ --body '.content p' --link 'a.page' --chapter 'a.chapter' --default
audio_book_creator http://bookurl.com/greak_book2/

Since great_book2 is at the same domain, it will reuse the --body, --link and --chapter path selectors.

the_great_book2.m4b the_great_book2/chapter1.txt the_great_book2/chapter1.mpg the_great_book2/chapter2.txt the_great_book2/chapter2.mpg

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Create an audiobook from a url

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages