PitchFlower: A flow-based neural audio codec with pitch controllability

Diego Torres, Axel Roebel, Nicolas ObinarXiv 2025 · DOI · arXiv

Introduction

In speech synthesis and editing, precise pitch (F0) control is a long-standing challenge. While traditional digital signal processing (DSP) tools like the WORLD vocoder offer pitch manipulation, they often introduce "buzzy" artifacts due to their simplistic source-filter models. Conversely, modern Neural Audio Codecs (NACs) produce high-fidelity audio but typically entangle pitch within their compressed representations, making independent pitch adjustment difficult without degrading audio quality or speaker identity.

PitchFlower addresses this by introducing a flow-based neural audio codec designed for disentangled pitch control. By employing a novel "perturbation-plus-bottleneck" training strategy, the model learns to separate pitch from other speech attributes, outperforming traditional methods and state-of-the-art neural vocoders in pitch accuracy and sound quality.

Methods

Architecture

The PitchFlower architecture follows a standard NAC pipeline consisting of an Encoder, a Residual Vector Quantization (RVQ) bottleneck, and a Decoder. The core innovation lies in the decoder, which utilizes a Flow-based model (specifically Conditional Flow Matching). Flow models offer stable training compared to Generative Adversarial Networks (GANs) and excel at reconstructing high-fidelity signals from constrained latent spaces.

Figure 1: The PitchFlower architecture featuring an encoder-decoder structure with an RVQ bottleneck and a flow-based decoder conditioned on F0.

The Perturbation Strategy

To achieve disentanglement, the researchers use a "perturbation trick" during training. The input audio's F0 contour is flattened to a single average value and randomly shifted. This "broken" audio is passed through the encoder and the RVQ bottleneck. Due to the bottleneck's limited capacity, the model is forced to discard the corrupted pitch information. The original, true F0 is then fed directly into the Flow decoder. To successfully reconstruct the high-quality original signal, the decoder must ignore the residual pitch information from the encoder and rely exclusively on the provided F0 signal.

Key Results

PitchFlower was evaluated using the LibriTTS dataset, testing pitch shifts ranging from -6 to +6 semitones. The model demonstrated superior performance across several key metrics compared to the WORLD vocoder and the neural baseline SiFiGAN.

Figure 3: Performance comparison of PitchFlower against WORLD and SiFiGAN across WER, Speaker Similarity, F0RMSE, and UTMOS metrics.
  • Superior Pitch Control: PitchFlower achieved significantly lower F0RMSE (root mean square error of the pitch) than its competitors, indicating that it follows target pitch shifts with high precision.
  • High Fidelity: Perceptual quality, measured via UTMOS, was substantially higher than the WORLD vocoder and remained competitive with state-of-the-art non-controllable neural vocoders.
  • Disentanglement Efficiency: The "perturbation + bottleneck" approach proved more effective than complex adversarial pitch predictors. Interestingly, the authors found that adding semantic features from models like HuBERT actually degraded speaker similarity in this specific framework.
  • Inference Speed: Despite the iterative nature of flow models, PitchFlower achieves high-quality results in just 5 to 10 inference steps, making it viable for practical applications.

Limitations and Future Work

While PitchFlower represents a significant step forward, some limitations remain. Performance tends to degrade at very low frequencies (near 60 Hz) because the model is constrained by the pitch range present in the LibriTTS training data. Additionally, there is a minor trade-off in speaker similarity compared to non-controllable codecs, likely due to artifacts from the pitch-flattening process used during training. Future research may extend this "perturbation + bottleneck" logic to disentangle other speech dimensions, such as emotion, accent, or timbre.

Summary updated

Abstract

We present PitchFlower, a flow-based neural audio codec with explicit pitch controllability. Our approach promotes pitch disentanglement through a simple perturbation: during training, F0 contours are flattened and randomly shifted at the input, while the true F0 is provided as conditioning to regenerate the original audio. A vector-quantization bottleneck prevents pitch recovery, and a flow-based decoder generates high quality audio. Experiments show that PitchFlower achieves accurate pitch control at the level of DSP baselines but at much higher audio quality, and performs on par with state-of-the-art neural approaches. Notably, despite using WORLD-transformed audio for training, our method filters out the vocoder's inherent artifacts, revealing a strong resilience of deep generative modeling to input degradation. This finding suggests that our framework provides a simple and extensible path that could be extended to other speech attributes.
BibTeX
@misc{torres2025pitchflower,
  author = {Diego Torres and Axel Roebel and Nicolas Obin},
  title = {{PitchFlower: A flow-based neural audio codec with pitch controllability}},
  year = {2025},
  eprint = {2510.25566},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.25566},
}
Figure