Zero-Shot Text-to-Speech from Continuous Text Streams

Trung Dang, David Aponte, Dung N. Tran, Tianyi Chen, Kazuhito Koishida · DOI

Introduction

Modern zero-shot text-to-speech (TTS) systems, such as VALL-E or XTTS, typically operate in an "offline" mode. They require a complete sentence as input and are constrained by fixed maximum sequence lengths. This architecture creates a significant bottleneck for real-time applications like LLM-powered voice assistants or live translation, where text arrives in unpredictable, small chunks. Using standard models in these scenarios often results in high latency, robotic discontinuities between segments, or synchronization failures where audio lags behind the text stream.

LiveSpeech 2 addresses these challenges as a "stream-aware" zero-shot TTS model. It is designed to synthesize high-quality, speaker-consistent audio from continuous text streams, enabling infinitely long speech generation with low latency and seamless transitions.

Architecture and Methodology

The core of LiveSpeech 2 is a departure from traditional Transformer-based decoders in favor of a more efficient and stream-friendly architecture.

The LiveSpeech 2 architecture featuring a Mamba-based decoder and cross-attention memory for streaming text.

1. Mamba-based Decoder

The researchers adopted the Mamba state-space model (SSM) architecture. Unlike Transformers, which suffer from $O(N^2)$ complexity, Mamba offers $O(1)$ inference complexity per step. This efficiency is critical for high-frequency audio token generation (75 frames per second) over long durations.

2. Rotary Positional Embeddings (RoPE) for Sliding Windows

To support infinite streams, the model employs a sliding window over the incoming text. By using RoPE in the cross-attention mechanism, the model assigns positional indices based on the arrival time of text chunks. This "temporal anchoring" allows the decoder to focus on local context while maintaining global synchronization between the audio and text streams.

3. Inference-Time Semantic Guidance

To prevent common autoregressive errors like word skipping or repetition, LiveSpeech 2 predicts semantic tokens (graphemes) alongside acoustic codes. During inference, a "soft guidance" algorithm reweights the model's predicted probabilities based on the actual target transcript. This ensures the generated speech remains perfectly aligned with the text without sacrificing natural prosody.

Evaluation and Results

The model was trained on the 60,000-hour LibriLight corpus and evaluated using the LibriTTS test-clean set, focusing on both short (3-10s) and long (>10s) samples to assess streaming stability.

Performance comparison of LiveSpeech 2 against state-of-the-art zero-shot TTS models across various metrics.

LiveSpeech 2 demonstrates superior performance in several key areas:

  • Speaker Similarity (SS): The model achieved a score of 67.6 on long samples, outperforming baselines like XTTS v2 by 2.8 points.
  • Robustness and Continuity: Unlike models that require manual splitting for long transcripts, LiveSpeech 2 handles them in a single continuous shot, maintaining style consistency.
  • Content Accuracy: Semantic guidance reduced the Word Error Rate (WER) by 53% in offline scenarios and 27% in online streaming scenarios.
  • Low Latency: The system can begin streaming audio after receiving just 4–8 words, making it highly suitable for interactive, real-time applications.

Conclusion and Future Work

LiveSpeech 2 proves that Mamba is a viable, and often superior, alternative to Transformers for long-form audio synthesis. While currently optimized for English, future work aims to extend these capabilities to tonal languages and improve performance on extremely short (single-word) text chunks. Additionally, the authors emphasize the importance of developing watermarking systems to mitigate the risks associated with high-fidelity voice cloning.

Summary updated

BibTeX
@misc{dang2024zero,
  author = {Trung Dang and David Aponte and Dung N. Tran and Tianyi Chen and Kazuhito Koishida},
  title = {{Zero-Shot Text-to-Speech from Continuous Text Streams}},
  year = {2024},
  eprint = {2410.00767},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.00767},
}
Figure