📍 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 AgentsProsody

Pauses

Beta
Multi-turn
Referenceless
Chatbot
Voice

The pauses metric checks whether your voice agent pauses naturally while it speaks: no long gap in the middle of a sentence, and not more silence than speech. It returns the share of agent replies with natural pauses, between 0 and 1.

0.0s / 9.5s

Required Arguments

To use the PausesMetric, you'll have to provide a ConversationalTestCase with:

  • audio on the agent's turns, one clip per reply, or on the test case as a stereo recording of the whole call*

* Full call audio has to be stereo, with the caller and agent on separate channels, and is only used when no turn has audio. Each agent reply is then heard on the agent's channel, from its first sound until the caller speaks.

Usage

The PausesMetric() can be used for end-to-end evaluation of voice calls, such as ones produced by the ConversationSimulator in voice mode:

from deepeval import evaluate
from deepeval.dataset import ConversationalGolden
from deepeval.metrics import PausesMetric
from deepeval.simulator import ConversationSimulator
from deepeval.voice import ElevenLabsConnector, VoiceConfig


golden = ConversationalGolden(
    scenario="The user asks the agent to look up an order by its number.",
    expected_outcome="The agent reads back the order status.",
)

simulator = ConversationSimulator(
    voice_config=VoiceConfig(
        connector=ElevenLabsConnector(agent_id="your-agent-id"),
    )
)
test_cases = simulator.simulate([golden])

metric = PausesMetric(threshold=0.8)
evaluate(test_cases=test_cases, metrics=[metric])

There are FOUR optional parameters specific to the PausesMetric, on top of the common voice metric parameters:

  • [Optional] max_pause_ms: an integer for the longest pause, in milliseconds, allowed inside a reply. Must be greater than 0. Defaulted to 4000.
  • [Optional] max_pause_percent: an integer for the largest share of a reply's speech span, in percent, that may be pauses. Must be from 1 to 100. Defaulted to 50.
  • [Optional] eval_mode: "deterministic" or "hybrid". In "hybrid", each flagged reply is double-checked by an audio decision model before it counts. Defaulted to the configured voice eval mode ("deterministic" unless set).
  • [Optional] audio_decision_model: the model that does the second check in "hybrid" mode. Defaulted to HumeDecisionModel().

A value outside these limits raises a ValueError.

As a standalone

You can also run the PausesMetric on a single test case as a standalone, one-off execution:

metric.measure(test_cases[0])

print(metric.score, metric.reason)
print(metric.score_breakdown)

See Events for what score_breakdown contains.

Events

Each reply with a long pause or too much silence shows up in score_breakdown. Here is what the example call returns:

{
    "eligible_turns": 4,
    "turns_with_events": 2,
    "events": [
        {
            "type": "long_pause",
            "turn": 3,
            "timing_source": "turn_timestamps",
            "description": "Agent paused for 4.7s mid-reply",
            "longest_pause_ms": 4740,
            "offset_seconds": 1.26,
            "duration_seconds": 4.74,
            "start_time": 10.76,
            "mark": "range",
        },
        {
            "type": "too_much_silence",
            "turn": 5,
            "timing_source": "turn_timestamps",
            "description": "Reply was 68% silence",
            "pause_fraction": 0.68,
            "offset_seconds": 0.0,
            "duration_seconds": 7.2,
            "start_time": 21.0,
            "mark": "whole_reply",
        },
    ],
    "skipped": [{"turn": 9, "error": "Reply has under 2 seconds of speech."}],
}
FieldWhat it means
typeLong pause if one pause ran too long, too much silence if pauses filled too much of the reply
longest_pause_msLong pauses only. How long the pause lasted, in milliseconds
pause_fractionToo much silence only. The share of the speech span that was pauses, from 0 to 1

A long pause event covers the pause itself: offset_seconds is where it starts in the clip. A too much silence event covers the whole reply. Replies with under 2 seconds of speech, or audio that can't be decoded, are listed under skipped.

Every event also has the fields all voice events share, such as mark and description.

eligible_turns is how many agent replies were counted and turns_with_events how many were flagged. The score is the share that weren't.

How Is It Calculated?

The PausesMetric score is calculated according to the following equation:

Pauses=Number of Agent Replies With Natural PausesTotal Number of Scored Agent Replies\text{Pauses} = \frac{\text{Number of Agent Replies With Natural Pauses}}{\text{Total Number of Scored Agent Replies}}

The metric reads per-turn audio, one agent clip at a time, or replies cut from stereo full call audio when no turn has audio. The caller's turns are never checked.

Which replies are scored

Agentturn 1turn 3speech spantoo short0s2s4s6s8s

The speech span runs from the first to the last 20 ms of the clip that is louder than silence (about −41 dBFS). A reply is scored if its speech span is at least 2 seconds. On clips of 2 seconds or more, sound within 6 dB of the clip's background noise also counts as silence, so pauses are still found on a line that is never truly quiet.

Only the speech span is checked: silence before the agent starts is response time, not a pause.

Pause criteria

Agentturn 1too brieflong pause0s2s4s6s8s

A pause is a silent stretch of at least 200 ms inside the speech span. Shorter gaps are just part of saying words. A reply is flagged if:

CheckRule
Long pauseIts longest pause is over max_pause_ms (4000 by default)
Too much silenceIts pauses add up to over max_pause_percent (50 by default) of the speech span

A reply with both is flagged once, as a long pause.

If no agent reply has enough speech, the metric is skipped.

Second check

In the hybrid eval mode, each flagged reply is double-checked before it counts. The audio decision model hears the agent's audio. For a long pause, that's the pause itself, widened to 5 seconds when it's shorter, from the full call audio when there is one, otherwise from the turn's own clip. For too much silence, it's the whole reply, from that turn's own clip, or from the reply cut from full call audio when no turn has audio. It is asked:

  • A long pause: "Does the speaker stop for an unnaturally long time in the middle of what they are saying?"
  • Too much silence: "Is most of this clip silence where the speaker should be talking?"

If the model judges "no" more likely than "yes", the reply is dismissed and doesn't count against the score.

Example call

A call with five agent replies: one stops for almost 5 seconds mid-reply, one is broken up by many shorter pauses, and one is too short to judge. Each row is one agent reply, its longest pause and how much of it was pauses.

Agent13579skipped0s5s10s15s20s25s30s35s
Agent turnLongest pauseShare of pausesFlagged?
1240 ms45%No
34740 ms75%Yes (long_pause)
5640 ms68%Yes (too_much_silence)
7240 ms43%No
9Under 2 s of speechSkipped
4 replies2 flagged → 2/4 = 0.5

Turn 3 is over both limits but is flagged once, as a long pause. Turns 1 and 7 sound natural even at over 40% pauses: the 240 ms gaps between syllables count as pauses too, and none is long.

FAQs

How is this different from turn-taking naturalness?
TurnTakingNaturalnessMetric looks at the gaps between the caller and the agent. This metric looks at the gaps inside the agent's own replies.
Does this metric call an LLM or an external speech model?
Not by default. Detection is deterministic and runs locally over the audio, so it has no model or token cost. In the "hybrid" eval mode, each flagged reply is also checked by an audio decision model, at one paid request per flagged reply.
Does it check the caller's audio too?
No. Only the agent's replies are scored. The caller is your simulator's TTS voice or a real customer, so their audio says nothing about the agent.

On this page