Volume Normalization & Waveforms
With volume normalization, Koel turns loud songs down and quiet songs up, so a quiet old record and a loud new one rarely make you reach for the volume. A quiet song is only turned up as far as it can go without clipping. Koel also shows each song's waveform while it plays, so you can see the quiet and loud parts at a glance.
Requirements
Both features need FFmpeg.
Setup
Turn on audio analysis in your .env file:
ANALYZE_AUDIO_ON_SCAN=trueFrom then on, Koel measures the loudness and draws the waveform of every song as soon as it's scanned or uploaded. This typically takes about a second per song. Songs scanned before you turned it on aren't analyzed until they are scanned again, and play as before.
If you use a queue, the analysis runs in the background. To keep it from slowing down uploads, give it its own queue:
AUDIO_ANALYSIS_QUEUE=analysisThen start your queue workers with php artisan queue:work --queue=default,analysis.
Turning It Off
Both features are on by default. Each user can turn them off under Settings → Preferences, with the Play songs at about the same volume and Show waveform during playback switches.