Add SLM (sound level meter) features:
Writing a secondary file of sound levels integrated over a time window, RMS expressed as fraction of clipping or a corresponding integer on 0-to-maximum scale), or even in dB given calibration data. Extra points given for variable window size (impulse/fast/slow), weightings (A, C etc.), writing multiple items (e.g. peak, impulse, dBA, dBC).
Then have options for recording segmented individual files via level triggering, or regular samples (e.g. one minute per hour). Automatic sound file naming with starting date/time in filename.
Tracking dB stats and limiting actual recording solves problems of excessive amounts of data during extended monitoring. It supports listening to noise incidents of particular interest as well as creating "soundscapes" from regular samples.
sox_ng 14.7.0 and on have EBU R 128 Loudness measurements,
Momentary, Short Term and Integrated, incorporated into the
stateffect.https://codeberg.org/sox_ng/sox_ng/releases
Does that do what you need?