epub2audio
epub2audio is a Python command-line tool and library that converts EPUB 3.0 ebooks into OGG audiobooks using local text-to-speech processing. It leverages the Kokoro 82M AI model to generate high-quality audio entirely offline, ensuring privacy and loose control over the conversion pipeline. The software supports nine languages including American and British English, Japanese, Mandarin Chinese, Spanish, French, Hindi, Italian, and Brazilian Portuguese, offering multiple voice options per language with varying gender and quality grades. Key features include automatic extraction of chapter markers from the EPUB file, preservation of ebook metadata in the output audio container, and configurable speech rates. Users can select specific voices to customize the listening experience and adjust the speech speed via command-line arguments. It includes progress reporting with optional quiet mode and a caching mechanism to reuse generated audio segments, improving efficiency for large books or partial re-conversions. Th