Everyone can build a voice agent demo. The demo is the easy part.
The hard part is call number four thousand, when someone interrupts your agent mid-sentence from a car with the windows down, spells their last name, switches to Spanish for one clause, and then says "yeah" in a way that could mean yes or could mean keep going. Your demo doesn't cover that. Production does.
We spent a livestream with Vapi's CEO Jordan Dearsley going through these failure modes, the ones that only show up once you have real traffic. AssemblyAI builds the speech layer; Vapi builds the orchestration layer on top. Between the two of us we see a lot of ways a voice agent falls over.
So this is the honest list: four problems that break agents in production, what causes each one, which part of the fix belongs to the speech layer and which to the orchestrator, and the exact settings to use on Vapi today.
What are AI voice agents?
An AI voice agent is a system that understands spoken language and responds in real time, holding a conversation instead of routing you through a menu. Customer service, sales qualification, appointment scheduling, order tracking.
The difference from a text chatbot is four capabilities that only matter when speech is involved:
- Context retention: remembering what was said 40 seconds ago, including things the caller won't repeat.
- Natural interruptions: stopping mid-sentence when the caller starts talking, without treating every "mhm" as an interruption.
- System integration: doing the thing: booking, looking up, updating a record.
- Emotional awareness: noticing frustration and escalating before the caller starts shouting.
Every one of those is harder in voice than in text, and three of the four depend on how good your transcription is.
How AI voice agents work
Most production agents are a cascade of three models running in a loop:
- Speech-to-text turns the caller's audio into words and decides when the caller has finished.
- A language model decides what to say and which tools to call.
- Text-to-speech turns the reply back into audio.
Then it repeats for the length of the call.
Teams underestimate how much the first stage constrains the other two. If speech-to-text hands the LLM "my order is 4 7 3 2" split across two turns, no amount of prompt engineering fixes what happens next. And if the speech layer is slow to decide the caller is done, your latency budget is gone before the LLM has seen a token.
Use cases and applications
Where teams are deploying these:
- Customer support automation. The repeatable tier-one volume (order status, password resets, appointment changes), with a clean handoff when a call gets complicated.
- Outbound sales and lead qualification. Working a list, asking qualifying questions, booking the meeting.
- Appointment scheduling. Booking, rescheduling and reminding, which sounds simple until the agent has to get a date of birth and a callback number exactly right.
- Order placement and tracking. Drive-thrus, phone orders, delivery status: the loud-environment category.
What these have in common: they're entity-heavy. Names, numbers, dates, addresses, SKUs. That's what the agent spends its time collecting, and it's what a single word error rate hides. More on that in our contact center writeup and in the voice agent accuracy problem nobody benchmarks.
Stream a noisy call, an interrupted turn, or a caller who switches languages mid-sentence through AssemblyAI-STT-3.7-Realtime-Agent and see what comes back.
Which AssemblyAI model runs where
Before the four challenges, a practical note, because the answer depends on your stack.
| Where you build | AssemblyAI model to use | Model ID |
|---|---|---|
| Vapi assistant | Universal-3.6 Pro Realtime (the newest model Vapi's transcriber accepts today) | universal-3-6-pro |
| AssemblyAI streaming API directly | AssemblyAI-STT-3.7-Realtime-Agent | assemblyai-stt-3-7-realtime-agent |
| LiveKit Agents | AssemblyAI-STT-3.7-Realtime-Agent | assemblyai-stt-3-7-realtime-agent |
| Pipecat 1.17.0 or later | AssemblyAI-STT-3.7-Realtime-Agent (the AssemblyAISTTService default) |
assemblyai-stt-3-7-realtime-agent |
AssemblyAI-STT-3.7-Realtime-Agent is our model built for voice agents and the successor to Universal-3.6 Pro Realtime. On 12,460 English voice-agent calls it has a 4.53% word error rate and a 13.2% entity error rate, the lowest of the 26 streaming models we ran, ahead of Soniox Realtime v6, ElevenLabs Scribe v3 Live and Deepgram Nova-3. The full method is in the AssemblyAI-STT-3.7-Realtime-Agent research post.
On Vapi, set speechModel to universal-3-6-pro explicitly. Vapi's default is universal-streaming-english, which doesn't support prompting, conversation context, language steering or the mode preset. Universal-3.6 Pro Realtime posted a 5.26% word error rate on the same 12,460-call benchmark.
Challenge 1: Interruptions and overlapping speech
Rigid turn-taking makes an agent feel robotic. The caller starts talking, the agent keeps going, they talk over each other, and by the second collision the caller has given up and is mashing zero.
Two things have to work at once. The agent has to notice speech fast enough to stop talking, and it has to be right about whether that speech was an interruption. Get the first wrong and barge-in feels laggy. Get the second wrong and every "uh-huh" kills the agent mid-sentence.
The speech layer's half. AssemblyAI emits a SpeechStarted event only once the model has produced a transcript, so a cough or a door slam on its own doesn't fire it. On AssemblyAI-STT-3.7-Realtime-Agent the first partial arrives as soon as speech begins (interruption_delay defaults to 0 in every mode), and only 1.0% of words change between partial and final, down from 3.2%, so the partial your orchestrator acts on is close to the final.
Vapi's half. Deciding whether detected speech should cancel the assistant's reply is a policy question. Vapi's stop-speaking plan handles it: a backchannel "mhm" during a long explanation shouldn't stop the agent; "no, wait" should.
On Vapi today: if backchannels keep stopping the assistant, the default voice-activity interruption is the cause (stopSpeakingPlan.numWords: 0). Raise voiceSeconds, or set numWords to 1–3 and tune acknowledgementPhrases. See interruption handling in the Vapi guide.
Challenge 2: Maintaining context in conversations
The agent asks for your email address. You say it. Three turns later it asks again, because the transcript came back as "user at assemblyai dot com" and nothing downstream could parse it.
That looks like a memory problem. It's a transcription problem.
The speech layer's half. Two documented features fix it at the source:
agent_contextpasses your agent's last spoken line into the model, so it transcribes the reply knowing what was asked. After "What's your email address?", it producesuser@assemblyai.com. The impact is largest on short replies ("yes", "7pm", a single name) and spelled-out entities.- Context carryover keeps prior finalized caller turns in the model's memory automatically, with no configuration.
Short replies are where AssemblyAI-STT-3.7-Realtime-Agent moved most against Universal-3.6 Pro Realtime: one- and two-word answers are wrong 29% less often and dropped 38% less often, and number errors on Voice Code Bench fall 80%.
Vapi's half. Vapi's structured workflows store the details that matter across the session in variables, instead of trusting the LLM to hold them in its context window. An LLM asked to remember an account number for twelve turns will sometimes remember a different one. A workflow variable won't.
On Vapi today: agentContextAutoUpdateEnabled is off by default on Vapi, unlike the LiveKit and Pipecat integrations. Turn it on, and seed the first turn with your greeting:
{
"firstMessage": "Hi, thanks for calling Acme. What is the email on your account?",
"transcriber": {
"provider": "assembly-ai",
"speechModel": "universal-3-6-pro",
"agentContext": "Hi, thanks for calling Acme. What is the email on your account?",
"agentContextAutoUpdateEnabled": true
}
}Challenge 3: Background noise and background speech
A person on a call filters automatically: you hear the caller and tune out the TV, the dog, the coworker two desks over. A speech model transcribes what it's given, and every extra voice is a chance to put words in the caller's mouth. At a drive-thru, that's the kids in the back seat placing the order.
The old advice was to run noise cancellation on the client before sending audio. Aggressive client-side denoising introduces artifacts, and those artifacts usually cost more accuracy than the noise did.
The speech layer's half. AssemblyAI-STT-3.7-Realtime-Agent focuses on the person talking to the agent. Words added while the caller was silent fall 47% against Universal-3.6 Pro Realtime, and in heavy background noise its word error rate is 5.32%, ahead of Soniox Realtime v6, ElevenLabs Scribe v3 Live and Deepgram Nova-3. That suppression works without configuration for most call environments. For a second talker close to the microphone, add Voice Focus server-side: near-field for headsets and handsets, far-field for kiosks, laptops and conference rooms (+$0.10/hr).
For domain vocabulary, add keyterms: up to 100 terms, included in the base price. Product names, street names, whatever your callers say that a general model wouldn't expect.
On Vapi today: Vapi's transcriber doesn't expose voice_focus, so the model's defaults apply. Add your vocabulary through keytermsPrompt, and if you've turned on Vapi's backgroundSpeechDenoisingPlan, compare transcripts with and without it before keeping it.
Challenge 4: Latency
Past about a second of silence, a conversation stops feeling like a conversation. The caller starts talking again, repeats themselves, or assumes the call dropped.
Most teams attack this by shaving milliseconds off inference. The bigger cost is usually deciding the caller has finished.
Traditional pipelines wait out a fixed silence window, 700 ms or a full second, and then declare the turn over. Every turn pays that tax, and the window can't win: short enough to feel fast means cutting people off mid-number.
The speech layer's half. AssemblyAI's turn detection reads the transcript. When the caller pauses, the model judges whether they're finished or just between thoughts, and entity-aware endpointing holds the turn open when it ends on something that may continue, like part of a phone number. On Universal-3.6 Pro Realtime in balanced mode, that cut phone-number entity errors from 7.0% to 2.2% with no change to median end-of-turn latency. AssemblyAI-STT-3.7-Realtime-Agent returns the final transcript 86 ms after speech ends and has 12% fewer false end-of-turn events than Universal-3.6 Pro Realtime.
The mode preset is the top-level dial:
| Mode | What it optimizes | Use it for |
|---|---|---|
min_latency |
Fastest turn endings | Short, transactional turns and simple confirmations |
balanced (default) |
The middle of the trade-off | Most production agents |
max_accuracy |
Best transcripts, longer holds for entities | Noisy or far-field audio, entity-heavy calls |
Vapi's half, and the setting that costs people real latency. When vadAssistedEndpointingEnabled is left at true, which is how Vapi ships it, Vapi waits for its own VAD to agree before acting on AssemblyAI's end-of-turn, which adds time to every turn. Set it to false. A startSpeakingPlan.smartEndpointingPlan overrides AssemblyAI's silence settings entirely, so remove it if you want AssemblyAI's turn detection. We've seen teams blame the model for turn latency that was a stacked delay in the layer above it.
4.53% word error rate on 12,460 voice-agent calls, final transcripts 86 ms after speech ends, and 32 languages in one stream. Start with $50 in free credits.
How to implement an AI voice agent
Four steps, in the order that works.
1. Define the job and how you'll know it's working
Pick one workflow, not five. Then pick the metric before you build: containment rate, average handle time, booking completion, escalation rate. "It sounds good" isn't a metric, and it's how teams end up shipping an agent nobody can evaluate.
2. Choose your stack
| Component | What it does | Options |
|---|---|---|
| Speech-to-text | Turns caller audio into text and decides when the caller is done | AssemblyAI-STT-3.7-Realtime-Agent ($0.45/hr of session time, keyterms included); Universal-3.6 Pro Realtime on Vapi |
| LLM | Decides what to say and which tools to call | Claude, GPT, Gemini, open-weight models, routed through the LLM Gateway if you want one API |
| Text-to-speech | Turns the reply into audio | The AssemblyAI Text-to-Speech API, ElevenLabs, Cartesia and others |
| Orchestration | Wires it together, handles interruptions, gives you observability | Vapi, LiveKit, Pipecat |
3. Integrate and configure
If you're on the AssemblyAI streaming API directly, these are the connection parameters that decide how the agent feels. Keyterms go in as one JSON-encoded parameter:
import json
from urllib.parse import urlencode
GREETING = "Hi, thanks for calling Acme. What is the email on your account?"
CONNECTION_PARAMS = {
"sample_rate": 16000,
"speech_model": "assemblyai-stt-3-7-realtime-agent",
"mode": "balanced",
"agent_context": GREETING,
"keyterms_prompt": json.dumps(["Acme", "Acme Plus", "order number"]),
"voice_focus": "near-field",
}
url = f"wss://streaming.assemblyai.com/v3/ws?{urlencode(CONNECTION_PARAMS)}"After each agent reply, send it as context so the next caller turn is transcribed with the question in mind:
websocket.send(json.dumps({"type": "UpdateConfiguration", "agent_context": agent_reply}))The levers, in short:
agent_context: the agent's last line, updated after every reply.voice_focus:near-fieldorfar-field, matched to how your callers hold the microphone. Set at connection time.mode: start atbalanced; move tomax_accuracyif your audio is rough.keyterms_prompt: up to 100 terms; your vocabulary, updatable mid-stream.language_codes: steer toward the languages your callers speak. Leave it out and the model code-switches across all 32 supported languages.- Turn silences: leave
min_turn_silenceandmax_turn_silenceat the preset's defaults unless you have a measured reason to change them.
On LiveKit and Pipecat, the same options are plugin arguments, and both forward the agent's replies as context for you. On Vapi, use the transcriber fields shown earlier.
4. Test on your own audio, then keep testing
Build a folder of your own worst recordings: the noisy one, the accented one, the one where someone spells a name, the one where a caller switches languages. Re-run it every time you change a setting.
That folder will tell you more than any public benchmark, including ours. Your agent doesn't have to be good at average audio. It has to be good at your audio.
The future: modularity, and knowing when you don't need it
The bet in the original version of this post was that modular stacks would win over single end-to-end speech-to-speech models: teams would want to pick their own speech-to-text, their own LLM and their own voice. That has held up. Vapi's whole business is that flexibility, and the teams shipping the most sophisticated agents are the ones using it.
There's a second thing happening that we didn't call: most teams don't need that flexibility on day one, and it costs them weeks to find out.
So the split now looks like this. If your differentiation is the conversation (the flows, the tools, the domain knowledge), start with an orchestrator that handles the plumbing and get to production. If your differentiation is in the stack (a specific voice, a self-hosted model, a latency budget nobody else has), assemble it yourself and own only the parts you need to own.
What's improving underneath both, quickly: accuracy on hard audio, code-switching without a language-detection pass, turn detection that reads what the caller said instead of how long they've been quiet, and focus on the caller over the room.
The thing that separates good agents from bad ones
Here's what a year of watching production deployments has convinced me of, and it isn't about models.
Each of these four challenges has a technical fix available today. None of them is an open research problem. And plenty of agents in production still handle all four badly.
The good teams treat their voice agent as a system with a feedback loop; the bad ones treat it as a feature they shipped. The good ones listen to failed calls every week. They know their entity error rate on their own audio, not on a benchmark. They notice the agent gets Spanish surnames wrong and add them to keyterms the same day.
Voice is the only interface where your users hand you a perfect recording of every failure. Most teams never listen to them. The teams that win are the ones paying attention to what their own callers are saying.
Get a free API key and connect AssemblyAI to your Vapi assistant, your LiveKit or Pipecat pipeline, or your own stack. Pay per second of session time, no minimums.
Frequently Asked Questions (FAQs)
What's the difference between an AI voice agent and a chatbot?
An AI voice agent understands and responds to spoken language in real time, while a chatbot handles typed text. Voice forces capabilities a chatbot never needs: detecting when the caller is finished, stopping mid-sentence when they interrupt, transcribing names and numbers accurately enough to act on, and doing it within a latency budget short enough to feel like a conversation. The speech pipeline is where most of the engineering difficulty lives.
Which AssemblyAI speech model should I use with Vapi?
Set the transcriber's provider to assembly-ai and speechModel to universal-3-6-pro, the newest AssemblyAI model Vapi accepts today. Set it explicitly, because Vapi defaults to universal-streaming-english. On the AssemblyAI API directly, LiveKit, or Pipecat 1.17.0 and later, use assemblyai-stt-3-7-realtime-agent.
What is acceptable latency for an AI voice agent?
Keep the gap between the caller finishing and the agent replying under about a second; past that, callers repeat themselves or assume the line dropped. Most of that budget goes to deciding the caller has stopped. AssemblyAI-STT-3.7-Realtime-Agent returns the final transcript 86 ms after speech ends, and on Vapi, setting vadAssistedEndpointingEnabled to false removes an extra wait on every turn.
How many languages can an AI voice agent support in real time?
AssemblyAI-STT-3.7-Realtime-Agent supports 32 languages in one stream with automatic detection and native code-switching, so a caller can switch languages inside a sentence without a detection pass or a model swap. Pass language_codes when you know which languages to expect. Universal-3.6 Pro Realtime on Vapi also covers 32 languages.
How do I stop background noise from ruining voice agent transcripts?
Skip client-side noise cancellation, which tends to add artifacts that cost more accuracy than the noise. AssemblyAI-STT-3.7-Realtime-Agent focuses on the person talking to the agent by default, cutting words added while the caller is silent by 47% against Universal-3.6 Pro Realtime. When a second talker is close to the microphone, add Voice Focus (near-field or far-field) server-side.
How do AI voice agents connect to business systems like a CRM or scheduler?
Through tool calls: the agent's LLM invokes a function you define, your backend runs it against the CRM, scheduler or order system, and the result comes back into the conversation. Vapi lets you define these as workflow steps with conditional logic, so a booking flow follows a defined state machine instead of depending on the model to remember its own instructions.