Media TTS AI
Context: $ARGUMENTS
Quick start
- Default TTS (no cloning), best quality-for-size:
scripts/tts.py speak --model kokoro --text "Hello" --voice af_bella --out out.wav→ Step 3 - Voice clone from a 5-10s sample:
scripts/tts.py clone --model openvoice --reference ref.wav --text "..." --out out.wav→ Step 4 - Audiobook from a text/markdown file:
scripts/tts.py audiobook --text-file book.md --model kokoro --voice af_bella --chapter-split --out-dir chapters/→ Step 5 - Realtime embedded (lowest latency, local):
scripts/tts.py speak --model piper --text "Hi" --voice en_US-amy-medium --out out.wav - Expressive + non-verbal ([laughs], [sighs]):
scripts/tts.py speak --model bark --text "Nice. [laughs]" --out out.wav
When to use
- Generate narration, voiceover, or podcast intros from text
- Clone a specific voice from a short reference clip (OpenVoice / CosyVoice / Chatterbox)
- Build audiobooks with chapter splits from markdown / plain text
- Replace Apple's
sayor eSpeak with neural-quality TTS - Batch-dub SRT lines (time-aligned per cue) for localization
- Do NOT use for: lip-sync to a face video — that's
media-lipsync. Transcription (opposite direction) ismedia-whisper.
Step 1 — Pick a model
All nine models below are open-source + commercial-safe. Pick by task:
| Task | Recommended | License | Notes |
| ------------------------------------------ | ------------------ | ------------ | ---------------------------------------------- |
| Default high-quality TTS, no cloning | Kokoro | Apache 2.0 | 82M params, realtime on CPU, ~50 preset voices |
| Lowest-latency embedded TTS | Piper | MIT | ONNX runtime, Raspberry Pi friendly |
| Voice cloning from short reference | OpenVoice v2 | MIT | Tone-color transfer, cross-lingual |
| SOTA 2025 cloning / multilingual | CosyVoice 2 | Apache 2.0 | Alibaba FunAudioLLM |
| Zero-shot cloning + emotion intensity | Chatterbox | MIT | Resemble AI |
| Expressive speech + [laughs] [sighs] | Bark | MIT | Suno AI original weights (not v2/Suno paid) |
| Emotional Llama-3-based TTS | Orpheus | Apache 2.0 | Canopy AI 2025 |
| Prompt-controlled voice style | Parler-TTS | Apache 2.0 | HuggingFace |
| Base architecture of Kokoro | StyleTTS2 | MIT | Direct access to the model under Kokoro |
Full comparison matrix (quality / speed / GPU req / clone-support / emotion-support) in