Speaking-Rate-Controllable HiFi-GAN Using Feature Interpolation

Detai Xin, Shinnosuke Takamichi, Takuma Okamoto, Hisashi Kawai, Hiroshi SaruwatariarXiv 2022 · DOI

Abstract

This paper introduces a method to control the speaking rate of synthesized speech within the HiFi-GAN neural vocoder by inserting a differentiable interpolation layer. By treating mel-spectrograms as images and scaling them before or during the upsampling process, the researchers achieved higher-quality, more natural-sounding speech than traditional signal processing methods while maintaining high real-time efficiency. Experimental results on a new parallel speech dataset demonstrate that mel-spectrogram interpolation significantly outperforms standard time-scale modification algorithms.

Introduction

Speaking rate control is a vital accessibility feature. Visually impaired users often prefer high-speed speech to consume information faster, while elderly users or those with language disorders may require slower speech for better comprehension. Traditionally, this is achieved using Time-Scale Modification (TSM) algorithms like WSOLA, which warp the audio waveform directly. However, TSM often introduces artifacts and does not integrate seamlessly with modern Deep Neural Network (DNN) vocoders. This research explores integrating "speed knobs" directly into the high-efficiency HiFi-GAN vocoder without sacrificing its performance.

Methodology

The core innovation is the insertion of an interpolation layer into the HiFi-GAN generator architecture. The researchers evaluated two primary interpolation techniques: 1D bandlimited resampling (using a Kaiser window) and 2D linear interpolation (treating features as images to be resized).

Figure 1: Architecture comparison showing the standard HiFi-GAN, the conventional WSOLA approach, and the proposed interpolation layer placements at the input (Mel) or within hidden layers.

As shown in Figure 1, the placement of this layer was varied to determine the optimal stage for feature warping. They tested placing it at the input (warping the mel-spectrogram) and at various hidden layers between upsampling blocks.

Datasets

The study utilized a new open-source dataset, SpeedSpeech-JA-2022, consisting of parallel Japanese speech from one male and one female professional speaker. Each speaker recorded 325 utterances at three distinct rates: Slow, Normal, and Fast. This dataset provides a unique "ground truth" for naturally varied speaking rates, allowing for more rigorous evaluation than previous studies that relied solely on synthetic warping.

Key Results and Discussion

The experimental results revealed several critical insights:

  • Optimal Placement: Applying linear interpolation directly to the input mel-spectrogram (the "Mel" placement in Figure 1) was the most effective method. Inserting the layer deeper into the network degraded speech quality, as HiFi-GAN’s convolutional layers are highly sensitive to feature length changes mid-stream.
  • Quality vs. Baseline: In Mean Opinion Score (MOS) tests for naturalness, the proposed mel-spectrogram interpolation consistently outperformed the WSOLA baseline across various target speaking rates.
Figure 5: Mean Opinion Scores (MOS) for naturalness across a range of speaking rates (mora/sec) for both female and male speakers, comparing proposed methods to the WSOLA baseline.
  • Efficiency: The method is exceptionally fast, maintaining a Real-Time Factor (RTF) of approximately 0.01 on a standard GPU. This allows for the synthesis of one second of speech in just 10 milliseconds, making it ideal for real-time applications.
  • Simplicity: Interestingly, simple 2D linear interpolation performed as well as more complex 1D bandlimited resampling, suggesting that standard image-scaling techniques are sufficient for this task.

Conclusion

By incorporating a simple interpolation layer at the input of the HiFi-GAN vocoder, researchers have enabled high-quality, real-time speaking rate control. This approach avoids the artifacts common in traditional TSM algorithms and provides a robust solution for modern speech synthesis systems. Future work will investigate the generalizability of this technique to other neural vocoder architectures and its performance at extreme speaking rates.

Summary updated

Abstract

This paper presents a speaking-rate-controllable HiFi-GAN neural vocoder. Original HiFi-GAN is a high-fidelity, computationally efficient, and tiny-footprint neural vocoder. We attempt to incorporate a speaking rate control function into HiFi-GAN for improving the accessibility of synthetic speech. The proposed method inserts a differentiable interpolation layer into the HiFi-GAN architecture. A signal resampling method and an image scaling method are implemented in the proposed method to warp the mel-spectrograms or hidden features of the neural vocoder. We also design and open-source a Japanese speech corpus containing three kinds of speaking rates to evaluate the proposed speaking rate control method. Experimental results of comprehensive objective and subjective evaluations demonstrate that 1) the proposed method outperforms a baseline time-scale modification algorithm in speech naturalness, 2) warping mel-spectrograms by image scaling obtained the best performance among all proposed methods, and 3) the proposed speaking rate control method can be incorporated into HiFi-GAN without losing computational efficiency.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Converted speech, Slow to NormHiFi-GAN mel-spectrogram interpolation (Linear mel)Mel-cepstral distortion (MCD)2.20Source speaking rate Slow; target Norm; Linear mel column, bolded best score for this c…
Source quote
L156: Slow │ Norm │ 1.15 │ 2.37 │ 2.20 │ 2.74 (2) │ 2.22 │ 2.72 (2)
Converted speech, Slow to FastHiFi-GAN mel-spectrogram interpolation (Kaiser mel)Mel-cepstral distortion (MCD)2.96Source speaking rate Slow; target Fast; Kaiser mel column, bolded best score for this c…
Source quote
L157: Slow │ Fast │ 1.15 │ 3.18 │ 2.99 │ 3.85 (1) │ 2.96 │ 3.81 (1)
Converted speech, Norm to SlowHiFi-GAN mel-spectrogram interpolation (Linear mel)Mel-cepstral distortion (MCD)2.24Source speaking rate Norm; target Slow; Linear mel column; tied for the best score with…
Source quote
L158: Norm │ Slow │ 1.16 │ 2.37 │ 2.24 │ 2.85 (2) │ 2.24 │ 2.85 (2)
Converted speech, Norm to FastHiFi-GAN mel-spectrogram interpolation (Linear mel)Mel-cepstral distortion (MCD)2.74Source speaking rate Norm; target Fast; Linear mel column, bolded best score for this c…
Source quote
L159: Norm │ Fast │ 1.16 │ 2.91 │ 2.74 │ 3.54 (2) │ 2.76 │ 3.53 (2)
Converted speech, Fast to SlowHiFi-GAN mel-spectrogram interpolation (Linear mel)Mel-cepstral distortion (MCD)2.83Source speaking rate Fast; target Slow; Linear mel column, bolded best score for this c…
Source quote
L160: Fast │ Slow │ 1.41 │ 3.03 │ 2.83 │ 3.49 (1) │ 2.87 │ 3.48 (1)
Converted speech, Fast to NormHiFi-GAN mel-spectrogram interpolation (Linear mel)Mel-cepstral distortion (MCD)2.62Source speaking rate Fast; target Norm; Linear mel column, bolded best score for this c…
Source quote
L161: Fast │ Norm │ 1.41 │ 2.83 │ 2.62 │ 3.32 (2) │ 2.65 │ 3.33 (2)
BibTeX
@misc{xin2022speaking,
  author = {Detai Xin and Shinnosuke Takamichi and Takuma Okamoto and Hisashi Kawai and Hiroshi Saruwatari},
  title = {{Speaking-Rate-Controllable HiFi-GAN Using Feature Interpolation}},
  year = {2022},
  eprint = {2204.10561},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.10561},
}
Figure