Mirage Academy · Voice Agent Evaluation, Latency & Conversation Design

Voice agent evaluation course: measure latency and conversation quality

Voice Agent Evaluation, Latency & Conversation Design is a Masters course for software engineers and technical product people who build AI features. Eight chapters and forty lessons lead to an evaluation report for a voice agent.

Open the courseExplore the percentiles

One loop

Each chapter replaces a guess with a check

The course video runs about a minute. The course follows one loop, and the video names three guesses it turns into checks.

Still from the intro video for the course Voice Agent Evaluation, Latency & Conversation Design
Intro video, 1 min 11 s. Transcript below.
Read the transcript

You built a voice agent, and callers say it feels slow or talks over them. This course is for the engineer who has to find out why and fix it with evidence. The course follows one loop. First, you set a latency budget across the speech pipeline. Then you design turn-taking and prompts for the ear. Next, you build test sets and measure task success. Finally, you monitor the agent in production and start again. Each chapter replaces a guess with a check. Instead of feeling slow, you see which stage spends the time. Instead of rude interruptions, you test barge-in and silence. Instead of it seems fine, you measure task success on a test set. The capstone pulls it together: you write an evaluation report for a voice agent. If you own a voice agent and want to know what to fix first, start with chapter one.

  1. Instead of

    It feels slow

    You do this

    You see which stage spends the time.

  2. Instead of

    Callers say it is rude

    You do this

    You test barge-in and silence.

  3. Instead of

    It seems fine

    You do this

    You measure task success on a test set.

The course video, then a loop of four stops: budget, design, measure and monitor, with a mark that the loop starts again. Under it three cards, each with a guess and the check that replaces it.

The Voice AI course on how Mirage tests its own voice agents →

Chapter 1

What makes a voice conversation feel good

Chapter 1 begins with a difference between reading and listening.

Picture, made-up reply
  1. Listening Is Not Reading

    The first lesson sets the two apart.

  2. The Rhythm of Human Conversation

    The second lesson looks at the rhythm of human conversation.

  3. Anatomy of a Voice Agent and Its Six Metric Families

    The third lesson takes a voice agent apart and names six metric families.

  4. Designing for the Ear

    Designing for the ear is the fourth lesson.

  5. A First Baseline with Word Error Rate

    The chapter ends with a first baseline from word error rate.

Two panels. On the left, three lines of a written reply all visible at once. On the right, the same three lines as chips along a time arrow, fading as they pass, with a note that there is no way back.

Chapter 2

Latency budgets across the speech pipeline

Chapter 2 is about where the milliseconds go. The picture uses made-up numbers.

Example, made-up milliseconds
  • One after anotherends at 1050 ms · over budget

  • Overlappedends at 700 ms · within budget

RecognitionLanguage modelSynthesisdashed line: budget of 800 ms

  1. Where the milliseconds go

    The first lesson is about where the milliseconds go.

  2. Streaming and overlap

    Streaming and overlap are one lesson.

  3. Hiding latency

    Hiding latency has a lesson of its own.

Two horizontal bars with the same three stages. In the first the stages run one after another and end past a dashed budget line. In the second they overlap and end before it.

Chapter 2, continued

Percentiles and the tail: an average can hide slow calls

Chapter 2 also covers percentiles and the tail. Read twenty example response gaps below.

Percentile explorer

Example, made-up gaps
Which percentile do you read?

Response gaps, shortest to longest

  • Value at p95 (rank 19 of 20)

    1,900 ms

  • Mean of all twenty

    776 ms

  • Calls over budget

    3 of 20

The budget does not hold at this percentile.

The rule: the response gap is the time from the caller's last word to the agent's first sound. Sort the gaps, then take the one at rank = ceil(percentile / 100 x number of calls). A call is over budget when its gap is above the budget. The budget holds at a percentile when the value at that rank is within it. The mean adds all gaps and divides by the count. In this example the mean is 776 ms and the median 580 ms, yet p90 is 1150 ms, so a mean that looks acceptable can sit beside a slow tail.

p95: 1,900 ms. 3 of 20. The budget does not hold at this percentile.

  1. Percentiles and the tail

    Percentiles and the tail are one lesson of this chapter.

  2. Trade-offs in the budget

    The lesson on trade-offs in the budget follows.

Twenty bars, one per example call, sorted from the shortest to the longest response gap, with a dashed budget line you move. You choose a percentile and the page shows its value, the mean and how many calls are over budget.

Chapter 3

Turn-taking, barge-in and silence

Chapter 3 starts with endpointing. The rows below show it with made-up pauses.

Example, made-up pauses
  1. A breath300 ms

    Short threshold: waitsLong threshold: waits

  2. Thinking600 ms

    Short threshold: cuts the caller offLong threshold: waits

  3. Looking up an order number900 ms

    Short threshold: cuts the caller offLong threshold: waits

  4. Finished speaking1400 ms

    Short threshold: ends the turnLong threshold: ends the turn

The rule: the agent ends the caller's turn when a pause is longer than the threshold. The short threshold (400 ms) cuts off the caller in two of the three pauses mid-turn. The long threshold (1000 ms) waits through all three, and so waits a full second after the caller finishes.

  1. Endpointing

    The first lesson is endpointing.

  2. Barge-in

    Barge-in comes next in this chapter.

  3. Backchannels

    Backchannels follow barge-in.

  4. Silence handling

    Silence handling comes after that.

  5. Measuring turn-taking

    The chapter ends by measuring turn-taking.

Four caller pauses as horizontal bars, from a breath to the end of the turn. Two dashed lines mark a short and a long silence threshold. Under each bar a line says what each threshold does.

Chapter 4

Designing prompts and flows for the ear

Chapter 4 turns to what the agent says. Short turns and answer first are its opening lesson.

Example, made-up reply
Written for the eye

We can offer Tuesday at nine, Wednesday at ten thirty, Thursday at two or Friday at eleven. Which would you like?

Written for the ear

Tuesday at nine works. Shall I book that one?

A phone number read out in groups

41555501424155550142

  1. Short turns, answer first

    The first lesson is short turns with the answer first.

  2. Options and lists

    Options and lists come next.

  3. Confirmations

    Confirmations come after them.

  4. Numbers, spelling and homophones

    Numbers, spelling and homophones share one lesson.

  5. Repair and fallback

    The chapter ends with repair and fallback.

Two speech bubbles with the same offer: a long list on the left, and a short answer with one question on the right. Below them a ten digit number written in one piece and then split into three groups.

Chapter 5

Test sets for voice agents

Chapter 5 builds the set you measure against. The grid shows a set with holes in it.

One test case
  • Caller goalChange a booking
  • Test speechA recorded call
  • ConditionsStreet noise
  • Expected resultThe booking is changed
Goals against conditionsQuietNoisyAccentChange a bookingcheck: a test case existscheck: a test case existscheck: a test case existsAsk a pricecheck: a test case existscheck: a test case existscross: no test case yetCancelcheck: a test case existscross: no test case yetcheck: a test case exists

check: a test case existscross: no test case yet

Picture, not a template
  1. What a voice test case holds

    The first lesson is about what a voice test case holds.

  2. Sources of test speech

    Sources of test speech come second.

  3. Noise and accents

    Noise and accents come third.

  4. Simulated callers

    Simulated callers come fourth.

  5. Set size

    The chapter ends with set size.

A test case card with four fields, and a grid of three caller goals against three conditions. Two cells are marked as having no test case yet.

Chapter 6

Measuring task success and conversation quality

Chapter 6 starts with task success. The scorecard below is an example run.

Example run, made-up numbers
CallTask doneTurnsSlots right
Call 1yes63/3
Call 2yes83/3
Call 3no121/3
Call 4yes72/3
Call 5yes53/3
Call 6no102/3
Call 7yes93/3
Call 8yes63/3

Task success: 6 of 8 calls completed the task.

Efficiency: 6.8 turns on average in the completed calls.

Slot accuracy: 20 of 24 slots were right.

  1. Task success

    The chapter starts with task success.

  2. Efficiency

    Efficiency is the next lesson.

  3. Slot accuracy

    Slot accuracy follows.

  4. Human ratings

    Human ratings are the fourth lesson.

  5. Judges and their limits

    The chapter closes with judges and their limits.

A table of eight simulated calls. For each call it shows whether the task was completed, how many turns it took and how many slots were right. Under the table the page counts the totals.

Chapter 7

Monitoring voice agents in production

Chapter 7 moves from the test set to live calls. The trace below is made up.

Daily response gap, 14 daysdashed line: service leveldotted line: a change shipssquares: calls picked for review

Picture, not a measurement
  1. What to watch

    The first lesson is what to watch.

  2. Logging, consent and storage

    Logging, consent and storage share a lesson.

  3. Sampling for review

    Sampling for review comes third.

  4. Service levels

    Service levels are the fourth lesson.

  5. Drift and regression

    The chapter ends with drift and regression.

A dotted line over fourteen days. It stays under a dashed service level line for eight days, jumps above it after a marked change and stays there. Small squares along the bottom mark days with a call picked for review.

Capstone

The capstone: an evaluation report for a voice agent

You write the report in five lessons, from its scope to the decision.

  1. Page 1: Scope and metric plan

    The report opens with scope and a metric plan.

  2. Page 2: Test plan

    The test plan is second.

  3. Page 3: Results

    Results follow.

  4. Page 4: Findings

    Findings follow.

  5. Page 5: Go or no-go

    The report ends with a go or no-go call.

Five report pages in a row: scope and metric plan, test plan, results, findings, and go or no-go. After the last page a go mark and a no-go mark.

Start

How you learn it in the Academy

The language is English and the level is Masters.

Level and audienceMastersFor engineers and technical product people building AI features

LanguageEnglish.

Browse all courses
Open the course: Voice Agent Evaluation, Latency & Conversation Design

In the Academy

  1. Lessons

    Each lesson has a short visual explainer, questions, a task and a quiz.

  2. Chapter checks

    Your certificate follows from the chapter checks you pass.

  3. AI coach

    The coach talks with you in a voice session and has you explain the lesson back. Where your answer is thin it asks again. It does not decide the certificate.

  4. Certificate

    At the end there is a certificate that fixed rules grant, with a verification code that other people can use online. Mirage issues it, and the state does not recognize it as a degree.

Four stations run left to right: lessons, chapter checks, the AI coach and the certificate. A box beside them lists the level, who it is for and the language.

Background guide: becoming an AI engineer →

Questions about the course

  • What is the Voice Agent Evaluation, Latency & Conversation Design course?

    A Masters course in the Mirage Academy catalogue with eight chapters and forty lessons. It teaches you to measure and improve a voice agent through latency budgets, turn-taking quality and conversation design.

  • Who should take this voice agent evaluation course?

    The catalogue's audience is software engineers and technical product people who build AI features, at the Masters level.

  • What will I write in the capstone?

    An evaluation report for a voice agent, in five parts: scope and metric plan, test plan, results, findings, and a go or no-go decision.

  • What does the course measure?

    Response latency across the speech pipeline, turn-taking, barge-in and silence, task success, efficiency and slot accuracy, plus human ratings, and judges and their limits.

  • How is it different from the real-time voice agents course?

    That course builds a voice agent, from the speech pipeline to a working assistant. This one starts where an agent exists and asks how well it performs, and it sits at the Masters level.

  • How does it relate to the Voice AI course page?

    The Voice AI page is about Mirage's own voice agent testing. This page is the program for learning to evaluate agents yourself, chapter by chapter.

  • Does the course cover production monitoring?

    Yes. Chapter 7 covers what to watch, logging with consent and storage, sampling for review, service levels, and drift and regression.

  • Do I get a certificate, and in which language is it taught?

    The course comes with a certificate that has a verification code for online checks, and the AI coach plays no part in granting it. Teaching is in English.