RubatoCodec:带预算的自适应语音分词与流式解码
研究论文 · 2026/10/22
神经语音编解码器为语音生成提供离散标记。低帧率可缩短标记序列,但每个标记需承载更多信息。可变帧率编解码器通过自适应分配标记来平衡这一矛盾,但基于阈值的分配使序列长度随内容变化。本文提出RubatoCodec,基于X-Codec-2构建,具有精确的语句级事件预算和流式解码。其自适应触发机制利用编解码特征和波形频谱的变化将语音划分为变长事件,无需学习边界预测器。每个事件由离散码和显式时长表示,支持逐事件预测与解码。实验表明,在低事件率下,自适应分配在重建保真度和可懂度上优于固定速率编码。大规模多语言语音训练的模型在英语、日语和普通话上达到有竞争力的重建质量,在可比比特率下,所评估的英语和日语基准上可懂度保持最佳。在匹配的文本到语音比较中,自适应表示获得更低的WER和更高的UTMOS与UTMOSv2,说话人相似度相当。语音生成器无需显式生成时速率约束即可学习编解码器的语句级事件预算。这些结果证明,预算自适应语音表示支持高质量重建和流式文本到语音生成。代码和权重已公开。
该论文提出了一种具有精确事件预算的可变帧率语音编解码器,解决了传统可变帧率编码中序列长度不可控的问题,并在多语言重建和流式文本到语音生成中展示了优越性能,对语音生成领域具有重要参考价值。
Neural speech codecs provide discrete tokens for speech generation. Lower frame rates shorten token sequences, but each token must then carry more linguistic and acoustic information. Variable-frame-rate codecs address this trade-off by adapting token allocation to speech content, but threshold-based allocation lets content determine the token count, so the sequence length a speech generator must produce varies across utterances and datasets at a fixed setting. We present RubatoCodec, a variable-frame-rate speech codec built on X-Codec-2 with an exact utterance-level event budget and streaming decoding. Its Adaptive Firing mechanism uses changes in codec features and waveform spectra to divide speech into variable-duration events without a learned boundary predictor. Discrete codes and an explicit duration represent each event, allowing a speech generator to predict and decode one event at a time. Controlled experiments show that adaptive allocation outperforms fixed-rate coding in reconstruction fidelity and intelligibility at low event rates. A model trained on large-scale multilingual speech achieves competitive reconstruction quality across English, Japanese, and Mandarin, with the best intelligibility preservation among the compared codecs on the evaluated English and Japanese benchmarks at comparable bitrates. In a matched text-to-speech comparison, the adaptive representation yields lower WER and higher UTMOS and UTMOSv2 with comparable speaker similarity. The speech generator also learns the codec's utterance-level event budget without an explicit generation-time rate constraint. These results demonstrate that budgeted adaptive speech representations support both high-quality reconstruction and streaming text-to-speech generation. Code and weights are available at https://github.com/third-intelligence/RubatoCodec and https://huggingface.co/third-intelligence/RubatoCodec.