Source-linked AI summary
SyncSpeech: Efficient and Low-Latency Text-to-Speech based on Temporal Masked Transformer
Zhengyan Sheng, Zhihao Du, Shiliang Zhang, Zhijie Yan, Liping Chen
TL;DR
AR TTS is inefficient because it generates speech sequentially, whereas NAR TTS has high first-packet latency because its decoding is temporally unordered. SyncSpeech introduces TMT to combine temporal ordering with parallel prediction for streaming generation, achieving comparable speech quality with faster real-time factor and lower first-packet latency.
Problem
AR TTS has low generation efficiency, while NAR TTS cannot generate speech incrementally because its temporally unordered decoding causes high first-packet latency.
Source: §1 · p. 1Method
SyncSpeech uses the TMT paradigm to combine AR temporal ordering with NAR parallel prediction, predicting durations and corresponding speech tokens in one decoding step.
Source: §1 · p. 1Results
SyncSpeech maintains comparable speech quality while achieving 5.8× lower first-packet latency and an 8.8× higher real-time factor on the reported Mandarin benchmark.
Source: §1 · p. 1, §3.2 · p. 4Takeaways & Limitations
SyncSpeech supports text-synchronous streaming speech generation with efficiency and latency suitable for integration with upstream LLMs and latency-critical deployment.
Source: §1 · p. 1
Abstract
from arXiv · showhide
Current text-to-speech (TTS) models face a persistent limitation: autoregressive (AR) models suffer from low generation efficiency, while modern non-autoregressive (NAR) models experience high latency due to their unordered temporal nature. To bridge this divide, we introduce SyncSpeech, an efficient and low-latency TTS model based on the proposed Temporal Mask Transformer (TMT) paradigm. TMT synergistically unifies the temporally ordered generation of AR models with the parallel decoding efficiency of NAR models. TMT is realized through a meticulously designed sequence construction rule, a corresponding training objective, and a specialized hybrid attention mask. Furthermore, with the primary aim of enhancing training efficiency, a high-probability masking strategy is introduced, which also leads to a significant improvement in overall model performance. During inference, SyncSpeech achieves high efficiency by decoding all speech tokens corresponding to each newly arrived text token in a single step, and low latency by beginning to generate speech immediately upon receiving the second text token from the streaming input. Evaluations show that SyncSpeech maintains speech quality comparable to the modern AR TTS model, while achieving a 5.8-fold reduction in first-packet latency and an 8.8-fold improvement in real-time factor. Speech samples are available at https://SyncSpeech.github.io/}{https://SyncSpeech.github.io/.
1. INTRODUCTION
SyncSpeech addresses the efficiency–latency divide between sequential AR TTS and parallel NAR TTS by combining temporally ordered modeling with parallel speech-token prediction for streaming text. Its results report comparable speech quality alongside substantial gains in real-time factor and first-packet latency.
Motivation
- The model targets practical deployment contexts including assistive communication, virtual assistants, and automatic video dubbing by improving TTS efficiency and latency.These application areas are identified as contexts where advances in TTS have increased practical impact.Source: §1 · p. 1
- AR TTS generates speech sequentially but is inefficient at high speech-token frame rates, whereas NAR TTS predicts in parallel but cannot generate speech incrementally.NAR models’ temporally unordered decoding leads to high first-packet latency, while streaming AR models still produce only one speech token per step.Source: §1 · p. 1
Approach
- SyncSpeech’s TMT paradigm combines AR temporal ordering with NAR parallel prediction for streaming text-to-speech generation.The approach predicts BPE-level durations and generates corresponding speech tokens within a unified decoding step, with complexity scaling linearly with the input text sequence.Source: §1 · p. 1
Results
- 6.4× and 8.8× RTF speedups for English and Mandarin, respectively, accompany comparable speech quality to existing mainstream TTS models.The reported speedups are measured against existing mainstream TTS models while maintaining comparable speech quality.Source: §1 · p. 1
- SyncSpeech reduces first-packet latency by 3.7× on English and 5.8× on Mandarin when integrated with upstream LLMs.The reported reductions are part of the model’s latency results for streaming scenarios.Source: §1 · p. 1
2. METHOD
SyncSpeech uses a Temporal Masked Generative Transformer to combine temporally ordered streaming generation with parallel prediction of speech tokens. Its sequence design, hybrid attention, masking-based training, and chunk-aware decoding support synchronous low-latency speech generation.
2.2. Other Modules
- The system combines a text-to-token model based on TMT with an off-the-shelf chunk-aware token-to-speech module built from CosyVoice2 components.The S3 tokenizer, conditional flow matching decoder, and HiFi-GAN vocoder produce waveforms from chunk-sized semantic tokens.Source: §2 · p. 2, §2.2 · p. 3
2.1. Temporal Masked Generative Transformer
- Random truncation and text look-ahead construct training sequences that simulate receiving streaming text while generating speech for the selected token.The truncated sequence contains text through n + q tokens and speech through the duration boundary a_n.Source: §2.1 · p. 2
- SyncSpeech’s TMT predicts the speech tokens for the current BPE token together with the next token’s duration in one decoding step.This unified prediction process enables synchronous generation from streaming text, except for duration prediction of the first text token.Source: §2.1 · p. 2
- The hybrid attention mask applies causal attention to text and special tokens, while speech tokens attend bidirectionally within their corresponding text-token span.This lets speech tokens access the total duration of their text token, improving speech robustness and naturalness.Source: §2.1 · p. 2
- During streaming inference, SyncSpeech repeatedly updates and pads the input sequence, predicts each new text token’s duration and speech tokens, and sends chunk-sized tokens to the decoder.Separate text and speech positional embeddings enable KV-cache acceleration even when streaming text tokens are inserted.Source: §2.1 · p. 3
- High-probability masked pre-training accelerates convergence and improves overall performance before fine-tuning with an inference-consistent prediction strategy.The masking rule is designed for high masking probability and consistency with inference, and the objectives jointly train masked speech and duration prediction.Source: §2.1 · p. 3
3. EXPERIMENT
SyncSpeech is evaluated for quality, latency, efficiency, and component choices across English and Mandarin benchmarks. It maintains comparable speech quality while substantially improving latency and real-time efficiency, with ablations identifying important design choices and trade-offs.
3.1. Experimental Settings
- FPL-L includes upstream text waiting and initial speech generation, with q controlling look-ahead and c counting iterations needed to exceed decoder chunk size.For SyncSpeech, FPL-L is defined as (q + 1) · dLLM + c · dTTS, while omitting the first term yields FPL-A.Source: §3.1 · p. 3
3.2. Main Results
- Comparable speech quality to CosyVoice models is observed across WER, speaker similarity, and MOS-N, with no significant MOS difference.The comparison used matched model sizes and data scale within each benchmark setting.Source: §3.2 · p. 3, Table 1 · p. 4
- 6.4× and 8.8× faster RTF than AR models on LibriSpeech and Seed, respectively, while complexity shifts from O(T) to O(L).The text-synchronous design depends on text length rather than speech sequence length, with L ≪ T in practical applications.Source: §3.2 · p. 4
- 3.7× and 5.8× faster FPL-A than AR models on LibriSpeech and Seed, respectively, with synthesis beginning after two text tokens.CosyVoice2 requires five text tokens and other baselines require the full sequence before starting synthesis.Source: §3.2 · p. 4
3.3. Analysis
- Removing high-probability masked pre-training increases WER by 1.17 and decreases UTMOSv2 by 0.15, while causal attention reduces robustness and naturalness.The hybrid mask supports bidirectional attention among speech segments corresponding to one text token and helps model token durations.Source: §3.3 · p. 4
- Top-k=3 sampling performs best for duration prediction, whereas greedy search is optimal for speech-token prediction.The authors hypothesize that strict text-synchronous alignment introduces temporal dependencies that make greedy search effective.Source: §3.3 · p. 4
- q = 1 gives the best WER, while q > 2 improves prosody but increases latency.The lower look-ahead setting reduces ambiguity and simplifies text-to-speech alignment; larger windows yield more natural pacing and pauses.Source: §3.3 · p. 4, Table 4 · p. 4
4. CONCLUSION
The conclusion presents SyncSpeech as a TMT-based TTS model that unifies temporally ordered generation with parallel inference. Evaluations report improved efficiency and reduced latency while maintaining speech quality comparable to current AR systems.