SPEECH-DENOISE 1.2.0 — BENCHMARK
=================================

Measured 2026-11-30 on four real voice recordings
(two male, two female), six noise conditions, 24 combinations.

Sample rate 16 kHz, 4 s clips. Noise mixed at the stated SNR against
the speech RMS. Processed by speech-denoise with default settings.

METRIC: STOI
------------
Short-Time Objective Intelligibility, 0 to 1.
Higher means the words are easier to understand.
It is sensitive to the kind of damage that spectral subtraction causes
to quiet speech sounds, which energy-based metrics miss entirely.

This is the metric that matters for a denoiser: removing noise while
making the speech harder to follow is a net loss.


RESULTS BY NOISE CONDITION
--------------------------
                                        ΔSTOI    Noise floor
Mains hum, 5 dB SNR                    +0.0228     -22.9 dB
White noise, 5 dB SNR                  +0.0227      -9.1 dB
Fan / air conditioning, 5 dB SNR       +0.0086      -8.8 dB
Hiss, 5 dB SNR                         +0.0084      -8.9 dB
Codec artefacts, 15 dB SNR             +0.0050      -7.7 dB
Reverb, 0.6 s                          +0.0004      -5.5 dB

FULL SET
--------
  Average ΔSTOI          +0.0113
  Worst case             -0.0022
  Best case              +0.0432
  Average noise floor    -10.49 dB
  Deepest noise floor    -24.46 dB

  Improved  (ΔSTOI > +0.005)     17 of 24
  Unchanged (|ΔSTOI| <= 0.005)    7 of 24
  Worse     (ΔSTOI < -0.005)      0 of 24


WHY THIS MATTERS
----------------
An earlier version of this tool used a 2.0x over-subtraction factor.
It removed more noise (-20.9 dB on the hum case) but STOI dropped
by 0.063 — the audio sounded muddy and was harder to understand.
On clean input it dropped STOI by 0.121, actively damaging files
that needed no processing.

The current version uses 1.0x. It removes 3 to 6 dB less noise and
STOI no longer drops in any of the 24 cases. The trade is deliberate.


WHERE IT DOES NOT HELP
----------------------
Reverb.    +0.0004 STOI, -5.5 dB noise floor — essentially untouched.
           Reflections are not noise. The verdict reports ALREADY_CLEAN
           or MILD rather than claiming success.

Overlapping speakers.
           Not tested in this set because the tool explicitly cannot
           separate sources. It may suppress one of them.

Clipped audio.
           Not recoverable.

Very low bitrate.
           Partly reduced at best.


HOW TO REPRODUCE
----------------
The test script is not shipped inside the wheel. It lives in the repo
under tools/bench24.py and expects four wav files. Any speech corpus
works. Noise is generated synthetically at a measured SNR, mixed
against the speech RMS, then processed and scored with pystoi.

Dependency for the measurement only:  pip install pystoi


VERDICT ACCURACY
----------------
The verdict printed after each run is computed from the noise-floor
drop and how far the speech band moved, not from STOI. On this set
the two reverb cases correctly reported ALREADY_CLEAN / MILD instead
of GOOD, which matches the measurement: the tool did not meaningfully
change them.


PODCAST MODE — THROUGHPUT
-------------------------
Measured 2026-12-01 on an i5-14490F, audio held in memory.
Pipeline: spectral subtraction (alpha=1.0) then two-pass ffmpeg loudnorm.

  Input        Denoise    Loudnorm    Total     Realtime
  12 s         2.4 s      0.7 s       3.1 s     3.9x
  5 min        7.4 s      3.5 s       10.9 s    27x
  30 min       11.1 s     32.7 s      43.8 s    41x

Loudness accuracy (target -16.0 LUFS / -1.5 dBTP):
  12 s   -16.4 LUFS   -1.5 dBTP   (0.4 LU off)
  5 min  -16.1 LUFS   -1.5 dBTP   (0.1 LU off)
  30 min -16.1 LUFS   -1.5 dBTP   (0.1 LU off)

Longer files measure more accurately because loudnorm integrates over a
longer window. Short clips under ~30 s will land further from target.
