Interleaved Speech-Text Language Models for Simple Streaming Text-to-Speech Synthesis

Y. F. Yang, Ziyang Ma, Shujie Liu, Jinyu Li, Huiqi Wang, Lingwei Meng, Haiyang Sun, Yuzhe Liang, Ruiyang Xu, Yuxuan Hu, Yan Lu, Rui Zhao, Xie ChenarXiv 2024 · DOI

Abstract

This paper introduces Interleaved Speech-Text Language Model (IST-LM) for zero-shot streaming Text-to-Speech (TTS). Unlike many previous approaches, IST-LM is directly trained on interleaved sequences of text and speech tokens with a fixed ratio, eliminating the need for additional efforts like forced alignment or complex designs. The ratio of text chunk size to speech chunk size is crucial for the performance of IST-LM. To explore this, we conducted a comprehensive series of statistical analyses on the training data and performed correlation analysis with the final performance, uncovering several key factors: 1) the distance between speech tokens and their corresponding text tokens, 2) the number of future text tokens accessible to each speech token, and 3) the frequency of speech tokens precedes their corresponding text tokens. Experimental results demonstrate how to achieve an optimal streaming TTS system with a limited performance gap compared to its non-streaming counterpart. IST-LM is conceptually simple and empirically powerful, enabling streaming TTS with minimal overhead while largely preserving performance, and offering broad potential for integration with real-time text streams from large language models.

Introduction

Zero-shot text-to-speech (TTS) systems, capable of mimicking a voice from a brief audio prompt, have traditionally operated in offline modes. These systems require the complete text input before synthesis begins, introducing significant latency that hinders real-time applications like interactive AI assistants. While streaming solutions exist, they often rely on complex forced alignment—mapping specific audio segments to words—or modular architectures that can result in inconsistent prosody when processing text in isolated chunks.

This paper presents the Interleaved Speech-Text Language Model (IST-LM), a framework that simplifies streaming TTS by training a single decoder-only Transformer on interleaved sequences of text and speech tokens. By maintaining a fixed ratio between these tokens, the model learns alignment implicitly, achieving high-quality synthesis with minimal latency.

Methodology

The core innovation of IST-LM is the interleaving of text and speech into a unified sequence, allowing the model to process both modalities within a standard language modeling objective.

IST-LM Architecture: Interleaving text and speech tokens into a single sequence for a decoder-only Transformer.

Tokenization and Interleaving

Text is processed into subword units using Byte Pair Encoding (BPE). Speech is converted into discrete semantic tokens using a pre-trained S3Tokenizer operating at 50Hz. The sequences are then interleaved at a fixed ratio ($n:m$), where $n$ text tokens are followed by $m$ speech tokens. For instance, a 1:3 ratio implies that for every text token, the model predicts three speech tokens.

Training and Inference

The model utilizes a 161.8M parameter decoder-only Transformer. During training, it learns to predict the next token in the interleaved sequence using cross-entropy loss, specifically calculated for the speech tokens. During inference, the model receives a text stream and generates speech tokens in parallel. These tokens are subsequently converted into audio using a flow-matching decoder and a vocoder.

Statistical Analysis and Performance

The researchers conducted a deep dive into the impact of the interleaving ratio on model performance. They identified three critical factors that correlate with the Word Error Rate (WER): the mean distance between corresponding text and speech tokens ($\mu_D$), the standard deviation of that distance ($\sigma_D$), and the number of future text tokens accessible to each speech token ($A$).

Correlation analysis between WER and statistical factors: (a) Mean Distance, (b) Std Distance, and (c) Accessible Future Words.

As shown in the correlation analysis, performance is highly sensitive to these metrics. A "Goldilocks" distance is required: if tokens are too close, the model lacks context; if too far, the relationship becomes difficult to model. Furthermore, providing speech tokens with access to future text context (lookahead) is essential for planning natural intonation and rhythm.

Key Results

Experimental evaluations on the LibriSpeech test-clean set highlight the efficiency and quality of the IST-LM approach:

  • Accuracy: The 1:3 ratio model achieved a WER of 4.53% on cross-sentence tasks, significantly outperforming other streaming baselines like VALL-E (8.64%) and remaining competitive with non-streaming systems (4.16%).
  • Speaker Similarity: The model maintained a high similarity score (0.653 SIM-o), ensuring the zero-shot output closely matches the acoustic prompt.
  • Efficiency: IST-LM achieved a Real-Time Factor (RTF) of 0.40, making it highly suitable for live streaming.
  • Subjective Quality: In UTMOS tests, the model scored 3.30, nearly matching ground truth recordings (3.32).

Conclusion

IST-LM demonstrates that a simple interleaving strategy can effectively replace complex alignment modules in streaming TTS. By optimizing the text-to-speech token ratio, the model achieves a balance of low latency and high prosodic quality. Future work will focus on integrating a fully streaming-capable decoder to further minimize first-packet latency and improve the fluidity of real-time synthesis.

Summary updated

BibTeX
@misc{yang2024interleaved,
  author = {Y. F. Yang and Ziyang Ma and Shujie Liu and Jinyu Li and Huiqi Wang and Lingwei Meng and Haiyang Sun and Yuzhe Liang and Ruiyang Xu and Yuxuan Hu and Yan Lu and Rui Zhao and Xie Chen},
  title = {{Interleaved Speech-Text Language Models for Simple Streaming Text-to-Speech Synthesis}},
  year = {2024},
  eprint = {2412.16102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.16102},
}
Figure