Acoustic Echo Canceler (AEC).
Acoustic Echo Canceler (AEC) is an audio pre-processing which removes the contribution of the
signal received from the remote party from the captured audio signal.
AEC is used by voice communication applications (voice chat, video conferencing, SIP calls)
where the presence of echo with significant delay in the signal received from the remote party
is highly disturbing. AEC is often used in conjunction with noise suppression (NS).
An application creates an AcousticEchoCanceler object to instantiate and control an AEC
engine in the audio capture path.
To attach the AcousticEchoCanceler to a particular {@link android.media.AudioRecord},
specify the audio session ID of this AudioRecord when creating the AcousticEchoCanceler.
The audio session is retrieved by calling
{@link android.media.AudioRecord#getAudioSessionId()} on the AudioRecord instance.
On some devices, an AEC can be inserted by default in the capture path by the platform
according to the {@link android.media.MediaRecorder.AudioSource} used. The application should
call AcousticEchoCanceler.getEnable() after creating the AEC to check the default AEC activation
state on a particular AudioRecord session.
See {@link android.media.audiofx.AudioEffect} class for more details on
controlling audio effects. |