01
Speech-to-speech latency profile & CosyVoice2 streaming
fix
Stage-by-stage latency profile of a cascaded ASR → LLM →
TTS pipeline, benchmarked against a duplex model, plus a
streaming fix inside CosyVoice2.
Speech-to-speech latency profile & CosyVoice2 streaming fix
Stage-by-stage latency profile of a cascaded ASR → LLM → TTS pipeline, benchmarked against a duplex model, plus a streaming fix inside CosyVoice2.Python · PyTorch · CosyVoice2 · vLLM · Modal
CosyVoice2 time-to-first-audio
A harness that profiles a cascaded ASR → LLM → TTS pipeline stage by stage with audio streamed in real time, benchmarked against Moshi, a fully duplex model. Streaming cut TTFA 4.4× over batch (11,892ms → 2,717ms p50); Moshi answered 19× faster still at 145ms p50. Inside CosyVoice2 I isolated the streaming bottleneck and recovered the LM's per-token rate from 23.6ms to 16.1ms, cutting TTFA 1,701ms → 1,173ms and total synthesis time 1.4×.
Talking to an AI feels slow because of the pause before it starts replying. I measured exactly where every millisecond of that pause goes, compared the usual build against a newer design that listens and speaks at once, then went into a popular open-source voice model and made it start speaking about 30% sooner. The fix is now with the original authors for review.
Repository ↗Upstream PR #1954 ↗