Universal Adaptor: Converting Mel-Spectrograms Between Different Configurations for Speech Synthesis

Fan-Lin Wang, Po-chun Hsu, Da-Rong Liu, Hung-yi LeearXiv 2022

Abstract

Most recent speech synthesis systems are composed of a synthesizer and a vocoder. However, the existing synthesizers and vocoders can only be matched to acoustic features extracted with a specific configuration. Hence, we can't combine arbitrary synthesizers and vocoders together to form a complete system, not to mention apply to a newly developed model. In this paper, we proposed Universal Adaptor, which takes a Mel-spectrogram parametrized by the source configuration and converts it into a Mel-spectrogram parametrized by the target configuration, as long as we feed in the source and the target configurations. Experiments show that the quality of speeches synthesized from our output of Universal Adaptor is comparable to those synthesized from ground truth Mel-spectrogram no matter in single-speaker or multi-speaker scenarios. Moreover, Universal Adaptor can be applied in the recent TTS systems and voice conversion systems without dropping quality.

Introduction

Modern neural speech synthesis typically follows a two-step pipeline: a synthesizer (e.g., Tacotron 2) converts text into an intermediate Mel-spectrogram, and a vocoder (e.g., HiFi-GAN) transforms that spectrogram into raw audio. A significant bottleneck in this modular approach is the strict dependency on acoustic configurations. If a synthesizer is trained with a specific hop size or frequency range, it cannot be directly paired with a vocoder trained on a different configuration.

The Universal Adaptor bridges the gap between incompatible synthesizers and vocoders.

Currently, researchers often resort to retraining models from scratch or using sub-optimal mathematical conversions, which limits the flexibility and reuse of pre-trained modules. The Universal Adaptor addresses this by providing a "plug-and-play" solution that dynamically converts Mel-spectrograms between arbitrary source and target configurations.

Methodology

The Universal Adaptor employs a two-stage framework to achieve high-fidelity conversion between disparate configurations.

Stage 1: Approximate Conversion

The first stage utilizes non-trainable, closed-form operations to establish a baseline. It converts the source Mel-spectrogram back to a linear spectrogram, applies the Griffin-Lim algorithm to reconstruct an intermediate waveform, and then re-extracts a Mel-spectrogram using the target configuration. While this stage captures the general spectral structure, the resulting audio quality is typically low due to the phase estimation limitations of Griffin-Lim.

Stage 2: Post-processing with U-Net

To refine the output of Stage 1, a U-Net architecture is employed. The key innovation is the use of Adaptive ConvBlocks. These blocks are conditioned on the target configuration parameters (such as frequency bounds and hop length). These parameters are encoded into a vector that dynamically determines the weights and biases of adaptive linear layers within the convolution blocks. This allows a single model to generalize across diverse target formats it may not have seen during training.

The two-stage framework of the Universal Adaptor, comprising approximate conversion and U-Net post-processing.

The system distinguishes between normalizable parameters (e.g., amplitude scaling), which are handled via simple arithmetic, and non-normalizable parameters (e.g., window length), which the U-Net is specifically trained to resolve. Training was optimized using L1 loss, which was found to be more stable than L2 loss for maintaining gradients in this domain.

Experiments and Results

The model was trained on the LibriTTS multi-speaker corpus and evaluated using LJSpeech (single-speaker) and CMU ARCTIC (multi-speaker/voice conversion).

Performance Metrics

The authors used both objective metrics (Mel-cepstral distortion, F0-RMSE) and subjective Mean Opinion Scores (MOS) to evaluate performance.

  • Quality Preservation: In single-speaker TTS tasks using Tacotron 2 and HiFi-GAN, the Universal Adaptor achieved a MOS of 4.34, comparable to the 4.31 achieved by matched configurations using ground-truth spectrograms.
  • Superiority over Baselines: The adaptor consistently outperformed baselines like linear interpolation or standalone Griffin-Lim. In MCD tests, it showed lower error rates across various vocoders, including WaveRNN, WaveGlow, and MelGAN.
  • Robustness: The model proved effective in both Text-to-Speech (TTS) and Voice Conversion (VC) scenarios, demonstrating that it doesn't drop quality when integrated into complex, multi-stage pipelines.

Conclusion

The Universal Adaptor effectively solves the configuration mismatch problem in speech synthesis. By treating target configurations as dynamic inputs and utilizing a two-stage refinement process, it enables the seamless integration of disparate synthesizers and vocoders. This modularity significantly reduces the need for redundant retraining and facilitates the rapid deployment of new speech models.

Summary updated

BibTeX
@misc{wang2022universal,
  author = {Fan-Lin Wang and Po-chun Hsu and Da-Rong Liu and Hung-yi Lee},
  title = {{Universal Adaptor: Converting Mel-Spectrograms Between Different Configurations for Speech Synthesis}},
  year = {2022},
  eprint = {2204.00170},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.00170},
}
Figure