KTH's VoXtream2 Hits 63ms Latency to Fix Real-Time AI Voice
A Swedish research team just shipped a streaming TTS model that starts speaking in 74 ms and lets you change the speaking rate mid-sentence.
ProTakeaways
- KTH released VoXtream2, a 462M-parameter streaming zero-shot TTS with mid-utterance speaking-rate control.
- Hits 74 ms first-packet latency and runs 4x real-time on a consumer GPU with just 2.2 GB VRAM.
- Distribution matching over duration-token histograms drives fine-grained rate control from 2 to 5 SPS.
- Prompt-text masking removes the need to transcribe or align voice-cloning prompts, enabling translingual use.
- Matches or beats larger baselines (CosyVoice2, Kyutai-TTS, F5-TTS) despite using only 40k hours of training data.
- Weights, code, and demo on GitHub and Hugging Face.
A team from KTH Royal Institute of Technology has released VoXtream2, a zero-shot text-to-speech model designed for the one thing most TTS systems still stumble on: talking to a live language model without awkward pauses or robotic pacing. It runs four times faster than real time with 74 ms first-packet latency on a consumer GPU, and, unusually, it lets you speed up or slow down the voice while it is already speaking.
The model, weights, and inference code are all public on Hugging Face, with a browser demo available on Spaces. It needs 2.2 GB of VRAM (an extra 2 GB with speech enhancement enabled), and maximum generation length is capped at one minute.
Why streaming TTS has been stuck
Most modern TTS systems assume the full sentence is known before synthesis starts, and they treat speaking rate as a single global knob. That is fine for audiobooks, but it breaks down when a language model is streaming tokens into a voice agent. Static speaking-rate modeling and non-streaming generation are tightly coupled in practice. Real-time conversational speech demands not only low latency but also adaptive prosody that reflects the evolving state of the dialogue, and as text unfolds token by token, the appropriate speaking rate may change dynamically, mirroring the uncertainty, emphasis, or urgency conveyed by the underlying language model.
The few streaming systems that do exist have awkward trade-offs. CosyVoice2 supports streaming but only coarse instructed rate control. Kyutai-TTS avoids the need to transcribe the acoustic prompt but delays output to accumulate text context, hurting initial latency. Duration-control models like MaskGCT and VoiceStar can hit a target speaking rate, but only once, at the utterance level.
The distribution-matching trick
VoXtream2's central idea is to control speaking rate by nudging the model's own duration distribution as it decodes. The architecture is built on the earlier VoXtream and uses three transformer components: an incremental Phoneme Transformer, a Temporal Transformer (TT) that jointly predicts semantic and duration tokens, and a Depth Transformer that predicts acoustic tokens from the Mimi codec at 12.5 Hz.
At each step, the TT predicts a duration token from six possible states (how many phonemes advance, and whether one or two phonemes fit into the current frame). Those duration states form a 6-bin histogram per utterance. Given a target speaking rate in syllables per second, the system knows what that histogram should roughly look like, and it reweights the model's current prediction on the fly:
# pseudocode for the distribution-matching step
P_current = softmax(logsumexp(TT_logits, dim=semantic) / T)
W = exp(beta * (log10(P_target) - log10(P_acc)))
P_updated = normalize(P_current * W)
duration = nucleus_sample(P_updated, top_p=0.9)
The model utilizes distribution matching and Classifier-free guidance (CFG) for a fine-grained SRC on the frame level, which can be adjusted as the model generates speech. P_acc is the histogram of duration tokens emitted over the past three seconds, so if the model has been drifting too fast, the next token gets pushed toward slower states. Beta controls how aggressively you enforce the target, with beta=5 chosen as the intelligibility/control sweet spot.
Killing the prompt-transcription requirement
The original VoXtream needed a written transcription of your voice-cloning prompt, aligned by an external phoneme aligner. That is fine on a benchmark and painful in production, especially because fast-speaking prompts are hard to align cleanly. VoXtream2 removes this dependency with prompt text masking. During training, the first 3-10 seconds of text tokens are replaced with special <UNK> tokens, forcing the model to lean on the audio signal itself. As a side effect, the same mechanism enables translingual generation, where the prompt can be in any language and the output English.
Classifier-free guidance is layered on top of all three conditioning signals: text, prompt audio, and speaker embedding. Different guidance scales are used for each transformer, with a heavier weight on the depth transformer for cleaner speaker cloning. Because CFG tends to make cloned speech sound like the acoustic environment of the prompt, the team runs the prompt through the Sidon enhancement model before use, which lifts UTMOS without adding runtime cost.
How it stacks up on benchmarks
The model was trained for 28 hours on two NVIDIA H200 GPUs, using a filtered 40k-hour English mix from Emilia and HiFiTTS-2. At 462M parameters, it is one of the smaller models in the comparison set. On SEED test-en and LibriSpeech-PC test-clean, it lands near the top on word error rate and naturalness while using a fraction of the training data.
| Model | Data (h) | Params | SEED WER | SPK-SIM | Naturalness |
|---|---|---|---|---|---|
| CosyVoice2 | 167k | 618M | 2.27 | 0.658 | 66.2 |
| Kyutai-TTS | 88k | 750M | 1.34 | 0.689 | 60.5 |
| F5-TTS | 100k | 336M | 1.26 | 0.670 | 65.6 |
| VoXtream2 | 40k | 462M | 1.32 | 0.656 | 68.8 |
The full-stream numbers are where it separates from the pack. Running in mixed precision on an RTX 3090:
- CosyVoice2 with TensorRT: 837 ms first-packet latency, 0.546 RTF
- Kyutai-TTS with CUDA graphs: 277 ms, 0.272 RTF
- VoXtream2 with torch.compile: 63 ms, 0.173 RTF
On dynamic rate control tests, the team ran linear ramps from 1 to 7 syllables per second and abrupt alternations every 40 phonemes. The Pearson correlation between the control signal and the measured speaking rate stayed between 0.62 and 0.83 depending on the trajectory. One nice emergent behavior: because filler words like "uh" and "uhm" were merged into preceding phonemes during training, the model learned to insert them automatically at slow speaking rates, which reads as more human but also inflates WER.
Where it breaks
The paper is honest about limitations. VoXtream2 is not fully disentangled from the prompt's speaking rate, so cloning a fast talker while generating slow output raises WER, and vice versa. The team attributes this to the acoustic prompt being encoded by the same next-token model that generates output, which naturally tries to continue the style.
The reliable operating range is roughly 2-5 SPS. Push below 1 SPS and hallucinations and word repetition creep in because very slow duration states are underrepresented in training data. There is also a data-pipeline cost: about 35% of the raw training corpus was discarded due to failed phoneme alignments, and the external aligner is still required during data prep even though it is gone at inference time.
When it is worth using
If you are building a voice agent on top of an LLM, three properties matter here beyond raw quality:
- True full-stream input. The model consumes words as your LLM emits them, with only a 3-phoneme minimum look-ahead, so you are not buffering full sentences before speaking.
- Textless prompts. You point at a short WAV file for voice cloning and skip transcription and alignment entirely.
- Live rate adjustment. You can send an updated SPS target mid-utterance to slow down for emphasis or speed up through boilerplate.
The CLI usage looks about as simple as it gets:
voxtream \
--prompt-audio assets/audio/english_female.wav \
--text "Staff do not always do enough to prevent violence." \
--output full_stream_2sps.wav \
--full-stream \
--spk-rate 2.0
For anyone doing real-time speech-to-speech translation, dialogue agents, or interactive narration where prosody has to react to context, this is one of the first open models where the latency budget and controllability are both close to where they need to be.