Abstract
End-to-end (E2E) Automatic Speech Recognition (ASR) models often struggle with low-resource scenarios such as Code-Switching (CS) and Named Entity Recognition (NER) due to a lack of diverse training data. Researchers from Shanghai Jiao Tong University propose a novel data augmentation method leveraging text-based speech editing. By modifying segments of real recordings rather than generating entire sentences from scratch, the approach preserves acoustic realism and contextual coherence. Experimental results demonstrate significant improvements, with the proposed method matching the performance of real code-switched data and substantially increasing recall for rare named entities.
1. Introduction
Modern E2E ASR systems are highly dependent on large-scale, high-quality datasets. However, two specific domains remain persistently difficult: Code-Switching (where speakers alternate between languages) and Named Entity Recognition (identifying rare names or specific terms). These scenarios represent the "long-tail" of speech data, where natural occurrences are sparse.
Traditional augmentation techniques like audio splicing often result in robotic and discontinuous transitions. Conversely, Neural Text-to-Speech (TTS) often produces audio that is too clean or "perfect," failing to capture the environmental noise, speaker idiosyncrasies, and room acoustics present in real-world recordings. This paper introduces a speech editing framework designed to bridge this gap by inserting synthetic content into real acoustic contexts.
2. Methodology
The core innovation of this work is the shift from whole-sentence generation to targeted text-based speech editing. This process ensures that the majority of the training sample remains authentic, providing a realistic acoustic "anchor" for the synthetic insertion.
2.1 The Speech Editing Pipeline
The workflow consists of five primary stages:
- Alignment: Forced alignment is employed to determine the precise temporal boundaries of words within a real audio recording.
- Masking: The Mel-spectrogram segment corresponding to the target insertion point is removed (masked).
- Contextual Generation: The system utilizes a modified FastSpeech 2 architecture. To ensure the inserted segment matches the original speaker's prosody and environment, the model is enhanced with BERT-style contextual modeling. It analyzes the surrounding real audio to predict a coherent replacement segment.
- Fusion: The newly generated Mel-spectrogram segment is seamlessly stitched back into the original spectrogram.
- Vocoding: Finally, the fused spectrogram is converted into a waveform using HiFiGAN.
Notably, the researchers also explored Aug_edit-feats, a variation where the ASR model is trained directly on the Mel-spectrogram features. This bypasses the vocoder stage entirely, potentially avoiding the introduction of synthetic artifacts that can occur during waveform reconstruction.
3. Experimental Setup
3.1 Datasets
- Code-Switching (CS): The models were evaluated using the ASRU 2019 Mandarin-English challenge data. The training set was simulated using 500 hours of Mandarin and 460 hours of English (LibriSpeech) to mimic a low-resource environment.
- Named Entity Recognition (NER): The primary training corpus was GigaSpeech-M (1,000 hours).
3.2 Evaluation Metrics
For NER, the researchers used two specific test sets: Giga-name-test (in-domain, 1,888 sentences) and NER-name-test (out-of-domain, 150 hours). The latter was specifically designed to test the model's ability to generalize to unseen recording conditions and rare names.
4. Results and Discussion
The speech editing approach demonstrated a clear advantage over both traditional splicing and standard TTS-based augmentation.
4.1 Performance in Code-Switching
On the ASRU 2019 test set, the proposed method achieved a Mixed Error Rate (MER) of 10.5%. This is a significant improvement over the 11.8% baseline and, remarkably, is identical to the performance achieved when the model is trained on actual, real-world code-switched data. This suggests that the editing-based approach successfully captures the nuances of language transitions.
4.2 Performance in NER
The most dramatic gains were observed in out-of-domain NER tasks. On the NER-name-test set, the Recall for names increased from 53.0% (baseline) to 73.8% using the editing-based augmentation. This indicates that the model became significantly more robust at identifying rare entities in diverse acoustic environments.
4.3 The Vocoder Bottleneck
A key finding of the study was that the vocoder can act as a performance bottleneck. The Aug_edit-feats approach often outperformed reconstructed audio, suggesting that ASR models benefit more from the raw, un-vocoded features which may contain fewer synthetic artifacts.
5. Conclusion
By leveraging the acoustic richness of real-world recordings and only editing specific segments, this research provides a powerful tool for addressing the data scarcity problem in ASR. The method effectively handles the complexities of code-switching and rare named entities by maintaining environmental and speaker consistency. Future work will focus on refining the linguistic models used for text template generation and further reducing the computational overhead of the multi-step editing process.
Summary updated