Skip to content

Most visited

Recently visited



public class NoiseSuppressor
extends AudioEffect


Noise Suppressor (NS).

Noise suppression (NS) is an audio pre-processor which removes background noise from the captured signal. The component of the signal considered as noise can be either stationary (car/airplane engine, AC system) or non-stationary (other peoples conversations, car horn) for more advanced implementations.

NS is mostly used by voice communication applications (voice chat, video conferencing, SIP calls).

An application creates a NoiseSuppressor object to instantiate and control an NS engine in the audio framework.

To attach the NoiseSuppressor to a particular AudioRecord, specify the audio session ID of this AudioRecord when creating the NoiseSuppressor. The audio session is retrieved by calling getAudioSessionId() on the AudioRecord instance.

On some devices, NS can be inserted by default in the capture path by the platform according to the MediaRecorder.AudioSource used. The application should call NoiseSuppressor.getEnable() after creating the NS to check the default NS activation state on a particular AudioRecord session.

See AudioEffect class for more details on controlling audio effects.


Inherited constants

From class

Inherited fields

From class

Public methods

static NoiseSuppressor create(int audioSession)

Creates a NoiseSuppressor and attaches it to the AudioRecord on the audio session specified.

static boolean isAvailable()

Checks if the device implements noise suppression.

Inherited methods

From class
From class java.lang.Object

Public methods


added in API level 16
NoiseSuppressor create (int audioSession)

Creates a NoiseSuppressor and attaches it to the AudioRecord on the audio session specified.

audioSession int: system wide unique audio session identifier. The NoiseSuppressor will be applied to the AudioRecord with the same audio session.

NoiseSuppressor NoiseSuppressor created or null if the device does not implement noise suppression.


added in API level 16
boolean isAvailable ()

Checks if the device implements noise suppression.

boolean true if the device implements noise suppression, false otherwise.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)