The invention provides a method for suppressing
harmonic waves of an echo path. The method comprises the following steps: S1, acquiring an
audio signal and
processing the
audio signal; s2, performing
frequency domain conversion to extract amplitude, including reading near-end and far-end voices, and framing and windowing the voices;
fourier transform is carried out on each frame, and voice amplitude information is extracted; s3, fundamental
waves and
harmonic waves are extracted and calibrated, specifically,
peak detection is conducted on the near-end amplitude and the far-end amplitude, and an amplitude
frequency band meeting the height is returned; determining a fundamental
wave frequency band from the far-end frequency bands; determining a
harmonic frequency band from the near-end frequency bands; converting the
harmonic amplitude into a
decibel value; storing the fundamental wave, the corresponding harmonic wave and the corresponding
decibel value in a calibration file; s4, harmonic suppression
processing; s5, reconstructing the
audio signal, including Fourier inversion, and converting a
frequency domain into a
time domain; and storing each frame of data. According to the method, fundamental wave and harmonic
wave frequency bands are determined by analyzing far-end and near-end voice amplitude information, so that calibration is carried out, and finally harmonic waves in an echo path are suppressed to achieve an echo cancellation effect.