OMGDuke / SDH-GameThemeMusic

A plugin for Decky Loader to Play theme songs on your game pages
GNU General Public License v3.0
27 stars 3 forks source link

Normalise audio volumes #35

Open OMGDuke opened 1 year ago

OMGDuke commented 1 year ago

Some songs are louder/quieter than others. Look into audio normalisation.

https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode

Something like the Audio compression in the FFZ chrome plugin for twitch

GMP672 commented 1 year ago

If I may suggest something: Audio compression would impact how the music sounds. Better approach would be to utilize Youtube Loudness Standard and apply static +- dB (or volume slider percentage) based on Content Loudness measure.

image

However, as far as I looked into it, its calculated by the player, not by Youtube itself.

I have not found a good way to retrieve that data yet (e.g. https://stackoverflow.com/questions/46819958/extract-youtube-stats-for-nerds-through-an-api)