Echo time delay detection method, echo elimination chip, and terminal equipment
AssigneeTencent Technology (Shenzhen) Company Limited
InventorJun Bin Liang
Life of this patent
Estimating the term…
Abstract
An echo time delay detection method, an echo elimination device, and terminal equipment are provided. The echo time delay detection method includes: obtaining an audio signal transmitted through air and acquired by an audio input device of terminal equipment when detecting a call access request, the audio signal corresponding to an audio output by an audio output device of the terminal equipment; converting the audio signal to obtain a signal to be processed; determining a reference signal corresponding to the audio signal; and determining an echo time delay value according to the reference signal and the signal to be processed.
Claims21
An echo time delay detection method, comprising:
- obtaining an audio signal transmitted through air and acquired by an audio input device of terminal equipment when detecting a call access request, the audio signal corresponding to an audio output by an audio output device of the terminal equipment;
- converting the audio signal to obtain a signal to be processed;
- determining a reference signal corresponding to the audio signal;
- determining a binary array, comprising binary values of all frequency bins, of each frame of the reference signal and a binary array, comprising binary values of all frequency bins, of each frame of the signal to be processed;
- and
- determining a first echo time delay value based on binary arrays of respective frames of the reference signal and the signal to be processed,
- wherein the determining the binary array of each frame of the reference signal comprises:
- respectively performing fast fourier transform (fft) of 2M frequency bins on each frame of the reference signal, to obtain a fft processing result of all frequency bins of each frame of the reference signal, wherein M is a set value;
- making j a frequency bin number, and respectively calculating a power spectrum of a jth frequency bin of each frame of the reference signal according to the fft processing result of all frequency bins of each frame of the reference signal;
- and
- for each frame of the reference signal, setting a value for the jth frequency bin in response to the power spectrum of the jth frequency bin, to obtain binary values corresponding to all frequency bins, to construct a binary array corresponding to each frame of the reference signal.
An echo elimination device, comprising:
- at least one memory operable to store program code;
- and
- at least one processor operable to read the program code, and operate as instructed by the program code, the program code comprising:
- obtaining code configured to cause the at least one processor to obtain an audio signal transmitted through air and acquired by an audio input device of terminal equipment when detecting a call access request, the audio signal corresponding to an audio output by an audio output device of the terminal equipment;
- conversion code configured to cause the at least one processor to convert the audio signal to obtain a signal to be processed;
- first determination code configured to cause the at least one processor to determine a reference signal corresponding to the audio signal;
- second determination code configured to cause the at least one processor to determine a binary array, comprising binary values of all frequency bins, of each frame of the reference signal and a binary array, comprising binary values of all frequency bins, of each frame of the signal to be processed;
- and
- third determination code configured to cause the at least one processor to determine a first echo time delay value based on binary arrays of respective frames of the reference signal and the signal to be processed,
- wherein the second determination code causes the at least one processor to determine the binary array of each frame of the reference signal by:
- respectively performing fast fourier transform (fft) of 2M frequency bins on each frame of the reference signal, to obtain a fft processing result of all frequency bins of each frame of the reference signal, wherein M is a set value;
- making j a frequency bin number, and respectively calculating a power spectrum of a jth frequency bin of each frame of the reference signal according to the fft processing result of all frequency bins of each frame of the reference signal;
- and
- for each frame of the reference signal, setting a value for the jth frequency bin in response to the power spectrum of the jth frequency bin, to obtain binary values corresponding to all frequency bins, to construct a binary array corresponding to each frame of the reference signal.
A non-transitory computer-readable storage medium having stored therein a computer readable code executable by a processor to perform:
- obtaining an audio signal transmitted through air and acquired by an audio input device of terminal equipment when detecting a call access request, the audio signal corresponding to an audio output by an audio output device of the terminal equipment;
- converting the audio signal to obtain a signal to be processed;
- determining a reference signal corresponding to the audio signal;
- determining a binary array, comprising binary values of all frequency bins, of each frame of the reference signal and a binary array, comprising binary values of all frequency bins, of each frame of the signal to be processed;
- and
- determining a first echo time delay value based on binary arrays of respective frames of the reference signal and the signal to be processed,
- wherein the determining the binary array of each frame of the reference signal comprises:
- respectively performing fast fourier transform (fft) of 2M frequency bins on each frame of the reference signal, to obtain a fft processing result of all frequency bins of each frame of the reference signal, wherein M is a set value;
- making j a frequency bin number, and respectively calculating a power spectrum of a jth frequency bin of each frame of the reference signal according to the fft processing result of all frequency bins of each frame of the reference signal;
- and
- for each frame of the reference signal, setting a value for the jth frequency bin in response to the power spectrum of the jth frequency bin, to obtain binary values corresponding to all frequency bins, to construct a binary array corresponding to each frame of the reference signal.
Dependencies are inferred from the claim text.