A method of using music detection to enhance an operation of an echo
canceller is provided, wherein the echo canceller includes an adaptive
filter and a nonlinear processor. The method comprises receiving an input
signal including an echo signal by the echo canceller from a near end
device, filtering the input signal using the adaptive filter to eliminate
linear components of the echo signal in the input signal and generate an
error signal, analyzing the error signal using a music detector to
determine existence of a music signal in the error signal, bypassing the
nonlinear processor if the analyzing determines the music signal exists
in the error signal, and eliminating nonlinear components of the echo
signal from the error signal using the nonlinear processor if the
analyzing determines the music signal does not exist in the error signal.