CLI tool to convert EPUBs to audiobooks
Top 26.0% on sourcepulse
This project converts EPUB ebooks into audiobooks, targeting users who want to listen to their digital books. It leverages various Text-to-Speech (TTS) engines, including Azure, OpenAI, Edge, and Piper, to generate chapter-by-chapter audio files optimized for platforms like Audiobookshelf.
How It Works
The tool parses EPUB files to extract chapter content and titles, then sends this text to a chosen TTS engine for audio generation. It supports multiple TTS providers, allowing users to select based on cost, quality, or availability. Chapter titles are extracted using HTML tag parsing or fallback methods, ensuring proper metadata for audiobook players.
Quick Start & Requirements
pip install -r requirements.txt
.python3 main.py <input_file> <output_folder> [--tts <provider>]
docker pull ghcr.io/p0n1/epub_to_audiobook:latest
and run with volume mounts and environment variables for API keys.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Chapter title extraction may not be perfect for all EPUB formats. Some TTS providers require API keys and may incur costs. Piper TTS installation can have platform-specific challenges.
1 week ago
Inactive