Just run a compressor! Like the Loudmax plugin if your audio source is a PC, or buy a Behringer CL9 ($30) and plug into your aduio chain if you don't want a computer involved. Problem solved.
This looks like someone using vibe coding where a web search would suffice.