Mirage Digital

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 drawn as an audio track with five marked points: the greeting with the note that an AI is speaking, the first audio, an interruption, a browser that drops for a moment, and five minutes in which nobody speaks, after which the connection closes. Each point leads to the chapter that describes its test.

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.

  1. 01Provider contract: no model call
  2. 02Scripted conversation: no model call
  3. 03Audio in the browser: no model call
  4. 04Live session: paid session
Four test layers drawn as a pyramid. The lower three run without a model call: the provider contract, the scripted conversation and the audio in the browser. Only at the top, in the live session, does a paid model speak.
  1. 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.

  2. 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.

  3. 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.

  4. 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. 1. send audio out
  2. 2. report an interruption
  3. 3. deliver the transcript of both sides
  4. 4. connect, start and disconnect
  5. 5. work with the session registry
A socket with the contract's five duties and three plugs that fit it: the fake provider for tests, a mocked Gemini provider and the real provider in production. Because all of them meet the same contract, the model can be swapped.
  1. 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.

  2. 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.

  3. 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.

  4. 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

  1. 01Asking how to pronounce the name: missing
  2. 02Small talk: missing
  3. 03Transition: missing
  4. 04Introducing company and role (mandatory): missing
  5. 05Second mandatory question in section 5: missing
  6. 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.
Empty slots in a strip: these mandatory steps were missing from the German pre-screening test conversation on 4 September 2026, among them the question about how to pronounce the candidate's name and two of the three closing phases. Every test was still green. Today a coverage test reports every missing step.
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  1. 01The agent's audio arrives: Agent: speaks, Person: silent
  2. 02An interruption is reported: Agent: speaks, Person: speaks
  3. 03Browser briefly gone: Agent: held, Person: silent
  4. 04Pause mutes the agent: Agent: muted, Person: silent
  5. 05The person's audio arrives: Agent: silent, Person: speaks
  6. 06Switching segments: Agent: speaks, Person: silent
  7. 07Provider connection drops: Agent: silent, Person: silent

AgentPerson

Seven test cases side by side, each with two lanes for the agent and the person: who speaks, when the agent's audio is held, and when a side is muted or silent. During the interruption both speak. All cases run with the fake provider and no model.
  1. 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.

  2. 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.

  3. 03

    Browser briefly gone

    If the browser drops for a moment, the agent's audio is held and sent on when it reconnects.

  4. 04

    Pause mutes the agent

    When the person presses pause, the agent is muted in the browser.

  5. 05

    The person's audio arrives

    What the person says reaches the provider.

  6. 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.

  7. 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

4,000 ms · alert
0 ms
below: no alertabove: alert

Sessions without audio

are counted, so an outage cannot make the average look better.

A measuring scale for the time to first audio with an alert mark at 4,000 milliseconds. It shows no measured value. Next to it is the counter for sessions in which the agent never spoke.
  1. 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.

  2. 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.

  3. 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.

  4. 04

    One value per session

    If the browser reconnects mid-conversation, only the first connection counts. Otherwise every reconnect would pull the value down.

  5. 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.

Boundary cases from the test run
  • 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
Two time tracks that end in a cut: if nobody connects within 60 seconds, or nobody speaks for 5 minutes, the connection closes. Below them is the limit of three silent closes in one interview round, after which the person cannot restart the round alone.
  1. 01

    After 60 seconds without a browser

    If nobody has connected 60 seconds after set-up, the connection closes.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  1. Sealed: The recording sits encrypted in the archive, with a key of its own.
  2. Retention period over: The retention period has ended, and no legal hold keeps the recording.
  3. Key destroyed: The archive can never be opened again.
At the top, the line our AI interviewer says in English right after the greeting. Below it, three states of a recording: sealed, retention period over with no legal hold, key destroyed. After that the recording can never be opened again.
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
A checklist of seven questions before go-live. Each question shows how we test it and where: on which test layer, on every commit, in the lint or 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.