stacks: add Kokoro, VibeVoice 1.5B, Chatterbox Turbo (TTS slate fill-in)

Three TTS additions to round out coverage on irv-ml1, each filling a
distinct niche the existing slate doesn't own.

Final coverage matrix (all on irv-ml1):
  Kokoro              — low-latency English, fixed voice library, ~300ms TTFA
  Chatterbox Turbo    — low-latency English w/ voice cloning + paralinguistic tags
  IndexTTS-2          — English voice cloning + emotion vector / text control
  Qwen3-TTS-1.7B-Base — high-quality English voice cloning
  CosyVoice 3         — multilingual (Chinese-leaning)
  VibeVoice 1.5B      — long-form / multi-speaker dialogue

stacks/kokoro:
  - port 8193, GPU device 0 (3090)
  - pulls ghcr.io/remsky/kokoro-fastapi-gpu:v0.2.4-master (no Dockerfile,
    no first-run model download — models baked in)
  - 60+ built-in voices, OpenAI-compat with stream=true over chunked HTTP
  - Apache-2.0 weights + code, ~1 GB VRAM

stacks/vibevoice:
  - port 8194, GPU device 1 (A6000 — for 7B headroom)
  - builds groxaxo/VibeVoice-FastAPI1 (more current fork of ncoder-ai)
    pinned to 7614c469a145
  - default model microsoft/VibeVoice-1.5B (~7 GB bf16 VRAM); env var
    swap to rsxdalv/VibeVoice-Large (7B) or FabioSarracino/VibeVoice-Large-Q8
  - multi-speaker dialogue via /v1/vibevoice/generate with Speaker N: format
  - long-form niche only — not low-latency

stacks/chatterbox:
  - port 8196, GPU device 0 (3090)
  - builds devnen/Chatterbox-TTS-Server (most active Turbo-supporting wrapper)
  - default model ResembleAI/chatterbox-turbo (~2.5 GB fp16, ~75ms latency)
  - paralinguistic tags inline ([laugh] [whisper] etc) — different shape
    from IndexTTS-2's emotion vector; fills the speed+cloning niche
    Kokoro/IndexTTS don't cover together
  - mandatory PerTh watermark on outputs (Resemble policy)

Three matching playbooks under playbooks/deploy-{kokoro,vibevoice,
chatterbox}.yaml. All idempotent, creates-/when-gated.

Cold-deploy disk on /worktank/: ~7 GB Kokoro + ~19 GB VibeVoice 1.5B
+ ~12 GB Chatterbox = ~38 GB total. VRAM concurrent: ~10-11 GB across
both GPUs.

Skipped from the original four-stack proposal: VibeVoice Realtime
(overlaps Kokoro's niche; Kokoro wins on latency, license, and not
needing a build).
This commit is contained in:
vh
2026-04-25 16:18:37 -07:00
parent 54fef0e9d8
commit 4549d241a7
12 changed files with 930 additions and 0 deletions
+127
View File
@@ -0,0 +1,127 @@
# Chatterbox Turbo
Resemble AI's 350M-param low-latency English TTS with zero-shot voice
cloning, served via [devnen/Chatterbox-TTS-Server](https://github.com/devnen/Chatterbox-TTS-Server)
— the most actively-maintained OpenAI-compat wrapper supporting Turbo.
Model: [ResembleAI/chatterbox-turbo](https://huggingface.co/ResembleAI/chatterbox-turbo)
— released April 2026, ~6× realtime, ~75 ms latency, MIT-licensed.
## Why this stack exists
Fills the **low-latency English voice-cloning** slot none of the other
TTS own cleanly: Kokoro is fast but fixed-voice; IndexTTS-2 clones
beautifully but is slow; Qwen3-TTS-Base clones at a higher quality bar
but isn't tuned for sub-second latency. Chatterbox Turbo trades some
fidelity for **6× realtime + 5-second-reference cloning**, ideal for
real-time voice-agent use cases.
| | use case |
|---|---|
| **Chatterbox Turbo** | low-latency English w/ voice cloning + paralinguistic tags |
| Kokoro | low-latency English, fixed voice library |
| IndexTTS-2 | English voice cloning + emotion vector / text control |
| Qwen3-TTS-1.7B-Base | high-quality English voice cloning |
| CosyVoice 3 | multilingual (Chinese-leaning) |
| VibeVoice 1.5B | long-form / multi-speaker dialogue |
## Headline features
- **Zero-shot voice cloning from ~5 s reference** (base Chatterbox
needs ~10 s; Turbo cuts that in half).
- **Native paralinguistic tags inline in text** — drop these into your
prompt and the model honors them:
```
[laugh] [cough] [sigh] [gasp] [whisper] [breath]
```
Different shape from IndexTTS-2's 8-vector emotion control: cleaner
for "say it like this" markup directly in the prompt.
- **Mandatory PerTh watermark** on outputs (Resemble policy, cannot
be disabled). Non-issue for internal use; mention it if you ever
ship Chatterbox-generated audio externally.
## API
OpenAI-compat at `http://10.100.79.3:8196`:
```bash
# Built-in voices.
curl http://10.100.79.3:8196/v1/audio/voices
# Single-shot synthesis with a built-in voice.
curl -fsS -X POST http://10.100.79.3:8196/v1/audio/speech \
-H 'Content-Type: application/json' \
-d '{"model":"chatterbox-turbo","input":"Hello there. [laugh] What a day.","voice":"alloy","response_format":"wav"}' \
> out.wav
# Voice cloning — drop a 5 s reference WAV into
# /worktank/chatterbox/reference_audio/glados.wav, then:
curl -fsS -X POST http://10.100.79.3:8196/v1/audio/speech \
-H 'Content-Type: application/json' \
-d '{"model":"chatterbox-turbo","input":"I have all the time in the world.","voice":"glados"}' \
> glados.wav
# Streaming (where supported by the wrapper).
curl -fsS -X POST http://10.100.79.3:8196/v1/audio/speech \
-H 'Content-Type: application/json' \
-d '{"model":"chatterbox-turbo","input":"long passage…","voice":"alloy","stream":true}' \
| mpv --no-cache -
```
Native `/tts` endpoint (devnen wrapper extension) and OpenAPI at `/docs`.
Healthcheck at `/health`.
## Voice library
Drop reference WAV / MP3 / FLAC into
`/worktank/chatterbox/reference_audio/` on the host. The wrapper
discovers new files on next request — no restart needed. Use clean
~5 s clips, single speaker.
Built-in OpenAI-style voice aliases (alloy, echo, fable, onyx, nova,
shimmer) map to bundled presets — useful for OpenAI SDK clients that
hardcode those names.
## Deploy
```bash
scripts/elway irv-ml1 --playbook playbooks/deploy-chatterbox.yaml
```
Cold deploy budget:
- Image build: ~5-8 GB (CUDA + torch + Chatterbox deps)
- Model download: ~6 GB (Chatterbox Turbo weights, first run)
- **Total: ~12 GB on /worktank/chatterbox/**
First build: ~8-10 min. First synthesis: ~10-30 s warmup.
## Switching the model
```bash
ssh irv-ml1 '
cd /opt/docker/compose/chatterbox
sed -i "s|^CHATTERBOX_MODEL_REPO=.*|CHATTERBOX_MODEL_REPO=ResembleAI/chatterbox|" .env
docker compose up -d
'
```
Options for `CHATTERBOX_MODEL_REPO`:
- `ResembleAI/chatterbox-turbo` — flagship Turbo (default, fastest)
- `ResembleAI/chatterbox` — base Chatterbox, 500M, slower but with
exaggeration / CFG-weight knobs Turbo doesn't expose
- `ResembleAI/chatterbox-multilingual` — 23 languages (slower than
Turbo, useful if you need non-English on this stack vs CosyVoice 3)
## Gotchas
- **Python 3.10 only** (devnen wrapper). Image bakes that in; not
something you'd hit unless you fork the Dockerfile.
- **PerTh watermark** is unconditional. Can't disable.
- **Turbo loses some knobs vs base Chatterbox** — no `exaggeration`
or CFG-weight tuning. If you need expressive amplitude control,
flip to base Chatterbox via the config swap above.
- **Repo is fresh** (~weekly commits). Pin to a SHA in `.env`
(`CHATTERBOX_SHA=...`) and rebuild monthly to ride upstream
bug-fix progress.
- **License**: wrapper MIT; weights MIT (Resemble) — including the
watermark requirement.