Voice agent testing: how to test an AI voice agent before launch
By Supriya · · 15 min read

AI voice agent testing is harder than chat testing. A reply can be correct and still fail: it arrives two seconds late, talks over the caller, or mishears a name on an 8 kHz phone line. Passing a text test tells you little about the call.
This guide shows how to test AI voice agents: what to test, how to build a set of test scenarios, how many simulated calls a release needs, and where to set pass/fail lines. It includes an original test matrix and worked math. Tools appear as categories, with examples from observability and evals on AI Voice Base. Facts come from vendor docs read on 24 November 2026.
What voice agent testing covers
Voice agent testing checks the whole call: speech recognition, the language model, tool calls, speech synthesis and the timing between them. Voice agent evaluation, the scoring side, has its own Voicepedia entry. Seven areas matter before launch.
| Area | What you test | Typical failure |
|---|---|---|
| Task completion | Did the caller's goal get met, and does the system of record agree? | Agent says "booked" but no record exists |
| Turn-taking and barge-in | Does it stop when interrupted and resume correctly? | Finishes its line, then answers stale input |
| Latency | Gap between caller silence and first agent audio | Long pauses; caller says "hello?" |
| Audio conditions | Accents, noise, codecs, speakerphone | Confidently wrong name or digit |
| Tool calls | Right tool, right arguments, right order | Wrong date passed to a calendar API |
| Edge cases and adversarial callers | Silence, self-correction, off-topic, prompt injection | Invents a process or leaks data |
| Compliance phrases | Required disclosures said, every call | Recording notice skipped |
Deepgram's voice agent testing guide proposes a nine-scenario starter suite. It includes a mid-sentence correction ("Tuesday, no, Thursday"), a caller who interrupts, three seconds of silence, an out-of-scope request, background noise with a second voice, a strong accent, and a wrong-number caller. It sets no universal pass line. It says your business sets it.
How to test a voice agent before launch
Follow these steps in order. Each one produces something you can reuse in the next.
- Write the goals as testable outcomes. For each call type, state the end state: "an appointment exists for Thursday at 3 pm in the calendar." Where the agent writes to a system, plan to diff that system after the call.
- List scenarios from real calls and the prompt. Voice agent test scenarios start with the happy path. Then add one scenario per rule in the prompt and per failure you have seen. Aim for 10 to 15 test scenarios before launch.
- Test the parts first. Run your own audio through speech-to-text, and check text-to-speech on the names and numbers you must say. Soniox's testing guide advises testing recognition in isolation first, so later failures are easier to trace.
- Script the deterministic checks. For single-turn behaviours (tool call, refusal, required phrase), write assertions. See the code below. These run fast and belong in CI.
- Add simulated callers for multi-turn behaviour. An LLM plays a persona with a goal, and a judge scores the whole call against a written success condition. Use text mode for speed and audio mode for the full pipeline.
- Cross scenarios with conditions. Use the matrix in the next section: clean line, 8 kHz phone audio, noise, accents, fast and slow speakers, interruptions.
- Repeat each scenario. One passing run proves little. Run each scenario several times and gate on the pass rate (worked math below).
- Load test, then rehearse with people. Run concurrent calls at your peak, then have staff and a few outsiders place real calls over the real phone number.
- Freeze the suite as a regression gate. Run voice agent regression testing in CI: re-run it on every prompt edit, model swap, voice change or tool change, and add every production failure as a new scenario.
Scripted checks in code
LiveKit's test framework runs in pytest without opening a room. This simplified example follows its documented API. Substitute your own agent class and model.
import pytest
from livekit.agents import AgentSession, inference
from agent import Assistant # your agent
MODEL = "..." # pick a model from LiveKit Inference or a plugin
@pytest.mark.asyncio
async def test_lookup_calls_tool() -> None:
async with (
inference.LLM(model=MODEL) as llm,
AgentSession(llm=llm) as session,
):
await session.start(Assistant())
result = await session.run(user_input="What's the weather in Tokyo?")
result.expect.next_event().is_function_call(
name="lookup_weather", arguments={"location": "Tokyo"}
)
result.expect.next_event().is_function_call_output()
await (
result.expect.next_event()
.is_message(role="assistant")
.judge(llm, intent="Reports the weather in Tokyo.")
)
result.expect.no_more_events()
The docs note these tests call your model provider live, so CI needs API keys stored as secrets. LiveKit's testing overview recommends unit tests for single-turn behaviour such as tool use, and simulations for multi-turn flow and misuse resistance. Its simulations use text by default. Audio is optional and exercises the full speech-to-text, LLM and text-to-speech path.
Pipecat has a similar built-in system. Per its evals overview, scripted scenarios define the caller's turns and the events you expect back, such as a phrase, a function call or a latency budget. Simulated scenarios give an LLM a persona: and goal:, and a judge checks a success: criterion. The docs position evals as fast, local checks to run on every change. For varied callers and load, they point to third-party platforms. For framework choices, see the open-source voice agent frameworks guide.
The scenario-by-condition test matrix
Most test plans list scenarios and stop. Callers do not arrive in clean audio. The matrix below crosses what the caller wants (rows) with how the call sounds (columns). It is an original framework: copy it and edit the cells.
Test matrix: a grid of scenario tiers by audio or behaviour conditions, with a run count in each cell, so coverage and cost are visible before you run anything.
| Tier | Scenarios (example) | Conditions per scenario | Repeats | Calls |
|---|---|---|---|---|
| A. Core tasks | 4: book, reschedule, cancel, look up | 6: clean, 8 kHz phone, noise, accent, fast speaker, interruptions | 5 | 120 |
| B. Edge cases | 5: self-correction, silence, spelled name, wrong number, out of scope | 3: clean, 8 kHz phone, noise | 5 | 75 |
| C. Adversarial | 3: prompt injection, pressure to skip checks, data fishing | 1: clean | 10 | 30 |
| D. Compliance | 2: recording notice, identity check | 2: clean, 8 kHz phone | 5 | 20 |
| Total | 14 | 245 |
How to read it:
- Cells diagnose, scenarios gate. A cell with 5 runs is too small to judge. Pool each scenario across its conditions (Tier A: 30 runs) for the pass/fail decision, and use cells to find which condition broke.
- Do not cross everything. A full cross of 14 scenarios by 6 conditions by 5 repeats is 420 calls. Tier B to D use fewer conditions because their risk is behavioural, not acoustic.
- Match conditions to reality. Phone calls use a narrowband telephony codec. Soniox advises testing over an actual 8 kHz telephony path, and warns that clean synthetic callers overstate performance. See telephony codecs and barge-in for the mechanisms.
- Adversarial runs are cheap to add. Red-team prompts need no accent or noise grid. Give them more repeats instead, because attacks succeed on some runs and not others.
How many simulated calls a release needs
How many test calls before launching a voice agent? It depends on the failure rate you must rule out. Agent output varies run to run, so you measure a rate. Two questions set the call count.
1. How many clean runs prove a low failure rate? If you see zero failures in n independent runs, the 95% upper bound on the true failure rate is about 3/n. This is the "rule of three" from Hanley and Lippman-Hand (JAMA, 1983). It follows from (1 − p)^n = 0.05, so n = ln(0.05) / ln(1 − p).
Worked example (calculated, 95% confidence): to show a failure rate under 1%, n = ln(0.05) / ln(0.99) = 298.07, so 299 clean calls. For 2% you need 149, for 5% you need 59, and for 10% you need 29.

One failure resets the count. If a 50-call run shows 3 failures (6%), the 95% Wilson interval for the true rate is about 2.1% to 16.2%. That range is wide. A 50-call run cannot tell a 3% agent from a 12% agent.
2. How many runs detect a regression? To tell a 5% failure rate from a 10% rate with 80% power at 95% confidence, a standard two-proportion calculation needs about 435 calls per version. A jump from 5% to 15% needs about 140 per version. Small regressions need big runs, so spend your volume on the scenarios that matter most.
3. Why repeat runs? Cekura lists a pass^3 metric on its site, the chance that all three runs of a scenario pass. If each run passes with probability p and runs are independent, pass^3 = p³.

Worked example: a scenario that passes 90% of single runs passes three in a row only 0.9³ = 72.9% of the time. That is why a single green run is weak evidence.
Cost of the 245-call matrix. Assumptions: 3 minutes per call and $0.10 per minute all-in (agent stack plus simulated caller). Then 245 × 3 × $0.10 = $73.50 per full run. Replace the $0.10 with your own figure from cost per call. Text-mode simulations cost less. Vapi's docs say chat simulations run faster and cost less than voice simulations.
Load is a separate count. Concurrent calls = arrival rate × average call length (Little's law). At 600 calls per hour and 4 minutes per call, that is 600 / 60 × 4 = 40 concurrent calls. Test at your peak, then at 2 to 3 times it.
Pass/fail thresholds
Voice agent pass fail thresholds are set by you. No source publishes universal pass lines. Deepgram's guide says the business sets them. The numbers below are starting points to tune from your own baseline, not industry standards.
| Metric | Starting gate | How to measure |
|---|---|---|
| Task completion, core scenarios | 95% or higher per scenario over 30 runs | End state in the system of record |
| Compliance phrases | 100% of runs | Phrase present in transcript, in order |
| Adversarial scenarios | 0 breaches in 30 runs | Judge plus human review of any flag |
| Response latency, p50 | 800 ms or less | Caller silence to first agent audio |
| Response latency, p95 | 1,500 ms or less | Same, over all turns in the suite |
| False barge-in | Under 5% of turns | Agent stops with no caller speech |
| Missed barge-in | Under 5% of interruptions | Agent keeps talking over the caller |
| Tool-call accuracy | 98% or higher | Name and arguments both correct |
Three cautions about thresholds:
- Gates have limits. With 30 runs, 29 passes (96.7%) has a 95% Wilson interval of about 83% to 99%. The gate catches large drops, not small ones. Trend the numbers across releases.
- Percentiles need turns, not calls. A 50-call suite with 6 turns each gives 300 latency samples, which is enough for p50. A p95 from 50 samples rests on the slowest two or three values.
- Compliance is binary. Treat a missing disclosure as a failed call, never as a score to average. Cekura's site lists checks for a HIPAA disclosure, identity verification and recording notice. The legal rules are yours to confirm with counsel.
Manual versus automated testing
Manual vs automated voice agent testing is not either-or. You need both. They find different problems.
| Manual calls | Automated simulation | |
|---|---|---|
| Finds | Awkward tone, odd pacing, things you did not think to script | Regressions, rare failures, variance |
| Volume | 10 to 30 calls per release | Hundreds to thousands |
| Repeatable | No | Yes |
| Cost | Staff time | Per-call compute and tooling |
| Weakness | Cannot repeat a failure on demand | Simulated callers sound synthetic |
Use manual calls to write scenarios and to listen. Use automation to prove nothing broke. Convert every surprising manual finding into a scripted or simulated scenario. Cover both ends: a human also reviews the lowest-scoring simulated calls, because an LLM judge can be wrong. Deepgram's guide cites one binary judge per question reaching 90% precision and recall against human labels in one case, which is good but not perfect.
Testing tools by category
Four categories cover most needs, from automated AI voice agent testing in CI to production monitoring. Examples are listed on AI Voice Base. This is not a ranking, and no tool here was run for this post. Details come from each vendor's site on 24 November 2026. Pricing is not published on the pages reviewed for any of them.
Framework built-ins. LiveKit Agents ships unit tests, a CLI debugger and simulations. Pipecat ships evals and suites. They are free to run, close to your code, and strongest on scripted checks.
Simulation and QA platforms. These generate callers, run scenarios and score calls.
- Hamming lists simulated calls with 50+ built-in metrics, red-teaming, load testing of 50K+ concurrent calls, and CI/CD gates. It publishes SOC 2 Type II and HIPAA support at hamming.ai.
- Cekura lists scenario testing, adversarial and compliance checks, and a deploy gate at cekura.ai. Load testing is not mentioned there.
- Bluejay describes simulated callers with interruptions, accents and slow talkers, regression testing and vendor comparison at getbluejay.ai. It does not mention load testing.
- Roark describes simulated callers and per-call scoring, with config defined as code, at roark.ai. It states SOC 2 Type II.
- Coval lists simulation, load testing, regression tests and production call replay at coval.ai.
- NovaSynth by Noveum describes reusable personas and scenarios, with checks from 36 voice and audio scorers, at noveum.ai.
- Evalgent describes scenarios with objectives and success criteria, caller profiles (interruptions, background noise, fast speech, impatient callers), batch evaluations that run each test several times with a configurable success-rate threshold (its sample uses 80%), and limit testing that escalates noise or pace to find where reliability drops. Its blog describes Evalgent Monitor for production calls. Its pages do not mention CI integration or load testing. Pricing and compliance certifications are not published.
Platform built-ins. Vapi documents simulations and evals in its platform, with chat and voice modes. It says to run critical scenarios multiple times.
Production monitoring. Contact-center QA and monitoring vendors score live calls after launch. That is a different job from pre-launch testing. See the observability and evals category for the full list.
Pick by your gaps. If you need CI gates, check that the tool runs from your pipeline. If you need concurrency, ask for the call volume and telephony path it supports. If you handle health data, ask for the compliance documents.
Gotchas that skew results
- Clean TTS callers flatter you. Synthetic callers speak clearly with no line noise. Add 8 kHz audio and noise, or pass rates will be too high.
- Judge drift. An LLM judge changes with its model and prompt. Pin the judge version and re-baseline when you change it.
- Scoring tool success as call success. Vapi's docs warn that a tool reporting success does not prove an external system changed. Check the end state.
- Prompt sensitivity. Deepgram's guide cites studies in which one-word prompt changes shifted results sharply. Re-run the full suite after every edit, not only the scenario you touched.
- Timeouts that punish real callers. Deepgram's guide describes a healthcare team whose 8-second silence timeout dropped callers who said they would hold. Test the silence path.
- Testing the happy path against a stub. Run at least one pass against the real telephony and real tools, not mocks.
Related guides: the best voice agent testing tools, the voice agent evaluation framework and the open source voice agent testing frameworks.
Frequently asked questions
What is voice agent testing?
Voice agent testing is running scripted and simulated calls against an AI voice agent to check task completion, turn-taking, latency, tool calls and compliance before real callers reach it. Because model output varies, each scenario is run many times and judged by pass rate, not by one result.
How do you test an AI voice agent before launch?
Write end-state goals, build 10 to 15 scenarios, cross them with audio conditions, run each several times, and gate on pass rates. Add scripted assertions for tool calls and phrases, simulated callers for multi-turn flow, a load test at peak concurrency, and a few real phone calls. Re-run everything on each change.
How many test calls does a voice agent need?
For a failure ceiling of 1% at 95% confidence with zero failures, about 299 calls. For 5%, 59 calls. Detecting a regression from 5% to 10% failures needs roughly 435 calls per version. A practical matrix is 200 to 300 calls, with the most volume on core tasks.
What metrics should I track in voice agent tests?
Track task completion against the system of record, tool-call accuracy, response latency at p50 and p95, false and missed barge-in, compliance-phrase presence and false statements. Add turns to resolution and escalation rate. Measure speech recognition accuracy on your own audio, because vendor word error rate (WER) figures come from their test sets.
Can an LLM play the caller in tests?
Yes. Simulated callers use a persona and goal, and a judge scores the call against a success condition. LiveKit, Pipecat and Vapi all document this. Treat the judge as fallible: sample its scores against human review, pin its version, and keep deterministic assertions for anything that must never fail.
Should voice agent testing be manual or automated?
Both. Manual calls find tone and pacing problems and inspire new scenarios, but they cannot repeat. Automated runs give volume, repeatability and regression gates. Use manual testing to write scenarios, automation to prove nothing broke, and human review of the worst simulated calls.
How do you test voice agent latency?
Measure the gap from the end of caller speech to the first agent audio on every turn, then report p50 and p95 across the suite. Test over the real telephony path and under concurrent load, because both add delay. Pipecat scripted scenarios can assert a latency budget directly.
What is a voice agent testing platform?
A voice agent testing platform generates simulated callers, runs scenarios against your agent over phone or web audio, and scores each call on metrics such as task completion and latency. Many add regression gates, load tests and production monitoring. Examples listed on AI Voice Base include Hamming, Cekura, Bluejay, Roark, Coval, Evalgent and NovaSynth.
The bottom line
Voice agent testing works when you cross scenarios with real audio conditions, repeat every scenario, and gate on pass rates instead of single calls. Budget roughly 250 calls per release for a 14-scenario matrix, and add every production failure back into the suite.


