Voice agent testing framework: open source tools to test voice agents
By Supriya · · 15 min read

A voice agent testing framework runs scripted or simulated callers against your agent and fails the build when behaviour changes. If you are asking how to test voice agents without a paid platform, this guide covers six open source options. For each it gives the exact licence from the repo, what it exercises (text, real audio, turn-taking, latency, telephony), how a scenario is written, how it runs in CI, and where it stops.
Every fact comes from the project's own docs or repo, read on 24 November 2026. Star counts and dates are from GitHub that day. If you are still choosing the agent stack itself, start with the open source voice agent frameworks guide.
How we chose
The six tools below are open source with a licence file in the repo, have working docs and give you something to run in CI. They are grouped by what they test, not ranked.
- Pool. LiveKit and Pipecat are listed on AI Voice Base and ship their own test tooling. VoiceMesh, also listed, is covered under "Also considered". The rest were found on GitHub and the docs of those frameworks.
- Criteria. Licence, test layer (text or audio), scenario format, CI fit, maturity and stated limits.
- Excluded. Hosted platforms (see the short section near the end) and repos with no licence or no docs.
- Maturity warning. Two of the six are young, small projects. voicetest has 40 GitHub stars and was created in January 2026. VoiceCheck has 6 stars and was created in April 2026. Treat them as tools to trial, not as settled standards.
The six voice agent testing framework options at a glance
| Tool | Licence (repo) | Tests | Scenario format | Real audio |
|---|---|---|---|---|
| LiveKit Agents | Apache-2.0 | Turns, tools, handoffs; whole conversations | pytest or Vitest; scenarios.yaml | Audio simulations, on LiveKit Cloud |
| Pipecat Evals | BSD-2-Clause | Scripted turns, simulated callers, latency, DTMF | YAML | Yes, audio mode |
| voicetest | Apache-2.0 | Simulated callers, LLM judges | JSON test cases | Optional audio eval flag |
| VoiceCheck | MIT | Latency, barge-in, silence, tone, load | YAML | Yes, through the real transport |
| promptfoo | MIT | Prompts and LLM output | YAML | No (text and model level) |
| SIPp | See "SIPp" below | SIP signalling, call rate, RTP playback | XML | RTP file playback only |
"Real audio" here means the test speaks audio into the agent's speech-to-text and listens to its text-to-speech. A text-mode test skips both.
What each layer of a voice agent can fail on
Before the tools, a way to choose between them. A voice agent fails in different places, and each place needs a different test.
| Layer | Typical failure | Cheapest test that catches it |
|---|---|---|
| Prompt and LLM | Wrong answer, wrong tool, policy breach | Text-mode scripted test with a judge |
| Tools and state | Bad arguments, no retry after an error | Text-mode test with mocked tools |
| Whole conversation | Agent loops, forgets context, never finishes the task | Text simulation with a goal and a judge |
| Speech path | Mis-heard names and numbers, slow first word | Audio test through real speech-to-text and text-to-speech |
| Turn-taking | Talks over the caller, ignores barge-in, cuts off pauses | Audio test with timed silences and interruptions |
| Network and telephony | Calls fail at volume, jitter and packet loss | SIP and RTP load generator |
Call this the layer-by-layer test matrix. Any voice agent testing framework you pick should cover the layers you ship. To test a voice agent in a CI pipeline, run the top three rows on every commit because they are cheap and deterministic. Run the bottom three on a schedule because they cost real audio minutes. LiveKit's docs give the same advice: text simulations on every commit, audio runs nightly or before release.
The voice agent testing and evaluation glossary pages define the terms used below.
Framework built-ins
LiveKit Agents
Licence: Apache-2.0 (LICENSE file in livekit/agents, 24 November 2026).
LiveKit Agents testing has two layers. Unit tests run your agent turn by turn in pytest (Python) or Vitest (Node.js). Agent Simulations hand the conversation to an LLM-driven caller and judge the whole transcript.
Unit tests run in text mode. LiveKit's docs say scripted input and explicit assertions make each test deterministic and cheap, and that no judge grades the result unless you add one. A simplified test, adapted from the unit tests docs:
@pytest.mark.asyncio
async def test_assistant_greeting() -> None:
async with (
inference.LLM(model="google/gemma-4-31b-it") as llm,
AgentSession(llm=llm) as session,
):
await session.start(Assistant())
result = await session.run(user_input="Hello")
await result.expect.next_event().is_message(role="assistant").judge(
llm, intent="Makes a friendly introduction and offers assistance."
)
result.expect.no_more_events()
session.run() returns a result with every event in the turn: messages, tool calls, tool outputs and handoffs. You step through them with next_event() and assert with is_message(), is_function_call() and similar helpers. With mock tools, a tool is swapped for a stub that returns data or raises an error. You can test failure handling without the real service.
For whole conversations in Python, JudgeGroup runs several LLM judges at once. Built-in judges include task_completion_judge, tool_use_judge, accuracy_judge, safety_judge and handoff_judge. The result exposes score, all_passed and per-judge reasoning, so a CI step can assert on result.all_passed. You can also subclass Judge for deterministic checks that need no LLM.
Simulations are scenarios in a scenarios.yaml file. Each has instructions for the simulated caller and agent_expectations for the judge:
name: Room booking
scenarios:
- label: Book a king room for one night
instructions: >
You are Jordan Reyes, calling a hotel to book a stay.
Your goal is a king room for one guest, one night.
agent_expectations: Room booked successfully
Run it with lk agent simulate text --scenarios scenarios.yaml. This open source voice agent simulation runs in text by default. Audio mode has the simulated user speak and listen over a real audio track, which exercises the full speech-to-text, LLM and text-to-speech pipeline and, per the docs, covers turn-taking, interruption handling, transcription accuracy and the latency a caller hears.
CI: the docs include a GitHub Actions workflow for a CI pipeline. The CLI drops its interactive display when CI is set and exits non-zero when any scenario fails. Unit tests are plain pytest, so any CI works.
Limits:
- Simulations run on LiveKit Cloud and need a Cloud project and an authenticated CLI. The scenario format is open; the runner is not self-hostable, as far as the docs describe.
- Simulation concurrency is capped: 15 per run by default and 30 running simulations per project.
- The simulated user and the judge are both LLMs, so results can flip between runs. LiveKit's
--samplesflag runs each scenario several times for this reason. - Simulations can call a phone number with
--to, but the docs I read describe no call-volume load test.
Best for: teams already building on LiveKit who want one test stack from unit test to audio simulation. Skip if: you need a fully self-hosted simulation runner or call-volume testing.
Pipecat Evals
Licence: BSD-2-Clause (LICENSE file in pipecat-ai/pipecat, 24 November 2026). Pipecat Evals ships inside the framework rather than as a separate repo.
Pipecat Evals tests the same agent you deploy. The agent runs unchanged behind an eval transport; the harness connects as a client and plays the caller. Per the overview, Pipecat itself runs an eval suite over 100+ example agents before every release.
Pipecat evals use scenario files. A scenario kind is set by its keys: turns: makes it scripted, persona: makes it simulated. A scripted scenario from the docs:
name: capital_question
scenarios:
- name: capital_question
turns:
- user: "What is the capital of Germany?"
expect:
- event: response
eval: "the response says the capital of Germany is Berlin"
Run it with pipecat eval run capital_question.yaml. A simulated scenario instead sets a persona:, a goal: and a success: criterion, plus metrics: such as politeness with a min_score.
Scripted turns can assert on more than text:
text_containsfor substrings andeval:for a judged criterion.function_callwith expected arguments.within_msfor a latency budget per event.dtmf:keypresses for IVR menus.send_afterto barge in mid-response.pause_mssilences inside an utterance (audio mode).- Scripted scenarios in the docs are the closest thing here to "scripted scenarios" as a named feature.
Every scenario also has a modality. Text mode (the default) bypasses speech-to-text and skips text-to-speech. Audio mode synthesizes the caller's voice, streams it through the agent's real speech-to-text at real-time cadence and transcribes the agent's actual speech for judging. The docs call audio simulation the pre-ship pass, and the only option for speech-to-speech agents.
CI: the pipecat eval CLI ships in the pipecat-ai[cli] extra. For pytest, the library exposes EvalScenarioFile and EvalSession, and the docs show a test_capital_question that asserts result.passed. pipecat eval suite runs many scenarios concurrently from one manifest. I found no ready-made CI workflow file in the evals pages I read.
Limits:
- The judge defaults to a local Ollama model (
gemma4:12bin the docs), so you need Ollama or an OpenAI-compatible endpoint configured. A simulation needs a model that supports function calling, because the caller hangs up through anend_calltool. - Audio mode needs a TTS and an STT for the harness. Defaults are local models (Kokoro, plus Moonshine or Whisper) that download on first use.
- It tests the transport the dev runner exposes, not a phone network. The docs say production-scale and telephony testing belong to third-party platforms.
Best for: Pipecat users; the YAML is the most compact of the six and covers latency and DTMF. Skip if: your agent is not on Pipecat.
LLM test runners
voicetest
Licence: Apache-2.0 (repo and README, voicetestdev/voicetest).
voicetest calls itself an open-source test harness for voice agent workflows. LLM-powered users talk to your agent, and LLM judges score the result. It imports agents from Retell, Vapi, LiveKit, Bland and Telnyx into a common graph, so one test set can run across platforms. It also has a repair loop that proposes prompt fixes for failures.
Settings live in .voicetest/settings.toml: separate models for the agent, the simulator and the judge, plus max_turns and an audio_eval flag that defaults to false. The README's GitHub Actions job runs voicetest run --agent agents/receptionist.json --tests agents/tests.json --all with an API key from secrets. It also ships a web UI (voicetest serve).
Limits: it is the youngest of the six (created January 2026, 40 stars). Audio evaluation is an option, off by default, and the README does not describe turn-taking or telephony tests. Judges and simulators are LLMs, so expect run-to-run variance.
Best for: teams on Retell, Vapi or Bland, where the platform has no local test runner. Skip if: you need audio-level or load tests.
promptfoo
Licence: MIT (promptfoo/promptfoo).
promptfoo is a general LLM test runner, not a voice tool. It tests the layer under the voice: your prompt, your model choice and your answers to a fixed list of caller utterances. Use it to compare models on the same transcript set or to gate prompt changes. It does not touch audio, endpointing or telephony.
A config from the getting started docs, simplified to a voice-style prompt:
prompts:
- "You are a clinic receptionist. Reply in two sentences. Caller: {{input}}"
providers:
- openai:gpt-6-sol
tests:
- vars:
input: "I need to move my appointment to Friday."
assert:
- type: icontains
value: "Friday"
- type: llm-rubric
value: "Offers to reschedule and asks for a name or date of birth"
CI: promptfoo documents GitHub Actions, GitLab CI, Jenkins and others. Its CI guide shows npx promptfoo@latest eval --fail-on-error to fail a build, and a GitHub Action that runs a before-and-after comparison when files in prompts/ change.
Limits: text only, so it cannot catch a mis-heard name or a talk-over. Treat it as the cheapest layer of the matrix.
Best for: model and prompt regression across many models. Skip if: the bug lives in speech or turn-taking.
Audio, load and SIP
VoiceCheck
Licence: MIT (sujitnoronha/voicecheck).
VoiceCheck is the one open source tool here that is built around real audio. Per its README, it synthesizes speech and streams it through the real transport. Transports are LiveKit, Daily, Vapi and Retell. It captures the reply and grades each turn. The README pitches it as "Playwright for voice agents".
turns:
- user: "Hi, can you help me book a flight?"
expect:
- type: latency
max_first_byte_ms: 2000
- type: llm_judge
criteria: "Agent acknowledges the request and asks for details"
The README lists 13 evaluators (latency, keyword, turn count, LLM judge, tone, information leakage, tool calls and others). It also lists audio degradation (noise, narrowband, packet loss, G.711 artefacts) and silence tests. Interruptions are one line: interrupt: {after_ms: 2000, with: "Wait"}. --concurrent 20 runs 20 simultaneous sessions with P95 reporting. It runs from the CLI or as a pytest marker, stores runs in local SQLite and offers a self-hosted dashboard.
Limits: it is very new: 6 stars, created April 2026, last pushed 13 June 2026 per GitHub. All capability claims here are the README's own; I did not run it. Its load mode multiplies audio sessions through your agent's transport. It is not a SIP generator.
Best for: a self-hosted audio-level test of barge-in, silence and latency. Skip if: you need a mature project with a large user base.
SIPp
Licence: GPL, but the repo disagrees with itself. The LICENSE.txt file says "version 2 or any later version", while the README says "version 3 or later". GitHub's licence detector shows "Other". Check with your counsel before bundling it (SIPp/sipp).
SIPp is a SIP protocol traffic generator. It is built for performance testing, so it is the tool for SIP load testing. It is not a voice-agent tool. It tests the telephony edge. Can your SIP trunk, SBC or agent endpoint take N simultaneous calls? The docs' own quick start runs two instances against each other:
./sipp -sn uas
./sipp -sn uac 127.0.0.1
Scenarios are XML files. -m sets how many calls to place. For media, SIPp can play a PCMA, PCMU, G.722, iLBC or G.729 audio file over RTP. It can also echo RTP back. That lets you send a recorded caller utterance down the line. It has a -trace_stat option that writes a CSV, and a tools/sipp_report.py script that turns thresholds into CI failures, for example --threshold 'FailedCall(C)==0'. A tools/sipp_impair.py proxy adds seedable loss, delay and jitter to one RTP flow without root privileges.
Limits: it understands signalling and RTP, not conversations. It does not transcribe what your agent says, so a call can "succeed" at SIP level while the agent says nothing sensible. The docs recommend Linux for high rates and note that the Windows port cannot handle high performance. Latency measures depend on its timer resolution setting.
Best for: proving that the telephony path and concurrency limits hold; pair it with a conversation-level tool. Skip if: your agent never touches SIP.
A worked example: sizing a per-commit simulation job
Use LiveKit's documented numbers. Assume 40 scenarios, --samples 3 and the default --pass-rate 0.75 (a worked example, not a benchmark).
- Conversations per run: 40 × 3 = 120.
- Waves at the default per-run limit of 15: 120 ÷ 15 = 8.
- Passing a scenario: with 3 samples, 2 passes is 2 ÷ 3 = 0.67, below 0.75. So a scenario needs 3 of 3 samples to pass at the default setting.
That last line is the non-obvious part: the default pass rate with three samples is effectively "all three". Set --pass-rate 0.66 if you want to allow one flaky sample. Every conversation spends tokens on the caller, the agent and the judge, so cost scales with the 120, not the 40. That is why LiveKit suggests text mode per commit and audio on a schedule.
Hidden limits to plan for
- A judge is a model. Pipecat and LiveKit both use LLM judges. A different judge model can change verdicts. Pin the judge model and version, and prefer deterministic assertions (
function_call,within_ms, exact fields) where you can. - Text mode cannot hear. Both frameworks say text runs skip speech-to-text and text-to-speech. A name mis-heard as a different name will never show up in a text test.
- Simulated callers are polite by default. Add scenarios with interruptions, corrections and out-of-policy requests, as LiveKit's guide suggests.
- Latency numbers depend on where the harness sits. Pipecat says its latency measure means what a caller experiences in audio mode. Over a local WebSocket it does not include the phone network.
- Test secrets. Scenarios often carry fake card numbers or names. Keep real data out of scenario files in git.
Open source versus hosted platforms
These tools run where you run them, keep scenarios in git and cost only the model and audio calls you make. Hosted platforms add things a repo does not: large caller populations, real phone-network calls, load at scale, production call scoring, dashboards and team workflows. Pipecat's own docs draw the same line, describing local evals as built for development and pointing to platforms for production-scale testing and monitoring. Browse the observability and evals category to compare them. A common setup is open source in CI and a platform for production.
Also considered
- VoiceMesh (listing, MIT): a reliability lab for real-time voice pipelines with provider latency and failure injection. Its README describes it as a proof of concept; it is a lab for studying infrastructure, not a test runner for your agent.
Related guides: the voice agent testing guide, the best voice agent testing tools and the voice agent framework comparison.
More open source projects are on the voice AI open source page.
Frequently asked questions
What is a voice agent testing framework?
It is software that runs scripted or simulated callers against a voice agent and checks the results. Checks can be exact (a tool was called with these arguments), timed (reply within a budget) or judged by an LLM. The aim is to catch regressions after a prompt, model or pipeline change.
How do I test a voice agent in a CI pipeline?
To test a voice agent in a CI pipeline, run text-mode tests on every commit, because they are fast and cheap. Run audio and load tests nightly or before release. LiveKit's CLI exits non-zero on a failed scenario, voicetest and promptfoo document GitHub Actions jobs, and SIPp's report script can fail a build on call-rate thresholds.
Does LiveKit have a built-in test framework?
Yes. LiveKit Agents supports pytest and Vitest unit tests with session.run(), assertions, mock_tools and LLM judges. It also has Agent Simulations driven by scenarios.yaml, which run on LiveKit Cloud and can use real audio.
What are Pipecat Evals?
Pipecat Evals is the testing system built into the Pipecat framework. Scenarios are YAML files: scripted turns with assertions, or a simulated caller with a goal and a success criterion. Run them with pipecat eval run, in text mode or audio mode.
Can open source tools test real audio?
Some can. Pipecat Evals audio mode and LiveKit audio simulations run speech through the full pipeline. VoiceCheck sends synthesized audio through a real transport. promptfoo is text only. SIPp plays audio files over RTP but does not understand what the agent says.
How do I load test a voice agent?
Test two things separately, because voice agent load testing has a signalling half and an audio half. SIPp generates SIP calls at a set volume to check the telephony path and trunk limits. VoiceCheck's README describes running many concurrent audio sessions through your agent. Neither replaces the other, and both cost real minutes on your providers.
Are LLM judges reliable enough for tests?
They are useful but not deterministic. LiveKit's docs warn that a simulated user and a judge, both LLMs, can pass a scenario once and fail it next time. Run scenarios several times, pin the judge model and use exact assertions for anything that must never fail.
Should I use open source tools or a hosted platform?
Use open source for per-commit regression tests you control. Add a hosted platform when you need production call scoring, real phone-network calls, large caller populations or team dashboards. Many teams run both.
The bottom line
Open source covers the cheap layers well: prompts, tools and conversations in text mode, with real audio available in LiveKit Agents, Pipecat Evals and VoiceCheck. Telephony load is SIPp's job, and production-scale monitoring is where hosted platforms start.


