AI Engineering · interactive
Speech to text and text to speech
A voice agent chains three models: speech to text, an LLM, and text to speech. Every stage adds delay, and the first stage can mishear names and numbers. Talk to it in a quiet room and a busy café, and get the reply time from four seconds down to about one.
You
speak
End of turn
600 ms silence
Speech to text
40% WER
LLM
1.8 s
Text to speech
700 ms
until you hear a reply
3.6 s
- waiting for silence 600 ms
- speech to text 500 ms
- LLM 1.8 s
- text to speech 700 ms
- ┊ a person: ~200 ms
restart the pig bouncer pool on staging and page maria if check out errors past two percent
Marked: misheard or extra words. Struck through: words it missed.
3.6 s until you hear a reply, and the agent heard “Restart the pig bouncer pool on staging and page Maria if check out errors past two percent”.
You say: “Restart the PgBouncer pool on staging and page Priya if checkout errors pass two percent”
Step 1 of 5 · read left to right
In production
Tools and technologies
Voice agents combine speech-to-text, an LLM and text-to-speech, or use one speech-to-speech model.
Not tied to one language — use these names when you search docs or design a system.
- WhisperSoftware
OpenAI's open speech recognition model.
GitHub ↗ - DeepgramService
Streaming speech-to-text with keyword boosting.
Official site ↗ - ElevenLabsService
Text-to-speech voices with streaming output.
Official site ↗ - Silero VADSoftware
A small voice-activity detector for spotting the end of a turn.
GitHub ↗ - PipecatSoftware
An open framework for real-time voice agents.
GitHub ↗ - OpenAI Realtime APIService
Speech-to-speech in one model, without the text hops.
Documentation ↗