p0n1/epub_to_audiobook

EPUB to audiobook converter, optimized for Audiobookshelf, WebUI included

What it solves

This tool converts EPUB ebooks into audiobooks, specifically formatting the output to be compatible with the Audiobookshelf application. It automates the process of extracting text from chapters and converting that text into speech using various AI services.

How it works

The software parses an EPUB file, identifies chapter breaks, and extracts titles from HTML tags or the first few words of the text. It then sends this text to a chosen Text-to-Speech (TTS) provider—such as Microsoft Azure, OpenAI, EdgeTTS, or Piper—to generate audio files. Users can run the tool via a command-line interface or a provided web-based UI, with options to customize voice settings, pronunciation via search-and-replace rules, and parallel processing for faster conversion.

Who it’s for

It is for ebook readers who prefer listening to their books and want a reliable way to create organized, chapter-indexed audio files for use in dedicated audiobook players like Audiobookshelf.

Highlights

  • Supports multiple TTS providers including Microsoft Azure, OpenAI, EdgeTTS, and Piper.
  • Includes a web-based interface (WebUI) for drag-and-drop file conversion and configuration.
  • Automatically extracts chapter titles for better navigation in audio players.
  • Offers a preview mode to check chapter lengths and titles without generating audio.
  • Supports custom pronunciation fixes using regex-based search-and-replace files.
  • Provides Docker support for simplified installation and execution.

Related

  • Project
  • Project
  • Project
  • Project