It looks like Audacity has an EBU R 128 implementation, so we might be able to reuse that:
https://forum.audacityteam.org/t/question-on-lufs-normalization-with-different-types-of-content/80999 Adding it to the stats effect would make sense to me. IIRC, EBU R 128 requires 4× upsampling which, as a means to audio measurement without affecting the audio for a following SoX effect means that utilising the rate effect for this would not be simple. So just dumping someone-else’s EBU R 128 implementation as a 'tee' within stats could be the way to go. Cheers, Rob _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel