> ## Documentation Index
> Fetch the complete documentation index at: https://docs.retellai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transcription tests

> Test Retell AI speech recognition accuracy: replay real caller audio through your agent, then check word error rate and words it must hear correctly.

A transcription test replays real caller audio through your agent's speech recognition and compares what the agent heard with what the caller actually said. Each run is graded on word error rate and on the words you mark as required, so you can check that the agent hears the names, numbers, and terms that matter before a change reaches your callers.

For example, a pharmacy's agent keeps mishearing drug names. The team clips five real calls where callers say "Lisinopril" and "Metformin," marks those words as required, and reruns the tests after each change to the agent's [transcription settings](https://docs.retellai.com/build/transcription-mode.md) and boosted keywords.

## When to use it

* **Words the agent must get right**: names, account and order numbers, addresses, product or drug names.
* **Hard audio**: strong accents, noisy lines, fast or quiet speakers.
* **Before changing speech settings**, such as the language, transcription mode, or boosted keywords, to compare accuracy before and after.

To test what the agent *does* with what it hears, use an [audio test](https://docs.retellai.com/test/text-and-audio-tests.md) instead.

## How it works

No AI caller and no text-to-speech are involved. Retell streams the recording into your agent's speech recognition in real time, as if a caller were speaking, and records what the agent heard. When the audio is a clip from a call, the agent's side of that call plays back too, so turn-taking happens the way it did on the call.

Only the caller's speech is graded. Transcription tests work on voice agents only, and each one runs once per batch.

## Create a transcription test

**1. Start a transcription test case**

On the `Simulation` page, click `Add test`, open `Create manually`, and choose `Create transcription test case`.

**2. Choose the audio**

Pick `Call history` to clip a recorded call to this agent, or `Upload audio` to use a WAV or MP3 file up to 50 MB. Then click `Continue`.

**3. Select the part of the call to test**

For a call, choose the caller lines to test in `Select test range`, then click `Continue`.

**4. Correct the expected transcript**

Under **Expected caller transcript**, fix each caller line so it says exactly what the caller said. Put each word the agent must hear in square brackets (see [Mark required words](#mark-required-words)).

**5. Set the error limit and save**

Set the **Transcription error rate** limit (5% by default), name the test case, and click `Save only` or `Run test case`.

To start from a call you're reviewing, open it in [session history](https://docs.retellai.com/features/session-history.md) and, on a caller line in the transcript, click `Transcription tests`. A new transcription test case opens at that point in the call.

![Animation of creating a transcription test from call history. In Create test case, Call history is selected and a web call is picked. Continue opens Select test range, with the call's waveform and each caller and agent line; two caller lines are checked and the third is cleared, so the highlighted clip covers 0:00 to 0:44. Continue opens the form with the test case name Caller name and date of birth, the selected audio clip with separate Agent and Caller tracks, and Expected caller transcript with Transcription error rate at most 5%. The second caller line is edited to put Maria Lopez in square brackets as a required word.](https://mintcdn.com/retellai/8ZCrhFAw4xq7qprW/images/test/transcription-test-create.gif?s=ef89c926185123897bf0456051c15fa9)

Clip a recorded call, pick the caller lines to test, then mark the words the agent must hear.

### The audio clip

**Selected audio clip** plays the audio the test will use. For a call, select a caller line to see its part of the audio, and drag the edges of the highlight so it covers the words in that line. The whole clip plays in the test. `Caller track only` lets you listen to just the caller, when the recording has separate tracks.

A clip from a call needs a recording with separate caller and agent channels, can be up to 1 hour long, and isn't available for calls whose personal data was scrubbed.

### Edit the expected transcript

The expected transcript is the answer key. Caller lines are editable and agent lines are read-only. If the caller said something the transcript missed entirely, use the add button between lines to add it before or after a line.

## Mark required words

Put a word or phrase in square brackets to require the agent to hear it, even if the original transcript missed it:

```text theme={"dark"}
I'd like to cancel my [Platinum] plan, account [4471 2290].
```

A required word counts as heard only if it appears in what the agent transcribed for that line, in the same order for a phrase. Capitalization and punctuation are ignored.

## How a run is graded

A run passes only if both are true:

* **Word error rate** is at or below your limit. It's the number of word errors divided by the number of words the caller said, across every caller line. Set the limit as a percentage from 0 to 100.
* **No required word is missing.**

In the run details, **Word error rate** shows the actual and maximum rates, and **Missing words** lists any required words the agent didn't hear. In the transcript, a red marker on a caller line shows which words were missed there and when.

![Run details for a failed transcription test, Refill on a noisy line. The left side has the test case and run IDs, Test result Failed, an audio player for the 7-second clip, and the transcription the agent produced: It's Saoirse Akankwo. I need my Jardiance refilled. The 10 mg tablets. Please send it to the CVS on Shattuck Avenue. The right side shows a failure case summary, Word error rate marked Failed with Actual 17.4% and Max 5%, and Missing words listing Saoirse Okonkwo.](https://mintcdn.com/retellai/8ZCrhFAw4xq7qprW/images/test/transcription-test-results.png?fit=max\&auto=format\&n=8ZCrhFAw4xq7qprW\&q=85\&s=8773ba0c3b20f1c055383e0420896a34)

A failed transcription run shows the word error rate against your limit and the required words the agent missed.

## Billing

A transcription test bills only for the audio it replays, per second, at the Retell voice engine rate. No LLM or text-to-speech charges apply. See [testing pricing](https://docs.retellai.com/test/testing-pricing.md).

## FAQ

> [accordion] Why can't I pick a call from history?
>
> The call needs a recording with separate caller and agent channels, and calls with personal data scrubbed can't be used. Upload the audio as a file instead.

> [accordion] Why did the run fail when the word error rate looks fine?
>
> A required word was missing. A run fails if any bracketed word isn't heard, even when the overall error rate is under the limit.

> [accordion] Can I run a transcription test more than once in a batch?
>
> No. Each transcription test runs once per batch, whatever run count you set for the other test cases.

> [accordion] Does a transcription test check what the agent says back?
>
> No. It only grades what the agent heard. Use an [audio test](https://docs.retellai.com/test/text-and-audio-tests.md) to check the agent's replies.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.