Mathematical Vocoder Algorithm : Modified Spectral Inversion for Efficient Neural Speech Synthesis

Hyun Gon Ryu, Jeonghoon Kim, Simon SeearXiv 2021 · DOI

Abstract

In this work, we propose a new mathematical vocoder algorithm (modified spectral inversion) that generates a waveform from acoustic features without phase estimation. The main benefit of using our proposed method is that it excludes the training stage of the neural vocoder from the end-to-end speech synthesis model. Our implementation can synthesize high-fidelity speech at approximately 20 MHz on CPU and 59.6 MHz on GPU. This is 909 and 2,702 times faster compared to real-time. Since the proposed methodology is not a data-driven method, it is applicable to unseen voices and multiple languages without any additional work. The proposed method is expected to adapt for researching on neural network models capable of synthesizing speech at the studio recording level.

Introduction

Modern text-to-speech (TTS) systems typically decouple the synthesis process into two stages: an acoustic model that converts text into features (e.g., mel-spectrograms) and a vocoder that reconstructs the audio waveform from these features. While neural vocoders like WaveNet or HiFi-GAN achieve high quality, they suffer from significant training overhead, generalization issues across different speakers or languages, and high computational costs for real-time deployment.

This research introduces a transparent, mathematical alternative to black-box neural models. By replacing data-driven phase estimation with a modified spectral inversion technique, the authors provide a universal solution that requires no training for the vocoder component itself.

Methods: Modified Spectral Inversion

The core innovation lies in Modified Spectral Inversion. Standard Short-Time Fourier Transforms (STFT) represent audio using complex numbers. Traditional vocoders often discard the phase and retain only the magnitude, necessitating complex "guessing" algorithms like Griffin-Lim or neural networks to recover the missing phase.

The authors propose three specific algorithms to bypass explicit phase estimation:

  • Algorithm 1 (iSTFT): Utilizes the real part of the STFT. A "zero-clipping" function (similar to ReLU) is applied to these real values to create a modified spectrogram.
  • Algorithm 2 (iSTDCT): Employs the Inverse Short-Time Discrete Cosine Transform.
  • Algorithm 3 (iSTRFT): Uses a "Packed" Real Fourier Transform to efficiently handle both real and imaginary components.
Comparison of spectrogram representations: (a) Magnitude only, (b) Real part only, (c) Real part with zero-clipping, and (d) STDCT with zero-clipping.

By predicting these modified features instead of standard mel-magnitudes, the inverse transform can reconstruct the waveform directly. This shift moves the complexity from the vocoder to the upstream acoustic model.

Comparison of the proposed mathematical vocoders (Algo 1-3) against existing neural and phase-estimation based vocoders.

Key Insights

  • Structural Information in the Real Part: Providing the real part of the frequency domain instead of just the magnitude retains sufficient structural information for high-quality reconstruction without an explicit phase model.
  • Signal Processing Meets Deep Learning: The use of "zero-clipping" (ReLU) on the real part of the spectrogram helps bridge the gap between classical signal processing and neural network activations, improving pattern recognition and synthesis quality.
  • Universal Applicability: As a fixed mathematical formula, the vocoder is inherently zero-shot; it works instantly for any voice or language, shifting the learning burden entirely to the text-to-acoustic model.

Evaluation and Results

The algorithm was validated using the LJSpeech (single-speaker English), LibriTTS (multi-speaker English), and MLS (multilingual) datasets.

The results highlight exceptional efficiency and fidelity:

  • Extreme Speed: Synthesis speeds reached 20 MHz on CPU and 59.6 MHz on GPU, translating to 909x and 2,702x faster than real-time, respectively.
  • High Fidelity: In Mean Opinion Score (MOS) tests, the "LPS signed" model achieved a score of 4.25, closely trailing the Ground Truth (4.41) and remaining competitive with state-of-the-art neural models like HiFi-GAN (4.28).

Conclusion and Future Work

The primary trade-off for this efficiency is the increased size of the acoustic features. Because the vocoder requires the "real part" of the spectrum rather than a compressed mel-spectrogram, the upstream model must handle more data.

Future research will focus on optimizing the parallelization of the Inverse STDCT and STRFT processes to unlock even greater speeds. Additionally, the team aims to refine speech synthesis from predicted acoustic features to further integrate this mathematical vocoder into end-to-end TTS pipelines.

Summary updated

BibTeX
@misc{ryu2021mathematical,
  author = {Hyun Gon Ryu and Jeonghoon Kim and Simon See},
  title = {{Mathematical Vocoder Algorithm : Modified Spectral Inversion for Efficient Neural Speech Synthesis}},
  year = {2021},
  eprint = {2106.03167},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.03167},
}
Figure