STT (speech to text)
Speech to text (STT), also called automatic speech recognition (ASR), turns spoken audio into written words. In a voice AI agent it is the step that lets the LLM read what the caller said. Open models such as Whisper and AI4Bharat’s IndicConformer can be self-hosted; hosted APIs stream results as the caller speaks.
How it works
Audio arrives as a stream of samples, usually 16,000 a second, or 8,000 on a phone line. The recogniser converts it into features and a neural network predicts the most likely words. Streaming recognisers return partial text while the caller is still talking; batch recognisers wait for the stretch of speech to end.
Accuracy is measured as word error rate (WER): substitutions plus deletions plus insertions, divided by the words spoken. If a caller says 20 words and the transcript swaps one and drops one, WER is 2 / 20 = 10%. Domain words such as kubectl are often misheard, so teams pass a short list of expected terms to the recogniser and clean up known mistakes afterwards.
Why it matters in production
STT errors flow into everything after it: an LLM cannot answer a question it misheard. Measure WER on your own recorded calls, not a public benchmark, especially for accents, code-mixed speech such as Hinglish, and noisy 8 kHz phone audio. Track STT latency at p95, because it sits on every turn of the call.
See also
On the One2N blog
References

Putting this into practice?