AI Data & Human-in-the-Loop

Building a Hinglish Speech Dataset: Scripts, Spelling and Code-Mixing Rules

How to build a Hinglish speech dataset: script choice, spelling rules for English loanwords, natural prompts and consistency checks. Plan a pilot with us.

Building a Hinglish Speech Dataset: Scripts, Spelling and Code-Mixing Rules
AI Data & Human-in-the-Loop·Published 2026-01-15·Updated 2026-11-26

By BOL Media Editorial Team · Reviewed by a project manager and language QC lead.

A Hinglish speech dataset is only as useful as the rules behind its transcripts. Record a thousand people saying 'order cancel karna hai' and you will get audio that sounds fine; transcribe it without agreed conventions and you will get ऑर्डर, आर्डर, order and odar for the same word, which teaches a recogniser that one sound has four correct answers.

Code-mixed speech is the normal way millions of Indians talk to apps, helplines and voice bots, yet most speech pipelines are built around one language and one script. This guide covers the practical decisions: why code-mixing breaks ASR, which script to transcribe in, how to fix spellings for loanwords, how to write prompts people actually say, how to train annotators and how to measure consistency. It draws on the same workflow our human data for AI team uses for Indian-language speech projects.

We will use one illustrative example throughout: a food-delivery company whose support voice bot keeps mis-transcribing requests such as 'order cancel karna hai', 'refund kab tak aayega' and 'delivery partner ne galat item diya'.

Need professional localisation support for a release? Explore human data for ai or brief BOL Media with your project details.

Why code-mixing breaks ASR, and why a Hinglish speech dataset fixes it

Most recognisers are trained on monolingual data with a single output vocabulary. When a speaker switches mid-sentence, the model has to decide which language each stretch belongs to, often from very little acoustic evidence. English words spoken with Hindi phonology ('kancel', 'rifand') sit between the two vocabularies, so the model guesses, and the guess is frequently a rare Hindi word or an English word that sounds similar.

The second failure is in the targets. If the training transcripts spell the same English word several ways, the model learns that inconsistency. Downstream, an intent classifier sees 'cancel', 'कैंसिल' and 'कैंसल' as three different tokens, and the bot routes a cancellation request to 'general enquiry'.

A purpose-built Hinglish speech dataset addresses both: it gives the model enough code-mixed audio to learn the switching patterns, and it gives it one consistent written form for every word.

  • Intra-sentence switching: 'मेरा order अभी तक नहीं आया'
  • English verbs with Hindi light verbs: 'cancel karna', 'refund dena', 'track karo'
  • Hindi inflection on English nouns: 'orderों' or 'orderon', 'itemवाला'
  • Accented English: 'jee-pee-ess', 'kash on delivery'

Devanagari, Latin or both: choosing the transcription script

There are three workable policies for Hindi English transcription, and the right one depends on what the transcript feeds. If your NLU and analytics were built on romanised chat logs, a fully Latin transcript keeps everything in one space. If the output is shown to Hindi readers or feeds a Devanagari language model, full Devanagari is cleaner. Mixed script, with Hindi words in Devanagari and English words in Latin, preserves the language identity of each token and is popular for research, but it forces annotators to decide the language of every borrowed word.

Decide by asking four questions. What does the downstream model or tokeniser expect? Will humans read the output? How fast can annotators type it accurately? Can the rule be applied identically by fifty people? For the food-delivery bot, the NLU was trained on romanised customer chats, so the team chooses full Latin with a fixed romanisation table.

Whatever you choose, write it as a single rule at the top of the guideline and give ten worked examples. The worst outcome is a dataset where each annotator picked their own policy.

  • Full Devanagari: 'मेरा ऑर्डर कैंसिल करना है'
  • Full Latin: 'mera order cancel karna hai'
  • Mixed script: 'मेरा order cancel करना है'
  • Whichever you pick, store a second normalised version for evaluation

Spelling conventions for loanwords and romanised Hindi

Build a lexicon before production. List every English loanword likely to appear in the domain, give it one canonical spelling in the chosen script, and add Hindi words that are commonly romanised in several ways. For Devanagari, decide on matters such as using ऑ for the English 'o' in ऑर्डर, and whether to write the nasal as anusvara or half-letter. For Latin, fix forms such as 'hai' not 'h' or 'he', 'nahi' not 'nahin' or 'nhi', and 'kya' not 'kia'.

Keep the lexicon in a shared sheet with columns for the canonical form, rejected variants, an audio example and the date it was added. Annotators look words up rather than inventing spellings, and reviewers can search transcripts for rejected variants automatically.

  • order → ऑर्डर (reject आर्डर, ओर्डर) or 'order' in Latin
  • cancel → कैंसिल (reject कैंसल, केंसिल) or 'cancel'
  • refund → रिफंड; delivery → डिलीवरी; partner → पार्टनर
  • Romanised Hindi: hai, nahi, kya, kab, aayega, karna, chahiye
  • Acronyms in capitals with no dots: UPI, COD, OTP, GST
  • Transcribe the word, not the accent: 'kancel' is still 'cancel'

Designing prompts that sound natural

If you hand people a written Hinglish sentence, they read it in a careful, slightly unnatural voice, and they mix exactly where the writer mixed. To capture real code-mixed speech data, give scenarios instead: 'Your biryani arrived cold and half the order is missing. Tell the support bot what you want.' Speakers then choose their own words, and their own balance of Hindi and English.

Vary the speaker population as deliberately as the prompts. Some people speak Hindi with a few English nouns; others speak English with Hindi fillers; many sit in between. Include speakers from outside Delhi and Mumbai, older users, and people whose first language is not Hindi but who use Hindi with apps. Add a slice of purely Hindi and purely English utterances so the model does not assume every sentence must mix. Brands face the same balance question in audio, as our comparison of Hindi vs Hinglish voice-over shows, and the answer again depends on who is listening.

Cover the domain systematically: cancellations, refunds, late delivery, wrong item, payment failure, address change, coupon problems and rider behaviour. Include numbers, because order IDs, amounts and times are where bots fail most visibly.

A real-world scenario: a food-delivery voice bot that cannot hear 'cancel'

Consider a food-delivery company that launches a voice option in its support line. Within weeks, the operations team notices that cancellation and refund calls are routed to the wrong queue. Listening to a sample shows the recogniser output for 'order cancel karna hai' ranges from 'order kensal karna hai' to Devanagari fragments, and 'refund kab tak aayega' sometimes becomes an unrelated Hindi phrase.

The team measures before changing anything. They transcribe a few hundred consented calls with a strict rule set, then compute word error rate on the raw output and on a normalised version that maps known spelling variants to one form. The gap between the two shows that a meaningful share of 'errors' are spelling inconsistency rather than mishearing. Error analysis on the rest shows English verbs inside Hindi frames, amounts like 'teen sau pachaas' and order IDs read digit by digit are the main problems.

The fix has three parts. First, a script policy and lexicon matched to the romanised NLU. Second, a collection round built on scenario prompts across the main complaint types, with quotas for Hindi-dominant and English-dominant speakers and calls recorded over real phone lines, following the approach in our playbook on speech data collection for Indian languages. Third, a number rule: amounts written in digits, order IDs as digit strings, times as spoken words normalised later.

After fine-tuning on the new data and retraining the intent classifier on consistent transcripts, misrouted cancellation calls fall noticeably in the next review. Remaining errors cluster around restaurant names and rare dishes, which feeds a smaller, targeted collection round.

Numbers, brand names and other edge cases

Numbers in Hinglish arrive in both languages, often in the same sentence: 'do sau fifty rupees', 'saadhe saat baje'. Choose whether transcripts are verbatim (words as spoken) or normalised (digits), and if you need both, keep two fields. Verbatim is usually the safer target for ASR training, with normalisation handled by a separate step.

Brand, restaurant and dish names need a project glossary with canonical spellings. Where a name has no fixed form, write it as the business writes it on its own signage or menu, and log the decision.

  • Order IDs: digit strings, no spaces, even if spoken in groups
  • Amounts: verbatim words in the training field, digits in the normalised field
  • Mispronounced English: transcribe the intended word, tag [mispronounced] if needed
  • Hindi plural on English noun: write 'orders' or the agreed hybrid form, never both
  • Fillers: 'matlab', 'yaar', 'na' transcribed; 'umm' and 'uh' as agreed tags
  • Unclear words: [unclear] rather than a guess

Annotator training and edge cases

Train transcribers on hard examples, not easy ones. Build a training set of thirty to fifty clips that cover the difficult patterns, have every trainee transcribe them, and review differences in a group session. People who hear the same clip differently learn the rule faster when they discuss it than when they read it.

Keep an edge-case log from day one. Each entry records the clip, the question, the decision and the guideline section it updates. Our detailed guide to audio transcription and annotation guidelines shows how to structure the log and when to roll decisions into a new guideline version.

Native Hindi speakers who also work in English make the best transcribers for this work, but they bring their own spelling habits. The lexicon exists to overrule those habits, so test it in the qualification round.

Measuring consistency in code-mixed transcription

Raw WER can mislead on Hinglish because spelling variants count as errors. Report three numbers: raw WER, WER after normalising known variants, and character error rate, which is gentler on small spelling differences. Track them separately for Hindi-dominant and English-dominant speakers.

Audit spelling directly. For each lemma in the lexicon, count how many distinct spellings appear across delivered transcripts; anything above one is a guideline or training issue. Double-transcribe a sample of every batch and measure agreement between transcribers, and if you tag the language of each token, measure agreement on those tags with Cohen's kappa, which corrects for chance agreement. Our piece on annotation quality and inter-annotator agreement explains how to set thresholds.

  • Distinct spellings per lexicon entry (target: one)
  • Raw vs normalised WER on a held-out Hinglish ASR test set
  • Transcriber agreement on double-done files
  • Rejected-variant search on every delivered batch

How BOL Media handles this

  1. Brief and reference review with the producer or content owner.
  2. Script adaptation by a native linguist — not literal translation.
  3. Voice casting, including curated options for lead and supporting roles.
  4. Recording in acoustically-treated studios with on-mic direction.
  5. Editing, mix and master to the target platform spec.
  6. Linguistic and technical QC pass before final delivery.

Related services: Audio transcription guidelines · Hindi vs Hinglish voice over · Contact

Frequently asked questions

Should English words be written in Devanagari?

Only if your whole policy is full Devanagari. The choice should follow what consumes the transcript: a romanised NLU suits full Latin, a Hindi-reading audience suits Devanagari, and research on language identity often uses mixed script. What matters most is applying one policy everywhere with a lexicon of canonical spellings. A dataset where some annotators wrote ऑर्डर and others wrote 'order' is harder to use than either policy applied consistently.

How do you handle numbers and brand names?

Keep a verbatim field that writes numbers as spoken, in whichever language was used, and a normalised field with digits if your pipeline needs it. Order IDs and phone numbers are best written as digit strings. Brand, restaurant and product names go into a project glossary with one canonical spelling, usually the way the business writes its own name, and every new name is logged when first encountered.

Can the same dataset serve Tanglish or Benglish?

Not directly. The method transfers, but the data does not: Tamil-English and Bengali-English speech have different phonology, switching patterns and scripts, so they need their own speakers, prompts and lexicons. You can reuse the guideline structure, the English loanword list as a starting point, and the measurement approach. Plan each code-mixed pair as its own collection with native transcribers for that language.

Do we also need monolingual Hindi and English recordings?

Yes, a portion. Real users do not always mix, and a model trained only on mixed speech can start inserting English where none was spoken, or the reverse. Include a slice of purely Hindi and purely English utterances from the same speaker population, and make sure your test set reflects the real balance of mixed and unmixed requests in your call logs.

Should we transcribe mispronounced English as heard or as intended?

For ASR training, transcribe the intended word in its canonical spelling, so 'kancel' becomes 'cancel'. The model then learns that this pronunciation maps to the right word, which is exactly what you want in production. If pronunciation itself matters, for example for research, add an optional tag rather than changing the spelling, so the main transcript stays consistent.

Can we transliterate transcripts automatically instead?

Automatic transliteration can convert a consistent transcript from one script to another, and it is useful for producing a second version. It cannot fix inconsistent source transcripts, and it often mishandles English loanwords and names. Get the human transcript right under one policy first, then transliterate, then have a native reviewer check a sample of the converted output.

Continue inside the AI Data & Human-in-the-Loop cluster

Browse the full AI Data & Human-in-the-Loop cluster in the BOL Insights library, or explore the parent service — Human Data for AI — and related work in Audio transcription guidelines, Hindi vs Hinglish voice over, Contact.

Work with BOL Media

Building a voice bot or recogniser for people who switch between Hindi and English mid-sentence? We can help you set the script policy, build the lexicon, collect code-mixed speech and run a measured pilot. Explore our [human data for AI](/services/human-data-for-ai) service, see how we approach [Hinglish in voice-over](/blog/hindi-vs-hinglish-voice-over-which-should-your-brand-use), or [tell us about your dataset](/contact).

Brief BOL Media