Tuesday, May 17, 2011

How to turn on noise suppression in Android

While researching on another topic i found the answer to this question. it's easy all you have to do is set the parameter.

AudioManager localAudioManager = (AudioManager)paramContext.getSystemService("audio");
localAudioManager.setParameters("noise_suppression=auto");

or if you do not want
localAudioManager.setParameters("noise_suppression=off");

4 comments:

  1. hello,

    How do I suppose to configure my android with those instructions. Should I create a program using Eclipse and Google Android's SDK?

    or is there some kind of console in android to write those instructions?

    could you guide me in the process?

    in advance, many thanks.

    ReplyDelete
  2. You have to create a program using Eclipse and Android SDK.

    I found this very helpful when I started android.

    http://www.vogella.de/articles/Android/article.html

    Once you are done, Just look for a sample code for audio recording

    ReplyDelete
  3. Hey!
    I've tried to implement the NS in my app but I can't get the `paramContext` to work.

    Any solution? Thanks in advance!

    ReplyDelete