Abstract
Code-switching refers to the usage of two languages within a sentence or discourse. It is a global phenomenon among multilingual communities and has emerged as an independent area of research. With the increasing demand for the code-switching automatic speech recognition (ASR) systems, the development of a code-switching speech corpus has become highly desirable. However, for training such systems, very limited code-switched resources are available as yet. In this work, we present our first efforts in building a code-switching ASR system in the Indian context. For that purpose, we have created a Hindi-English code-switching speech database. The database not only contains the speech utterances with code-switching properties but also covers the session and the speaker variations like pronunciation, accent, age, gender, etc. This database can be applied in several speech signal processing applications, such as code-switching ASR, language identification, language modeling, speech synthesis etc. This paper mainly presents an analysis of the statistics of the collected code-switching speech corpus. Later, the performance results for the ASR task have been reported for the created database.
Introduction: The Challenge of Hinglish
In multilingual societies like India, people rarely stick to just one language. Instead, they engage in code-switching: fluidly mixing Hindi and English within a single conversation or even a single sentence. While this is natural for humans, it is a significant challenge for standard Automatic Speech Recognition (ASR) systems.
Most ASR models are trained on monolingual data. When they encounter "Hinglish," they often fail because they lack the acoustic and linguistic context to handle sudden shifts in vocabulary and syntax. The primary bottleneck in solving this has been a lack of data; previous Hinglish datasets were often too small to be effective. Researchers at IIT Guwahati have addressed this by developing a new speech corpus specifically for Hindi-English code-switching.
Methodology
The authors took a structured approach to building a foundational resource for Hinglish ASR:
- Text Collection: They crawled popular Indian blogging sites to gather 13,071 Hinglish sentences. This text was normalized to serve as the basis for both language modeling and speech prompts.
- Speech Recording: They recruited 71 speakers from 21 different Indian states to ensure geographical and accent diversity. Recordings were conducted over mobile phones (8 kHz sampling) to simulate real-world telephony conditions. Each speaker recorded 100 unique sentences across five different sessions to capture variations in emotion and environment.
- Lexicon Development: A critical step was creating a "unified phone list." Since Hinglish involves unique phonetic blends, the researchers manually performed phone-level transcriptions for the entire vocabulary to account for non-native pronunciation variations.
- Baseline Modeling: To validate the dataset, they built ASR systems using the Kaldi toolkit, testing various architectures from simple Monophone models to sophisticated Deep Neural Networks (DNNs).
Dataset Characteristics
The resulting Hindi-English Code-Switching Speech Corpus provides a moderate-sized, structured dataset for training and evaluation. It includes 7,005 utterances, averaging approximately 50 minutes of audio per speaker. The text data is substantial, providing a rich vocabulary for language modeling.
The corpus covers 71 individuals (44 male, 27 female) aged 20–64, representing North, South, East, and West India. This diversity is crucial for creating robust ASR systems that can handle the wide variety of Indian accents.
Linguistic Insights: Categorizing Code-Switching
The authors distinguish between two primary forms of code-switching: Inter-sentential (switching at sentence boundaries) and Intra-sentential (switching within a sentence).
Intra-sentential switching is further categorized into two types:
- Type-1: Involves phrases (e.g., "current account balance"), which provide some contextual clues.
- Type-2: Involves isolated words embedded in the native language (e.g., "class और object के बीच relationship क्या है").
The researchers found that Type-2 is the most common form of switching but also the hardest for models to predict because the contextual information is virtually non-existent. Furthermore, the paper highlights that in India, English is often filtered through the speaker's native language phonology, requiring a lexicon that understands specific Hindi-influenced pronunciations.
Performance Results
The researchers evaluated the corpus using Word Error Rate (WER), where a lower percentage indicates better performance. The results demonstrate the difficulty of the task and the improvement offered by advanced modeling:
- Monolingual Baseline: A basic monophone model struggled significantly with a 53.51% WER.
- Triphone Models: Adding context-dependent features (LDA and SAT) brought the error rate down to 27.20%.
- DNN-based Model: The Deep Neural Network acoustic model paired with a 3-gram language model achieved the best performance with a 25.40% WER.
While 25.4% is higher than modern English-only ASR benchmarks, it represents a significant step forward for the complex, low-resource domain of code-switched speech.
Conclusion and Future Work
This corpus provides a vital starting point for Hinglish ASR. Future work will likely focus on scaling the dataset to reach the "Big Data" levels required for state-of-the-art Transformer models and expanding the domain to include more spontaneous, conversational speech from social media and call centers. Moving toward end-to-end deep learning architectures may also help systems handle the linguistic "blur" of code-switching more elegantly.
Summary updated