Designing Acoustic Codebooks for Emotional TTS

Modern neural Text-to-Speech (TTS) models increasingly rely on discrete acoustic codebooks to compress high-fidelity audio into manageable tokens. However, standard lossy vector quantization frequently discards subtle acoustic details—such as micro-prosody, vocal fry, and breathiness—that carry vital emotional nuance. Preserving these expressive characteristics requires a deliberate redesign of the quantization pipeline, focusing on disentangled representations, multi-scale residual quantization, and emotion-aware objective functions.

Disentangling Prosody from Phonetic Content

Standard neural audio codecs compress speech into a shared latent space where dominant linguistic patterns often suppress subtler emotional signals. To preserve emotional nuance, codebooks should be split into dedicated, disentangled streams:

Explicitly separating these features forces the quantization bottleneck to retain distinct representations of emotional state rather than discarding them as negligible reconstruction noise.

Structuring Hierarchical and Residual Quantization

Residual Vector Quantization (RVQ) is widely used to scale codebook capacity, but naive implementations allocate most bits to coarse timbral matching. Codebooks can be structured to preserve emotional hierarchy:

Implementing Emotion-Aware Optimization

Codebook learning depends on the loss landscape used during training. Standard reconstruction metrics—such as \(L_1\) mel-spectrogram distance and broad adversarial losses—favor intelligibility and perceptual sharpness over emotional fidelity. To safeguard expressive nuances, the training pipeline must incorporate dedicated emotional objectives:

Dynamic Bitrate and Codebook Capacity

Emotional speech features high variance in information density; a calm sentence requires fewer expressive bits than an impassioned exclamation. Employing variable-rate quantization or dynamic codebook routing allows the codec to allocate higher bit depths to emotionally volatile segments while compressing neutral passages more aggressively. This preserves critical emotional inflection without unnecessarily increasing the overall sequence length for downstream TTS generation.