Capture microphone input detect its loudness

Hey!

So I am currently working on a project where your characters light source intensity is controlled by how loud you are being in your microphone.

The trouble is, I cannot find anywhere a straight forward answer or tutorial help. I am not a audio guy at all so there are a lot of terms used that I simply do not understand and there for cannot work out how to achieve such a system.

If someone is able to help me write a script that will capture the microphone input and get its loudness that would help me out immensely!

Thank you in advance!

Hi,

We have two script examples that outline how to do each of these mechanics individually:

Hope this helps!