Kokoro TTS is a command-line tool that turns text into speech with the Kokoro model. It supports multiple languages and voices, blending, and inputs such as TXT, EPUB, and PDF.
Overview
Kokoro TTS is an open-source CLI text-to-speech tool built around the Kokoro model. It targets terminal use for turning text into natural-sounding audio, including long-form sources like books and documents.
Inputs include plain text files, EPUB with chapter extraction, PDF with chapter detection, standard input, and piped text from other programs. Output can be WAV or MP3, with optional streaming playback, per-chapter split directories, chunk merging, and adjustable speech speed. Voices can be selected interactively or blended with weighted combinations across several language packs.
Installation paths include PyPI, Git install, local clone with uv or pip, or running without installing by cloning dependencies only. After install, model assets voices-v1.0.bin and kokoro-v1.0.onnx must sit in the working directory where commands run. GPU support is available. Python 3.11–3.12 is required; newer Python versions are unsupported.
EPUB handling preserves chapter structure; debug mode exposes parsing and chapter metadata. The underlying Kokoro model is a compact open-weight TTS architecture suitable for local deployment; Kokoro TTS wraps that model in a user-facing CLI rather than hosting inference as a network service.
Key features
- Multi-language voice selection
- Weighted voice blending
- EPUB, PDF, and TXT input
- Stdin and pipe support
- Streaming or file output
- WAV and MP3 formats
- Chapter-split output directories
- Adjustable speech speed
Use cases
- Audiobook generation from EPUB
- Terminal TTS from piped text
- PDF chapter narration
- Local speech synthesis with chosen voices
Does the same job as
Kokoro TTS doesn't name these products itself, but its own description shows it does the same job.