Docs

Speech-to-Text Evaluation

Evaluate Deepgram's transcription accuracy against your own reference transcripts, using real-world audio from your own datasets.

  • Pre-recorded
  • Streaming:Nova
  • Streaming:Flux
  • Specific languages only

Start an evaluation

Upload audio files and reference transcripts to get WER and SWER for each file and for your dataset.

Understanding WER and SWER

WER counts the word-level errors between Deepgram's transcript and your reference transcript. After both texts are normalized, every substitution, deletion, and insertion counts as an error, even when it doesn't change the meaning.

SWER counts only the errors that change the meaning. For example, transcribing "Boston" as "Austin" and "the" as "a" each count as one WER error, but only "Austin" changes the destination. SWER counts the first and not the second.

This matters most when a voice agent or another automated system acts on the transcript, because an error that changes the meaning can change what the system does. Each evaluation reports WER and SWER together so you can see how closely the words match and how well the meaning holds up.

Info

Every evaluation is measured against your reference transcripts. Use a carefully verified transcript of the speech in each audio file. The reference transcript serves as the ground truth, so an error or omission in it shows up as an error in the results.

Pre-recorded and streaming

Deepgram transcribes audio in two ways. Pre-recorded transcription receives the whole audio file at once. Streaming transcription receives audio as it is spoken and returns words as it goes, the way voice agents and live captioning work. A streaming model has less context when it decides on each word, because it can't hear what comes next, so the same audio can score differently in each mode.

Choose the mode that matches how you use Deepgram. Results for the same audio can differ between the two modes, and the results page shows which mode each evaluation used.

Streaming sends each audio file at real-time speed, so a streaming evaluation takes longer than a pre-recorded one. Flux is available in streaming mode only.

Before you begin

You need:

  • A Google account to sign in. A personal or a work account both work.
  • A Deepgram project ID and an API key for that project, from the Deepgram Console.
  • Audio files and a reference transcript for each one. See Prepare your files.

Run your first evaluation

  1. Sign in with Google.
  2. Under Your Deepgram project, enter your Project ID and API key. Deepgram transcribes your audio with this key and bills the requests to that project.
  3. Under Transcription, choose a Mode, then a Model and Language. The model list shows the models available in that mode, and the language list shows the languages that model supports.
  4. Under Files, drop a folder onto the page or select your files. The evaluation pairs each audio file with its reference transcript and shows you the pairs before the evaluation starts. Check that every audio file has the right reference transcript.
  5. Select Start the evaluation and keep the page open until the upload finishes. The evaluation transcribes and scores each file and shows its progress. When the evaluation finishes, review the results for your dataset and for each file.

An evaluation you start is visible to you, to anyone signed in with the same company Google Workspace account, and to Deepgram.

Prepare your files

An evaluation is made of pairs. A pair is an audio file and its reference transcript: a plain-text file of what was said in that audio file.

Files pair by name, so call_001.wav pairs with call_001.txt. Matching ignores capitalization, so Call.wav also pairs with call.txt. Your results use the audio file's name as you wrote it.

Give every audio file a unique name. If two files have the same name apart from capitalization, the evaluation can't tell them apart and asks you to rename one.

Audio formats

FormatExtensionPre-recordedStreaming
WAV.wavYesYes
MP3.mp3YesYes
FLAC.flacYesYes
M4A.m4aYesYes
Opus.opusYesYes
Ogg.oggYesYes
WebM.webmYesYes

Pre-recorded evaluations send each audio file to Deepgram as you uploaded it. Streaming evaluations convert each audio file to mono audio before streaming it, so every format works with Nova-3, Nova-2, and Flux. Audio recorded at 8, 16, 24, 44.1, or 48 kHz keeps its sample rate; audio at any other rate is converted to 16 kHz. A stereo file is mixed down to one channel for streaming.

File requirements

RequirementValue
Reference transcriptsUTF-8 plain text, with a .txt extension
Audio files per evaluationUp to 1,000

Reference transcripts sometimes include text that isn't part of the speech, such as bracketed notes ([laughter]) or speaker labels, either plain (SPEAKER 1:) or with a timestamp (Speaker 1 (00:04):). Before scoring, the evaluation removes bracketed notes and speaker labels and lists each removal in the processing notes. Text it can't clearly identify as a note or a label, including a name with no timestamp (Advisor:), stays in place.

Read your results

The results page shows the dataset SWER first, with its range, followed by WER. Both are weighted by length: the errors across every scored file are added up and divided by the total number of reference words, so a long audio file counts for more than a short one.

A chart shows the SWER for each file, and a table lists the results for every file. When you sort the table, the chart follows the same order. To keep a copy, download the results as CSV or JSON from the top of the page.

ColumnDescription
FileThe audio file's name.
AudioHow long the audio file is.
Reference wordsThe number of words in the reference transcript. Both error rates divide by this number.
SWERErrors that change the meaning, as a share of the reference words.
SWER rangeThe lowest and highest SWER, depending on how the judge model's uncertain decisions fall.
WERAll word-level errors (substitutions, deletions, and insertions), as a share of the reference words.
KeptErrors the judge model found change the meaning. These count toward SWER.
DiscardedErrors the judge model found don't change the meaning. These count toward WER only.

WER

Before calculating WER, the evaluation normalizes Deepgram's transcript and your reference transcript. It lowercases the text and removes punctuation. For English, it also standardizes numbers, spellings, and contractions, so "twenty five dollars" matches "$25" and "colour" matches "color". English normalization uses the text normalizer from OpenAI's open-source Whisper project.

Differences that normalization removes never count as errors. The evaluation then aligns the two texts word by word and counts each substitution (a different word), deletion (a missing word), and insertion (an extra word) as an error.

WER divides the total number of errors by the number of words in the reference transcript.

SWER

SWER uses the same alignment and the same reference word count as WER, but counts only the errors that change the meaning.

To decide which errors change the meaning, the evaluation sends each error and the text around it to a judge model. The bottom of the results page names the judge model each evaluation used. A long stretch of consecutive missing words counts as one missing sentence, without sending each word to the judge model.

Info

SWER can exceed 100%. This happens when the errors that count toward SWER outnumber the words in the reference transcript, usually because the reference transcript is very short or doesn't match the audio.

Kept and discarded errors

The judge model keeps or discards each error it reviews. A kept error changes the meaning, like a wrong name, number, or negation, and counts toward SWER. A discarded error doesn't, like transcribing "the" as "a", and counts toward WER only.

The SWER range

The judge model also marks the decisions it isn't sure about. The low end of the SWER range counts only the errors it was sure change the meaning. The high end adds every error it was unsure about.

A narrow range means the judge model was sure about most of its decisions. A wide range means more of them could go either way.

Reference transcripts worth checking

Your results are only as accurate as your reference transcripts, so the evaluation checks each one and flags the file when something looks wrong.

A warning icon (⚠) appears next to a flagged file. Select it to see why. The file is still scored, but review its reference transcript before you rely on its results.

A file is flagged when its reference transcript:

  • Has no punctuation and one letter case throughout. The text may already be normalized rather than written as a transcript.
  • Matches Deepgram's transcript almost exactly across a long audio file. The reference may be machine-generated rather than independently verified.
  • Has too few words for the length of the audio. The transcript may be cut short, or paired with the wrong audio file.
  • Has more words than the audio is likely to contain.

A warning points to a possible problem, not a confirmed one. Review the reference transcript to confirm it's accurate.

Files that weren't scored

When a file can't be scored, the evaluation leaves it out of the results and records the reason in the processing notes. The dataset figures include only the scored files, and the results page shows how many files that is.

A file isn't scored when:

  • Deepgram can't transcribe it, or transcribes no speech from it.
  • Deepgram transcribes only part of what the reference transcript contains, so the result wouldn't measure accuracy.
  • The reference transcript is empty once notes are removed, or has no words left after normalization.
  • The file is too long for the judge model to score, or the judge model can't finish scoring it. The processing notes say which.

A file can't be paired when an audio file has no matching reference transcript, or a reference transcript has no matching audio file. The processing notes name the file that's missing its match. Check that each audio file has a .txt file with the same name.

Limits

  • Each evaluation accepts up to 1,000 audio files.
  • Flux Multilingual evaluates one language per evaluation; audio that mixes languages isn't supported.
  • Supported languages vary by model and mode. The language list shows the languages available for the model you choose.
  • Long audio files are judged in parts. If a part can't be judged, the file isn't scored.
  • Deepgram can return a slightly different transcript for the same long audio file from one evaluation to the next, so WER can vary a little between evaluations.

Run evaluations on your own machine

If your audio can't leave your network, or you prefer the command line, install dg-bench-cli. It runs the same evaluation on your own machine and reports the same metrics. It works with Deepgram's hosted API and with self-hosted Deepgram deployments.

dg-bench-cli

Install the CLI and run an evaluation from your terminal.