How To Listen To Microphone Frequency (JavaScript)

Okay, I basically want to know if there is a way to listen to a microphone’s audio levels. Telling when they are speaking (Not Audio Playback) but just in general. Like when you go to “Sounds” > “Recording” through Control Panel. Those levels. I want to know if it possible, if so: How? Here’s an example of what I don’t want. This plays back what is recorded through the microphone (I got it from Scripting API on Unity) :

function Start() {
	var aud = GetComponent.<AudioSource>();
	aud.clip = Microphone.Start("Built-in Microphone", true, 10, 44100);
	aud.Play();
}

// This plays the audio right away instead of what I want.

1 Answer

1

Nothing? No one knows? And by frequency I don’t mean pitch, I mean by how much it is used (ie: Windows uses the bars to identify that your microphone is connected and capturing sound.)