Skip to content

Commit a39268b

Browse files
committed
docs: record quiet audio correction benchmarks and limits
1 parent 7390d13 commit a39268b

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

apps/media-server/audio-quality-benchmarks.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,57 @@ Clearing the two audio selection fields restores the retained original. Rolling
3737
to the pre-activation web deployment also selects the original; the original recording
3838
verification target is never redirected to a derivative.
3939

40+
## Quiet-recording policy update
41+
42+
A customer-reported 13.93-second recording measured -50.48 LUFS with -31.03 dBTP
43+
peaks. A local +28 dB comparison was preferred in a listening check. The previous
44+
constant-gain policy skipped it below -50 LUFS, and its audio ended 144 ms after
45+
the video, exceeding the old input-duration check.
46+
47+
Level correction now accepts finite measurements down to -55 LUFS. It retains
48+
the previous gain for inputs at or above -34 LUFS and progressively raises quieter
49+
inputs toward -22 LUFS, capped at 28 dB and the available -2 dBTP peak headroom.
50+
Encoded output must still remain below -1 dBTP and pass the existing timing and
51+
dynamics checks. Output gain is checked against that recording's actual planned
52+
gain, including the peak limit. Silence, invalid measurements, clipping, and
53+
insufficient headroom keep the original. Experimental voice processing retains
54+
its previous level limits and remains disabled.
55+
The web publication callback enforces the same quiet-input range and loudness-based
56+
gain bound before selecting the derivative. Its tests include the reported output
57+
measurements, excessive-gain rejection, and retained-original playback resolution.
58+
59+
Level correction permits different source audio and video end times because each
60+
original timeline is preserved independently. It neither pads nor truncates one
61+
track to match the other. Source and output video packets, terminal packet timing,
62+
audio start, decoded sample count, and audio duration are still checked. Both
63+
track durations must remain within the worker's duration limit. Tests exercise
64+
quiet audio ending before and after video, including the last audible pulse.
65+
66+
Rerunning the same 60 audio files produced 42 validated corrections and 18 unchanged
67+
originals, with no rejected outputs or previously accepted files becoming ineligible.
68+
Twenty-five prior output hashes were unchanged; fourteen prior outputs received
69+
stronger bounded gain, and two previously excluded quiet recordings became eligible.
70+
The remaining unchanged-gain output matched a fresh run of the previous worker
71+
byte for byte, despite differing from its historical encoded hash.
72+
All decoded sample counts were unchanged. The largest container-duration change was
73+
21 ms, and the highest encoded true peak was -1.95 dBTP. The input corpus remains
74+
the same historical tuning/holdout split; repeated tuning does not create a new
75+
independent holdout.
76+
77+
The complete MP4 worker was also exercised offline on 21 production files in the
78+
Linux image with two CPUs and 2 GiB of memory. Four published into mocked storage
79+
and seventeen retained their originals. Every original hash was preserved, and no
80+
source download occurred. The reported recording reached -22.49 LUFS and -3.04 dBTP
81+
with identical decoded sample count and audio duration, unchanged LRA, and verified
82+
video packets. Constant gain also raises existing background noise; this is a level
83+
improvement, not a denoising claim or a universal listening-quality guarantee.
84+
85+
Signal comparisons covered all 42 accepted audio files and the reported recording.
86+
The minimum STOI similarity to the input was 0.9924, median 0.99986, minimum SI-SDR
87+
25.93 dB, and measured lag zero in every comparison. These relative metrics check
88+
encoding distortion against each original; they do not establish clean speech or
89+
improved intelligibility against a clean reference.
90+
4091
## Evidence and limits
4192

4293
The September 7–8, 2026 study measured 60 additional public, unprotected Instant

0 commit comments

Comments
 (0)