Fill in the Gap! — Demo

Is Self-Supervised Learning Enough to Fill in the Gap?
A Study on Speech Inpainting

Authors:

Ihab Asaad1,2, Maxime Jacquelin1,3, Olivier Perrotin1, Laurent Girin1, Thomas Hueber1
1 Univ. Grenoble Alpes, CNRS, Grenoble-INP, GIPSA-lab, France
2 Friedrich Schiller Universität Jena, Jena, Germany
3 Vogo, Bernin, 38190, France

Demo page for the article "Is Self-Supervised Learning Enough to Fill in the Gap? A Study on Speech Inpainting".
Paper: SSRN #5398167

Abstract

Speech inpainting consists in reconstructing corrupted or missing speech segments using surrounding context, a process that closely resembles the pretext tasks in Self-Supervised Learning (SSL) for speech encoders. This study investigates using SSL-trained speech encoders for inpainting without any additional training beyond the initial pretext task, and simply adding a decoder to generate a waveform. We compare this approach to supervised fine-tuning of speech encoders for a downstream task---here, inpainting. Practically, we integrate HuBERT as the SSL encoder and HiFi-GAN as the decoder in two configurations: (1) fine-tuning the decoder to align with the frozen pre-trained encoder's output and (2) fine-tuning the encoder for an inpainting task based on a frozen decoder's input. Evaluations are conducted under single- and multi-speaker conditions using in-domain datasets and out-of-domain datasets (including unseen speakers, diverse speaking styles, and noise). Both informed and blind inpainting scenarios are considered, where the position of the corrupted segment is either known or unknown. The proposed SSL-based methods are benchmarked against several baselines, including a text-informed method combining automatic speech recognition with zero-shot text-to-speech synthesis. Performance is assessed using objective metrics and perceptual evaluations. The results demonstrate that both approaches outperform baselines, successfully reconstructing speech segments up to 200 ms, and sometimes up to 400 ms. Notably, fine-tuning the SSL encoder achieves more accurate speech reconstruction in single-speaker settings, while a pre-trained encoder proves more effective for multi-speaker scenarios. This demonstrates that an SSL pretext task can transfer to speech inpainting, enabling successful speech reconstruction with a pre-trained encoder.

Framework

Demonstration

Select dataset and mask length and click on "Select" to display audio examples.