VoiceChatService volume detection

I want to detect volume through the Roblox VoiceChatService.
I do not know what methods to use through the AudioAPI with VoiceChatService
I’ve tried seeing if I could use the green little Microphone UI to detect it but I was met with failure as it’s core gui stuff.

Roblox uses AudioAnalyzer to detect volume in Voice Chat.

You can use the AudioAnalyzer object on which you would call the GetSpectrum function, which can be used to detect the frequency of the audio.