Skip to content
Eval Suites50

Voice agent evaluation for timing, transcripts and interruptions

Sources checked 3 min read · By the Eval Suites editors

In brief

Evaluate a voice agent against a recorded or synthetic conversation with expected behavior for each turn. Measure when the agent starts and stops audible speech. Grade critical words and actions separately so an accurate transcript or a quick response cannot hide a failed task.

Timing unit
Milliseconds on one clock
Example
Two synthetic call-event rows
Timing boundaries
Caller speech end to agent audio start; caller interruption to agent audio stop

Which voice cases should you record?

Start with clear speech, a misheard identifier, a pause within a sentence, a correction while the agent is talking and an action that depends on confirmation. Specify what the caller said, the intended result and which data must survive into the final action. Use consented recordings or synthetic voices and remove identifiers from any fixture you share.

Five starting scenarios for a voice agent
ScenarioObserveExample pass condition
Clear speechTranscript, first audio and end stateIntended request completes with the spoken date and time.
Misheard identifierReference slot and actionThe agent confirms the ambiguous identifier before updating the record.
Mid-sentence pauseEnd-of-turn and first audio eventsThe agent waits through an intended pause.
Caller interruptionCaller start, audio stop and next transcriptThe agent stops playback and uses the correction in the next action.
Action requires confirmationConfirmation event and final stateThe action remains pending until the caller confirms the exact change.

Measure the caller’s wait and the time it takes to stop speaking

Use the same clock for each subtraction. For a normal response, subtract caller speech end from the first audible agent audio. For an interruption, subtract interruption start from the last audible agent audio on the interrupted turn. Provider first-byte, first-token and TTS first-audio metrics help locate delays in a pipeline. They use different start and stop events from the caller-facing measurements in this worksheet.[1]

Run the code as voice_eval.py. The fictional thresholds, 600 ms to start and 250 ms to stop, are exercise values you can change. The supplied rows produce 580 ms and 320 ms. The second row fails because speech continues past the exercise limit. These are derived values from synthetic timestamps.

Calculate two voice-agent timing checks
checks = (
    {
        "case": "wait-for-reply",
        "start_ms": 1_200,
        "end_ms": 1_780,
        "limit_ms": 600,
    },
    {
        "case": "stop-after-interruption",
        "start_ms": 4_500,
        "end_ms": 4_820,
        "limit_ms": 250,
    },
)

for row in checks:
    if row["end_ms"] is None:
        print(f'{row["case"]}: no end event; review the trace')
        continue
    duration = row["end_ms"] - row["start_ms"]
    if duration < 0:
        print(f'{row["case"]}: invalid event timing; review the trace')
        continue
    verdict = "PASS" if duration <= row["limit_ms"] else "FAIL"
    print(f'{row["case"]}: {duration} ms {verdict}')

When does a transcript error change the booking?

Word error rate (WER) counts the substitutions, deletions and insertions needed to align a transcript with a reference, divided by the number of reference words. Use the same rules for casing, punctuation and numbers on both sides. For a batch of calls, add the edit counts and divide by the total reference words.[2]

Two transcripts of the same six-word request: “please move my booking to Monday”
Recognized transcriptWord error rateDate in transcript
kindly move my booking to Monday1 substitution / 6 words = 16.7%Monday matches
please move my booking to Sunday1 substitution / 6 words = 16.7%Sunday differs

In this synthetic call, both transcripts get the same WER. Check the date sent to the booking tool and the final appointment record. A clarification that preserves Monday can recover the second call. An update to Sunday fails the task even if the agent responds within its time limit.

Interpret voice failures by stage

Report the sample count, transport, model build, audio device or fixture and timing boundaries with any percentile. Record missed end events separately and investigate them before comparing runs. Break out the scenarios where timing differs. A quiet scripted call and a noisy interrupted call put different demands on the system.

A transcript can be understandable while carrying the wrong booking code. Compare the critical slot with the reference and verify the committed action. If both are correct and the caller spoke over the agent, use the timing trace to decide whether the voice experience still failed.

Related suites

Related reading

Sources

  1. 1. Metrics · Pipecat · Official docs · Sources checked
  2. 2. Evaluation metrics for automatic speech recognition · Hugging Face · Official docs · Sources checked