Skip to content

Evaluating audio: STOI, PESQ and POLQA, FAD, MOS and MUSHRA

Pick the right score for each audio task, know what each automatic metric measures and leaves out, refuse to call a proxy PESQ, and design and analyze listening tests as repeated measures.

Advanced ~17 min10 steps

What runs in CodeSplash

You will be able to

  • Match each audio task to its metrics, and say what each needs (references, a fixed model, people)
  • Explain what STOI and PESQ/POLQA predict, and why only conforming implementations count
  • Explain Fréchet audio distance and its dependence on the embedding model and sample size
  • Design a MOS or MUSHRA test and analyze it with listener and clip effects

Read first

01

A score for each task

Read

Audio has no single quality number. Each task has its own:

TaskScoresNeeds
TranscriptsWER, CERreference text and a normalization policy
SeparationSI-SDR, SI-SDRitrue sources and a matching rule
Who spoke whenDER, JERreference turns, collar, overlap rule
VerificationEER, detection costtrials, a target prior
Enhanced speechSTOI, PESQ/POLQAthe clean reference
Generated audioFAD, CLAP scorea fixed embedding model
Anything heardMOS, MUSHRAlisteners and a protocol

Automatic scores are proxies chosen for one aspect. Intelligibility, naturalness, faithfulness to text and speaker similarity are different axes.

02

STOI: will it be understood?

Read

STOISTOIPredicts how intelligible noisy or processed speech is, from correlations of short-time envelopes with a clean reference. predicts how intelligible processed speech is, given the clean reference. It splits both signals into frequency bands, tracks each band's envelope over short segments of a few hundred milliseconds, and averages the correlations between clean and processed envelopes:

STOI=1JM∑j,mcorr⁡(xj,m,y~j,m).\text{STOI} = \frac{1}{JM} \sum_{j,m} \operatorname{corr}\bigl(x_{j,m}, \tilde y_{j,m}\bigr).

The reference's example computes one such correlation: 0.982. A correlation of raw waveforms isn't STOI: the band analysis and normalization are part of it. And intelligible doesn't mean natural: robotic speech can score well.

Reference · EVA041 · Runs as a notebookShort-time objective intelligibilityPredicts intelligibility of degraded speech through short-time correlations of processed time-frequency envelopes.
03

PESQ and POLQA: standards, not formulas

Read

PESQPESQA standard model that predicts how listeners would rate the quality of degraded speech against a clean reference. and POLQAPOLQAThe ITU standard that replaced PESQ for predicting perceived speech quality from a reference and a degraded signal. Licensed software. predict a listener's quality rating from a reference and a degraded signal, through standardized models of hearing and of the signals' alignment. ITU withdrew PESQ (P.862) in January 2024 and points to POLQA (P.863), which is licensed software.

Only conforming implementations produce these scores. Don't compute something similar and call it PESQ. What you can always do is summarize scores a conforming tool produced: the reference's example gives a mean of 3.325 and a standard deviation of 0.222 over four clips. Check valid signal conditions and the tool's license.

Reference · EVA042 · Runs as a notebookPESQ and POLQA speech-quality protocolsPredict perceived speech quality using standardized perceptual processing and reference comparisons.
04

FAD: does it sound like the real thing?

Read

The Fréchet audio distanceFréchet audio distanceThe Fréchet distance between Gaussian fits to embeddings of real and generated audio. The embedding model is part of the metric. compares sets: embed many real clips and many generated ones with a fixed audio model, fit a Gaussian to each set, and measure the Fréchet distance between them:

FAD=∥μr−μg∥2+tr⁡(Σr+Σg−2(Σr1/2ΣgΣr1/2)1/2).\text{FAD} = \lVert \mu_r - \mu_g \rVert^2 + \operatorname{tr}\bigl(\Sigma_r + \Sigma_g - 2(\Sigma_r^{1/2} \Sigma_g \Sigma_r^{1/2})^{1/2}\bigr).

With two-dimensional diagonal toy statistics, the reference's example gets 0.0930. The embedding model is part of the metric, so FADs from different models don't compare. Small sets bias it upward. And a good FAD says nothing about prompt adherence, musical structure, or copying of training clips.

Reference · EVA043 · Runs as a notebookFréchet Audio DistanceCompares reference and generated/enhanced audio distributions using Gaussian summaries of audio embeddings.

DExplorable · Scoring generators: FID, precision and recall

Can one number say how good generated samples are?

How will this generator's precision and recall come out?

How sure?

Generator

The real data is a ring of 8 clusters. Each generator gets something different wrong.

Feature extractor

FID and the k-NN scores compare features, not raw samples. Real FID uses a vision network; here, four simple maps.

200

How many real and how many generated samples are compared.

3

Each sample's ball reaches its k-th nearest neighbor in its own set.

Simulating…

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

05

MOS and MUSHRA: ask people

Read

In a mean opinion scoreMean opinion score (MOS)The average of listeners' ratings, usually on a 1–5 scale; report its interval and the rater panel, not just the mean. test, listeners rate each clip on a 1–5 scale; the mean is the MOS. A MUSHRAMUSHRA listening testListeners rate several versions of a clip side by side on a 0–100 scale, with a hidden reference and a low anchor to check attention. test shows several versions of one clip side by side on a 0–100 scale, with a hidden copy of the reference and a deliberately degraded anchor; listeners who don't rate the hidden reference near the top are screened out.

The protocol is part of the result: listening equipment and level, listener sampling, randomized order, blinding, and which systems appear together. Rate quality, faithfulness to text and speaker similarity as separate questions.

06

Ratings are repeated measures

Read

Each listener rates many clips and each clip is rated by many listeners, so ratings aren't independent. In the reference's three-by-three example the grand mean is 3.78, while listener means run from 3.33 to 4.33: some listeners are harsher. A standard error that treats every rating as independent is too narrow.

Compare systems with a mixed modelMixed modelRegression with random effects for groups (people, schools, sites), so repeated or clustered data are analyzed correctly.: system as a fixed effect, listener and clip as crossed random effectsRandom effectGroup-level variation modeled as draws from a distribution rather than one parameter per group.. Report differences between systems with intervals.

Reference · EVA044 · Partly runs in CodeSplashMOS and MUSHRA listening studiesCollect human judgments of speech or audio quality under defined listening protocols.
07

Harsh and lenient listeners

Explore

DExplorable · Partial pooling

How can small groups borrow strength from the rest of the data?

Which estimate gets closest to the truth?

How sure?
15
0.50
1.50
each group alonepartial poolingone mean

Thicker lines are larger groups: they move little. Small groups shrink the most toward the overall mean.

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

Treat each group as a listener. With few ratings per listener, raw listener means scatter; partial pooling pulls them toward the overall mean, more for listeners with little data. A mixed model does this for listeners and clips at once, so the system comparison isn't driven by who happened to rate what.

08

Where it stands in CodeSplash

Read
EntryIn CodeSplash
STOI (EVA041)Runs as a notebook (the reference program); no method computes it
PESQ and POLQA (EVA042)Runs as a notebook (the reference program); summarize scores a conforming tool produced
Fréchet audio distance (EVA043)Runs as a notebook (the reference program); no method computes it
MOS and MUSHRA (EVA044)Partly runs: analyze ratings (listener, clip, system, score) with Linear mixed model or Repeated-measures ANOVA; the test itself happens outside the app

The reference programs are small calculations, verified in Python and R.

09

Check: evaluating audio

Checkpoint

Check yourself

What does STOI predict?

Show the answer

Answer: b

STOI correlates short-time band envelopes; it tracks intelligibility, not naturalness.

Check yourself

A report computes the correlation between clean and enhanced waveforms and calls it STOI. What's wrong?

Show the answer

Answer: b

Name a proxy for what it is. Only the full algorithm is STOI.

Check yourself

Your library has no PESQ. Can you write a quick perceptual-looking score and report it as PESQ?

Show the answer

Answer: b

Report a conforming tool's scores, or name your proxy honestly.

Check yourself

Which statement about PESQ is right?

Show the answer

Answer: a

PESQ survives in legacy comparisons; new work should check whether POLQA, or a listening test, fits.

Check yourself

Two papers report FAD for their music generators, computed with different embedding models. Can you compare the numbers?

Show the answer

Answer: b

Different embeddings define different spaces and different distances.

Check yourself

A text-to-music model gets an excellent FAD. What does that leave open?

Show the answer

Answer: b

FAD compares overall distributions. Prompt adherence, structure and memorization need their own checks.

Check yourself

Twenty listeners each rate the same thirty clips per system. Why is a standard error over all ratings, treated as independent, misleading?

Show the answer

Answer: a

Model listener and clip as crossed random effects; then compare systems with intervals.

Check yourself

Why does a MUSHRA test include a hidden reference and a low anchor?

Show the answer

Answer: b

A listener who doesn't put the hidden reference near the top isn't hearing the differences; the anchor fixes the low end.

Check yourself

You enhanced call recordings and want to know whether agents will understand customers better. Which evidence fits best?

Show the answer

Answer: c

The question is intelligibility. STOI predicts it from references; people confirm it.

10

Recap

Recap
  • Each audio task has its own scores, and each score needs something: references, a fixed model or listeners.
  • STOI predicts intelligibility; PESQ and POLQA are standards, so only conforming tools count.
  • FAD depends on its embedding model and sample size and ignores prompts and copying.
  • Listening tests are repeated measures: analyze them with listener and clip effects, which CodeSplash can fit.

Concepts in this lesson