Automatic Text Pronunciation Correlation Generation and Application for Contextual Biasing

Gaofeng Cheng, Haitian Lu, Chengxu Yang, Xuyang Wang, Ta Li, Yonghong Yan

Abstract

Traditional contextual biasing in Automatic Speech Recognition (ASR) relies heavily on manually crafted pronunciation lexicons to distinguish between target keywords and phonetically similar distractors. However, these lexicons are labor-intensive to build and often unavailable for low-resource languages or regional dialects. This paper presents Automatic Text Pronunciation Correlation (ATPC), a data-driven framework that learns phonetic relationships directly from speech and text data. By utilizing self-supervised speech representations and Dynamic Time Warping (DTW), ATPC generates a correlation matrix that enables effective contextual biasing without human linguistic engineering.

Introduction

In modern ASR systems, "contextual biasing" is a critical technique used to improve the recognition of specific terms, such as contact names, technical terminology, or user-defined "hotwords." To perform this effectively, the system must understand the phonetic proximity between different words to avoid false positives. Historically, this has required a pronunciation lexicon—a mapping of text to phonetic units.

While End-to-End (E2E) ASR models have simplified the speech-to-text pipeline, they often operate as "black boxes," lacking explicit phonetic structures that can be easily manipulated for biasing. Furthermore, creating lexicons for the thousands of world languages and their various dialects is a significant bottleneck. ATPC addresses this by automatically discovering pronunciation correlations from raw audio and corresponding transcripts, providing a scalable solution for diverse linguistic contexts.

Methodology

The ATPC generation process is divided into three primary stages designed to extract and compare phonetic signals without prior linguistic knowledge.

1. Text-Speech Alignment (ITSE)

The first step involves determining the precise temporal boundaries of characters within a speech signal. The researchers employ an Iteratively-Trained Timestamp Estimator (ITSE). Unlike traditional forced alignment tools that require a pre-existing lexicon, ITSE is trained to estimate character-level timestamps directly, allowing the system to segment audio into discrete units corresponding to specific text characters.

2. Speech Embedding Extraction

Once segmented, the audio portions are converted into high-dimensional vectors (embeddings) using a self-supervised model, XLSR-53. The researchers identified two critical factors for success in this stage:

  • Layer Selection: Through empirical testing, it was discovered that the 15th layer of the XLSR-53 model serves as a "sweet spot," capturing rich phonetic information while ignoring raw acoustic noise or high-level semantic context.
  • IPA Fine-tuning: By fine-tuning the speech encoder on International Phonetic Alphabet (IPA) targets from the BABEL dataset, the model's ability to distinguish homophones and near-homophones was significantly enhanced.

3. Pronunciation Correlation Calculation

Because different instances of the same character vary in duration, the system uses Dynamic Time Warping (DTW) to calculate the distance between embeddings of varying lengths. By averaging these distances across a large corpus (such as Aishell-2 for Mandarin), the system constructs a massive correlation matrix (e.g., 3711 x 3711 characters) representing the phonetic similarity between every character in the vocabulary.

Experimental Evaluation

The effectiveness of ATPC was evaluated using the Aishell-1 dataset, specifically a subset designed for contextual biasing. The model was compared against a baseline ASR system and a system utilizing a manually crafted lexicon.

Datasets

  • BABEL: Used for multilingual pre-training of the speech representation model.
  • Aishell-2: Used to train the ITSE aligner and generate the Mandarin ATPC matrix.
  • Aishell-1 (Biasing Subset): Used for final evaluation, containing 1,334 development and 235 test sentences with specific hotwords.

Results and Discussion

The implementation of ATPC yielded significant improvements in recognition accuracy and hotword detection:

  • Error Rate Reduction: ATPC reduced the Character Error Rate (CER) from a baseline of 13.8% to 12.0%. When integrated with a context graph (C-g), the CER further dropped to 10.3%.
  • Hotword Precision: The Biased-CER (errors specifically occurring on target hotwords) saw a relative reduction of 22.5%.
  • Detection Performance: The F1-score for hotword recognition nearly doubled, rising from 44 in the baseline to 80 with ATPC.

While a performance gap remains between ATPC and manual lexicons (which achieved an 8.9% CER), the automated method captures the vast majority of the benefit without requiring any manual phonetic transcription. This suggests that ATPC is a viable surrogate for human-engineered lexicons, especially in scenarios where such resources are non-existent.

Conclusion

ATPC provides a robust, data-driven alternative to manual pronunciation lexicons for ASR contextual biasing. By leveraging middle-layer representations of self-supervised models and DTW-based distance metrics, the system can effectively learn phonetic similarities from scratch. Future work will focus on scaling this approach to full words, handling out-of-vocabulary (OOV) terms, and applying the framework to low-resource languages and regional dialects where the lack of lexicons currently hinders ASR performance.

Summary updated

BibTeX
@inproceedings{cheng2025automatic,
  author = {Gaofeng Cheng and Haitian Lu and Chengxu Yang and Xuyang Wang and Ta Li and Yonghong Yan},
  title = {{Automatic Text Pronunciation Correlation Generation and Application for Contextual Biasing}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10888752},
}
Figure