Book a 30-min callBook a call

Voice agent architecture: speech-to-text, LLM, text-to-speech and the latency budget

How voice agents work: cascaded STT, LLM and TTS versus speech-to-speech, the latency budget per turn, turn detection, barge-in, telephony and evaluation.

A microphone circle feeding three boxes in a row (speech-to-text, a model, text-to-speech) to a speaker circle, with one wide waveform box below as the speech-to-speech path.
Written by
BYD Tech
Published
Topic
Deep dives
Reading time
16 min read

Questions people ask

What latency should a voice agent aim for?

There is no single number. People usually respond to each other within a few hundred milliseconds; Stivers and colleagues found a mean gap of about 208 ms across 10 languages. Set a target for the silence after each caller turn, measure every stage at the median and the 95th percentile, and cut the largest stage first.

Should I use a speech-to-speech model or an STT, LLM and TTS pipeline?

Use a cascade when you need the text at every step: to log it, check it before it is spoken, or pick the best STT and voice for your domain. Use a speech-to-speech model when fewer hand-offs and the model hearing tone directly matter more. Prototype both on your own call audio before committing.

What is a good word error rate?

It depends on the audio, the domain and the normalization, so a number from someone else's test set says little about yours. Compare systems on the same normalized test set built from your calls, and weigh entity accuracy and task success above raw WER.

How does a voice agent know when the caller has finished speaking?

Voice activity detection marks which audio frames contain speech, and an endpointer decides when a pause means the turn is over. The simplest endpointer waits for a fixed silence; semantic turn detection also scores whether the words so far sound finished.

Can a voice agent answer ordinary phone calls?

Yes. A carrier or SIP trunking provider connects the phone number to your system over SIP, and a media server or the provider's media stream passes the audio to the agent. Expect lower audio quality than in a browser, and test with real phone recordings.

Building something like this?