Capture audio without playing it back

I am trying to use a microphone and process the audio captured. I managed to do all that, but I have a problem… My audio captured is automatically played to the user, and I don’t want that.

audioSrc.clip = Microphone.Start(null, true, 1000, 44100);
while (!(Microphone.GetPosition(null) > 0)) { }
audioSrc.Play();

I tried to disable the audio listener and lower the volume of the audio source, but that didn’t work.

Anyone knows how I can capture audio without playing it back?

I have the answer! I found this question today because I had the same question and was hoping someone answered it, but nope. So after hours more research, finally I can be the one to write the answer.

So basically, to stop the echo, you need the audiosource to not be muted, and still be outputting somewhere. Just not somewhere you can hear it. So in the “Output” slot in the inspector for the AudioSource, you just need to give it an output that you can’t hear. The solution is to open an AudioMixer (tabs at the top–>Window–>AudioMixer), make a new mixer and a new group in that mixer, slide down the attenuation/volume slider for the new group, and click and drag that new group into your AudioSource’s “Output” field.

For better instructions, here’s where I got this information from:

And that very link also provides the following link to a video showing how to do it:

Cheers! :smiley:

THANK YOU!!