I published a number on my own product page that was wrong. Not slightly wrong — wrong in the direction that flattered the product.

The page said this, for about a month:

16 improved · 8 unchanged · 0 worse.

Here is what the same 24 test runs actually say.

What the test was

Four real speech recordings, six noise conditions, one setting. dSTOI = STOI(clean, denoised) - STOI(clean, noisy), scored with pystoi. If dSTOI is negative, the tool made the audio harder to understand.

I ran it, wrote the summary line, and did not re-open the raw file again until someone asked me a question I could not answer from memory.

What the raw file says

total 24 improved 19 worse 5 unchanged 0 worst -0.0138 best +0.0432 mean +0.0105 

Five runs out of twenty-four got worse. I had published zero.

And the five are not noise:

voice condition dSTOI
f_bright reverb 0.6 s -0.0138
m_casual codec 15 dB -0.0045
m_casual reverb 0.6 s -0.0023
f_casual codec 15 dB -0.0019
m_calm reverb 0.6 s -0.0018

Three of the five are reverb. Two are codec artefacts. Which makes sense in hindsight: this thing is a spectral method. It subtracts energy. A room is not energy in a band, and a codec artefact is not either.

I already knew that. The "what it does not do" section of the same page says reverb is untouched. So the page simultaneously said "this does nothing to reverb" and "0 worse across all 24 runs", and the second sentence was false because the reverb runs were in the 24.

How the wrong number got there

Three separate mistakes, each small enough to slip through:

  1. I wrote the summary by hand from a scratchpad instead of generating it from the result file.
  2. The scratchpad had been produced by an earlier build. I changed the default oversubtraction factor, re-ran, and updated the per-condition table but not the summary line.
  3. 0 worse reads as a success claim, so I never questioned it. The per-condition table had a +0.0002 sitting next to reverb and I did not ask why a method that does not handle reverb would show a positive delta.

That last one is the one that bothers me. The contradicting evidence was on the same screen, four lines above the false claim.

What I changed

The page now says:

19 improved · 5 worse. All 5 regressions are reverb or codec artefacts.

and the reverb row reads -0.0028, not +0.0002.

I also added the per-run table so the claim can be checked without trusting me:

| voice | condition | dSTOI | |----------|------------|---------| | f_bright | reverb 0.6 | -0.0138 | | ... | ... | ... | 

The part worth generalising

If you publish a summary statistic, generate it from the data, in the same script that produces the data. A hand-copied number is a number that will drift, and it will drift in your favour, because you are the one copying it.

And if a summary line and a detail table can disagree, they eventually will. Mine disagreed for a month and I read that page dozens of times.

The tool is here if you want to run the benchmark yourself: speech-denoise on PyPI, tools/bench24.py in the repo. It expects four wav files; any speech corpus works.