Real time spectrogram inversion on mobile phone

Oleg Rybakov, Marco Tagliasacchi, Yunpeng Li, Liyang Jiang, Xia Zhang, Fadi Biadsy

Introduction

In modern Speech-to-Speech (S2S) and Text-to-Speech (TTS) systems, the final critical step is "vocoding": the process of converting a spectrogram back into an audible waveform. While high-fidelity neural vocoders have become the standard, they often impose significant computational burdens, high latency, and large memory footprints. These constraints make real-time execution on mobile devices particularly challenging, especially for assistive technologies like Parrotron, which requires low-latency streaming to facilitate natural conversation for individuals with speech impairments.

Researchers at Google have addressed this by optimizing two distinct approaches for spectrogram inversion on mobile hardware: a redesigned classic signal-processing algorithm and a lightweight neural model.

Streaming Methods

The study evaluates two primary streaming architectures designed for minimal algorithmic delay:

  1. Streaming Griffin-Lim (sGL): A redesign of the RTISI-LA algorithm. Unlike standard Griffin-Lim, which requires a full audio sequence, sGL uses a sliding window and phase constraints to estimate missing phase information for the current frame based on preceding frames.
  2. Streaming MelGAN: A lightweight generative adversarial network (GAN). Two variants were tested: a strictly causal version (zero lookahead) and a version with a single-hop (12.5ms) lookahead.

Both methods utilize linear spectrograms rather than Mel-spectrograms. This choice preserves higher detail, which is essential for maintaining reconstruction quality in production-grade speech models.

Efficiency and Performance Benchmarks

To assess real-world viability, the models were benchmarked on a single-threaded ARM CPU of a Pixel 4 smartphone. The results highlight a significant efficiency advantage for the signal-processing approach.

Table 1: Performance comparison of streaming models on a Pixel 4 phone.

As shown in the table above, the Streaming Griffin-Lim (sGL1) model is exceptionally lean, with a file size of just 0.1MB and a memory footprint of 7.6MB—roughly 4.5x less than the MelGAN variants. Furthermore, sGL1 achieves the lowest latency (5.2ms) while running 2.4x faster than real-time.

Quality and Robustness

While neural models like MelGAN typically provide superior perceptual quality on clean audio, the study found that the gap narrows significantly in real-world conditions.

Figure 1: Subjective score differences across various audio samples for the tested vocoders.

Subjective MUSHRA evaluations revealed that on clean speech, MelGAN is the clear winner. However, on noisy audio (created by mixing LibriTTS with Freesound data), the streaming Griffin-Lim (sGL1) performs comparably to the neural models. This suggests that the non-learned mathematical approach of sGL is more robust to environmental noise because it does not overfit to the clean distributions present in training data. Crucially, all models demonstrated excellent linguistic preservation, maintaining low Word Error Rates (WER) across atypical speech samples from users with ALS and Muscular Dystrophy.

Conclusion

This research demonstrates that while neural vocoders offer peak quality, optimized signal-processing methods like Streaming Griffin-Lim remain highly competitive for mobile applications. sGL provides a robust, extremely low-memory alternative that is particularly well-suited for noisy, real-world environments. Future developments may look toward hybrid models that combine the noise-robustness of signal processing with the high-fidelity synthesis capabilities of neural networks.

Summary updated

BibTeX
@inproceedings{rybakov2023real,
  author = {Oleg Rybakov and Marco Tagliasacchi and Yunpeng Li and Liyang Jiang and Xia Zhang and Fadi Biadsy},
  title = {{Real time spectrogram inversion on mobile phone}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-1137},
}
Figure