SyncSpeech Cuts Voice AI Latency 4x by Thinking in Text Time
A new text-to-speech model called SyncSpeech cuts first-packet latency by 5.8x and speeds real-time generation up to 8.8x versus AR baselines.
ProTakeaways
- SyncSpeech introduces a Temporal Masked Transformer that generates speech in sync with streaming text input.
- Achieves 5.8x lower first-packet latency and 8.8x faster real-time factor than CosyVoice AR baselines on Mandarin.
- Time complexity drops from O(speech length) to O(text length), producing all speech tokens per text token in one step.
- Hybrid attention mask combines causal text attention with bidirectional attention across speech tokens sharing a text token.
- High-probability masked pre-training with p=0.5 Bernoulli masking unexpectedly boosted both convergence and final quality.
- Built on the open-source CosyVoice2 tokenizer and decoder, but no SyncSpeech code or weights released.
Text-to-speech systems have been stuck in a frustrating trade-off. Autoregressive models generate speech one token at a time in the correct order, which is slow but streams well. Non-autoregressive models predict everything in parallel, which is fast but requires knowing the whole sentence upfront, killing latency. A new paper introduces SyncSpeech, which tries to have both.
The bottleneck nobody could shake
Modern autoregressive TTS is formulated as a conditional language modeling task where speech tokens are generated sequentially in a left-to-right, temporally ordered fashion. The problem: generation efficiency is fundamentally limited by the high frame rate of speech tokens required in this step-by-step process. Prior fixes such as group modeling in VALL-E 2, speculative decoding, and codec merging only yielded modest gains.
Non-autoregressive approaches based on diffusion or masked generative models fix the throughput problem by predicting in parallel, but they first apply masks based on a predicted duration and then perform denoising or mask prediction in a temporally unordered fashion. This non-sequential approach prevents them from generating speech incrementally, resulting in high first-packet latency. That is a killer for anything that streams from an LLM.
A hybrid that generates in text time, not speech time
SyncSpeech is built around what the authors call the Temporal Masked generative Transformer (TMT). The trick is aligning generation to the text token stream instead of the speech token stream. SyncSpeech first predicts BPE-level durations via top-k sampling, conditioned on all preceding speech tokens. Then, in the same decoding step, it fills in all the speech tokens for the current text token in parallel.
This is where the complexity math flips. While AR models operate at O(T) complexity, dependent on the speech sequence length, SyncSpeech's text-synchronous paradigm achieves O(L) complexity, dependent only on the text length. Since L is much smaller than T in all practical applications, this results in a decisive efficiency improvement.
The moving parts
The training design is where things get interesting. Three ingredients matter:
- Sequence construction with random truncation: a random cutoff
nand a look-aheadqsimulate streaming input, so the model learns to generate the n-th text token's audio with only q text tokens of lookahead. - Hybrid attention mask: causal attention is applied to input text tokens and special tokens, while bidirectional attention is applied to masked and speech tokens, enabling them to attend to all preceding tokens plus all masked and speech tokens corresponding to the same text token. This lets a text token see its own full duration as a chunk.
- High-probability masked pre-training: the authors found that pretraining with an aggressive Bernoulli mask (p=0.5) over BPE-aligned spans, then fine-tuning with the streaming objective, both accelerated convergence and unexpectedly improved final quality.
The speech tokenizer, flow-matching decoder, and HiFi-GAN vocoder are borrowed from CosyVoice2, so the comparison is apples-to-apples with that AR baseline.
The numbers
Trained on 585 hours of LibriTTS (English) and a 100,000-hour internal Mandarin dataset, SyncSpeech was evaluated on LibriSpeech test-clean and SeedTTS test-zh. Quality holds up: WER is on par with CosyVoice2, and the SS score is nearly identical to the CosyVoice models which is expected given the shared speech decoder. The speed gains are where it shines:
| Metric | CosyVoice2 | SyncSpeech |
|---|---|---|
| WER Seed test-zh | 1.45 | 1.43 |
| FPL-A LibriSpeech (s) | 0.22 | 0.06 |
| FPL-L Seed test-zh (s) | 0.36 | 0.10 |
| RTF Seed test-zh | 0.44 | 0.05 |
The Mandarin speedup is larger because BPE tokens there often cover whole phrases. SyncSpeech excels in streaming scenarios, initiating synthesis after only two text tokens, whereas CosyVoice2 requires five and other baselines need the full sequence.
What the ablations reveal
Two design choices carry most of the weight. Removing high-probability pre-training pushed WER from 2.44 to 3.61 and dropped UTMOSv2 by 0.15. Replacing the hybrid attention with plain causal attention was catastrophic, sending WER to 8.19. This degradation occurs because causal structure prevents bidirectional attention among speech segments corresponding to a single text token.
One quirk worth noting for anyone tuning this: speech token prediction works best with greedy search, not top-k. The authors hypothesized that strict text-synchronous alignment introduces subtle temporal dependencies into the speech token sequence, rendering greedy search highly effective. Duration prediction, by contrast, benefits from top-k=3 sampling.
Where it fits, and where it doesn't
This is aimed squarely at LLM-driven voice interfaces where an upstream model is streaming tokens and you cannot wait for a full sentence. Assistants, agents, dubbing pipelines, and low-latency accessibility tools are the obvious targets. The paper does not release code or weights, only audio samples, so reproducing it means rebuilding the TMT on top of the CosyVoice2 stack yourself.
Limitations to keep in mind: TMT relies on forced-alignment tools like MFA to get BPE-level durations during training, which complicates multilingual scaling. Naturalness improves slightly with larger look-ahead windows (q>2) but at the cost of latency, so there is a real dial to tune per use case. And since sampling temperature is effectively disabled for speech tokens, some of the stylistic variability that AR TTS gets for free may be muted here.