Accelerating Real-Time TTS with Speculative Decoding

Speculative decoding significantly reduces the latency of autoregressive discrete audio token generation in real-time Text-to-Speech (TTS) systems by replacing slow, token-by-token inference with a parallelized draft-and-verify mechanism. By using a lightweight draft model to hypothesize a sequence of future audio tokens and a full-scale target model to validate them simultaneously in a single forward pass, the system achieves dramatic inference speedups without degrading voice quality or altering the underlying probability distribution of the output audio.

The Autoregressive Bottleneck in Neural Audio

Modern neural TTS architectures increasingly rely on discrete acoustic representations produced by neural audio codecs (such as EnCodec, SoundStream, or Descript Audio Codec). These codecs quantize continuous audio signals into sequences of discrete tokens, often arranged across multiple hierarchical codebooks via Residual Vector Quantization (RVQ).

While autoregressive transformers excel at capturing the long-range acoustic and prosodic dependencies necessary for natural-sounding speech, they present an inherent latency problem. Generating discrete audio requires predicting dozens to hundreds of tokens for every single second of speech. Because standard autoregressive decoding generates tokens strictly one by one, each token demands a separate forward pass through a large transformer model. This sequential dependency creates an inference bottleneck that makes real-time, low-latency voice interaction computationally expensive or unfeasible.

The Two-Model Architecture

Speculative decoding circumvents this bottleneck by decoupling token proposal from token verification using two distinct components:

  1. The Draft Model: A small, highly optimized, and computationally inexpensive model (or specialized draft heads attached to the main network). Its sole task is to rapidly generate a short candidate sequence of \(K\) upcoming audio tokens. Because of its smaller parameter size, generating these \(K\) tokens sequentially takes only a fraction of the time required by the primary model.
  2. The Target Model: The full-sized, expressive TTS model tasked with producing high-fidelity speech. Instead of generating tokens autoregressively from scratch, the target model evaluates the entire candidate sequence of \(K\) tokens concurrently within a single batched forward pass.

The Verification and Acceptance Mechanism

Once the draft model proposes a candidate sequence, the target model computes the probability distribution for each position in the proposed window in parallel. A statistical verification algorithm—typically a modified form of speculative rejection sampling—evaluates the tokens sequentially:

Because the rejection sampling criterion guarantees that accepted and corrected tokens strictly match the target model's true output distribution, the resulting audio maintains identical quality, naturalness, and intelligibility compared to standard autoregressive sampling.

Why Speculative Decoding Excels in Audio Synthesis

Discrete audio tokens exhibit unique characteristics that make them particularly well-suited for speculative decoding:

Impact on Real-Time Voice Systems

By producing multiple discrete audio tokens per target forward pass, speculative decoding can cut generation latency by 2x to 4x. This acceleration drastically reduces the Real-Time Factor (RTF) of autoregressive TTS engines, transforming large, expressive speech models into low-latency systems capable of sub-second response times required for interactive voice agents, real-time speech translation, and dynamic conversational interfaces.