Service · Voice agent evaluation
Voice agent evaluation: before the first call and after.
Voice agent evaluation, the way we run it, tests an agent in four layers before the first caller hears it: the provider contract, scripted conversations, the audio path and a short live session. Only the last one calls a paid model. After launch the measuring goes on: how fast the first audio arrives and when a connection closes. We set this up for teams with a voice agent in a pilot or in planning. How we build an agent is on our voice agents page.
Seven short steps in the brief, and a reply from us within 48 hours.
One call and where we test it
- 1Greeting: The agent says it is an AI.
- 2First audio: The time until then is measured.
- 3Interruption: The provider has to report it.
- 4Browser briefly gone: The audio is held.
- 5Nobody speaks: After 5 minutes the connection closes.
Three of the four test layers run without a model call.
01 · Test layers
Voice agent evaluation in four layers: only the top one calls a paid model
This is how we test the voice agents in our own products, first of all the AI interviewer in Mirage Scout, and we set up the same layers for your agent. The lower three need no model, and the first two run with the normal test suite.
- 01Provider contract: no model call
- 02Scripted conversation: no model call
- 03Audio in the browser: no model call
- 04Live session: paid session
- 01
Provider contract
Every voice provider has to meet the same interface. A test suite checks this against the fake provider and against a mocked Gemini provider.
- 02
Scripted conversation
An invented conversation runs through the interview's real functions: the transcript, the list of topics already covered and the protocol the agent is given. It needs no model and no network.
- 03
Audio in the browser
In a local smoke run the fake provider sends a quiet synthetic tone over the real connection, and a real browser plays it. That tells us whether audio arrives before any model speaks.
- 04
Live session
Here a real model speaks, and every minute costs money. The time limits in chapter 6 apply to this layer.
Have a voice agent built: our voice agents page →Learn it yourself: the voice agent evaluation course at Mirage Academy →
02 · Fake provider
A fake provider stands in for the model, so tests cost no model minutes and run the same way every time
The fake provider needs no network and no model. It is only built when VOICE_PROVIDER=fake is set, which happens in tests, in CI and in local smoke runs. In production the value is never set.
- Fake provider: tests, CI and local smoke runs
- Mocked Gemini provider: in the same test suite as the fake
- Real provider: in production, for example Gemini Live or OpenAI Realtime
One contract for every provider
- 1. send audio out
- 2. report an interruption
- 3. deliver the transcript of both sides
- 4. connect, start and disconnect
- 5. work with the session registry
- 01
One contract, five duties
Every provider has to send audio out, report an interruption, deliver the transcript of both sides, connect, start and disconnect, and work with the session registry.
- 02
Two providers in one test
The same test suite runs against the fake and against a mocked Gemini provider. If the two behave differently, the suite shows it.
- 03
The fake inherits nothing
The fake implements the interface itself. If it inherited it from a real provider, it could pass some checks just by being a subclass, without really passing audio and interruptions on.
- 04
Your provider
In production a real provider plugs into the same socket, for example Gemini Live or OpenAI Realtime. For your project we agree with you what can be tested.
03 · Test conversations
Test conversations take their wording from the protocol, which is how we found one that skipped mandatory steps
Our test conversations do not write the questions out. They name a step, such as the salary question, and the wording comes from the protocol the agent is given. If someone rewords a question, the test follows. Steps a test conversation never mentions were outside this rule, though.
German pre-screening test conversation, 4 September 2026
- 01Asking how to pronounce the name: missing
- 02Small talk: missing
- 03Transition: missing
- 04Introducing company and role (mandatory): missing
- 05Second mandatory question in section 5: missing
- 06Closing: two of three phases: missing
- Test suite at the time
- every test green
- Today
- A coverage test reports every mandatory step that is missing.
- 01
What we found on 4 September
The German pre-screening test conversation opened with invented text and skipped mandatory steps of the protocol: asking how to pronounce the name, the small talk, the transition, introducing company and role, the second mandatory question in section 5 and two of the three closing phases. They were missing, and every test stayed green.
- 02
The list of mandatory steps comes from the document
A parser reads the mandatory steps from the compiled protocol the model is given. A coverage test reports every step a test conversation leaves out, and leaving one out on purpose has to be declared.
- 03
Word by word, as in production
Gemini Live streams the agent's sentences word by word, and that is how they land in the transcript. Our test conversations split the agent's sentences the same way, because some faults only show once a question is cut in the middle.
- 04
Invented data only
Every test conversation is made up. We did not copy a real conversation or a transcript out of any database to build them.
04 · Audio
Interruption, pause, dropped connection: we test that the audio still gets through
These tests send audio over the real path from the provider to the browser, with the fake provider in place of a model. They cost no model minutes, give the same result on every run and catch faults that used to surface only in paid live runs.
- 01The agent's audio arrives: Agent: speaks, Person: silent
- 02An interruption is reported: Agent: speaks, Person: speaks
- 03Browser briefly gone: Agent: held, Person: silent
- 04Pause mutes the agent: Agent: muted, Person: silent
- 05The person's audio arrives: Agent: silent, Person: speaks
- 06Switching segments: Agent: speaks, Person: silent
- 07Provider connection drops: Agent: silent, Person: silent
AgentPerson
- 01
The agent's audio arrives
What the provider speaks reaches the browser over the connection. The test counts the audio frames that arrive there.
- 02
An interruption is reported
When the person cuts in, both speak for a moment, and the provider has to report it as an interruption. The contract test from chapter 2 checks exactly this signal.
- 03
Browser briefly gone
If the browser drops for a moment, the agent's audio is held and sent on when it reconnects.
- 04
Pause mutes the agent
When the person presses pause, the agent is muted in the browser.
- 05
The person's audio arrives
What the person says reaches the provider.
- 06
Switching segments
Long conversations run in segments, and between them a new connection to the provider takes over. The audio keeps going across the switch.
- 07
Provider connection drops
If the connection to the provider drops, the line goes silent, and that triggers the step that reconnects.
05 · Latency
Time to first audio is measured, and sessions that never spoke are counted too
How long does someone wait before the agent says anything? We measure from the moment the browser connects to the first audio the agent sends, with the same clock for interviews and coaching.
Time to first audio
Sessions without audio
are counted, so an outage cannot make the average look better.
- 01
One clock for both paths
The interview clock used to start at the consent click, queue and start-up included, while the coaching clock started at connect. With two starting points, one shared limit meant little. Now the clock runs from connect to the agent's first audio in both cases.
- 02
One metric with a label
Interviews and coaching share one metric, and a label names the path. That way the two paths can be compared directly.
- 03
Sessions without audio are counted
If the agent never speaks, there is no measurement. An outage would then make the average look better, because the worst cases drop out. So a separate counter records those sessions.
- 04
One value per session
If the browser reconnects mid-conversation, only the first connection counts. Otherwise every reconnect would pull the value down.
- 05
Alert from 4,000 milliseconds
Below it there is no alert, above it there is. Our code calls the limit deliberately conservative and explicitly not a percentile, because there is no distribution to take one from yet. Once there is a week of measurements, it is meant to be set again from the real 95th percentile. The limit for your agent is set with you.
06 · Spend
A paid connection stays open only while someone is connected and speaking
These limits apply to interviews and coaching in our own products, and we set them with you for your project. A separate test run checks this money path on every commit, with no model call, network or database, right at the limits too: 59 and 60 seconds, 4:59 and 5:00 minutes.
- Nobody connectsThe connection stays open.Rule does not fire
- Nobody speaksThe connection stays open.Rule does not fire
- Time to first audiobelow: no alertRule does not fire
- 3×Restart not blocked.Rule does not fire
- 01
After 60 seconds without a browser
If nobody has connected 60 seconds after set-up, the connection closes.
- 02
After 5 minutes without speech
From connect, a clock runs that restarts with every word the person speaks. After 5 minutes without speech the connection closes, during a pause too, because a paused provider is still a paid connection.
- 03
Three silent closes in an interview
Once an interview round has been closed three times because nobody came or nobody spoke, the person cannot restart it alone.
- 04
No speech, no result
If the person never spoke, the session counts as a technical failure. It is not billed, it can be resumed, it produces no report and no e-mail, and it is never marked as completed.
- 05
Daily budget and kill switch
A daily budget of voice minutes covers every session. At 80 % an admin gets an alert; at 100 % no new session starts, and running ones are not cut off. A switch stops every new start.
- 06
Budgets in the gateway
For your project we set up budgets in the gateway with you: for the company, the use case and, on request, per person. The gateway refuses calls once a budget is used up.
07 · AI disclosure
The agent says at the start that it is an AI, and a check makes sure the line is in the protocol
Our AI interviewer in Mirage Scout says so in every stage, right after the greeting, and Susan, the coach in Mirage Office, also says at the start that she is an AI. Which notices your agent has to give is for you and your legal counsel to decide, and we build it that way.
This is how the agent says it at the start:
Quick note before we start: I'm an AI interviewer. Our conversation is recorded and transcribed, a person at the company reviews the results and makes every decision, and you can pause or stop at any time.
- Sealed: The recording sits encrypted in the archive, with a key of its own.
- Retention period over: The retention period has ended, and no legal hold keeps the recording.
- Key destroyed: The archive can never be opened again.
- 01
Truthful when asked
If someone asks whether they are talking to a human, the agent answers truthfully at once. It never claims to be human, and the persona's name is only a name.
- 02
A lint checks the line
A lint checks every protocol in German and English: its opening has to hold a fixed mandatory line saying that an AI is speaking. Without it, the lint blocks the protocol. A job title such as AI Engineer does not count as disclosure.
- 03
Sealed, with an end date
Our voice archive is sealed with a key of its own. Once the retention period is over and there is no legal hold, the key is destroyed. The access log can only be added to, never changed.
- 04
Temporary storage with a cap
Temporarily stored parts of a coaching conversation are deleted once the archive is written and the 15-minute window to resume has passed, and never later than 7 days.
- 05
Your retention periods
How long your agent keeps recordings and how callers give consent is for you to set with your data protection officer, and we configure the system to match.
08 · Before go-live
Seven questions to ask before go-live, each with the test that answers it
Ask these of your provider or your own team. Where an answer is missing, it becomes a question in the brief.
Go-live checklist
01Can the model be swapped for a fake?
- How we test it
- Yes, if every provider meets the same contract. We test the contract against the fake and against a mocked provider.
- Where
- layer 1
02Do the test conversations cover the whole protocol?
- How we test it
- A coverage test reads the mandatory steps from the protocol and reports each one that is missing.
- Where
- layer 2
03Does the audio still arrive after a pause, a drop or a switch?
- How we test it
- Test cases send audio over the real path, with the fake in place of a model. A smoke run in the browser comes on top.
- Where
- layers 2 and 3
04How long does someone wait for the first audio?
- How we test it
- We measure it in production with one clock for every path, and we count the sessions without audio.
- Where
- in production
05What happens when nobody speaks?
- How we test it
- After 60 seconds without a connection or 5 minutes without speech, the connection closes. A test run checks this on every commit.
- Where
- on every commit
06Does the agent say it is an AI?
- How we test it
- Yes, with a fixed line in the opening, and the protocol lint blocks any protocol without it.
- Where
- protocol lint
07Who caps the spending?
- How we test it
- In our products there is a daily budget and a kill switch; for your project we agree with you which limits we set up, plus gateway budgets.
- Where
- in production
09 · Price
Before you sign, you get one number and a timeline
We do not bill by the hour. Small projects come in below 5,000€, large ones can cost more than 50,000€, depending on the solution we agree on together.
In most projects that number is a setup fee. In operation you pay for AI usage. It runs against budgets you set, and the gateway refuses calls once a budget is used up. This is not exact to the cent: a call that times out books its estimate, and the settled cost can come out above the estimate.
The first test results arrive one week in at the earliest. Large projects with many systems can take a year or longer. The exact timeline comes with the price.
Whether we test an agent someone else built, and whether we keep measuring after launch, is something we settle in the brief.
Frequently asked questions
What is the difference between evaluating and testing a voice agent?
We call the checks before go-live tests: the contract, test conversations, audio and the money path. Evaluation adds what is measured in production, such as the time to first audio and the sessions without audio. An agent that passes every test can still answer too slowly once it is live.
Can you test a voice agent without paying for a model?
Mostly, yes. The contract, test conversations, audio in the browser and the money path all run with a fake provider, with no network and no model. Only the live session costs model minutes.
How do you check that an agent can be interrupted?
The contract test requires every provider to report an interruption and checks this against the fake and a mocked provider. A short live session then shows what the interruption sounds like.
What latency is good enough?
There is no single number for every case. Our alert sits at 4,000 milliseconds to first audio, and our code explicitly calls that value conservative. We set the limit for your agent with you and check it against real measurements.
What happens if nobody speaks or the caller is gone?
If nobody connects within 60 seconds, the connection closes, and the same happens after 5 minutes without speech, during a pause too. A session in which the person never said a word counts as a technical failure and is not billed.
Does a voice agent have to say it is an AI?
What the law requires in your case is for your legal counsel to answer. Our AI interviewer says it right after the greeting and answers truthfully when asked, and a lint blocks any protocol without that line. We set up your agent the same way.
Are conversations recorded, and for how long?
Our AI interviewer says at the start that the conversation is recorded and transcribed. The recording is sealed in the archive, and once its retention period is over, its key is destroyed. How long your recordings are kept is for you to set with your data protection officer.
Can I learn this myself?
Yes. Mirage Academy has a course called "Voice Agent Evaluation, Latency & Conversation Design". The link is in the first chapter of this page.
What does it cost, and how long does it take?
Small projects come in below 5,000€, large ones can cost more than 50,000€. You know the number and the timeline before you sign. Expect first results no sooner than one week in.
We already have a voice agent. Will you test it?
Tell us in the brief which provider it uses and what it does, whether it is a phone assistant, a support bot or an AI voice agent for business. We will then tell you which layers we can test and what it costs.
Which voice agent should we test?
In the brief, name the agent, its provider and what it should do. It has seven short steps, and within 48 hours we suggest a call or tell you plainly that we are not the right fit.