📍 Join the 1st DeepEval meetup in SF, this Friday 5pm PT. RSVP on Luma →
💥 Introducing JevEval: Jev-as-a-Judge for LLM evaluation. Read the post →
Voice Agents

Introduction to Voice Metrics

Beta

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.

0.0s / 12.2s

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 level metrics focus on how loud the agent is, and what can be heard behind its voice.

CallerAgent
0.0s / 14.9s

Single-issue metrics:

Prosody metrics evaluate how the agent delivers its words, from pitch to pace.

0.0s / 15.1s

Single-issue metrics:

Responsiveness metrics check whether the caller actually got an answer they could hear.

CallerAgent
0.0s / 15.4s

Single-issue metrics:

Composite metrics:

Speech quality metrics judge the agent's voice as a whole, and whether the agent heard the caller correctly.

0.0s / 17.2s

Single-issue metrics:

Composite metrics:

Timing metrics evaluate when each side spoke, reading both sides of the call on one clock.

CallerAgent
0.0s / 19.2s

Single-issue metrics:

Composite metrics:

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:

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:

main.py
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:

main.py
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:

ModelUsed byWhat it does
Speech detection modelEvery metric except Transcription AccuracyWithout 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 modelAbrupt Cut-off, Audio Dropout, Dead Stream, Echo, Background Noise, Abrupt Pitch Jump, Pauses, Pitch Variation, Speaking Rate, Failed Response, Silent Reply, Agent Interruption, User InterruptionHume, 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 modelReprompt, Transcription AccuracyJev, which answers yes/no questions with calibrated probabilities, such as whether the caller really repeated themselves
LLMTranscription AccuracyJudges whether the agent heard the caller correctly. Set use_llm=False to use word error rate instead
Speech-to-textDead Stream, Silent Reply, Transcription AccuracyRe-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:

LoudnessSpeechspeechbanghold music0s2s4s6s

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:

ModeWhat happensCost
"deterministic" (default)The metric measures the audio and decides on its ownFree
"hybrid"The same, then each problem found is double-checked by a model that listens to itOne 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:

Agentcut-off: keptdropout: dismissed0s2s4s6s8s10s12s14s
Two problems found: the model hears the shaded 5 seconds around each. It confirms the cut-off, so that one counts. It hears no dropout, so that false alarm is dismissed.

These are the metrics that support it, each asking its own question about the side of the call it hears:

MetricHearsQuestion
Abrupt Cut-offAgent"Does the speaker's voice cut off abruptly, mid-word or mid-sentence?"
Audio DropoutAgent"Does the speaker's audio suddenly drop out or go silent mid-word, then come back?"
Dead StreamAgent"Does the speaker's audio go completely dead partway through, as if the line dropped?"
EchoCaller"Can the AI agent's own voice be heard echoed back on this caller's line?"
Background NoiseAgent"Is there distracting background noise behind the speaker?"
Abrupt Pitch JumpAgent"Does the speaker's voice suddenly jump to a different pitch, as if it glitched or cracked?"
PausesAgent"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 VariationAgent"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 RateAgent"Is the speaker talking unnaturally slowly?"
"Is the speaker talking unnaturally fast?"
Failed ResponseAgent"Does the AI agent stay silent here instead of answering?"
Silent ReplyAgent"Is the AI agent silent here, saying no words?"
Agent InterruptionCaller"Is a person speaking in this clip, rather than only background noise, breathing or silence?"
User InterruptionCaller"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_events in 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() (reads HUME_API_KEY) is used unless you pass audio_decision_model. OpenAIAudioDecisionModel() with gpt-audio or gpt-audio-mini (reads OPENAI_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:

FormatWhere it goesUse it when
Full call audioaudio on the test caseYou have one stereo WAV recording of the whole call, as the conversation simulator and most voice platforms record
Per-turn audioaudio on each TurnYour 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 giveWhat can be evaluated
Per-turn audio, missing a start_timeOnly 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 audioNothing, since the caller and the agent can't be told apart
No audioNothing

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",
)
Caller (left)turn 0turn 2Agent (right)turn 1turn 30s2s4s6s8s10s

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:

Agentturn 0turn 2reply 1reply 20s2s4s6s8s10s

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 to None for score-only mode. Defaults to 0.5.
  • include_reason: whether to include a one-line summary of the score. Defaults to True.
  • strict_mode: requires a perfect score. Any score below 1 becomes 0, and the threshold becomes 1. Defaults to False.
  • verbose_mode: prints the score breakdown in verbose metric logs. Defaults to False.
  • flaky: marks the metric as flaky. Defaults to False.

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:

FieldWhat it means
eligible_turnsHow many things were counted, usually agent replies
turns_with_eventsHow many of them had the problem
eventsOne entry per problem found
skippedTurns that couldn't be checked, such as audio that won't decode, with the reason
timing_sourceWhether 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:

MomentRangeWhole replycut off
  • 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 audio

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

On this page