denizsafak/abogen
Local Kokoro TTS for chaptered audiobooks and synchronized captions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Abogen is a Python document-to-audio application with two entrypoints: abogen launches the PyQt6 desktop GUI, and abogen-web serves a Flask UI that submits conversion jobs to a background worker. EPUB, PDF, and Markdown are converted into editable cached text with chapter markers. The synthesis pipeline turns text chunks into audio and records timing for subtitle export and, in v1.3.1, EPUB 3 media overlays.
The dependency stack includes EbookLib, Beautiful Soup, and PyMuPDF for document handling, Misaki and spaCy for language processing, and SoundFile and Mutagen for audio and metadata. Kokoro-82M is the primary TTS engine. The Web UI adds Supertonic, LLM normalization, and Audiobookshelf integration. A top-level plugins/ directory exists, but a stable third-party extension contract is not established.
Key Capabilities & Differentiators
Inputs include EPUB, PDF, TXT, Markdown, SRT, ASS, and VTT. Timestamped plain text can set segment start times and bypasses the normal subtitle mode setting. The desktop workflow supports voice previews, weighted voice mixing with reusable profiles, speech rates from 0.1× to 2.0×, and batch jobs that keep per-item settings unless an operator applies a queue-wide override.
Chapter markers let users regenerate selected chapters or produce separate chapter files and a merged edition. Outputs include WAV, FLAC, MP3, Opus, and chaptered M4B with metadata and cover art. Non-English SRT/ASS captions use audio-duration-based timing for line, sentence, and sentence-plus-comma modes; word-level timing is English-only. EPUB 3 media overlays use generated audio and persisted chunk timing for read-along playback in compatible readers.
Trade-offs & Limitations
Compared with calling Kokoro directly, Abogen removes the need to build document import, chapter management, caption export, and audiobook packaging. That is valuable for finished audiobooks, less so if an existing pipeline only needs synthesis. Compared with managed TTS, local inference gives operators more control over source files and outputs but shifts PyTorch, accelerator compatibility, and capacity planning onto the host.
The desktop and Web interfaces are not interchangeable: choose Web for Supertonic, LLM normalization, or Audiobookshelf integration. Capabilities also differ by language; non-English duration-based captions do not provide word-level alignment. A GPU is optional, but size for the chosen engine, representative chapter lengths, and expected job load rather than extrapolating a short demo to an entire book. MIT licensing covers Abogen itself, not all model assets or the rights to distribute converted books.
Hardware & Deployment Guide
The package manifest supports Python 3.10–3.12. Native installation is available through uv or pip, with a Windows installer script as another option; native setup calls for espeak-ng. The Apple Silicon command shown with Python 3.13 conflicts with the manifest's <3.13 bound. Treat Python 3.12 as the compatible starting point and validate the MPS path separately. For NVIDIA, match the PyTorch CUDA build to the driver; the AMD ROCm path targets Linux.
For self-hosting, docker compose up -d --build builds abogen/webui/Dockerfile and serves the UI on port 8808. Compose defaults to NVIDIA GPU operation, which requires NVIDIA Container Toolkit; for CPU-only operation, remove the device reservation and any runtime: nvidia entry. Use TORCH_INDEX_URL and TORCH_VERSION to select and pin the build, and ABOGEN_DATA to set the host data directory. v1.2.4 expanded multilingual captioning, v1.2.5 added uv installation and queue overrides, and v1.3.1 brought the Web UI, persisted timing, and EPUB 3 packaging.
abogen launches PyQt6; abogen-web runs Flask with background jobs and adds Supertonic, LLM normalization, and Audiobookshelf integration.ABOGEN_DATA to locate host-side uploads and outputs.Individuals and small teams converting documents they can use into chaptered audiobooks, synchronized captions, or read-along EPUBs on hardware they control.
You need real-time conversational TTS, word-level alignment across languages, or API-first synthesis without managing a local runtime.
Quick Start & Installation
# For NVIDIA GPUs (CUDA 12.8) - Recommended uv tool install --python 3.12 abogen[cuda] --extra-index-url https://download.pytorch.org/whl/cu128 --index-strategy unsafe-best-match # For NVIDIA GPUs (CUDA 12.6) - Older drivers uv tool install --python 3.12 abogen[cuda126] --extra-index-url https://download.pytorch.org/whl/cu126 --index-strategy unsafe-best-match # For NVIDIA GPUs (CUDA 13.0) - Newer drivers uv tool install --python 3.12 abogen[cuda130] --extra-index-url https://download.pytorch.org/whl/cu130 --index-strategy unsafe-best-match # For AMD GPUs or without GPU - If you have AMD GPU, you need to use Linux for GPU acceleration, because ROCm is not available on Windows. uv tool install --python 3.12 abogen
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| abogen ★ | 6.3k | +19 | Python | MIT | Local Kokoro TTS for chaptered audiobooks and synchronized captions |
| voice-pro | 13.5k | +34 | Python | GPL-3.0 | Self-hosted Gradio studio for transcription, translation, and dubbing |
| voicebox | 61.8k | +437 | Python | MIT | Local-first voice studio with multi-engine speech synthesis, dictation and MCP. |
| speech-to-speech | 13.9k | +137 | Python | Apache-2.0 | A modular speech cascade for self-hosted voice agents over OpenAI Realtime |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/denizsafak/abogen.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about abogen
How do I integrate Abogen into an existing audiobook workflow?
abogen-web for browser uploads and background conversion jobs. Its Audiobookshelf integration is not listed for the desktop app. For a file handoff, use chaptered M4B for audiobook playback, media-overlay EPUB 3 for compatible read-along readers, or audio plus SRT/ASS for captioned playback. Do not assume the Web UI exposes a stable automation API.Is a GPU required, and how should I size memory?
Can I self-host Abogen for commercial audiobook production?
When should I choose Abogen over raw Kokoro or managed TTS?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy