Speech-to-Text (ASR)

Speech-to-text, also called automatic speech recognition (ASR), is technology that converts spoken audio into written text, either in real time as someone speaks or in batches from recordings.

Also known as: Automatic speech recognition, ASR, speech recognition, transcription

Related terms in this glossary

How it works

Modern ASR uses neural networks trained on large amounts of transcribed audio. OpenAI's Whisper, released as open source in 2022, was trained on about 680,000 hours of multilingual audio and made robust transcription widely available. Cloud services from Google, Microsoft, Amazon, Deepgram and AssemblyAI offer streaming and batch APIs, and multimodal models can now accept audio directly.

  • Streaming returns partial text within fractions of a second, needed for voice agents and live captions.
  • Batch processes recordings with more context, usually for higher accuracy.
  • Diarization labels who spoke when.
  • Custom vocabulary helps with product names, medicine names and local place names.

Accuracy is measured with word error rate (WER): the share of words substituted, deleted or inserted compared with a human transcript.

Why it matters

ASR is the entry point for voice agents, call analytics, meeting notes, clinical documentation and accessibility. Accuracy varies widely with accent, background noise, phone-line audio quality and language. Code-mixed speech, such as Hindi and English in the same sentence, remains hard for many models, and quality in smaller Indian languages differs sharply between providers. India's government-backed Bhashini program and open research groups such as AI4Bharat publish Indian-language speech models and datasets. Always measure WER on your own audio, including worst-case calls. Recordings contain personal data, so decide where audio is processed and how long it is kept. See voice AI agents and Indian language AI.

Speech-to-Text (ASR) in depth

Building a speech pipeline

Real-world ASR involves more than calling a transcription API. A production pipeline typically includes:

  1. Capture: telephony audio (often 8 kHz narrowband), app recordings or meeting audio, with codec and sample rate recorded.
  2. Voice activity detection: find speech segments and skip silence, which saves processing and helps streaming endpointing.
  3. Language identification: detect Hindi, English, a regional language or a mix, and pick the model or settings accordingly.
  4. Transcription: streaming for live use, batch for recordings, with custom vocabulary for product names, places and medicines.
  5. Diarization: label speakers, such as agent and customer.
  6. Post-processing: punctuation, number formatting ("ek lakh" to a numeral where appropriate), and masking of personal data such as phone and account numbers.

Example: call analytics for a collections team

Example: a collections team records outbound calls in Hindi, English and Hinglish. Batch transcription runs after each call with diarization, so agent and customer speech are separated. Custom vocabulary includes the lender's product names and common city names. The transcript is analyzed for promises to pay, disputes and required compliance statements, and phone and account numbers are masked before storage. A quality analyst reviews a sample of calls each week against the transcripts, records word error rate on that sample, and flags call types where errors cluster, such as calls from noisy roadsides. Agents see a short call summary instead of writing notes by hand.

Measuring accuracy the right way

Word error rate counts substitutions, deletions and insertions against a human reference transcript, divided by the number of reference words. Practical guidance:

  • Build references from your own audio, across channels, accents and noise conditions.
  • Normalize text before scoring (case, punctuation, number formats), or WER will reflect formatting rather than recognition.
  • For Hindi and mixed speech, agree a convention for script and spelling in references; character error rate can be more stable for some languages.
  • Track entity accuracy separately for names, numbers and amounts, which matter more than filler words.
  • For streaming, measure latency to partial and final results as well as accuracy.

Choosing an approach

OptionConsider when
Cloud ASR APIsQuick start, streaming needs, broad language lists
Open models such as Whisper variants, self-hostedData must stay in your environment, or volume is high and steady
Indian-language models from AI4Bharat or BhashiniRegional languages where general models fall short
Audio-native multimodal modelsConversational agents that reason directly over speech

Decide early whether transcripts or audio are the record of truth. For compliance-sensitive calls, keep the original audio for the agreed retention period so disputed transcripts can be checked, and store transcripts with the model version that produced them.

Typical problems are testing on clean studio audio instead of phone calls, ignoring code-mixing, storing raw recordings indefinitely, and no consent notice for recording, which matters under the DPDP Act 2023. ASR pairs with text-to-speech in voice agents, feeds sentiment analysis and NLP, and is central to AI latency in live conversations. Gepton builds speech systems in voice AI agents and Indian language AI.

Questions about Speech-to-Text (ASR)

Something else? Send us your question and an engineer replies with next steps.

Why is phone call audio harder to transcribe than app recordings?

Traditional phone lines carry narrowband audio, typically sampled at 8 kHz, which removes higher frequencies that help distinguish sounds. Calls also add compression artifacts, background noise, crosstalk and varying microphone quality. Models trained mostly on wideband audio perform worse on it. Test ASR specifically on telephony recordings from your own lines, and prefer models or settings designed for phone audio when calls are the main source.

How should Hinglish speech be transcribed, in Devanagari or Roman script?

It depends on what consumes the transcript. Human readers in many businesses prefer romanized text or mixed script, while downstream NLP models may work better with a consistent convention. Some ASR systems output Hindi words in Devanagari and English words in Latin script; others transliterate. Decide the convention up front, make reference transcripts follow it, and add a transliteration step if the ASR output does not match.

Jump to

↑↓ to move↵ to open