AudioBookCreator
Description
This takes html files and creates a chapterized audiobook. It leverages Apple's speak command and audio book binder
Goals
- create an audio book.
- explore mutant usage and full test coverage.
- explore functional core imperative shell
- explore local queued components
- 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
- Fork it
- 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