-1

I am making an app using Air and AS3 where I am looking for noise from the microphone. At the same time I am playing sound through the speakers of the phone, but I want to ignore these sounds from the input of the microphone.

I want to know when some external source is making noise and then act upon it, but now my triggers fire when the sound I am playing myself get too loud.

Any suggestions?

1 Answers1

0

Try this:

mic.setUseEchoSuppression(true); 
mic.setLoopback(false);

(In this order).

Koby Douek
  • 16,156
  • 19
  • 74
  • 103
  • I am not getting this to work :/ What I am trying to do is determine if any other source of sound that the sound playing from the device itself is present. I want to ignore the sound playing from my app, and then detect if any other noises are present. mic.activityLevel still rises a lot when my sound from the device is getting louder. – Simen Øian Gjermundsen Dec 07 '16 at 12:22