ebook2audiobook
Apache-2.0
- Platform
- Linux macOS Windows Docker Web
- Licence
- Apache-2.0 Open source
ebook2audiobook (E2A) is a free and open source converter that turns e-books into audiobooks with chapter structure and metadata, driven by a large library of neural text-to-speech engines. It ships a Gradio web interface, a command line tool, a Python API and a Docker image, and can clone a voice from a short reference recording.
What it does
- Converts EPUB, MOBI, AZW3, AZW, FB2, LRF, PDB, SNB, TCR, PDF, TXT, RTF, DOC, DOCX, HTML, ODT, CHM, LIT and comic archives (CBR, CBZ) into spoken audio. EPUB and MOBI give the best automatic chapter detection.
- Bundles more than 40 text-to-speech engines, from light CPU-friendly models such as YourTTS, Tacotron2, Piper, MeloTTS and Kokoro up to XTTSv2, Bark, Tortoise, F5-TTS, Fish Audio, VibeVoice and Qwen3 TTS.
- Optional voice cloning from your own voice sample, plus a collection of fine-tuned preset voices maintained by the project.
- 1696 languages are reachable across the supported engine set.
- SML tags in the text give control over breaks, pauses and voice switching; an OCR pass handles scanned pages that are images only, and a text box converts a short passage without needing a file.
- Writes mono or stereo audio as M4B, M4A, MP3, FLAC, WAV, OGG, AAC, MP4, MOV or WebM, keeping the source metadata attached.
Requirements and installation
Minimum 2 GB of RAM and 1 GB of VRAM, with 8 GB RAM and 4 GB VRAM recommended for current engines; the lighter engines listed above are usable on CPU alone. Acceleration is supported on CUDA, ROCm, Intel XPU, Apple Silicon MPS and Jetson.
Install from PyPI with pipx install ebook2audiobook (or uv tool install, or pip), or use the one-shot launcher script for Linux, macOS and Windows, or pull athomasson2/ebook2audiobook from Docker Hub with the CPU, CUDA, ROCm or XPU tag and open the GUI on port 7860. Models download on first run; they can be preloaded ahead of time for offline installs. A free Colab notebook, a Kaggle notebook and a Hugging Face Space are available for trying it without installing anything.
Licence
Apache-2.0. Intended for use with non-DRM, legally acquired e-books only.
Alternatives
- Storyteller – self-hosted platform that aligns an existing audiobook to an e-book and syncs reading position across devices
- Audiobookshelf – self-hosted audiobook and podcast server for streaming your library
Views: 1