What metrics matter for a production voice agent?

Authors
What metrics matter for a production voice agent?

The metrics that matter for a production voice agent are the ones that tell us how fast it replies, how well it hears, how well it takes turns, how correct and clear its replies are, whether the caller got their work done, and at what cost. We track them together because a voice agent can look good on one number and still fail the caller.

In this blog, we will learn about what metrics matter for a production voice agent. We will also see why one number is never enough, how we measure latency with percentiles, how word error rate tells us how well the agent hears, how we measure turn-taking, answer quality, and voice quality, which business, reliability, and cost metrics tell us whether the caller got their work done, and how we collect all of them from every call.

We will cover the following:

  • What is a production voice agent?
  • Why one number is not enough
  • Latency metrics
  • Why we use percentiles instead of the average
  • Speech recognition metrics
  • Turn-taking and interruption metrics
  • Answer quality metrics
  • Voice quality metrics
  • Business outcome metrics
  • Reliability and cost metrics
  • How we collect these metrics

I am Amit Shekhar, Founder @ Outcome School, I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.

I teach AI and Machine Learning at Outcome School.

Let's get started.

What is a production voice agent?

A voice agent is a system that talks with a person using voice. It listens to the person, understands what they want, and speaks back a reply.

Many voice agents work as a pipeline of three steps:

  • Speech-to-Text (STT), also called Automatic Speech Recognition (ASR), turns what the user said into text.
  • An LLM (Large Language Model) reads that text and decides the reply. It can also recommend a tool, like checking a booking, and our code runs that tool.
  • Text-to-Speech (TTS) turns the reply text into a voice.

In a demo, we talk to the agent a few times in a quiet room and it works. In production, real callers use it every day, for example when the agent answers the phone for a clinic. Thousands of people call with different accents, from noisy streets, on weak networks, and with questions we never planned for. So, we must measure how well it works.

This is where metrics come into the picture. A metric is a number that we track again and again to know how well something is working.

Why one number is not enough

Let's say we track only one metric: the number of calls the agent handled. It says 10,000 calls this week.

But, it does not tell us:

  • Did the agent reply fast, or did callers wait in silence?
  • Did the agent hear the caller correctly?
  • Did it stop talking when the caller interrupted?
  • Did it give the correct answer?
  • Did the caller get the work done, or did they hang up?

A voice call has many layers, and each one can fail on its own. So, we group the metrics by layer like below:

+----------------------------------------+
| Layer 1: Speed                         |
| How fast does it reply?                |
+----------------------------------------+
                    ↓
+----------------------------------------+
| Layer 2: Hearing                       |
| Did it hear the words correctly?       |
+----------------------------------------+
                    ↓
+----------------------------------------+
| Layer 3: Turn-taking                   |
| Does it know when to speak and stop?   |
+----------------------------------------+
                    ↓
+----------------------------------------+
| Layer 4: Answer and Voice              |
| Is the reply right and clear?          |
+----------------------------------------+
                    ↓
+----------------------------------------+
| Layer 5: Outcome                       |
| Did the caller get the work done?      |
+----------------------------------------+

Here, the first four layers tell us how the agent behaves. The last layer tells us whether that helped the caller. Along with these, we also track reliability and cost.

Now, let's learn about each layer, starting with speed.

Latency metrics

Latency is the time we wait for something to happen. In a voice agent, the most important latency is the response latency: the time from the moment the user stops speaking to the moment the user hears the first sound of the reply. It is also called voice-to-voice latency or end-to-end latency.

In human conversation, the gap between one person stopping and the other starting is very short. A well-known study of conversations in 10 languages found that this gap is often around 200 milliseconds. So, when a voice agent takes 2 or 3 seconds to reply, the caller starts repeating themselves, or thinks the line has dropped.

The response latency is not one step. It is the sum of many steps. Let's see one turn of the conversation as below:

User stops speaking
         ↓
End-of-turn detection
(the agent decides the user is done)
         ↓
STT gives the final text
         ↓
LLM gives the first token of the reply
         ↓
TTS gives the first chunk of audio
         ↓
Audio travels over the network
         ↓
User hears the first sound

So, along with the full response latency, we also track the time of each step:

  • End-of-turn delay: How long the agent waits before it decides the user is done.
  • STT latency: How long it takes to get the final text.
  • LLM time to first token (TTFT): How long the LLM takes to produce the first token (a word or a piece of a word) of the reply.
  • TTS time to first byte (TTFB): How long the TTS takes to produce the first chunk of audio.
  • Tool call latency: How long a tool, like a database lookup, takes to run.

The best part is that when the full response latency goes up, these step timings tell us exactly which step became slow. We have a detailed blog on building a latency budget for a voice AI agent that explains how to split the total time across these steps.

Planning your move into AI?

No matter which tech domain you work in today, with your effort, you can transition to these roles:

  • AI Engineer
  • Forward Deployed Engineer
  • AI Agent Engineer
  • Harness Engineer
  • Voice AI Engineer
  • AI Architect
  • LLM Engineer
  • LLM Inference Engineer
  • Gen AI Engineer
  • MLOps Engineer
  • ML Engineer
  • Deep Learning Engineer

Our AI and Machine Learning Program at Outcome School takes you there.

Why we use percentiles instead of the average

Now, the question is: how do we turn thousands of latency values into one number that we can watch?

The first idea is the average. But the average hides the slow turns. The best way to learn this is by taking an example.

Let's say we have the response latency of 10 turns in milliseconds:

600, 650, 700, 700, 750, 800, 850, 900, 1000, 3000

The average is 9950 / 10 = 995 milliseconds. It looks fine. But, one caller waited 3 full seconds, and the average does not show that caller at all.

So, here comes the percentile to the rescue. A percentile tells us the value at or below which a given share of the turns fall.

  • p50 (the median): half of the turns take this long or less. Here, p50 is 750 milliseconds.
  • p90: 90% of the turns take this long or less. Here, p90 is 1000 milliseconds.
  • p95 and p99: the same idea for 95% and 99% of the turns.

Here, we have used the nearest-rank method. We sort the values and pick the value at position ceil(p / 100 * count). For p90, that is position 9, which is 1000.

We can calculate this in code as below:

import math

def percentile(values, p):
    sorted_values = sorted(values)
    rank = math.ceil(p / 100 * len(sorted_values))
    return sorted_values[rank - 1]

latencies = [600, 650, 700, 700, 750, 800, 850, 900, 1000, 3000]

print(percentile(latencies, 50))
print(percentile(latencies, 90))
print(percentile(latencies, 99))

It will print the following:

750
1000
3000

Here, we can see that p99 catches the caller who waited 3 seconds, while the average of 995 milliseconds hid that caller.

A production voice agent handles a huge number of turns every day, so even 1% of slow turns means many unhappy callers. Hence, we watch p50 to know the normal experience, and p95 or p99 to know the slowest experiences.

This was all about speed. Now, let's move to hearing.

Speech recognition metrics

If the agent hears the wrong words, the LLM answers the wrong question, and everything after that goes wrong.

The standard metric for this is the Word Error Rate (WER). It compares what the user actually said (the reference) with what the STT produced (the hypothesis), and counts three types of mistakes:

  • Substitution (S): a word is replaced by a wrong word.
  • Deletion (D): a word is missed.
  • Insertion (I): an extra word is added.

The formula is:

WER = (S + D + I) / N

Here, N is the number of words in the reference.

Let's take an example. The user said:

I want to book a table for four people tonight

The STT produced:

I want to look a table for people tonight

Here, we can notice that:

  • "book" became "look". That is 1 substitution.
  • "four" is missing. That is 1 deletion.
  • There are no extra words. That is 0 insertions.

The reference has 10 words. So, WER = (1 + 1 + 0) / 10 = 0.2, which means 20%. Lower WER is better.

To calculate WER, we need the correct text of what the user said. So, people listen to a sample of calls and write down the correct text, and we compare the STT output against it.

But, WER treats every word the same, and not every word matters the same. In the example above, losing "four" is much worse than losing a small word like "a" would be, because the booking now has no number of people.

So, along with WER, we also track:

  • Entity accuracy: How often the agent gets the important pieces right, like names, phone numbers, dates, order IDs, and amounts.
  • Keyword accuracy: How often the agent correctly hears the domain words that matter to our business, like product names or medicine names.

We also measure WER separately for different groups of callers, like different accents or calls from noisy places. An overall WER can look fine while one group of callers struggles.

A quick note for you

No matter which tech domain you work in, get familiar with these topics:

  • LLM
  • RAG
  • MCP
  • Agent
  • Fine-tuning
  • Quantization

We put it all together in one video:

AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, and Quantization

No need to stop reading - bookmark it and watch later when you get time. Future you will thank you.

Now, let's get back to the topic.

Turn-taking and interruption metrics

A voice agent must know when the user is done speaking, and it must stop quickly when the user interrupts.

Here are the metrics we track for turn-taking:

  • Early cut-off rate: How often the agent starts speaking while the user was only pausing, not finished. For example, the user says "My number is 98765..." and pauses to remember the rest, and the agent starts replying.
  • False interruption rate: How often the agent stops speaking because of a sound that was not a real interruption, like a cough, a short "okay", or background noise.
  • Barge-in stop time: When the user interrupts the agent (called a barge-in), how long the agent takes to stop speaking.
  • Dead air: Long silences where neither side is speaking, often because the agent is waiting on a slow step.

Some of these metrics work against each other. If the agent waits longer before replying, the early cut-off rate goes down, but the response latency goes up. So, we must watch them together and find the right balance for our use case.

Answer quality metrics

Now, let's say the agent replies fast and hears correctly. The next question is: is the reply correct? Here are the metrics we track for the answers:

  • Answer accuracy: How often the reply matches our business data and rules.
  • Hallucination rate: How often the agent says something that is not true, like a wrong price or a wrong opening time.
  • Tool call success rate: How often the LLM recommends the correct tool with the correct input, and the tool runs without an error.
  • Instruction following: How often the agent follows its rules, like not giving medical advice or always confirming a booking before saving it.

We cannot measure most of these with a simple formula. So, we review samples of real calls, either by people or by an LLM that grades the transcript against a checklist (often called LLM-as-a-judge). We also run a fixed set of test conversations whenever we change the prompt or the model, so that we catch a drop in quality before callers do.

If we want to go deep into Evaluation of LLMs and Agents, LLM as a Judge, and Evaluation and Testing, along with how to Design a Real-Time Voice AI Agent, we can learn them in depth in our AI and Machine Learning Program at Outcome School.

Voice quality metrics

The reply can be correct, but if the voice sounds robotic or says a name wrongly, the caller loses trust. Here are the metrics we track for the voice:

  • Mean Opinion Score (MOS): People listen to audio samples and rate them, usually on a scale of 1 to 5, where 5 is the best. The average of these ratings is the MOS.
  • Pronunciation errors: How often the TTS says a name, a brand, a number, or an address wrongly.
  • Audio problems: How often the audio has gaps, clicks, or cuts.

MOS needs human listeners, so it is costly. Hence, we run it on samples, and on every new voice or TTS model before we switch to it.

Business outcome metrics

Now, it's time to learn whether the agent helped the caller:

  • Task completion rate: The share of calls where the caller got the work done, like a booking made or a question answered.
  • Containment rate: The share of calls that the agent handled fully without transferring to a human.
  • Transfer rate: The share of calls transferred to a human.
  • Abandonment rate: The share of calls where the caller hung up before the work was done.
  • Average handle time (AHT): How long a call takes on average.
  • Customer satisfaction (CSAT): How happy the caller was, usually from a short survey at the end of the call.
  • Repeat call rate: How often the same caller calls back soon for the same problem, which means the first call did not solve it.

Let's take an example to see why we need more than one of these. Suppose the agent handled 1,000 calls in a day:

700 calls: work done by the agent
200 calls: transferred to a human
100 calls: caller hung up before the work was done

Here, the containment rate is 800 / 1000 = 80%, because 800 calls were not transferred. But, 100 of those 800 callers hung up without getting their work done. So, the task completion rate by the agent is only 700 / 1000 = 70%.

If we watch only the containment rate, we will think the agent is doing better than it really is. A caller who hangs up in frustration still counts as "contained".

Similarly, a shorter average handle time is not always good. A call can be short because the agent solved the problem quickly, or because the caller gave up. So, we always read handle time together with task completion.

Stay updated: Subscribe to our newsletter to get our latest AI and Machine Learning blogs straight to your inbox.

Reliability and cost metrics

A voice agent depends on many services: the phone network, STT, LLM, TTS, and our own tools. Any of them can fail.

Here are the metrics we track for reliability:

  • Call success rate: The share of calls that run without a technical failure.
  • Error rate per service: How often STT, LLM, or TTS returns an error or times out.
  • Fallback rate: How often the agent has to switch to a backup service or say "Sorry, I am having trouble" because something failed.

And here are the metrics we track for cost:

  • Cost per minute: The total cost of the phone line, STT, LLM, and TTS for one minute of conversation.
  • Cost per completed task: The total cost divided by the number of calls where the work was done.

Cost per completed task is the more useful one. Let's say agent A costs 50 dollars for 1,000 calls and completes 500 of them. That is 0.10 dollars per completed task. Agent B costs 70 dollars for 1,000 calls and completes 900 of them. That is about 0.078 dollars per completed task. So, agent B costs more per call but less per completed task.

How we collect these metrics

To track all of this, we must log every turn of every call: the timestamps of each step, the audio, the STT text, the LLM reply, any tool calls, and any errors.

A simple log for one turn can look like below:

{
  "call_id": "c_1024",
  "turn": 3,
  "user_stopped_at_ms": 15200,
  "stt_final_at_ms": 15450,
  "llm_first_token_at_ms": 15800,
  "tts_first_audio_at_ms": 15950,
  "transcript": "I want to book a table for four people tonight",
  "tool_called": null,
  "error": null
}

Here, we can see that the response latency of this turn, before the network, is 15950 - 15200 = 750 milliseconds. We can also see that the LLM took 15800 - 15450 = 350 milliseconds to produce its first token after the STT was done.

Once we have such logs:

  • First, we compute the turn-level metrics like latency and interruptions, and WER on the reviewed samples.
  • Then, we compute the call-level metrics like task completion, transfer, and abandonment.
  • After that, we put them on a dashboard and break them down by time of day, by caller group, and by the version of the prompt or the model.
  • Finally, we set alerts, so that when p95 latency or the error rate goes above a limit, the team knows right away.

This way, when a metric gets worse, we can open the exact calls behind it, listen to them, and find the reason.

Now we must have understood what metrics matter for a production voice agent, how we measure each of them, and why we read them together instead of trusting any one number.

Frequently Asked Questions

How fast should a voice agent reply?

A voice agent should reply close to the pace of human conversation. A well-known study of conversations in 10 languages found that the gap between one person stopping and the other starting is often around 200 milliseconds. When a voice agent takes 2 or 3 seconds to reply, the caller starts repeating themselves, or thinks the line has dropped.

What is the difference between containment rate and task completion rate?

Containment rate counts the calls the agent handled without transferring to a human, while task completion rate counts the calls where the caller actually got the work done. A caller who hangs up in frustration still counts as contained. So, if we watch only the containment rate, the agent looks better than it really is.

Is a shorter average handle time always better for a voice agent?

No. A shorter average handle time is not always good. A call can be short because the agent solved the problem quickly, or because the caller gave up. So, we always read average handle time together with the task completion rate.

Why is cost per completed task better than cost per call?

Cost per completed task shows what we actually pay for each caller who got their work done. An agent that costs more per call can still cost less per completed task if it completes many more calls.

That's it for now.

Thanks

Amit Shekhar
Founder @ Outcome School

You can connect with me on:

Follow Outcome School on:

Read all of our high-quality blogs here.