Manuscript Offprint
arXiv:2610.30860Synthetic-to-Real Code-Switched ASR: A Spontaneous Nepali-English Podcast Benchmark
Abstract
Nepali–English code-switched conversational speech presents severe challenges for automatic speech recognition (ASR), chiefly through script confusion (inappropriate mixing of Devanagari and Latin orthography) and elevated error rates at language switch points. Supervised fine-tuning (SFT) can adapt multilingual foundation models, but human code-switched audio is expensive to collect and annotate. We curate a new benchmark of 13,044 spontaneous podcast utterances (15.45 h total; 10,214 test, 2,830 dev), audited and verified to eliminate machine translation leakages and acoustic loops. We investigate a two-stage synthetic-to-real adaptation framework: Stage 1 applies SFT on 0.95 h of speech synthesized via a multi-speaker, dual-engine TTS pipeline; Stage 2 explores Group Relative Policy Optimization (GRPO) with transcription and script rewards. We find that synthetic SFT provides the primary cross-domain transfer to spontaneous human speech, reducing Mixed Error Rate (MER) from 23.40% to 21.52% (−1.88 pp) and switch-point error rate (SPER) from 35.89% to 28.77% (−7.12 pp). Subsequent GRPO yields small, statistically significant adjustments on 173 test utterances (1.69%), driving English script confusion (SCR ) from 6.45% to 6.36% ( ) and SPER to 28.70% ( clustered). Crucially, ablation reveals that in this SFT-converged encoder–decoder setting, an auxiliary script reward term yields performance identical to MER-only optimization because rollout candidate groups exhibit near-zero script variance on synthetic data. On monolingual benchmarks, SFT improves Nepali MER by 2.71 pp (stabilizing at 18.42% after GRPO, a 2.38 pp gain over baseline) while preserving English lexical WER (3.38% vs. 3.33%). Verified transcripts, timestamps, episode metadata, and reconstruction scripts are publicly released.
1 Introduction
Code-switching, the alternation between two or more languages within a single conversational turn, is ubiquitous across South Asia. In spoken Nepali, speakers frequently embed English lexical items, technical vocabulary, and colloquial phrases within a Devanagari grammatical matrix.
Despite the recent scaling of multilingual speech foundation models [1, 2], code-switched ASR systems consistently suffer from two structural error modes: (1) script confusion, transcribing English loanwords into Devanagari phonetics (e.g., rendering English “doctor” phonetically in Devanagari) or erroneously transliterating native Nepali words into Latin characters; and (2) switch-point brittleness, where acoustic and prosodic shifts at language boundaries cause elevated insertion, substitution, and deletion rates immediately surrounding switch points.
Traditional approaches attempt to resolve script confusion through auxiliary token-level language identification or diarization heads [3]. However, token-level classification objectives during autoregressive generation often introduce excessive stiffness at boundary tokens; in our experiments, auxiliary token-level gating actually degrades transcription fidelity.
Meanwhile, sequence-level policy optimization such as Group Relative Policy Optimization (GRPO) [4] has recently emerged as an effective framework for speech alignment [5]. Kumar et al. [6] demonstrated that GRPO on synthetic speech reduces insertion errors for decoder-only speech LLMs on domain speech. Ye and Vickers [7] showed that GRPO with a joint error-rate and script-fidelity reward reduces cross-script contamination on synthetic audio and transfers zero-shot to a human-recorded code-switching corpus across ten language pairs. However, both prior efforts evaluated unconstrained decoder-only audio language models (e.g., Qwen2-Audio). Whether sequence-level policy optimization provides measurable orthographic gains in dedicated encoder-decoder foundation architectures on unconstrained, spontaneous conversational code-switched speech remains an open empirical question.
In this work, our contributions are threefold: (1) synthetic-to-real transfer, demonstrating that a dedicated FastConformer encoder-decoder model fine-tuned exclusively on 0.95 h of synthetic code-switched audio effectively transfers zero-shot to unconstrained human conversational speech; (2) empirical analysis of GRPO and script rewards, formulating sequence-level RL objectives and showing that GRPO yields small, statistically significant adjustments on 173 test utterances (−0.07 pp SPER, −0.09 pp SCR ) while the script reward term contributes no measurable gain over MER-only optimization on an SFT-converged model; and (3) open benchmark and systematic evaluation, releasing 15.45 h (13,044 utterances; 10,214 test, 2,830 dev) of verified Nepali–English podcast transcripts, timestamps, and alignment code on Hugging Face, validating all experimental claims with paired bootstrap confidence intervals (1,000 resamples), episode-clustered analysis, and monolingual retention checks.
Language identification and token gating. Prior work addressed script ambiguity by attaching auxiliary frame- or token-level language identification heads [3]. While effective on
S0 Zero-shot base S1 Synthetic SFT S4 GRPO (joint reward)
(a) Macro transcription error

(b) Code-switch fidelity
Figure 1: Primary benchmark results on the 10,214-utterance Frozen Real Test Split. (a) Macro transcription error rates (MER, WER, CER). (b) Code-switch and script fidelity metrics (SPER, English script confusion , and overall SCR). The -7.19 pp SPER bracket denotes total pipeline reduction vs. baseline (p < 0.05), with synthetic SFT providing primary transfer (-7.12 pp) and GRPO ( ) yielding small, statistically significant adjustments on 173 test utterances (-0.07 pp SPER, p = 0.022).
scripted speech, hard token-level constraints can restrict autoregressive beam search when phonetic boundaries are ambiguous, occasionally forcing premature orthographic commitments that degrade conversational recognition.
Reinforcement learning in speech. Policy-gradient and minimum word error rate (MWER) training have an extensive history in ASR [10]. GRPO [4,5] eliminates the need for a separate critic network by estimating advantages from sampled candidate groups. Furthermore, training speech recognition models on synthetic acoustic data has proven effective for low-resource domains [6,11,12]. Ye and Vickers [7] demonstrated that script-aware rewards curb script confusion in audio LLMs. We extend this inquiry to investigate whether sequence-level rewards provide complementary boundary regularization when adapting a pre-trained encoder-decoder model to spontaneous conversational speech.
3 Dataset Construction
3.1 Synthetic Training Corpus
To eliminate the requirement for expensive human recordings during training, we synthesized a controlled code-switched corpus. Sentences containing natural intra-sentential Nepali–English code-switching were generated by prompting Gemini 3.8 Flash with conversational templates reflecting modern urban discourse. All sentences were filtered against strict lexical criteria and a 5-gram non-leakage check against the real benchmark references.
Audio was synthesized utilizing two complementary acoustic engines: (1) OmniVoice [13], an open-source diffusion acoustic model fine-tuned on 100+ hours of native Nepali speech rendered across two distinct male timbres, capturing authentic Devanagari phonology and colloquial cadence; and (2) Gemini TTS, multi-speaker neural synthesis (gemini-3.8-flash-tts) providing diverse English accentuation across four distinct vocal timbres. Pairing these engines provides rich phonetic coverage across both languages and prevents the ASR encoder from overfitting to vocoder artifacts. Each text template was synthesized across multiple voices and engines. Audio was sampled at 16 kHz mono, augmented with telephony bandpass filtering (300–3400 Hz) and 10–30 dB SNR noise, and screened through an independent round-trip filter (whisper-large-v3-turbo in Devanagari-only scope, CER ≤ 0.20). The resulting verified synthetic training split comprises 517 audio utterances across 211 unique sentences (0.95 h total duration).
3.2 Real Spontaneous Benchmark
To rigorously assess generalization, we curated a spontaneous conversational benchmark from long-form public Nepali podcasts across 28 diverse episodes. Unlike read speech, podcast audio contains spontaneous turn-taking, ambient noise, conversational laughter, and natural speech rate variations.
Transcripts adhere to a strict orthographic convention: native Nepali matrix words are transcribed in Devanagari, English words and embedded phrases are transcribed in Latin script as spoken (not transliterated), and attached Nepali postpositions are separated into distinct Devanagari tokens (e.g., Latin root “phone” followed by separated Devanagari postposition “-ma”, rather than fused into a single compound).
Dataset verification protocol. Initial candidate transcriptions were generated via an automated acoustic pipeline using gemini-3.5-transcribe with word-level timestamps and speaker diarization, followed by loanword orthographic normalization via gemini-3.8-flash. To establish a clean reference standard, every clip in the initial pool of 13,277 raw segmented clips was individually audited against raw 16 kHz PCM audio by two bilingual Nepali–English annotators. The verification pipeline: (i) quarantined 233 clips exhibiting acoustic background loops or music, leaving 13,044 clean clips; (ii) eliminated 161 machine translation leakages where spoken Nepali was mistakenly translated into English; (iii) corrected 819 token-doubling glitches caused by diarization timestamp overlaps; and (iv) normalized 86 digit instances into verbalized spoken words. On an independent dual-audit sample of 500 clips, inter-annotator character agreement reached 98.4%. The remaining 13,044 clean clips constitute the verified benchmark.
Data statement and ethics. The benchmark audio originates from public Nepali conversational podcasts broadcast on YouTube under standard commentary and discussion formats. Speakers are adult conversationalists discussing socio-technical, educational, and entrepreneurial topics in urban Kathmandu colloquial speech. The corpus is partitioned into: (i) Real Dev Split (2,830 utterances, 3.55 h, 16 episodes, 20 speakers); and (ii) Frozen Real Test Split (10,214 utterances, 11.90 h, 25 episodes, 52 speakers). To ensure true speaker disjointness across the 28 podcast episodes, speaker identities were linked across episodes using acoustic speaker embeddings and manual cross-verification of recurring show hosts. Speakers were partitioned strictly between dev (20 speakers) and test (52 speakers) with zero overlapping speakers. In the 13 episodes shared across splits, conversational turns were partitioned by speaker role: recurring podcast hosts were assigned exclusively to dev (20 speakers, averaging 2.65 switch points per utterance), while invited guest conversationalists were assigned exclusively to test (52 speakers, averaging 2.11 switch points per utterance). Consequently, while acoustic speaker identities remain strictly disjoint, dev exhibits a higher conversational code-switching density (2.65 vs. 2.11 switch points/utt) reflecting host interviewing style. Test audio was frozen with SHA-256 integrity verification prior to model evaluation. Verified transcripts, segment timestamps, pseudonymous speaker labels, YouTube video identifiers, and reproducible alignment scripts are published on Hugging Face under CC BY-NC-SA 4.0 at https://huggingface.co/datasets/SamaFiroz/nepali-english-codeswitch-podcasts. Content creators or speakers who prefer not to have their audio indexed may contact firoj.paudel@wiseyak.com for prompt clip removal.
4 Methodology
4.1 Base Architecture and Adaptation
We adopt indic-transcribe-flex [2], a 1.22-billion parameter multilingual model built on the Canary-1B-v2 architecture comprising a frozen FastConformer acoustic encoder (32 Conformer blocks with 8 attention heads, , ) and an autoregressive Transformer decoder (24 layers with 8 attention heads, , ) with a 7,152-token SentencePiece aggregate vocabulary. Given an acoustic feature sequence X, the encoder produces representations . During adaptation, all acoustic encoder parameters remain completely frozen, preserving the pre-trained multilingual acoustic representations. We fine-tune the entire autoregressive Transformer decoder across all 24 layers along with the output projection head (transf_decoder and log_softmax), updating 410,455,024 trainable parameters (410.46M, representing exactly 33.60% of the 1,221,439,472 base parameters). This adaptation strategy isolates bilingual language modeling and script-routing adaptation entirely within the generative decoder while avoiding acoustic degradation.
4.2 Evaluation Metrics
Code-switched evaluation requires decoupled assessment of lexical accuracy, orthographic consistency, and boundary stability:
Mixed Error Rate (MER). Evaluates Word Error Rate (WER) on Latin-script segments and Character Error Rate (CER) on Devanagari segments: , where is the word edit distance over English segments, is the character edit distance over Devanagari segments, and N denotes reference token count. This hybrid formulation reflects the linguistic reality that English is written with explicit word-boundary spacing where whole-word recognition governs intelligibility, whereas Nepali is a morphologically rich, agglutinative Indo-Aryan language where inflectional postpositions and compound verb morphology make character-level edits a more perceptually and grammatically faithful measure of recognition fidelity.
Script Confusion Rate (SCR). Computed over word-level Levenshtein alignments between hypothesis and reference token sequences (Appendix C). Let denote the set of aligned word pairs mapped under substitution operations where both reference and hypothesis tokens possess unambiguous single-script identities, i.e., . Then , where eligible count is the total number of single-script reference words in . restricts the numerator and denominator strictly to Latin-script reference words, measuring English terms erroneously transcribed into Devanagari characters. Crucially, tokens exhibiting mixed scripts (such as hybrid roots with Latin morphemes or unseparated compounds like model or phone ) evaluate to Script.MIXED and are excluded from the confusable set; furthermore, word deletions and insertions are penalized under MER but contribute zero to the substitution-based SCR numerator and denominator.
Switch-Point Error Rate (SPER). The MER computed strictly over reference tokens within a local context window of tokens around language switch points.
4.3 Stage 1: Supervised Fine-Tuning (SFT)
In Stage 1, the model is adapted on synthetic pairs using cross-entropy loss over target token sequences: , optimized with AdamW (lr = , effective batch size 8, 1,000 steps).
4.4 Baseline: Token-Level Script Gating ( )
As an architectural comparison, an auxiliary script classification head is attached atop the decoder hidden states : , where denotes Devanagari versus Latin script. Training minimizes with . At inference, logits for candidate tokens matching the predicted script are biased by , applied when ).
4.5 Stage 2: Sequence-Level Policy Optimization (GRPO)
While SFT aligns the decoder with code-switched acoustics, cross-entropy penalizes errors at the individual token level without evaluating candidate sequence alternatives. To incentivize sequence-level accuracy and boundary fidelity, we implement Group Relative Policy Optimization (GRPO) [4, 5] trained on the 517 synthetic utterances.
For each acoustic sequence , the policy samples a group of candidate transcriptions at temperature . A scalar reward is computed against ground truth . Group advantages are normalized: , where and are the mean and standard deviation of rewards within the sampled group ( ). The GRPO objective maximizes:
(1)
where denotes the per-token importance sampling ratio at step . Here, represents the active autoregressive decoder policy parameterized by weights , and is the rollout snapshot. Initializing directly from Stage 1 SFT, we set , relying on group advantage normalization and PPO clipping ( ) without reference policy penalty. Training runs for 500 total steps using AdamW with peak learning rate (cosine decay, 10-step warmup) over 4 prompt groups per batch ( , 32 rollouts/update).
Table 1: Performance on Frozen Real Test (10,214 utterances, 11.90 h). All metrics in percentage (%).
| System | MER | WER | CER | SPER | ||
|---|---|---|---|---|---|---|
| Base | 23.40 | 35.65 | 20.65 | 35.89 | 6.70 | 4.09 |
| SFT | 21.52 | 32.16 | 19.11 | 28.77 | 6.45 | 3.85 |
| GRPO | 21.49 | 32.13 | 19.08 | 28.70 | 6.36 | 3.83 |
Reward formulation. Our joint reward combines sequence accuracy with orthographic fidelity: with ( for MER-only ablation ).
5 Experiments and Results
5.1 Primary Benchmark Evaluation
Table 1 and Figure 1 present performance on the 10,214-utterance frozen real test split. Synthetic SFT () yields an immediate absolute drop of 1.88 pp in MER and 7.12 pp in switch-point error rate (SPER) over the unadapted zero-shot baseline (). Initializing from , GRPO with joint reward () achieves modest fine-grained improvements across evaluated dimensions, reaching 21.49% MER, 28.70% SPER, and 6.36% English script confusion ().
5.2 Statistical Significance
To assess whether improvements are statistically reliable, we executed paired bootstrap hypothesis tests with 1,000 resamples (, seed 42) on the frozen test split. Comparing vs. , our adapted pipeline achieves an absolute MER reduction of -1.90 pp (95% CI: [-2.37, -1.42]), a SPER reduction of -7.19 pp (95% CI: [-7.97, -6.46]), and an English script confusion reduction of -0.35 pp (95% CI: [-0.65, -0.04]), with all intervals strictly excluding zero ( for MER and SPER, for ).
Comparing vs. , sequence-level policy optimization yields modest but statistically significant gains in boundary fidelity ( pp, 95% CI: [-0.12, -0.03], ) and English script confusion ( pp, 95% CI: [-0.13, -0.06], ), with a mean MER difference of -0.03 pp (95% CI: [-0.05, -0.01], ). Exactly 173 of 10,214 test utterances (1.69%) differ between and ; the remaining 10,041 are identical. An episode-clustered block bootstrap ( clusters across 25 episodes) confirms robustness: pp (95% CI: [-0.15, -0.01], ) and pp (95% CI: [-0.11, -0.06], ). The 173 diffs span 20 episodes (at most 25 per episode), ruling out single-speaker artifacts.
5.3 Ablation Study: Gating vs. Policy RL
Ablation on dev (2,830 utterances; Table 2) shows that adding an auxiliary token-level script gate () degrades performance relative to standard SFT (), increasing MER from 18.92% to 19.14% and from 5.35% to 5.75%. Greedy logit biasing forces premature script assignment at loanword prefixes, penalizing valid Devanagari assimilations.
In contrast, GRPO directly optimizes candidate probability mass. Comparing () against (), both attain identical performance (18.89% MER, 25.53% SPER, 5.24% ) and select the identical optimal checkpoint at step 50 (the earliest evaluation checkpoint, after which synthetic dev MER plateaus at 2.00% tied with SFT through step 150 and marginally drifts to 2.20%–2.32% through step 500 as
Table 2: Objective ablation on Real Dev (2,830 utterances). All metrics in percentage (%).
| System | MER | WER | SPER | |
|---|---|---|---|---|
| Base | 20.14 | 32.23 | 32.63 | 5.83 |
| SFT | 18.92 | 29.11 | 25.60 | 5.35 |
| SFT + Gate | 19.14 | 29.35 | 25.75 | 5.75 |
| GRPO (MER-only) | 18.89 | 29.08 | 25.53 | 5.24 |
| GRPO (Joint) | 18.89 | 29.08 | 25.53 | 5.24 |
| GRPO + Gate | 19.12 | 29.32 | 25.70 | 5.72 |
policy updates exhaust synthetic signal). Because SFT already reaches 0.0200 MER on synthetic prompts, rollout groups exhibit near-zero script variance (> 75% of mini-batches had zero within-group script variance). Thus, while script rewards prevent unconstrained hallucination in generative audio LLMs [7], in an SFT-converged encoder–decoder setting sequence exploration is dominated by the primary transcription loss.
5.4 Monolingual Retention
Code-switched adaptation risks catastrophic forgetting of monolingual capabilities. We benchmarked , , and on external corpora (Table 3):
Table 3: Monolingual retention evaluation on external benchmarks. All metrics in percentage (%).
| Corpus | System | MER | WER | CER | SCR |
|---|---|---|---|---|---|
| Nepali (BHASAANUVAD) (1,000 utt, 1.95 h) | Base | 20.80 | 30.73 | 22.52 | 8.71 |
| SFT | 18.09 | 29.06 | 19.22 | 6.95 | |
| GRPO | 18.42 | 29.52 | 19.56 | 6.95 | |
| English (LibriSpeech) (1,000 utt, 1.50 h) | Base | 4.21 | 3.33 | 1.59 | 0.59 |
| SFT | 5.38 | 3.42 | 1.49 | 1.07 | |
| GRPO | 5.27 | 3.38 | 1.47 | 1.03 |
Nepali (BHASAANUVAD, 1,000 utterances, 1.95 h). Synthetic SFT drops MER from 20.80% to 18.09% ( pp), stabilizing under at 18.42% (-2.38 pp vs. ). SFT suppresses spurious Latin character insertions in native Devanagari text (reducing SCR from 8.71% to 6.95%). GRPO incurs a minor 0.33 pp regression vs. , retaining a solid 2.38 pp net gain over baseline.
English (LibriSpeech test-clean [14], 1,000 utterances, 1.50 h). Lexical accuracy is statistically preserved: WER shifts from 3.33% () to 3.42% () and recovers to 3.38% under (95% CI: [-0.17, +0.30], ). MER increases from 4.21% to 5.27% and SCR from 0.59% to 1.03%, reflecting occasional Devanagari insertions on pure English speech induced by code-switched prior adaptation. S1 and S4 exhibit identical profiles, confirming trade-offs stem from SFT rather than GRPO.
5.5 Qualitative Analysis and Error Inspection
On the 173 utterances where and diverge, GRPO selectively rectifies switch-point script assignments with minimal alterations elsewhere. For example, in utterance -IE5q6_CMnU_0189, compounds the English brand name into the Devanagari postposition (台台の model), whereas cleanly separates the Latin brand from the Nepali postposition (tata ち model). In utterance -IE5q6_CMnU_0244, produces a phonetic Devanagari substitution ( were running); restores Latin script orthography (they were running). Detailed qualitative diffs across operational regimes are analyzed in Appendix D and Table 7.
6 Limitations
While synthetic SFT with GRPO yields statistically reliable gains, several limitations should be noted:
-
Modest RL gains: While prior work reported large relative gains (> 40%) with decoder-only speech LLMs [6], post-SFT GRPO gains on spontaneous speech are modest (-0.07 pp SPER, -0.09 pp SCR ). In encoder-decoder architectures, we hypothesize that the frozen Conformer encoder already provides rigid acoustic grounding, and rollout candidate groups exhibit near-zero script variance on synthetic prompts. Furthermore, without an extended SFT compute control, the marginal gain cannot be separated with certainty from extra gradient steps.
-
Synthetic training volume: Training relies on 517 synthetic utterances (0.95 h) across two male timbres, with the acoustic encoder frozen throughout adaptation.
-
Reference annotation bias: Draft transcripts were seeded using automated foundation models (gemini-3.5-transcribe with gemini-3.8-flash normalization); despite dual-annotator verification (98.4% character agreement on a 500-clip audit), corrected references may retain slight residual bias.
-
Monolingual orthographic side-effects: MER and SCR slightly increase on monolingual English despite preserved WER.
-
Conversational role asymmetry across splits: Partitioning the 13 shared episodes by speaker role assigned recurring hosts to dev (20 speakers, 2.65 switch points/utt) and invited guests to test (52 speakers, 2.11 switch points/utt). While speaker disjointness is strictly maintained, the higher switch-point density in dev reflects host interviewing style.
-
External baselines and multi-seed variance: While significance is verified with clustered block bootstrapping, evaluating multi-seed training variance and benchmarking external foundation models (e.g., Whisper) remain valuable future work.
7 Conclusion
We presented an empirical benchmark and analysis of synthetic-to-real adaptation for Nepali–English code-switched ASR. Supervised fine-tuning on purely synthetic speech provides the primary cross-domain transfer to spontaneous conversational speech (−1.88 pp MER, −7.12 pp SPER). Sequence-level GRPO yields small, statistically significant adjustments on 173 test utterances (−0.07 pp SPER, p = 0.022; −0.09 pp SCR , p ≤ 0.001) without degrading English lexical accuracy (WER preserved at 3.38% vs. 3.33%), while improving native Nepali MER by 2.38 pp. Crucially, ablation reveals that script-aware rewards provide no measurable advantage over MER-only optimization in this SFT-converged encoder–decoder setting.
Code and configurations are available at https://github.com/Firoj-Wise/nepali-english-codeswitch-asr. Transcripts, timestamps, and reconstruction scripts for the benchmark (13,044 utterances, 15.45 h) are on Hugging Face at https://huggingface.co/datasets/SamaFiroz/nepali-english-codeswitch-podcasts.
References
[1] Monica Sekoyan, Nithin Rao Koluguri, Nune Tadevosyan, Piotr Zelasko, Travis Bartley, Nick Karpov, Jagadeesh Balam, and Boris Ginsburg. Canary-1b-v2 & parakeet-tdt-0.6b-v3: Efficient and high-performance models for multilingual asr and ast. arXiv preprint arXiv:2509.14128, 2025.
[2] Bodhan AI. IndicTranscribeFlex: Multilingual indic foundation speech model. https://huggingface.co/bodhan-ai/indic-transcribe-flex, 2026.
[3] Hexin Liu, Haihua Xu, Paola Garcia, Andy W. H. Khong, Yi He, and Sanjeev Khudanpur. Reducing language confusion for code-switching speech recognition with token-level language diarization. In Proc. ICASSP, pages 1–5, 2023.
[4] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
[5] Prashanth Gurunath Shivakumar, Yile Gu, Ankur Gandhe, and Ivan Bulyko. Group relative policy optimization for speech recognition. arXiv preprint arXiv:2509.01939, 2025.
[6] Shashi Kumar, Yanis Labrak, Hasindri Watawana, Sergio Burdisso, Esaú Villatoro-Tello, Kadri Hacioğlu, Petr Motliček, and Andreas Stolcke. When synthetic speech is all you have: Better call GRPO. arXiv preprint arXiv:2607.08409, 2026.
[7] Ziwei Ye and Peter Vickers. Reinforcement learning for data-efficient code-switched ASR. In Proc. Interspeech, 2026.
[8] Anuj Diwan et al. MUCS 2021: Multilingual and code-switching ASR challenges for low resource indian languages. In Proc. Interspeech, pages 2446–2450, 2021.
[9] Amir Hussein, Shammur Absar Chowdhury, Najim Dehak, and Ahmed Ali. Balanced end-to-end monolingual pre-training for low-resourced indic languages code-switching speech recognition. arXiv preprint arXiv:2106.05885, 2021.
[10] Rohit Prabhavalkar, Tara N. Sainath, Yonghui Wu, Patrick Nguyen, Zhifeng Chen, Chung-Cheng Chiu, and Anjuli Kannan. Minimum word error rate training for attention-based sequence-to-sequence models. In Proc. ICASSP, pages 4839–4843, 2018.
[11] Nick Rossenbach, Albert Zeyer, Ralf Schlüter, and Hermann Ney. Generating synthetic audio data for attention-based speech recognition systems. In Proc. ICASSP, pages 7069–7073, 2020.
[12] Amin Fazel, Wei Yang, Yulan Liu, Roberto Barra-Chicote, Yixiong Meng, Roland Maas, and Jasha Droppo. SynthASR: Unlocking synthetic data for speech recognition. In Proc. Interspeech, pages 896–900, 2021.
[13] Han Zhu, Lingxuan Ye, Wei Kang, Zengwei Yao, Liyong Guo, Fangjun Kuang, Zhifeng Han, Weiji Zhuang, Long Lin, and Daniel Povey. OmniVoice: Towards omnilingual zero-shot text-to-speech with diffusion language models. arXiv preprint arXiv:2604.00688, 2026.
[14] Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. LibriSpeech: An ASR corpus based on public domain audio books. In Proc. ICASSP, pages 5206–5210, 2015.
A Benchmark Corpus Characteristics
The Nepali–English conversational podcast benchmark was constructed from public long-form podcast recordings broadcast on YouTube. All episodes feature natural, unscripted dialogues among native Nepali speakers discussing contemporary topics spanning technology, entrepreneurship, public health, higher education, and socio-political developments.
Table 4: Comprehensive breakdown of the curated Nepali–English code-switched conversational benchmark across development, evaluation, and quarantined subsets.
| Corpus Partition | Utterances | Duration (h) | Episodes | Speakers | Nepali Words | English Words | Total Words | Switch Points |
|---|---|---|---|---|---|---|---|---|
| Raw Scraped Pool | 13,277 | 15.74 | 28 | 72 | — | — | — | — |
| Quarantined (Audio/Music) | 233 | 0.29 | — | — | — | — | — | — |
| Verified Clean Total | 13,044 | 15.45 | 28 | 72 | 123,174 (67.3%) | 59,839 (32.7%) | 183,013 | 29,033 |
| Real Dev Split | 2,830 | 3.55 | 16 | 20 | 28,041 (66.5%) | 14,121 (33.5%) | 42,162 | 7,504 |
| Frozen Real Test Split | 10,214 | 11.90 | 25 | 52 | 95,133 (67.5%) | 45,718 (32.5%) | 140,851 | 21,529 |
Audio segmentation and acoustic properties. Raw podcast episodes were preprocessed by stripping silence periods exceeding 0.8 s and segmenting continuous speech into utterance clips between 1.0 s and 15.0 s. Mean utterance duration is 4.51 s in the development split (standard deviation: 2.18 s) and 4.19 s in the test split (standard deviation: 2.04 s). The audio exhibits natural acoustic variability, including close-proximity studio microphones, ambient room reverberation, cross-speaker laughter, and spontaneous conversational overlaps.
Speaker partitioning and episode distribution. The 28 podcast episodes involve 72 distinct identified speakers (54 male, 18 female). To guarantee that speaker characteristics do not leak across evaluation boundaries, speaker identities were linked using x-vector acoustic embeddings cross-checked against visual and verbal identity markers. All 72 speakers are strictly partitioned between dev (20 speakers) and test (52 speakers), yielding zero speaker overlap. Because certain recurring hosts appear across multiple episodes, 13 episodes were partitioned between dev and test by assigning host turns to dev and guest turns to test, ensuring complete acoustic disjointness while preserving topical diversity.
Auditing and verification protocol. Initial candidate transcriptions were generated using gemini-3.5-transcribe with word-level timestamps and speaker diarization, followed by English loanword orthographic normalization via gemini-3.8-flash. Every utterance in the candidate pool was then manually audited against 16 kHz PCM audio by two bilingual annotators:
-
Acoustic loop and music quarantine: 233 clips containing musical introductions, synthesizer jingles, or looped background tracks were isolated and removed from the benchmark.
-
Translation leakage removal: 161 instances where an automated system had translated spoken Nepali into English rather than transcribing verbatim Devanagari were corrected.
-
Timestamp overlap correction: 819 boundary errors resulting from diarization timestamp collisions were realigned.
-
Spoken digit normalization: 86 numeric digits (e.g., “2024”) were normalized to their verbalized Nepali or English spoken forms.
Inter-annotator agreement on an independent 500-clip sample reached 98.4% character-level concordance.

Figure 2: Paired bootstrap 95% confidence intervals ( resamples) comparing against unadapted baseline (left) and synthetic SFT (right) on the Frozen Real Test Split. Both utterance-level and episode-clustered block intervals are displayed. Negative values indicate error reductions (improvements).
B Model Architecture and Adaptation Hyperparameters
All experiments build upon indic-transcribe-flex, a 1.22-billion parameter multilingual foundation model derived from the Canary-1B-v2 architecture. The model comprises a FastConformer acoustic encoder (32 Conformer blocks with 8 attention heads, , ) and an autoregressive Transformer decoder (24 layers with 8 attention heads, , ) with a 7,152-token SentencePiece vocabulary.
Table 5: Training configurations and hyperparameters for Stage 1 Supervised Fine-Tuning (SFT) and Stage 2 Group Relative Policy Optimization (GRPO).
| Configuration / Hyperparameter | Stage 1: SFT | Stage 2: GRPO |
|---|---|---|
| Model Architecture & Adaptation Strategy | ||
| Base Architecture | IndicTranscribeFlex (Canary-1B-v2, 1.22B parameters, FastConformer) | |
| Acoustic Encoder | Frozen (32 Conformer blocks, 8 attention heads, ) | |
| Trainable Parameters | 410.46M (33.60% of 1.22B base model: 24-layer Transformer decoder + head) | |
| Adapted Modules | transf_decoder.* (all 24 layers) and log_softmax.* projection head | |
| Optimization & Training Schedule | ||
| Optimizer & Weight Decay | AdamW (, , , weight decay = 0.01) | |
| Peak Learning Rate | ||
| Learning Rate Schedule | Linear warmup (100 steps) + cosine decay | Linear warmup (10 steps) + cosine decay |
| Total Training Steps | 1,000 steps | 500 steps (evaluated every 50 steps, best at step 50) |
| Effective Batch Size | 8 audio utterances | 4 prompt groups (, 32 candidate rollouts) |
| GRPO Policy Specification & Rewards | ||
| Rollout Generation (, ) | N/A | rollouts per prompt, temperature |
| Advantage Estimation | N/A | Group-normalized: |
| PPO Clipping & KL Regularization | N/A | Clipping parameter , KL weight |
| Reward Formulation | N/A | |
| Script Reward Weight () | N/A | |
| Hardware Environment & Wall-Clock Compute | ||
| Hardware Environment | ||
| Numerical Precision | FP16 mixed precision | |
| Training Wall-Clock Time | ~4 minutes (3m 52s logged) | ~17 minutes (16m 51s logged) |
Initialization and parameter freezing. During both stages, all acoustic encoder parameters remain frozen. Adaptation updates all 24 layers of the autoregressive Transformer decoder and the final projection head (transf_decoder and log_softmax, totaling 410,455,024 trainable parameters, or 33.60% of 1.22B). Stage 2 GRPO initializes directly from the converged Stage 1 checkpoint at step 1,000. Checkpoints were evaluated on the held-out synthetic dev split every 50 steps over 500 total steps: synthetic dev MER was 2.00% at steps 50, 100, and 150 (tied with the SFT baseline, with step 50 selected under early stopping as the earliest tied checkpoint), followed by a minor drift (2.20%–2.32% across steps 200–500) as policy updates saturate synthetic diversity.
C Algorithmic Specification for Script Confusion Rate
Table 6 details the deterministic formulation used to evaluate orthographic fidelity. Levenshtein alignment between hypothesis and reference word sequences with deterministic tie-breaking isolates substitutions between Devanagari and Latin alphabets. Two explicit boundary rules apply: (1) Mixed-script tokens (Script.MIXED) and non-alphabet characters are excluded from substitution confusion counts (, ) and single-script denominators (, ); (2) Deletions and insertions are penalized under MER but contribute zero confusion to SCR because no substitution alignment occurred.
Table 6: Algorithmic specification for Script Confusion Rate (SCR) alignment and computation.
| Algorithm: Deterministic Script Confusion Rate (SCR) Calculation | ||
|---|---|---|
| Input: Reference sequence , Hypothesis sequence | ||
| Output: Overall Script Confusion Rate , English Script Confusion Rate | ||
| 1: Tokenize sequences into whitespace-delimited word tokens: , | ||
| 2: Assign script labels: , where | ||
| 3: Compute Levenshtein distance alignment matrix using unit edit cost () | ||
| Deterministic backtrace tie-breaking: (diagonal match/substitution) deletion insertion | ||
| 4: Initialize confusion accumulators: , | ||
| 5: for each aligned word pair associated with edit operation SUBSTITUTION: | ||
| if | ||
| if | (Latin reference substituted by Devanagari) | |
| if | (Devanagari reference substituted by Latin) | |
| (Insertions, deletions, and pairs involving Mixed or Other are excluded from ) | ||
| 6: Calculate eligible single-script counts: | ||
| 7: return | ||
D Qualitative Analysis and Transcription Diffs To illustrate the qualitative impact of each adaptation stage, Table 7 presents code-mixed utterances drawn from the Frozen Real Test Split. Because S1 and S4 produce identical hypothesis transcriptions on 10,041 out of 10,214 test utterances (98.31%), the examples in Table 7 are purposefully selected from the 173 utterances (1.69%) where hypotheses differ. They are illustrative of fine-grained boundary and transliteration mechanisms rather than typical outputs. Across the complete test corpus, synthetic SFT globally reduces English script confusion from 6.70% to 6.45%, and GRPO provides a modest further gain of 0.09 pp (6.36%). Each utterance identifier follows the benchmark manifest schema [YouTube_ID]_[Segment_Index] (e.g., HFtjKhqjJdM_0634), directly matching released manifests and timestamps on Hugging Face. Table 7: Qualitative comparison of code-mixed transcriptions across adaptation stages on illustrative utterances selected from the 173 diffs between S1 and S4 in the Frozen Real Test Split, alongside a non-diff control example (-IE5q6_CMnU_0082) demonstrating Nepali script stability. Utterance IDs link to public Hugging Face manifests. Utterance ID & Context System Transcription HFtjKhqjJdM_0634 Ground Truth …चार पाँच हजार dollar कमाउनुहुन्थ्यो भनेyoutube बाट “If you earned $4–5k from YouTube...” S0 Base …4-5 हजार कमाउनु हुन्थ्यो भनेyoutube -बाट S1 SFT …चार पाँच हजार डलर कमाउनुहुन्थ्यो भने युट्युबबाट S4 GRPO …चार पाँच हजार dollar कमाउनुहुन्थ्यो भनेyoutube बाट kM6-yopuJWU_0673 Ground Truth बगर्र context मा chicken नै हो हैन त्यसपिछ kfc भयो “In burger context it’s chicken, then KFC...” S0 Base …bargar oven x -मा िचकनै हो होइन त्यसपिछ kfc भयो S1 SFT …बगर्र organics मात्रै हो होइन त्यसपिछ के एफसी भयो S4 GRPO …बगर्र organics मात्रै हो होइन त्यसपिछ kfc भयो -IE5q6_CMnU_0244 Ground Truth हैन they have been running …f and b business …now want coffee shops “Running F&B business, now want coffee shops...” S0 Base होइन दे वर running f b business … नाउ देwant to go into a coffee shop business S1 SFT होइन देwere running f b business … नाउ देwant to go into a coffee shop business S4 GRPO होइन they were running f b business … नाउ देwant to go into a coffee shop business -IE5q6_CMnU_0189 Ground Truth हजुरले अिघ tata को model भन्नुभयो … major stake चािँह͆ company कै हुन्छ “As you mentioned the Tata model...” S0 Base हजुरले अिघ tata -को model … major stake चािँह͆ company -कै हुन्छ क्या S1 SFT हजुरले अिघ टाटाको model … major stake चािँह͆ company नै हुन्छ क्या S4 GRPO हजुरले अिघ tata को model … major stake चािँह͆ company को हुन्छ क्या -IE5q6_CMnU_0107 Ground Truth अब आउँ छ opex operating expenditure “Now comes OPEX (operating expenditure)...” S0 Base अब आउँ छ opex operating expenditure S1 SFT अब आउँ छ open expenditure S4 GRPO अब आउँ छ opens operating expenditure -IE5q6_CMnU_0082 [Control] Ground Truth कम खचर्गनर्े हैन तपाइर्ंले त्यित नै खचर्गनुर्पछर्हैन “It’s not about spending less, spend that much...” S0 Base कम खचर्गनर्े होइन तपाइर्ँले त्यित नै खचर्गनुर्पछर्होइन S1 SFT कम खचर्गनर्े होइन तपाइर्ँले त्यित नै खचर्गनुर्पछर्होइन S4 GRPO कम खचर्गनर्े होइन तपाइर्ँले त्यित नै खचर्गनुर्पछर्होइन Analysis of error types and adaptation regimes. The examples in Table 7 illustrate four operational regimes across the pipeline:
- Latin script recovery after SFT transliteration errors: While synthetic SFT globally reduces overall script confusion across the corpus, it occasionally exhibits local script confusion on salient English loanwords, acronyms, and pronouns, transliterating them into phonetically equivalent Devanagari characters (e.g., dollar → डलर, youtube → युट्युब, kfc → के एफसी, and they → दे). Sequence-level RL (S4) successfully recovers authentic Latin orthography in these isolated diff instances, driving the modest 0.09 pp global SCRen reduction.
- Switch-point boundary disambiguation: In utterance -IE5q6_CMnU_0189 (referencing the Tata business model), SFT compounds the Latin brand name directly into the Devanagari postposition (टाटाको), obliterating the orthographic switch boundary. Policy optimization (S4) successfully disambiguates the Latin entity from the Nepali postposition (tata को). Notice that S4 also introduces a subtle substitution at the sentence end (को instead of reference कै).
- SFT regressions on base model successes: Synthetic adaptation does not uniformly improve all acoustic patterns. In -IE5q6_CMnU_0107, base model S0 transcribed the technical acronym opex operating expenditure with complete fidelity. In contrast, synthetic SFT corrupted the acronym into open expenditure, and GRPO only partially recovered the sequence (opens operating expenditure). This demonstrates that synthetic fine-tuning on a small prompt distribution can occasionally overwrite rare vocabulary representations preserved in the pre-trained base model.
- Monolingual orthographic stability: In pure Nepali segments such as -IE5q6_CMnU_0082, all models decode entirely in Devanagari script with zero spurious Latin intrusions, illustrating script stability under bilingual adaptation. 8
E Datasheet, Ethics, and Reproducibility
Following recommended documentation standards for speech corpora, this section provides the comprehensive datasheet for the curated Nepali–English podcast benchmark.
Motivation and intended use. The corpus was curated to establish an audited, reproducible benchmark for spontaneous South Asian code-switched speech recognition, addressing the absence of open-access conversational datasets for low-resource language pairs with disparate orthographic systems. The primary intended use is evaluating ASR models on spontaneous, unscripted bilingual speech containing high-frequency intra-sentential language alternation.
Composition and coverage. The verified benchmark contains 13,044 audio clips totaling 15.45 hours across 28 podcast episodes. All speakers are fluent bilingual Nepali speakers residing in urban Nepal. Conversations cover modern socio-technical discourse containing 183,013 spoken words (67.3% native Nepali in Devanagari script, 32.7% English in Latin script) and 29,033 inter-sentential and intra-sentential language switch points (averaging 2.23 switch points per utterance). Table 8 summarizes the distribution across thematic domains.
Table 8: Thematic domain distribution and linguistic composition across the 28 podcast episodes in the benchmark.
| Thematic Domain | Episodes | Speakers | Duration (h) | Nepali Words | English Words | Representative Embedded Terms |
|---|---|---|---|---|---|---|
| Entrepreneurship & Business | 9 | 24 | 5.12 | 41,208 (65.8%) | 21,428 (34.2%) | startup, equity, revenue, brand, outlet |
| Technology & AI | 7 | 18 | 3.86 | 30,119 (64.1%) | 16,870 (35.9%) | software, model, feature, backend, system |
| Higher Education & Career | 6 | 15 | 3.31 | 27,243 (68.7%) | 12,411 (31.3%) | university, semester, career, visa, degree |
| Public Health & Society | 6 | 15 | 3.16 | 24,604 (72.9%) | 9,130 (27.1%) | hospital, mental health, community, case |
| Total Benchmark | 28 | 72 | 15.45 | 123,174 (67.3%) | 59,839 (32.7%) | 29,033 switch points |
Audio preprocessing and quality control. All raw audio tracks were standardized to single-channel (mono) 16 kHz 16-bit linear PCM format and peak-normalized to −1 dBFS. Voice activity boundaries were computed by trimming silence intervals exceeding 0.8 s, producing utterance units between 1.0 s and 15.0 s. Studio setups include dynamic and condenser broadcast microphones, capturing natural acoustic nuances such as conversational overlaps, laughter, and room acoustics without synthetic degradation.
Collection and licensing. Audio was acquired from publicly broadcast YouTube video podcasts under commentary and educational categories. The benchmark release contains segment timestamps, pseudonymous speaker labels, verified transcriptions, YouTube video identifiers, per-clip SHA-256 audio checksums, and an automated reconstruction pipeline. Audio tracks are fetched using yt-dl p pinned to version 2026 .08 .19 (tested October 2026) requesting audio format 140 (128 kbps AAC audio), decoded and resampled to 16 kHz mono linear PCM via ffmpeg 6.1.1 (swresample). At release, 100% of the 13,044 benchmark clips (15.45 h across 28 public YouTube broadcasts) are fully reconstructable. Because YouTube streaming CDNs may occasionally re-encode source streams or serve format variations, and different decoder builds can introduce minor PCM rounding differences, the reconstruction verification tool provides both strict bit-exact SHA-256 hashing and an acoustic tolerance fallback (verifying duration within ±10 ms and waveform Pearson correlation ρ > 0.999 against reference clips). Users are responsible for complying with YouTube's Terms of Service and all applicable copyright and privacy laws. The metadata and transcriptions are released under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).
Takedown and ethical compliance. Although the source broadcasts are public discussion programs, content creators or speakers who object to having their audio indexed may contact the author at firoj.paudel@wiseyak.com with the relevant YouTube video ID or segment timestamps for prompt, permanent removal.
Reproducibility checklist. All experimental runs, configurations, and evaluation manifests are fully reproducible:
- Software repository: Complete training, inference, and scoring code is version-controlled at https://github.com/Firoj-Wise/nepali-english-codeswitch-asr.
- Data repository: Verified transcripts, manifest splits, and alignment scripts are hosted on Hugging Face at https://huggingface.co/datasets/SamaFiroz/nepali-english-codeswitch-podcasts.
- Evaluation integrity: Real test splits are protected with SHA-256 integrity checksums. Metric scoring scripts strictly isolate reference evaluation from training pipelines, using standardized paired bootstrap routines (B = 1,000, seed 42).