Neural Speech Phase Prediction Based on Parallel Estimation Architecture and Anti-Wrapping Losses

Yang Ai, Zhen-Hua Ling

TL;DR

Researchers have developed a new neural network model, NSPP, that predicts speech phase spectra directly from amplitude spectra, bypassing the need for slow, iterative algorithms like Griffin-Lim. By using a "parallel estimation" architecture that mimics complex number math and a specialized "anti-wrapping" loss function, the model achieves near-human speech quality while running nearly 20 times faster than real-time on a standard CPU.

What Problem Does This Paper Address?

In speech processing tasks like text-to-speech or speech enhancement, models usually focus on predicting the amplitude of the sound wave. However, to turn that data back into an audible waveform, you also need the phase.

Phase is notoriously difficult to predict because of "phase wrapping": phase values are periodic, typically restricted to the interval $(-\pi, \pi]$. A value of $0.99\pi$ is physically very close to $-0.99\pi$ on a circle, but a standard neural network sees them as being at opposite ends of a number line. This leads to "error expansion," where the model tries to bridge a massive numerical gap that doesn't actually exist, resulting in metallic artifacts and unnatural-sounding speech. Traditional solutions like the Griffin-Lim algorithm are iterative (slow) and often produce "thin" or "robotic" audio.

Methods

The authors propose a model called NSPP (Neural Speech Phase Prediction) consisting of two main innovations:

  1. Parallel Estimation Architecture: Instead of forcing a neural network to output a single phase value directly, the model uses two parallel convolutional layers to predict "pseudo-real" and "pseudo-imaginary" parts of the signal. These are then combined using a specific phase calculation formula ($\Phi$) that strictly constrains the output to the $(-\pi, \pi]$ range. This effectively "teaches" the network the geometry of complex numbers.
  2. Anti-Wrapping Training Losses: To solve the error expansion problem, the authors designed a loss function $f_{AW}$ that calculates the shortest distance between two points on a circle. They apply this to three specific metrics:
  3. Instantaneous Phase: The raw phase value.
  4. Group Delay: The difference in phase across frequency bins.
  5. Instantaneous Angular Frequency: The difference in phase across time frames.

By optimizing for all three using the anti-wrapping function, the model ensures the phase is consistent across both time and frequency.

Datasets

The study used the VCTK corpus, a popular multi-speaker English speech dataset.

  • Training/Validation: 11,572 utterances from 28 speakers.
  • Testing: 824 utterances from 2 "unseen" speakers (one male, one female) to test how well the model generalizes to new voices.
  • Audio Specs: 16 kHz sampling rate, with a 20ms window size for the Short-Time Fourier Transform (STFT).

Key Insights and Ideas

  • Phase as Geometry, Not Just Numbers: The core "aha moment" is treating phase prediction as a coordinate problem on a circle rather than a regression problem on a line. The parallel architecture forces the model to respect the circular nature of phase.
  • Consistency is King: Predicting the phase of a single pixel in a spectrogram isn't enough. By including Group Delay and Angular Frequency in the loss function, the model learns the flow of speech, which is critical for maintaining the harmonic structure of a voice.
  • Efficiency via Architecture: Unlike previous neural methods that required a "refinement" step using Griffin-Lim, this model is "fully neural." It produces high-quality phase in a single forward pass.

Key Results

  • Quality: In Mean Opinion Score (MOS) tests, NSPP scored 3.95, nearly identical to the ground truth natural speech score of 3.97. It significantly outperformed Griffin-Lim (2.92–3.73) and previous DNN-based methods (3.86).
  • Speed: The model reached 19.6x real-time speed on a single Intel Xeon CPU core. This is significantly faster than iterative methods that require 100+ passes to reach lower quality levels.
  • Ablation Success: Removing the parallel estimation architecture caused "annoying loud noise similar to electric current," proving that the architectural constraint is just as important as the loss function.

Limitations and Future Work

While the model performs exceptionally well at reconstructing phase from natural amplitude spectra, the authors note that its performance in real-world applications (like a full Text-to-Speech system) remains to be seen. In those cases, the input amplitude spectra would be predicted by another model and might contain errors.

The authors plan to integrate this phase prediction model into end-to-end tasks like Speech Enhancement (SE), Bandwidth Extension (BWE), and Speech Synthesis (SS) to see if the quality gains hold up when the input data is imperfect.

Summary updated

BibTeX
@inproceedings{ai2023neural,
  author = {Yang Ai and Zhen-Hua Ling},
  title = {{Neural Speech Phase Prediction Based on Parallel Estimation Architecture and Anti-Wrapping Losses}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=qzpGXxkaYM},
}
Figure