Chirp 3 (ml-IN): Unpredictable code-mixing — English words transliterated to Malayalam script and vice versa

We are using Cloud Speech-to-Text V2 with the Chirp 3 model (chirp_2 recognizer) and language code ml-IN to transcribe live classroom sessions in Kerala, India. The teacher speaks a natural mix of Malayalam and English (code-switching), which is standard for Indian education.

The problem

The transcription has two script-assignment issues:

1. English words transliterated into Malayalam script

The speaker clearly says English words like “compound interest”, “formula”, “square”, “question” — but the output renders them phonetically in Malayalam script:

കോമ്പൗണ്ട് ഇൻട്രെസ്റ്റ് (compound interest) ഫോർമുല (formula) ക്വാഡ്രാറ്റിക് ഇക്വേഷൻ (quadratic equation) ഹോമോജീനസ് സൊല്യൂഷൻ (homogeneous solution) സ്ക്വയർ (square)

These are English words spoken in English. They should appear as “compound interest”, “formula”, etc. — not as Malayalam-script transliterations. A downstream consumer (LLM, search, analytics) cannot identify or process these as English.

2. Malayalam words romanized into Latin script

The opposite also happens — the speaker says Malayalam words, but the output renders them in Latin/Roman script instead of Malayalam:

Ellarum video on cheytho (should be: എല്ലാരും വീഡിയോ ഓൺ ചെയ്തോ) namukku start yeah (should be: നമുക്ക് start yeah) ningal arinjirikkenda (should be: നിങ്ങൾ അറിഞ്ഞിരിക്കേണ്ട)

Scale of the issue

From a single 65-minute session (106 non-empty chunks):

  • 47 chunks are in Malayalam script — but many of these contain English words forced into Malayalam script (issue 1 above)
  • 27 chunks are in Latin script — but some of these contain Malayalam words romanized into Latin (issue 2 above)
  • 31 chunks have both scripts mixed within the same chunk, which is expected and correct when the speaker uses both languages

Our setup

  • Speech-to-Text V2 API
  • Model: Chirp 3 (chirp_2)
  • Language code: ml-IN
  • Audio source: Zoom meeting recordings (multi-speaker classroom)
  • Region: us-central1

What we’d like

  • Acknowledgment of whether this is expected behavior or a known limitation for code-switched Indian language audio.
  • Guidance on recommended configuration for bilingual (Malayalam + English) audio — should we use auto language detection, en-IN instead, or a different approach?
  • Longer term: For code-switched audio, keep English words in Latin script and Malayalam words in Malayalam script — matching the script to the language actually spoken, not forcing everything into one script.

We understand that mixed-language transcription is a hard problem. But the model is already doing the hard part — it’s correctly recognizing the words in both languages. The issue is just script assignment. Code-switching is the default mode of communication in Indian classrooms and workplaces, so this affects a very large user base.

Thank you.

1 Like