Are you talking about this tut?
https://library.creativecow.net/articles/al_khatib_talid/volume_meter.php
I love the tut, but his expression is a little hard to see what’s going on and adjust easily.
Something like this is easier to get a handle on. Put this expression on Scale of the Speaker layer:
Audio = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
minAudio = 0;
maxAudio = 25;
minScale= 85;
maxScale = 100;
s = linear(Audio,minAudio,maxAudio,minScale,maxScale);
[s,s]
Set maxAudio to whatever the highest reading is on Both Channels of the Audio Amplitude layer. Twirl down the Slider to see the graph. The scale of the speaker will fluctuate with the audio from a scale of 85% to a scale of 100%, change the 85 and 100 as needed.