# Hinglish, Minglish, Tanglish: why code-switching breaks voice agents, and the fixes that actually work

By Shreyas Raj, founder of RapidXAI. Updated 2026-11-29.

**Short answer:** Code-switching means changing language mid-conversation or mid-sentence, like Hinglish (Hindi plus English), Minglish (Marathi plus English) or Tanglish (Tamil plus English). It breaks voice agents at four points: speech-to-text that locks onto one language, transcripts that mix scripts unpredictably, prompts that force one language, and TTS that mispronounces the other language's words. Fixes: use STT with a code-mix mode, normalise transcripts, write explicit language-mirroring rules into the prompt, use a TTS voice built for code-mixed speech, and test with real mixed sentences.

## Your callers do not speak "Hindi"

They speak whatever gets the job done. Hindi grammar, English nouns, a Marathi aside to someone in the room.

Listen to a real Pune or Delhi sales call. You will hear "EMI", "booking amount", "possession date" and "carpet area" dropped into Hindi or Marathi sentences, constantly.

A voice agent built and tested in "pure Hindi" meets that caller and stumbles on the first sentence (the demo went great, though).

| Mix | Example a caller might say | Where it is common |
|---|---|---|
| Hinglish | "Mujhe Saturday ko site visit book karna hai" | North and central India, metros everywhere |
| Minglish | "मला उद्या call back करा, office मध्ये आहे" | Maharashtra |
| Tanglish | "Naan tomorrow evening varen, slot irukka?" | Tamil Nadu |
| Benglish | "Ami next week visit korbo" | West Bengal |
| Kanglish | "Naale meeting ide, so call maadi" | Karnataka |

## What the research says (spoiler: it is hard)

In 2021, the MUCS challenge tested speech recognition on Hindi-English and Bengali-English code-switched speech. The baseline system scored 32.45% WER on the code-switched test, worse than the 30.73% on monolingual Indian languages [1].

Code-mixing was the harder exam, before any phone line noise was added.

Things have improved a lot since. Sarvam says its Saaras V3 model avoids hallucinated insertions and dropped words in mixed-language audio [7]. That is a vendor claim, but it shows where the industry knows the pain is.

Accents add a second layer. AI4Bharat's Svarah benchmark recorded 117 Indian speakers of English and found ASR systems had "clear scope for improvement" on Indian accents [6]. The English half of Hinglish is Indian English, not American English.

## The four places code-switching breaks your agent

### 1. Speech-to-text picks one language and sticks to it

Many STT setups ask you to set one language code. Set Hindi and the model may force "site visit" into odd Hindi words. Set English and the Hindi becomes gibberish.

Fix: choose a model with a true mixed mode. Sarvam's Saaras has a codemix mode, and Deepgram offers a multilingual code-switching mode [2][5].

### 2. The transcript mixes scripts at random

Is it "site visit", "साइट विज़िट" or "sait vijit"? All three show up. Your LLM copes, mostly. Your CRM search, keyword rules and analytics do not.

Sarvam's own evaluation team found that writing "doctor" in Devanagari instead of Latin script gets flagged as an error, giving 20% WER on that sentence, though both are valid [3].

Fix: pick one convention and enforce it. Sarvam's codemix mode outputs English words in Latin script and Indian words in native script, for example "मेरा phone number है 9840950950" [2]. That is the format we prefer.

### 3. The prompt forces one language

"You are a Hindi assistant" sounds sensible. Then a caller says "Can we speak in English?" and the bot keeps answering in shuddh Hindi. Or worse, it replies in formal Hindi nobody uses on the phone.

Fix: tell the model to mirror the caller, and show it what natural Hinglish looks like. Prompt below.

### 4. TTS mispronounces the other language

An English voice reading "Kharadi" or a Hindi voice reading "EMI" letter by letter in the wrong accent. Callers notice in one second (and start testing the bot instead of buying).

Fix: use a voice built for mixed speech. Sarvam's Bulbul v4 Flash lists English-Hindi code-mixed as its own language option [4]. Then add a pronunciation list for locality, product and brand names.

## A prompt block that handles Hinglish

Paste this into your system prompt and adapt the examples to your business. It works best with the codemix transcript format above.

```
LANGUAGE RULES
- Mirror the caller. If they speak Hinglish, reply in Hinglish. If they switch
  to pure English or pure Hindi, switch with them on your next turn.
- Keep business words in English, the way Indians say them: site visit, EMI,
  booking, 2BHK, carpet area, discount, follow-up.
- Write Hindi words in Devanagari and English words in Latin script.
  Example: "आपका site visit Saturday 11 बजे confirm है."
- Say money the Indian way: "पचहत्तर lakh", "1.2 crore". Never "seven point
  five million".
- Read phone numbers in groups of 5 digits and ask the caller to confirm.
- If you did not understand a word, ask once, in the caller's language:
  "Sorry, ek baar phir boliye?" Never guess names or numbers.
```

One warning. Whether TTS reads mixed-script text well depends on the voice. Test Devanagari-plus-Latin against fully romanised text on your chosen voice, and keep whichever sounds natural.

More prompt craft in [how to write a voice agent prompt](/guides/how-to-write-a-voice-agent-prompt/).

## Endpointing gets weird when languages switch

Language switches often come with a pause or a filler: "woh... basically... I mean...". Silence-based endpointing reads that as the end of a turn.

Deepgram recommends an endpointing value of 100 ms for code-switching streams [5]. That setting decides when its transcript segments finalise, not when your agent should reply. Keep the reply decision with a turn detector.

LiveKit's text turn detector, now deprecated but still documented, reports a 96.3% true-negative rate in Hindi, so it rarely calls a mid-sentence pause the end [8]. Mixed speech is still worth testing directly, because the published numbers are per language.

The full picture is in [turn-taking and interruptions](/guides/turn-taking-and-interruptions/).

## Numbers, money and names: the silent killers

Most code-switching bugs that cost money are not about grammar. They are about numbers.

| Caller says | What can go wrong | Fix |
|---|---|---|
| "Dhai lakh" | Transcribed as "dhai" plus "lakh", saved as 2 instead of 250000 | Normalise Indian number words to digits before saving |
| "Paanch sau" / "500" / "५००" | Three formats, one value [3] | Convert all digits to ASCII in your pipeline |
| "98400 50950" in Hindi digits | Half the number lost when the caller switches language mid-number | Read back in groups of 5 and confirm |
| "1.2 crore" | TTS says "one point two crore" in an American accent | Pronunciation rules or a code-mixed voice |
| "Wakad", "Baner", "Hinjewadi" | Misheard as English words | Custom vocabulary or spelled read-back |

Our take: always read back names and numbers on Indian calls. It costs 5 seconds and saves the whole lead.

## The 30-sentence code-switch test

Do this before any launch. It takes an afternoon and catches most problems.

1. Write 30 sentences your callers actually say: 10 Hinglish, 10 in your regional mix, 5 pure English, 5 pure Hindi or regional. Include 10 numbers and 10 local names.
2. Have three people with different accents call the agent and say them, one per turn.
3. Check the transcript: right words, consistent script, every number exact.
4. Check the reply: does the agent answer in the caller's mix, not a stiff formal version?
5. Check the audio: do English words sound English and Indian words sound Indian?
6. Do one mid-call switch: start in Hindi, ask "Can we continue in English?", then switch back. The agent should follow both times.
7. Fix, then rerun all 30. Prompt changes ripple.

> **Pass bar we suggest:** Every number and name correct, language mirrored on the next turn after a switch, and no reply a native speaker would call "bookish". Anything less, keep tuning.

## See language switching on real calls

Shreyas Raj, RapidXAI's founder, opens his outbound build with a live moment that every Indian agent must survive: the prospect asks "Can we speak in Hindi?" mid-call.

Video: [Cold Calling AI Army: Full Outbound System for Rs 2/min (Gemini Live + LiveKit + Vobiz)](https://www.youtube.com/watch?v=niNpiBiqXDE)

In this two-minute short he shows a quick setup for a natural Indian voice: a multilingual transcriber plus a prompt that says the agent speaks Hindi and English.

Video: [Most NATURAL AI Indian Voice in 2 Minutes](https://www.youtube.com/watch?v=EF8lnU686P4)

## Questions people ask

### What is code-switching in voice AI?
Switching between languages within a conversation or a sentence, like Hindi and English in Hinglish. Voice agents must transcribe, understand and reply to mixed speech without forcing it into one language.

### Which speech-to-text handles Hinglish best?
Test on your own calls. Look for a dedicated mixed mode: Sarvam's Saaras has a codemix output [2], and Deepgram offers a multilingual code-switching mode [5]. Compare entity accuracy, not just WER.

### Should agent replies be in Devanagari or Roman script?
Whatever your TTS voice reads most naturally. Many Indian voices handle Devanagari with English words in Latin script. Some do better fully romanised. Test both on a real phone call.

### Is Minglish or Tanglish harder than Hinglish?
Usually, because there is less training data. Hindi-English and Bengali-English were the pairs in the 2021 MUCS challenge [1], and Hindi gets the most vendor attention. Budget extra testing for Marathi-English and Tamil-English.

### Why does my agent switch to formal Hindi?
The prompt says "Hindi" and the model reaches for textbook Hindi. Give examples of everyday Hinglish and tell it to keep business words in English.

## Sources

1. [Multilingual and code-switching ASR challenges for low resource Indian languages](https://arxiv.org/abs/2104.00235), arXiv (MUCS 2021)
2. [Saaras speech-to-text model](https://docs.sarvam.ai/api-reference-docs/getting-started/models/saaras), Sarvam AI Docs
3. [Evaluating Indian language ASR](https://www.sarvam.ai/blogs/evaluating-indian-language-asr), Sarvam AI
4. [Models overview](https://docs.sarvam.ai/api-reference-docs/getting-started/models), Sarvam AI Docs
5. [Multilingual code-switching](https://developers.deepgram.com/docs/multilingual-code-switching), Deepgram Docs
6. [Svarah: Evaluating English ASR Systems on Indian Accents](https://arxiv.org/abs/2305.15760), arXiv (AI4Bharat)
7. [Introducing Saaras V3](https://sarvam.ai/blogs/asr), Sarvam AI
8. [Turn detector](https://docs.livekit.io/agents/build/turns/turn-detector/), LiveKit Docs
