English

Aligning Speech to Languages to Enhance Code-switching Speech Recognition

Audio and Speech Processing 2025-11-04 v3

Abstract

Code-switching (CS) refers to the switching of languages within a speech signal and results in language confusion for automatic speech recognition (ASR). To address language confusion, we propose a language alignment loss (LAL) that aligns acoustic features to pseudo-language labels learned from the ASR decoder during ASR training. This approach enables frame-level language identification without the need for frame-level language annotations. To further tackle the complex token alternatives for language modeling in bilingual scenarios, we propose to employ large language models via a generative error correction method. A linguistic hint, derived from LAL outputs and decoded hypotheses, is introduced to guide the prompting and enhance the LLM-based generative error correction for CS-ASR. The proposed methods are evaluated on the SEAME dataset and data from the ASRU 2019 Mandarin-English code-switching speech recognition challenge. The incorporation of the proposed language alignment loss improves CS-ASR performance for both hybrid CTC/attention and Whisper models on both datasets, with only a negligible increase in the number of parameters. This work also highlights the efficacy of language alignment loss in balancing primary-language-dominant bilingual data during training, with an 8.6% relative improvement on the ASRU dataset compared to the baseline model. Performance evaluation using large language models reveals the advantage of the linguistic hint by achieving 14.1% and 5.5% relative improvement on test sets of the ASRU and SEAME datasets, respectively.

Keywords

Cite

@article{arxiv.2403.05887,
  title  = {Aligning Speech to Languages to Enhance Code-switching Speech Recognition},
  author = {Hexin Liu and Xiangyu Zhang and Haoyang Zhang and Leibny Paola Garcia and Andy W. H. Khong and Eng Siong Chng and Shinji Watanabe},
  journal= {arXiv preprint arXiv:2403.05887},
  year   = {2025}
}

Comments

Accepted to IEEE Trans. Audio Speech Lang. Process., copyright has been transferred to IEEE

R2 v1 2026-06-28T15:14:28.312Z