Back to Home
AI Development

Building and Testing Voice AI Agents: Why It's Harder Than Text and How to Validate One Works

Voice AI agents fail in ways text agents don't: ASR errors, barge-in, latency, no transcript diff. The stack and how to actually test one before shipping.

13Labs Team5 August 20267 min read
voice AIvoice agentsAI evalsspeech to texttext to speech

Contents

Why is a voice AI agent harder to build than a text agent?

A voice pipeline stacks four failure points on top of an LLM: speech-to-text, the model, text-to-speech, and turn-taking. Hamming AI's 2026 review of 1,000 production voice agent failures found 42% were voice-specific issues invisible to transcript-only analysis: mishears, dead air, talking over the caller, or a reply that never arrives. A builder working on an AI tool for dentists at a 13Labs buildDay put it plainly: "Local STT and TTS on a mobile device is the roughest one. The ultimate goal is to have local duplex real time communication." That single sentence contains most of the hard problems in this guide: running speech models on-device, and doing it in both directions at once without a delay the caller can hear.

What's actually in a voice AI stack right now?

A voice AI agent in 2026 chains four separate layers: speech-to-text, the LLM, text-to-speech, and an orchestration layer that manages turn-taking between them, and each layer has its own competing vendors rather than one obvious default. Speech-to-text is led by Deepgram Nova-3, text-to-speech by ElevenLabs and Cartesia, and orchestration by Pipecat and LiveKit Agents. Managed all-in-one platforms like Vapi, Retell AI and Bland handle all four layers together, for teams that don't want to assemble and maintain their own stack. Pipecat, built by Daily.co and open source, already has Deepgram, AssemblyAI, OpenAI, Gemini, Cartesia and ElevenLabs wired in as swappable providers. That means changing your text-to-speech vendor is close to a one-line configuration change rather than a rebuild of the pipeline.

How much latency actually feels natural in a voice conversation?

Human conversation naturally responds within 200 to 500 milliseconds, and most production voice AI in 2026 still runs at 1.5 to 2 seconds end to end (Hamming AI, 2026). That gap is why so many voice agents feel like a phone call with a satellite delay, even when every individual component is fast. The fastest individual components beat that gap by a wide margin on their own. Cartesia claims 40 millisecond time-to-first-audio for its Sonic-3 model, and OpenAI's gpt-realtime-2.1-mini reportedly hits 212 milliseconds (TechTimes, 7 July 2026). The bottleneck isn't any single component, it's running speech-to-text, the LLM and text-to-speech one after another in the same turn. One trap worth knowing before you trust a vendor's latency claim: Gradium's 2026 benchmark work flags the difference between time-to-first-byte and time-to-first-audio. The first bytes returned by a streaming API are often container headers, not actual audio, so a fast TTFB number can still hide a slow TTFA in practice.

Why can't you just diff a transcript to test a voice agent?

Because the same input can produce a different, still-acceptable output every time, so a single-run pass/fail transcript diff tells you almost nothing about whether the agent actually works. Voice pipelines are non-deterministic: background noise, accent variance and ASR errors mean the same test call can succeed on one run and fail on the next. Another buildDay participant, working on a separate project, described the result of testing this way: "Testing voice agents has been a painful process." The fix isn't a better transcript diff, it's a different testing method entirely: multi-run success-rate scoring across repeated attempts at the same scenario, rather than one comparison against one expected transcript (Evalgent/Hamming AI, 2026).

How do you test turn-taking and interruption handling?

Test at least five separate scenarios: a true correction, a short backchannel, background noise, DTMF input, and silence-timeout recovery. Each one exercises a different failure mode in how the agent decides whose turn it is to talk. End-of-turn detection typically combines an 800 to 1200 millisecond silence threshold with a semantic completeness check, so the agent doesn't cut the caller off mid-sentence just because they paused to think (Hamming AI / FutureAGI, 2026). Testing all five scenarios separately catches barge-in bugs that a single happy-path call will never surface.

Can speech-to-text and text-to-speech actually run locally on a mobile device?

Partially, and with real trade-offs on both latency and battery. Whisper Small hits roughly 150 to 300 millisecond latency in batch mode, but streaming transcription on Android runs 5 to 7 times slower than real-time, with latency climbing from 3 seconds to 30 seconds over the course of a session (GitHub, ggml-org/whisper.cpp Discussion #3567, 2026). Battery is the other cost. A fully on-device run drains 25 to 35% of battery per hour of active conversation, against 10 to 15% per hour for a hybrid setup that offloads part of the pipeline to the cloud. For most mobile products in 2026, that trade-off still points toward hybrid rather than fully local.

Why is local duplex real-time voice still basically unsolved?

Because duplex means speech-to-text, the LLM and text-to-speech all have to run concurrently in both directions without a latency spike or a battery cliff, and no current mobile stack does that cleanly. That's exactly the goal the dentist-app builder named at the start of this guide, and it's still out of reach for the same reason cited above: on-device streaming is already 5 to 7 times slower than real-time on its own, before you ask it to run in both directions at once. Almost every product marketed as "on-device" voice AI still round-trips through the cloud for the LLM turn, even when speech-to-text and text-to-speech run locally. True local duplex needs all three layers solved on-device simultaneously, and today's mobile hardware isn't there yet.

What's the actual pain in avatar and video agents like Synthesia?

A third buildDay participant, building a fintech avatar customer experience interface, described getting stuck on "Integrating Synthesia." Avatar and video agents add a rendering layer on top of everything already covered in this guide, and it comes with its own cost structure. Re-renders consume your full minute budget rather than just the difference: fixing a typo in a 3-minute video costs another 3 minutes, 6 in total, because the platform re-renders the whole clip rather than patching the change. Lip-sync and expression fidelity also remain a known limitation of current avatar platforms (Tavus/Skywork reviews, 2025-26), which is worth budgeting for before you commit a product experience to one.

How do you actually validate a voice agent before shipping it?

Run simulated-caller regression testing against a fixed set of scenarios, target P95 latency under 800 milliseconds, aim for over 90% interruption recovery, and review transcripts and audio together, never the transcript alone. This is now a category with dedicated tooling, not a task you bolt onto general LLM evals. Coval, founded by ex-Waymo evaluation infrastructure engineer Brooke Hopkins, raised a $28 million Series A in June 2026 (Norwest, Base10, Twilio Ventures, Y Combinator), applying self-driving car simulation methods to voice agents. Hopkins frames the gap it fills: "Every company is going to have a voice agent just like they have a mobile app or a web app, but today, most enterprises don't have the infrastructure to deploy these systems with confidence. Coval gives teams the ability to simulate, monitor and continuously improve voice agents, so they can move from experimentation to reliable production at scale." Hamming AI runs the same category of testing at larger scale, protecting more than 10 million minutes across over 10,000 deployed voice agents. Its founder and CEO, Sumanyu Sharma, frames the goal this way: "At Hamming, we're taking all of our learnings from Tesla and Citizen to build the future of trustworthy, safe and reliable voice AI agents."

Frequently asked questions

What's the difference between testing a voice AI agent and a text-based AI agent? A text agent's output is deterministic enough to diff against an expected transcript. A voice agent adds acoustic variance (accents, noise, pitch) and timing (a 2-second pause reads as broken) on top of the same LLM logic, so testing needs multiple runs of the same scenario and a success rate, not a single pass/fail check. What word error rate should I expect from speech-to-text in 2026? Vendors quote their best numbers: Deepgram claims 5.26% WER for Nova-3 on batch audio. Independent benchmarks measure it higher, around 7-10% on Artificial Analysis's index and 12.3% in a July 2026 test across 904 audio files. Budget for the independent number, not the vendor's. Can I run speech-to-text and text-to-speech fully on a mobile device without the cloud? Partially. Whisper Small gets you ~150-300ms STT latency in batch mode with roughly 12% WER, but streaming transcription on Android runs 5 to 7 times slower than real-time and battery drain hits 25 to 35% per hour of active conversation. Full local duplex, where STT, LLM and TTS all run concurrently on-device, is not yet practical for most mobile hardware. What counts as natural latency for a real-time voice agent? Human conversation naturally responds within 200 to 500 milliseconds. Most production voice AI in 2026 still sits around 1.5 to 2 seconds end to end. The fastest current stacks, like Cartesia Sonic-3 for text-to-speech and OpenAI's Realtime API, get individual components down to 40 to 212 milliseconds, but the full pipeline (STT plus LLM plus TTS) is still the bottleneck. Which tools do teams actually use to test voice agents before launch? Purpose-built voice eval platforms, not general LLM eval tools. Coval (Series A, $28 million, June 2026) applies self-driving car simulation methods to run tens of millions of simulated calls. Hamming AI does the same for healthcare and finance, protecting more than 10 million minutes across 10,000-plus deployed voice agents. Both test audio and timing directly, not just the transcript.

Ship a voice AI agent that actually holds up in production

buildAcademy covers the testing discipline voice AI needs beyond a transcript diff, the same rigour we bring to every buildDay build.

See buildAcademy