Autiobooks generates .m4b
audiobooks from regular .epub
e-books, using Kokoro's high-quality speech synthesis.
Kokoro is an open-weight text-to-speech model with 82 million parameters. It yields natural sounding output while being able to run on consumer hardware.
It supports American, British English, French, Korean, Japanese and Mandarin (though we only-support English, for now) and a wide range of different voices with different accents and prosody.
PRs are welcome!
- Fix chapter index - @tomhense
- Fix pip installs
- Fix bug causing errors on some linux installs
- Read epub files with chapters not marked as ITEM_DOCUMENT
- Select all chapters if none are selected
- Window can be resized
- Initial release
(Note that pip installs are currently not working - we are looking into the cause of this, but in the meantime, please download the repo and run directly)
If you have Python 3 on your computer, you can install it with pip. Be aware that it won't work with Python 3.13.
pip install autiobooks
You will require ffmpeg
and tkinter
installed:
Linux:
sudo apt install ffmpeg python3-tkinter
MacOS:
brew install ffmpeg python-tk
To start the program, run:
python3 -m autiobooks
The program creates .wav files for each chapter, then combines them into a .m4b file for playing using an audiobook player.
by David Nesbitt, distributed under MIT license.