What might the VBA code be, when using Excel developer/Visual BASIC in a spreadsheet, to detect the recording volume and increase/decrease the volume as needed automatically?

I have a hundreds of lines of VBA code in my spreadsheet. It calls various URLS to play audio clips and they are called and recorded hourly. It seems that web sites do not use the Dolby Calibration standard to set their volumes. Some are very low while some overload my speakers.

Somehow I would like to build an automatic volume control to be active when I am recording.

Here is the image of a 20 hour recording. Two one-hour clips are overloaded.

Name:  Audacity AGC needed.jpg
Views: 812
Size:  8.3 KB