WG-WaveNet: Real-Time High-Fidelity Speech Synthesis without GPU

Po-chun Hsu, Hung-yi LeeInterspeech 2020

Abstract

In this paper, we propose WG-WaveNet, a fast, lightweight, and high-quality waveform generation model. WG-WaveNet is composed of a compact flow-based model and a post-filter. The two components are jointly trained by maximizing the likelihood of the training data and optimizing loss functions on the frequency domains. As we design a flow-based model that is heavily compressed, the proposed model requires much less computational resources compared to other waveform generation models during both training and inference time; even though the model is highly compressed, the post-filter maintains the quality of generated waveform. Our PyTorch implementation can be trained using less than 8 GB GPU memory and generates audio samples at a rate of more than 960 kHz on an NVIDIA 1080Ti GPU. Furthermore, even if synthesizing on a CPU, we show that the proposed method is capable of generating 44.1 kHz speech waveform 1.2 times faster than real-time. Experiments also show that the quality of generated audio is comparable to those of other methods.

Introduction

In the world of Text-to-Speech (TTS), the "vocoder" is the component that turns abstract acoustic features, such as Mel-spectrograms, into audible waveforms. While autoregressive models like WaveNet produce human-like speech, they generate audio one sample at a time, which is a computationally slow process. Flow-based models like WaveGlow were developed to generate audio in parallel, but they are often memory-intensive, requiring significant GPU resources for both training and inference. WG-WaveNet addresses this bottleneck by shrinking the model footprint to 1/35th of the original WaveGlow size while maintaining high-quality output, enabling high-fidelity synthesis on standard consumer CPUs.

Methods

The WG-WaveNet architecture consists of two primary components designed for efficiency and quality:

  1. Highly Compressed Flow Model: The model drastically reduces parameter counts through cross-layer parameter sharing. Instead of unique transformation layers, the model reuses a shared affine coupling layer multiple times. Additionally, memory-intensive deconvolution layers are replaced with simpler duplication and convolution steps.
  2. WaveNet-Based Post-Filter: To compensate for the quality loss inherent in heavy compression, a small WaveNet-style post-filter is added. This filter refines the output of the compressed flow model. Because it only refines rather than generates from scratch, it remains extremely lightweight.
The architecture of WG-WaveNet (a) and its training objectives (b).

Hybrid Training Objectives

The model is jointly trained using a combination of likelihood maximization (to ensure the distribution matches the target data) and multi-resolution STFT loss. The latter compares generated audio to ground truth across various frequency domains, specifically utilizing a Mel-scale STFT loss to prioritize frequencies most critical to human perception.

Results and Discussion

The researchers evaluated WG-WaveNet on the LJ Speech dataset (22.05 kHz) and an internal Mandarin corpus (44.1 kHz). The model contains only 2.5 million parameters, a 97% reduction from WaveGlow's 87.9 million.

Quantitative comparison of MOS, MCD, and GPU inference speed across various models.

As shown in the performance metrics, WG-WaveNet achieves a Mean Opinion Score (MOS) of 4.08, significantly outperforming other lightweight alternatives like SqueezeWave (2.96). In terms of speed, the model achieves staggering inference rates of 967 kHz on an NVIDIA 1080Ti. Most notably, it achieves 1.5x to 2.4x real-time speeds for 22 kHz audio on a standard CPU, proving its viability for edge deployment.

Conclusion

WG-WaveNet demonstrates that high-fidelity, real-time speech synthesis is achievable without specialized GPU hardware. By combining parameter sharing with a targeted post-filter and hybrid loss functions, the model bridges the gap between massive parallel models and resource-constrained environments. Future work will focus on optimizing training duration and extending the architecture to multi-speaker synthesis.

Summary updated

BibTeX
@inproceedings{hsu2020wg,
  author = {Po-chun Hsu and Hung-yi Lee},
  title = {{WG-WaveNet: Real-Time High-Fidelity Speech Synthesis without GPU}},
  booktitle = {Interspeech},
  year = {2020},
  url = {https://openreview.net/forum?id=-V4oTNdyzv4},
}
Figure