Skip to content

Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA042 · Metric

PESQ and POLQA speech-quality protocols

Predict perceived speech quality using standardized perceptual processing and reference comparisons.

Runs as a notebook Complete calculation CodeSplash's run and the reference's record

In CodeSplash

No method yet, but the reference's example runs here as a notebook.

Do it in CodeSplash Open the reference's example as a Python or R notebook.

Availability
Runs as a notebook
Code example
Complete calculation
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

Predict perceived speech quality using standardized perceptual processing and reference comparisons.

Question / hypotheses

How does the degraded signal compare with the reference under a particular standardized listening-quality model?

Architecture / computational structure

A fixed scoring/calibration pipeline applied to model outputs or supplied observations; the formula and usage sections identify its operations.

Assumptions

Use the correct sample rate, mode, alignment, input level, conformance implementation, and validated signal conditions. These are specialized speech measures, not universal audio quality scores.

Formula / computational definition

q=Fstandard(s,s^;mode, alignment, perceptual processing).q=F_{\rm standard}(s,\hat s;\text{mode, alignment, perceptual processing}).

Parameters and notation

The standardized algorithm fixes many internal constants. Bandwidth/mode and signal preparation are protocol choices, not knobs to tune until a system wins. POLQA is associated with ITU-T P.863.

Fitting, fine-tuning, and adaptation

There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.

How to use and calibrate

Use a conforming implementation with recorded version and mode. For legacy paper comparisons identify PESQ explicitly: ITU states P.862 and associated recommendations were withdrawn in January 2024 and directs readers to P.863.

Example application

Reproduce a historical speech-enhancement benchmark while reporting a current complementary quality evaluation.

Interpretation / pitfalls

Watch out

Do not call an arbitrary proxy PESQ/POLQA. The code below only summarizes already-produced conforming scores; it cannot reproduce either proprietary/reference signal-processing pipeline.

Python and R code examples

Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.

Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy

import numpy as np
scores=np.array([3.2,3.6,3.4,3.1])  # outputs from one fixed conforming evaluator
print("mean",scores.mean(),"sample SD",scores.std(ddof=1))
R

Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.

scores <- c(3.2,3.6,3.4,3.1) # supplied conforming-evaluator scores
print(c(mean=mean(scores),sd=sd(scores)))

Sources

From the CodeSplash reference, entry EVA042.