Detecting audio levels to trigger effects

Hi Folks,

So i’ve been trying to look into a way to trigger an effect based on the amount of sound passing through the audiosource, but can’t find a way to reference the amplitude of the sound wave, or any other manner of detecting when sound in a clip drops in/out.

Specifically the idea is to have a machines light flick on / off when it speaks, so that the light is only lit when words are actually being said.

I realise this could be done using time markers for the dialogue clip, but if there was a way to automate it that would be much preffered.

As someone relatively new to UE4, any help would be greatly appreciated, apologies if this is an easy one to solve.

Thanks!

First, make sure you are using the new audio engine (set UseAudioMixer=True in your platform Engine.ini file). It was enabled by default in 4.24 but not in 4.23.

Then you can use an Envelope Follower on any audio component to get a BP delegate called back with the envelope (i.e. amplitude) of a sound. E.g. OnAudioSingleEnvelopeValue or OnAudioMultiEnvelopeValue

Sorry for replying to this so slowly, but this sounds like it could be my answer! Will give it a go asap, thank you so much.