NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data Augmentation for End-to-end Code-switching Speech Recognition

Chenpeng Du, Hao Li, Yizhou Lu, Lan Wang, Yanmin Qian · DOI

Introduction

Code-switching (CS)—the alternating use of two or more languages within a single conversation—poses a significant challenge for Automatic Speech Recognition (ASR) systems. While end-to-end (E2E) models have advanced significantly, they remain data-hungry. Monolingual datasets are abundant, but high-quality, labeled code-switching data is scarce and expensive to produce. This paper explores three novel data augmentation techniques designed to bridge this gap by synthesizing diverse code-switched training samples from existing monolingual and limited CS resources.

Proposed Augmentation Strategies

The researchers propose three distinct methods to increase the linguistic and acoustic variety of training data: Audio Splicing, Word Translation, and Word Insertion.

1. Audio Splicing

This technique creates new code-switched utterances by "stitching" together segments from existing audio. Using an HMM-GMM acoustic model to determine precise phone-level alignments, the system extracts English segments from one utterance and inserts them into a Mandarin-English utterance from the same speaker. This ensures acoustic consistency while generating novel sentence structures.

2. Text-based Augmentation

To leverage large-scale monolingual Mandarin text, the authors propose two linguistic modification strategies:

  • Word Translation: Monolingual Mandarin sentences are processed via part-of-speech tagging. Specific nouns or verbs are then randomly selected and translated into English using a bilingual dictionary.
  • Word Insertion: English words from a lexicon are randomly inserted into monolingual Mandarin sentences at various positions.
Visual examples of the three proposed augmentation techniques: audio splicing, word translation, and word insertion.

The TTS Synthesis Pipeline

For the text-based methods (Translation and Insertion), the resulting "fake" code-switched text must be converted into audio. The authors utilize a sophisticated Text-to-Speech (TTS) framework based on FastSpeech. To maintain high quality and speaker diversity, they incorporate a Variational Auto-Encoder (VAE) to model speaker characteristics and use HMM-GMM alignments to ensure realistic timing.

The pipeline for generating synthetic code-switching datasets using a TTS model and modified transcripts.

Experimental Setup and Results

The methods were evaluated using the ASRU 2019 Code-Switching ASR Challenge dataset, which includes 200 hours of Mandarin-English CS data and 500 hours of monolingual Mandarin data.

The baseline model (without augmentation) achieved a Word Error Rate (WER) of 13.56%. Each proposed method provided incremental gains:

  • Audio Splicing: 13.02% WER
  • TTS with Word Translation: 12.85% WER

The most significant improvement occurred when all three methods were combined with the industry-standard SpecAugment. This "Grand Slam" approach reduced the WER to 10.29%, representing a 24.0% relative improvement over the baseline.

Conclusion

The study demonstrates that ASR models benefit significantly from linguistic diversity in training data. By synthesizing new ways for languages to "switch," these augmentation techniques allow models to learn complex language-mixing patterns that are often missing from limited datasets. While future work may focus on more natural grammar-based switching rules and improved vocoder quality, these results provide a robust framework for tackling the data scarcity problem in code-switching ASR.

Summary updated

BibTeX
@inproceedings{du2020data,
  author = {Chenpeng Du and Hao Li and Yizhou Lu and Lan Wang and Yanmin Qian},
  title = {{Data Augmentation for End-to-end Code-switching Speech Recognition}},
  booktitle = {SLT},
  year = {2020},
  doi = {10.1109/slt48900.2021.9383620},
}
Figure