The invention discloses an echo cancellation
algorithm, which comprises the following steps: S1, introducing a DNSMOS tool to screen high-
quality data, and carrying out
noise reduction preprocessing on data with relatively low MOS
score; s2, adopting a progressive training method; s3, an alignment module based on a cross attention mechanism is adopted, and local features are extracted through depth one-dimensional
convolution to improve the performance of the alignment module; s4, generating an
echo time delay label by adopting an automatic labeling method; s5, calculating relative
delay probability distribution; s6, improving the echo cancellation capability in a complex environment by adopting a knowledge
distillation algorithm; s7, performing joint
processing through
delay alignment and filter coefficient
estimation, and compressing the
feature dimension through affine transformation to obtain a filter coefficient; s8, using an SI-SNR
loss function and a PLCPA-ASYM
loss function to optimize the output
signal quality of the
noise reduction model; and S9, introducing an audio state detection function. According to the method, the traditional
signal processing and
deep learning technologies are combined, an improved echo cancellation
algorithm is provided, and the method has high precision, strong generalization and complex environment adaptability.