Files
esh-pfi-infrastructure/stacks/omnivoice/.env.example
T
vh cd92b85157 feat(omnivoice): tune streaming defaults (16-step + aggressive packing)
Empirical follow-up to the streaming /tts smoke test on the 3090. OmniVoice
is diffusion: a ~fixed per-call overhead (~1.5s at 32 steps, ~0.7s at 16)
dominates regardless of chunk length, so the upstream-claimed 40x RTF does
NOT hold here (measured ~2.8x/32-step, ~5.6x/16-step) and the chatterbox-
tuned scheduler over-chunks and starves.

- Streaming /tts defaults to num_step=16 (TTFA ~1.5s -> ~0.7s); batch
  /v1/audio/speech stays num_step=32 for quality. Per-request override intact.
- Scheduler prior raised to rtf_prior=20 (env OMNIVOICE_STREAM_RTF_PRIOR,
  wired through compose + .env.example) so it packs whole-text-minus-first-
  sentence into a few chunks: validated ~3 chunks, no starvation, total wall
  ~= one-shot, less per-chunk silence padding.
- Docs corrected: the "sub-second / 40x" claims were wrong; streaming has a
  diffusion TTFA floor (~0.7s) and wins mainly on long replies. chatterbox-
  fast (autoregressive, ~0.5s TTFA) stays the lowest-latency front-end;
  OmniVoice is the multilingual / voice-design complement.
2026-06-19 22:58:55 -07:00

26 lines
1.1 KiB
Bash

# OmniVoice (k2-fsa/OmniVoice) — irv-ml1 stack tunables.
# Copy to .env on the host (/opt/docker/compose/omnivoice/.env). The deploy
# playbook seeds .env from this template on first run only.
# Host port (container always listens on 8001). 8199 is free in the irv-ml1
# audio range (8190-8198 + 8765/919x taken; 8201 reserved for voxtral).
OMNIVOICE_PORT=8199
OMNIVOICE_BIND=0.0.0.0
# GPU: device 0 = RTX 3090 on irv-ml1 (device 1 / A6000 is ComfyUI-exclusive).
# OmniVoice runs in <5 GB; the 3090 had ~18 GB free.
OMNIVOICE_GPU_DEVICES=0
# Image tag + optional upstream pin (empty = latest omnivoice on PyPI).
OMNIVOICE_TAG=latest
OMNIVOICE_VERSION=
# Persistent HF weight cache + reference-voice staging on /worktank.
OMNIVOICE_CACHE_DIR=/worktank/omnivoice/hf_cache
OMNIVOICE_VOICES_DIR=/worktank/omnivoice/voices
# Streaming /tts scheduler prior. High = pack aggressively (OmniVoice is diffusion
# with a ~fixed per-call overhead; low priors over-chunk and starve). 20 is
# validated clean on the 3090. Per-request `rtf_prior` overrides this.
OMNIVOICE_STREAM_RTF_PRIOR=20