AudioBook can be used as a command line tool and as a library. only the command line tool is documented here.
Only basic functionality is implemented. The following features are not yet implemented:
- --delete option
- --volume option
- --speed option
- --save_chapterwise option
AudioBook supports the following formats and extraction methods:
File Format | Supported | extraction_engine |
---|---|---|
✅ | pypdf2/pdfminor | |
TXT | ✅ | default set |
EPUB | ✅ | default set |
MOBI | ✅ | default set |
HTML | ✅ | default set |
DOCX | ✅ | default set |
ODT | ✅ | default set |
$ audiobook --help
Usage: audiobook [OPTIONS] COMMAND [ARGS]...
optional arguments:
-h, --help show this help message and exit
-p [PATH], --path [PATH]
book file path
-v, --version show programs version number and exit
-l, --library get all books in library
-c, --create-json create json file from input file
-s, --save-audio save audio files from input file
-r, --read-book read the book from input file
commands: read, save, create
$ audiobook --version
$ audiobook -p <file_path> -r
$ audiobook -p <file_path> -s
Create a json file
$ audiobook -p <file_path> -c