Most noise-reduction code I see online makes the same mistake: it measures how much noise it removed, and never checks whether the speech survived.

That is easy to do with a spectral subtractor. Subtract a noise estimate from every time-frequency bin and the noise floor drops 20 dB. Your log looks great. Then you listen and the consonants are gone.

Why the usual metric lies

The common check is band energy:

# noise floor before vs after noise_db = 10 * log10(mean(percentile(S, 10, axis=1))) # speech band before vs after  speech_db = 10 * log10(mean(S[300:3400])) 

Both numbers can look perfect while the audio is unusable. Spectral subtraction removes energy proportionally, so quiet speech sounds — the ones carrying intelligibility — get subtracted along with the noise. The speech band total barely moves because the loud vowels dominate the average. The information is gone.

A metric that catches it

STOI (Short-Time Objective Intelligibility) compares processed audio against a clean reference and scores how many words a listener could follow, 0 to 1.

pip install pystoi 
from pystoi import stoi score_before = stoi(clean, noisy, sr, extended=False) score_after = stoi(clean, processed, sr, extended=False) print(f"{score_before:.4f} -> {score_after:.4f}") 

If score_after < score_before, your denoiser made the file harder to understand. No amount of dB reduction makes that a win.

What the numbers looked like

I ran four real voice recordings through six noise conditions, 24 combinations, and swept the over-subtraction factor:

alpha ΔSTOI (hum) noise floor
2.0 −0.063 −20.9 dB
1.5 −0.024 −19.7 dB
1.2 −0.002 −18.5 dB
1.0 +0.009 −17.7 dB
0.8 +0.017 −12.7 dB

The aggressive setting removed 3 dB more noise and cost 0.07 STOI. That 0.07 is the difference between "clean recording" and "why do I sound like I'm underwater".

The trade I picked: alpha=1.0. Less noise gone, but intelligibility never drops.

Full results at alpha=1.0

Noise ΔSTOI Noise floor
Mains hum, 5 dB SNR +0.0228 −22.9 dB
White noise, 5 dB +0.0227 −9.1 dB
Fan / AC, 5 dB +0.0086 −8.8 dB
Hiss, 5 dB +0.0084 −8.9 dB
Codec artefacts, 15 dB +0.0050 −7.7 dB
Reverb, 0.6 s +0.0004 −5.5 dB

24 combinations: 17 improved, 7 unchanged, 0 worse. Worst case −0.0022, best +0.0432.

Reverb being untouched is correct. Reflections are not noise. A tool that "removes" them is removing your room tone.

The point

If you are writing a denoiser, measure STOI or PESQ, not just dB. The dB number will tell you what you want to hear.

If you just want clean audio without writing any of this, I packaged the tuned version:

pip install speech-denoise speech-denoise interview.wav 

It prints a verdict after each run — GOOD, MILD, CAUTION, ALREADY_CLEAN — so you know when it did not help. Free for personal use, $9 for commercial.

Source and the 24-combination benchmark: github.com/gem3match-dev/speech-denoise

The 2.0× figure in the table above is from an earlier build of my own tool. I shipped it, measured it properly, and had to walk it back. Worth writing down so nobody repeats it.