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");