Introduction to Voice Metrics
deepeval offers 30+ SOTA, ready-to-use metrics for evaluating voice agents. While other metrics judge what the agent said, a voice metric judges how the call sounded or flowed, catching one specific problem such as a reply cut off mid-word, a long wait before the agent answered, or the agent talking over the caller.
Quick Summary
Voice metrics score the audio of a ConversationalTestCase, not just its transcript. Pair them with regular multi-turn metrics such as Turn Relevancy to judge what the agent said.
Most voice metrics check one specific problem, so a failing score points straight at what to fix. Composite metrics, such as Voice Naturalness, combine several into one score for a broader quality. Almost all are deterministic by default, measuring the audio directly, so they're fast, free and repeatable.
Every voice metric outputs a score between 0-1, usually the share of the call free of the problem, and a reason. A metric passes if its score is at least threshold, which defaults to 0.5.
Audio defect metrics catch faults in the agent's audio itself, the kind a caller hears as a broken line.
Single-issue metrics:
- Audio Dropout — audio that cuts out mid-speech.
- Audio Clipping — audio distorted from being too loud.
- Audio Loop — audio stuck repeating the same chunk.
- Abrupt Cut-off — replies that stop mid-sound.
- Held Tone — a stuck tone or drone.
- Dead Stream — audio that goes completely dead partway through.
- Echo — the agent's voice coming back through the caller's side.
Composite metrics:
- Audio Glitch — any glitch in the agent's audio stream.
- Audio Integrity — whether every reply's audio arrived whole.
Audio level metrics focus on how loud the agent is, and what can be heard behind its voice.
Single-issue metrics:
- Background Noise — hiss, hum, or room noise behind the agent's speech.
- Loudness — an agent that's too quiet or too loud.
- Loudness Consistency — volume changing from one reply to the next.
- Volume Variance — volume drifting within a reply.
Prosody metrics evaluate how the agent delivers its words, from pitch to pace.
Single-issue metrics:
- Pitch Variation — a flat, robotic reading, or a voice swinging wildly.
- Abrupt Pitch Jump — a voice that cracks or squeaks.
- Pitch Consistency — a voice clearly deeper or higher in one reply.
- Speaking Rate — rushing or dragging.
- Pauses — long gaps mid-sentence, or more silence than speech.
Responsiveness metrics check whether the caller actually got an answer they could hear.
Single-issue metrics:
- Failed Response — a caller line that never got an answer.
- Silent Reply — a reply the caller couldn't hear.
- Unexpected Call End — a call that ended badly.
- Reprompt — a caller who had to speak again before the agent replied.
Composite metrics:
- Agent Responsiveness — whether every caller line got an answer.
- Voice Reliability — Agent Responsiveness and Audio Integrity in one score.
Speech quality metrics judge the agent's voice as a whole, and whether the agent heard the caller correctly.
Single-issue metrics:
- Transcription Accuracy — whether the agent's own speech-to-text heard the caller correctly.
Composite metrics:
- Voice Naturalness — how natural the agent sounds overall.
- Speech Intelligibility — how easy the agent is to understand.
- Voice Consistency — whether the agent sounds like the same voice in every reply.
Timing metrics evaluate when each side spoke, reading both sides of the call on one clock.
Single-issue metrics:
- Response Latency — a long wait before the agent answers.
- Response Delay Consistency — a wait that changes a lot from reply to reply.
- Time to First Response — a slow greeting once the call connects.
- Agent Interruption — the agent speaking into the caller.
- User Interruption — the caller speaking into the agent.
Composite metrics:
- Turn-Taking Naturalness — how naturally the agent takes turns.
Custom voice metrics allow you to define your custom criteria in everyday language, judged by a model that listens to each turn's audio instead of only reading the transcript:
- Conversational G-Eval — your own criteria, with
MultiTurnParams.AUDIOso the judge hears each turn (see how).
You should aim to have at least one custom metric for what your voice agent specifically needs to get right, such as staying calm with an upset caller.
Voice metrics can score a simulated call or a recorded production call. This first example simulates a call with the ConversationSimulator in voice mode, then runs an end-to-end evaluation on it:
from deepeval import evaluate
from deepeval.dataset import ConversationalGolden
from deepeval.metrics import AbruptCutoffMetric, ResponseLatencyMetric
from deepeval.simulator import ConversationSimulator
from deepeval.voice import ElevenLabsConnector, VoiceConfig
simulator = ConversationSimulator(
voice_config=VoiceConfig(
connector=ElevenLabsConnector(agent_id="your-agent-id"),
)
)
test_cases = simulator.simulate(
[ConversationalGolden(scenario="The caller asks to check an order.")]
)
evaluate(
test_cases=test_cases,
metrics=[AbruptCutoffMetric(), ResponseLatencyMetric()],
)Why deepeval Voice Metrics?
deepeval's voice metrics are a step up from transcript-only evals because they:
- Measure the audio itself, so they catch what a transcript can't: dead air, clipping, a cut-off, a slow reply
- Check one problem per metric, so a failing score points straight at what to fix, with composite metrics for when you want one number
- Are almost all deterministic by default, with no paid model calls, no token cost, and the same score every time for the same audio
- Use a model only where a metric needs one, picked for what that metric judges, to make it more accurate
- Place every problem on the call as an event, so you can jump straight to it in the recording
- Provide a reason for every score computed
Create Your Own Voice Metric
The built-in voice metrics measure problems any voice agent can have. For criteria specific to your use case, such as tone, empathy, or how the agent handled a frustrated caller, add MultiTurnParams.AUDIO to a Conversational G-Eval so the judge hears each turn's audio alongside its transcript:
from deepeval.metrics import ConversationalGEval
from deepeval.models import GeminiModel
from deepeval.test_case import MultiTurnParams
empathy = ConversationalGEval(
name="Empathy",
criteria="Determine whether the assistant sounds patient and empathetic when the user explains a problem, in its tone of voice as well as its words, and acknowledges the problem before moving on.",
evaluation_params=[MultiTurnParams.AUDIO],
model=GeminiModel(model="gemini-2.5-flash"),
)
empathy.measure(test_case)
print(empathy.score, empathy.reason)Each turn's Turn.audio clip is attached to the judge in turn order. The judge must be a model that accepts audio, such as Gemini or gpt-audio. Models like gpt-audio that only accept requests with audio can't generate evaluation steps from criteria, so pass evaluation_steps instead.
Using Voice Models to Enhance Accuracy
Some voice metrics also use a model where it makes their judgement more accurate, each picked for what that metric judges:
| Model | Used by | What it does |
|---|---|---|
| Speech detection model | Every metric except Transcription Accuracy | Without it, any sound counts as someone talking, so a cough can look like the caller interrupting, or background noise like the caller still speaking. Silero VAD only counts sound it hears as speech, so timings and silences are measured from real speech. On by default, and runs locally |
| Audio decision model | Abrupt Cut-off, Audio Dropout, Dead Stream, Echo, Background Noise, Abrupt Pitch Jump, Pauses, Pitch Variation, Speaking Rate, Failed Response, Silent Reply, Agent Interruption, User Interruption | Hume, or an OpenAI audio model such as gpt-audio, listens to each problem found and dismisses the ones that aren't real. Only in hybrid eval mode |
| Decision model | Reprompt, Transcription Accuracy | Jev, which answers yes/no questions with calibrated probabilities, such as whether the caller really repeated themselves |
| LLM | Transcription Accuracy | Judges whether the agent heard the caller correctly. Set use_llm=False to use word error rate instead |
| Speech-to-text | Dead Stream, Silent Reply, Transcription Accuracy | Re-transcribes audio to check what can actually be heard. Dead Stream and Silent Reply only use it when you pass an stt_model; Transcription Accuracy uses it with compare_against="audio" |
Speech Detection
Metrics that need to know when someone is talking take use_speech_detection, on by default. With it, a stretch only counts as talking when the Silero VAD model hears speech in it:
Background voices, such as a TV, are still speech and still count. It needs pip install onnxruntime.
Audio Decision Model
Voice metrics run in one of two eval modes:
| Mode | What happens | Cost |
|---|---|---|
"deterministic" (default) | The metric measures the audio and decides on its own | Free |
"hybrid" | The same, then each problem found is double-checked by a model that listens to it | One paid request per problem |
Set it with eval_mode on a metric that supports it, or for every voice metric with DEEPEVAL_VOICE_EVAL_MODE.
For most metrics the model only removes false alarms, which raises precision. Speaking Rate and Abrupt Pitch Jump also send borderline cases to it, so in hybrid mode they can flag a reply the deterministic check would pass.
The model hears at least 5 seconds around each problem, or the whole reply for a problem judged on a whole reply, and answers one yes/no question:
These are the metrics that support it, each asking its own question about the side of the call it hears:
| Metric | Hears | Question |
|---|---|---|
| Abrupt Cut-off | Agent | "Does the speaker's voice cut off abruptly, mid-word or mid-sentence?" |
| Audio Dropout | Agent | "Does the speaker's audio suddenly drop out or go silent mid-word, then come back?" |
| Dead Stream | Agent | "Does the speaker's audio go completely dead partway through, as if the line dropped?" |
| Echo | Caller | "Can the AI agent's own voice be heard echoed back on this caller's line?" |
| Background Noise | Agent | "Is there distracting background noise behind the speaker?" |
| Abrupt Pitch Jump | Agent | "Does the speaker's voice suddenly jump to a different pitch, as if it glitched or cracked?" |
| Pauses | Agent | "Does the speaker stop for an unnaturally long time in the middle of what they are saying?" "Is most of this clip silence where the speaker should be talking?" |
| Pitch Variation | Agent | "Does the speaker sound flat and monotone, like a robot reading?" "Does the speaker's pitch swing up and down erratically, in a way that sounds unnatural?" |
| Speaking Rate | Agent | "Is the speaker talking unnaturally slowly?" "Is the speaker talking unnaturally fast?" |
| Failed Response | Agent | "Does the AI agent stay silent here instead of answering?" |
| Silent Reply | Agent | "Is the AI agent silent here, saying no words?" |
| Agent Interruption | Caller | "Is a person speaking in this clip, rather than only background noise, breathing or silence?" |
| User Interruption | Caller | "Is a person speaking in this clip, rather than only background noise, breathing or silence?" |
- Dismissed. If the model judges the problem more likely not real than real, it doesn't count against the score and is left out of
events.dismissed_eventsin the breakdown, and the reason, say how many were dismissed. - Kept. If no clip can be cut, or the model fails, the problem stays and a warning is logged. The exception is a problem the metric only flagged for the model to confirm, in Speaking Rate and Abrupt Pitch Jump, which doesn't count unheard.
- Models.
HumeDecisionModel()(readsHUME_API_KEY) is used unless you passaudio_decision_model.OpenAIAudioDecisionModel()withgpt-audioorgpt-audio-mini(readsOPENAI_API_KEY) also works. A missing key fails when the metric is created.
Composite metrics that include any of these, such as Voice Naturalness and Turn-Taking Naturalness, take eval_mode and audio_decision_model too, and pass them to those parts. Other voice metrics ignore the eval mode.
Supported Audio Formats
Voice metrics read audio from a ConversationalTestCase in two formats, so you can use whichever your voice platform gives you, or both:
| Format | Where it goes | Use it when |
|---|---|---|
| Full call audio | audio on the test case | You have one stereo WAV recording of the whole call, as the conversation simulator and most voice platforms record |
| Per-turn audio | audio on each Turn | Your platform cuts the call up into one clip per turn |
Each metric supports these formats:
* With full call audio only, these composite metrics leave out Failed Response, Silent Reply and Reprompt, which need per-turn audio, and score the rest.
† By default Transcription Accuracy reads no audio, only each agent turn's provider_transcript, so it runs with either format or none. It needs per-turn audio with compare_against="audio".
With both, the timing metrics use the full call audio, since it has both sides of the call on one clock, while metrics that judge how a reply sounds use each turn's own clip. timing_source in the results says which was used: "call_recording" or "turn_timestamps".
In hybrid eval mode, a problem placed at a moment or a range is heard from the full call audio when there is one, otherwise from the turn's clip. A problem judged on a whole reply is heard from that turn's clip, or from the reply cut from the full call audio when no turn has audio.
Some audio can't be fully evaluated:
| What you give | What can be evaluated |
|---|---|
Per-turn audio, missing a start_time | Only metrics that judge how a reply sounds. The timing metrics are skipped, since the turns can't be placed on the call's clock |
| A mono recording, with no per-turn audio | Nothing, since the caller and the agent can't be told apart |
| No audio | Nothing |
A metric that can't be evaluated is skipped rather than scored, and its reason says why. Transcription Accuracy is the exception: it raises a MissingTestCaseParamsError instead.
Full Call Audio
One stereo recording of the whole call, as a 16-bit PCM WAV file, with the caller and the agent on separate channels:
from deepeval.test_case import Audio, ConversationalTestCase, Turn
test_case = ConversationalTestCase(
turns=[
Turn(role="user", content="Can you tell me when my order will arrive?"),
Turn(role="assistant", content="Sure, it's scheduled to arrive this Thursday."),
],
# One stereo file with both sides of the call
audio=Audio(url="call.wav"),
# The channel the agent is on, "right" by default
agent_channel="right",
)Both channels share one clock, so metrics that time the call, such as Response Latency and the interruption metrics, see exactly when each side spoke and when they talked over each other. Metrics that judge how a reply sounds cut each agent reply from the agent's channel, from its first sound until the caller speaks, so a pause mid-reply stays inside it and the caller talking over the agent never splits it. Their events say where the reply starts, in reply_start.
Metrics that time the call, such as Response Latency, the interruption metrics and Abrupt Cut-off, count a timed reply each time the agent starts speaking after at least 1 second of its own silence. They count from the sound rather than the transcript, since a transcriber can split one reply across several turns:
Only the agent's replies are scored, unless a metric's page says otherwise. Each metric's page says which replies it skips, and why.
Per-Turn Audio
One clip per turn, each placed on the call's clock by Audio.start_time:
from deepeval.test_case import Audio, ConversationalTestCase, Turn
test_case = ConversationalTestCase(
turns=[
Turn(
role="user",
content="Can you tell me when my order will arrive?",
# This turn's own clip, starting 0.3s into the call
audio=Audio(url="turn_1.wav", start_time=0.3),
),
Turn(
role="assistant",
content="Sure, it's scheduled to arrive this Thursday.",
audio=Audio(url="turn_2.wav", start_time=3.1),
),
],
)Metrics that judge how a reply sounds score each agent turn's clip as one reply. Without full call audio, the timing metrics use the clips too, by listening for the speech inside each one, so their timing is only as accurate as each clip's start_time.
Using Voice Metrics
Pass voice metrics to evaluate() like any other metric, as in the Quick Summary, or measure one test case directly:
from deepeval.metrics import AbruptCutoffMetric
metric = AbruptCutoffMetric()
metric.measure(test_case)
print(metric.score, metric.reason)
print(metric.score_breakdown)Every voice metric takes these optional parameters:
threshold: the minimum passing score. Set it toNonefor score-only mode. Defaults to0.5.include_reason: whether to include a one-line summary of the score. Defaults toTrue.strict_mode: requires a perfect score. Any score below 1 becomes 0, and the threshold becomes 1. Defaults toFalse.verbose_mode: prints the score breakdown in verbose metric logs. Defaults toFalse.flaky: marks the metric as flaky. Defaults toFalse.
All of them except Transcription Accuracy also take use_speech_detection, which turns speech detection off when set to False. Some also take eval_mode, audio_decision_model and stt_model. Transcription Accuracy is judged by an LLM or Jev, so it takes their parameters instead. Each metric's page lists the ones it takes.
Score Breakdown
A score alone hides a lot: 0.6 looks the same whether 3 of 5 replies were fine or 30 of 50, and replies that couldn't be checked don't show in it at all. The score breakdown shows what was counted, how many had the problem, and what was skipped and why, so you can tell a real failure from audio that couldn't be measured.
After measure(), read it from metric.score_breakdown:
| Field | What it means |
|---|---|
eligible_turns | How many things were counted, usually agent replies |
turns_with_events | How many of them had the problem |
events | One entry per problem found |
skipped | Turns that couldn't be checked, such as audio that won't decode, with the reason |
timing_source | Whether full call audio or per-turn audio was used |
For most metrics the score is the share of counted items without the problem: (eligible_turns - turns_with_events) / eligible_turns.
Events
Each event is one problem, such as a reply cut off or a 5-second wait, placed at the moment it happened on the call. Instead of listening to the whole recording to find it, you can jump straight to it.
Read them from the metric after measure():
metric.measure(test_case)
for event in metric.score_breakdown["events"]:
print(event["type"], event.get("start_time"), event.get("description"))When you run metrics through evaluate(), the results don't include score_breakdown. The breakdown only appears as text in each metric's verbose_logs, so call measure() when you need the events as data.
mark says what an event's place covers:
- Moment: the spot where the problem happened, such as where a reply was cut off.
- Range: the stretch the problem lasted, such as a dead stretch of audio.
- Whole reply: the agent reply the problem was judged on, such as a reply spoken too fast.
Every event follows this model:
from typing import Optional
from pydantic import BaseModel
class VoiceEvent(BaseModel):
type: str # What kind of problem it is
description: Optional[str] = None # A one-line summary, such as "Agent took 5.2s to reply"
start_time: Optional[float] = None # Seconds from the start of the call. None when it can't be placed on the call's clock
duration_seconds: Optional[float] = None # How long it lasts
mark: Optional[str] = None # "moment", "range" or "whole_reply", as above
timing_source: Optional[str] = None # "call_recording" or "turn_timestamps"
turn: Optional[int] = None # Per-turn audio only: which turn it's in, counting from 0
role: Optional[str] = None # Whose audio it is, on metrics that report it
offset_seconds: Optional[float] = None # Seconds from the start of that turn's clip, or of the reply with full call audioIn score_breakdown["events"] each event is a dict, with fields that are None left out. Events about a reply heard on the call recording also carry reply_start, where that reply starts in seconds from the start of the call, and each metric's page lists the extra fields its own events carry.