Get the audio data from the microphone in real-time.

Hi guys,

I want to be able to measure the noisiness level occurring in the microphone in real-time. For instance, if a person shouts = do something. I found documentation where I can record audio for a specific time, but that’s only it.

Also, does accessing microphone works on Unity Web Player?

Thanks in advance!

I have had good success getting the Spectrum Data from the main Audio Listener from a scene.
I can’t say for sure that it would work with a microphone input stream, but this is what I used:https://docs.unity3d.com/Documentation/ScriptReference/AudioListener.GetSpectrumData.html