Dual-track echo cancellation method and device, equipment, storage medium and product

By determining the energy and echo presence of each channel in the two-channel echo cancellation system, and selecting the target channel for mono echo cancellation processing, the problem of poor echo suppression effect in the prior art is solved, and the echo cancellation effect is significantly improved.

CN120017756APending Publication Date: 2025-05-16BIGO TECH PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510017083.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, the echo suppression effect of the echo cancellation process is poor, and it is difficult to achieve the ideal echo suppression effect in complex echo and noise environments.

Method used

By acquiring audio frames of multiple channels, the energy of each channel is determined, and the audio frames in which there is echo and audio frames in which there is no echo are determined based on the energy of the distal channel. Then, based on the channel energy difference and low energy proportion, the target channel is determined in the two channels and is subjected to mono echo cancellation.

Benefits of technology

It effectively improves the echo suppression effect, improves the application effect of echo cancellation processing in mobile terminals, and improves the clarity of call audio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017756A_ABST
    Figure CN120017756A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a dual-track echo cancellation method and device, equipment, a storage medium and a product. According to the technical scheme provided by the embodiment of the invention, the low-energy ratio of the first sound channel is determined according to the first sound channel energy of the first sound channel echo audio frame and the second sound channel energy of the second sound channel echo audio frame; and determining a sound channel energy difference between the first sound channel and the second sound channel according to the first sound channel energy of the first sound channel anechoic audio frame and the second sound channel energy of the second sound channel anechoic audio frame, and determining a target sound channel in the first sound channel and the second sound channel according to the sound channel energy difference and the low energy ratio of the first sound channel, the audio frame of the target sound channel is subjected to the single sound channel echo cancellation processing to obtain the target audio frame, so that the signal-to-return ratio of the input signal subjected to the single sound channel echo cancellation processing is improved, the echo suppression effect is effectively improved, and the application effect of the echo cancellation processing in the mobile terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of audio processing technology, and in particular to a dual-channel echo cancellation method, device, equipment, storage medium and product. Background Art

[0002] With the popularity of smartphones and smart audio devices, dual-microphone configurations have become mainstream, and the application of voice communication using microphones has become more and more widespread. In voice communication systems, in order to improve the audio quality of calls, echo cancellation is often performed on the audio collected by the device. Echo cancellation is used to reduce the echo introduced by the reflection of sound waves in space to ensure the clarity of voice calls. Echoes are generally generated by the sound output by the speaker being recaptured by the receiver (such as a microphone) and transmitted to the other party of the call, forming a delayed reflected sound.

[0003] At present, echo cancellation processing is generally performed through mono (single microphone) wind echo cancellation technology or multi-channel (multi-microphone) echo cancellation technology. The common mono echo cancellation algorithm is based on an adaptive filter. The adaptive filter can adjust itself according to the dynamically changing echo characteristics in order to accurately cancel the echo in the environment. However, the performance of mono echo cancellation is easily limited in complex echo and noise environments, and it is difficult to achieve an ideal echo suppression effect. The multi-channel echo cancellation algorithm collects microphone inputs at different positions and uses spatial information such as energy difference and phase difference between microphones to enhance the echo suppression effect. However, the signal processing and algorithm complexity of the multi-channel echo cancellation algorithm are relatively high, requiring stronger hardware performance support, and the application effect in mobile terminals is not ideal. Summary of the invention

[0004] The embodiments of the present application provide a dual-channel echo cancellation method, device, equipment, storage medium and product to solve the technical problem of poor echo suppression effect of echo cancellation processing in the related art, which can effectively improve the echo suppression effect and improve the application effect of echo cancellation processing in mobile terminals.

[0005] In a first aspect, an embodiment of the present application provides a dual-channel echo cancellation method, comprising:

[0006] Acquire a plurality of first channel audio frames received from the first channel, a plurality of second channel audio frames received from the second channel, and a plurality of remote audio frames sent to the audio player, and determine a first channel energy according to the first channel audio frames, determine a second channel energy according to the second channel audio frames, and determine a remote channel energy according to the remote audio frames;

[0007] Determine, according to the far-end channel energy, first channel echo audio frames with echo and first channel echo-free audio frames without echo from among the plurality of first channel audio frames, and determine second channel echo audio frames with echo and second channel echo-free audio frames without echo from among the plurality of second channel audio frames;

[0008] Determine a low energy proportion of the first channel according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determine a channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame;

[0009] A target channel is determined in the first channel and the second channel according to the channel energy difference and the low energy proportion of the first channel, and a mono-channel echo cancellation process is performed on an audio frame of the target channel to obtain a target audio frame.

[0010] In a second aspect, an embodiment of the present application provides a dual-channel echo cancellation device, including an energy determination module, an echo analysis module, an energy analysis module and an echo cancellation module, wherein:

[0011] The energy determination module is configured to obtain a plurality of first channel audio frames received from the first channel, a plurality of second channel audio frames received from the second channel, and a plurality of remote audio frames sent to the audio player, and determine the first channel energy according to the first channel audio frames, determine the second channel energy according to the second channel audio frames, and determine the remote channel energy according to the remote audio frames;

[0012] The echo analysis module is configured to determine, according to the far-end channel energy, first channel echo audio frames with echo and first channel echo-free audio frames without echo from among the plurality of first channel audio frames, and to determine second channel echo audio frames with echo and second channel echo-free audio frames without echo from among the plurality of second channel audio frames;

[0013] The energy analysis module is configured to determine a first channel low energy proportion according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determine a channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame;

[0014] The echo cancellation module is configured to determine a target channel in the first channel and the second channel according to the channel energy difference and the low energy proportion of the first channel, and perform a single-channel echo cancellation process on the audio frame of the target channel to obtain a target audio frame.

[0015] In a third aspect, an embodiment of the present application provides a dual-channel echo cancellation device, including: a memory and one or more processors;

[0016] The memory is used to store one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the dual-channel echo cancellation method as described in the first aspect.

[0018] In a fourth aspect, an embodiment of the present application provides a non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions are used to perform the dual-channel echo cancellation method as described in the first aspect when executed by a computer processor.

[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device performs the dual-channel echo elimination method as described in the first aspect.

[0020] The embodiment of the present application determines, according to the far-end channel energy, a first-channel echo audio frame and a second-channel echo audio frame with an echo, as well as a first-channel echo-free audio frame and a second-channel echo-free audio frame without an echo, and determines a first-channel low-energy ratio according to the first-channel energy of the first-channel echo audio frame and the second-channel energy of the second-channel echo audio frame, and determines a channel energy difference between the first channel and the second channel according to the first-channel energy of the first-channel echo-free audio frame and the second-channel energy of the second-channel echo-free audio frame, determines a target channel in the first channel and the second channel according to the channel energy difference and the first-channel low-energy ratio, and performs mono-channel echo cancellation processing on the audio frame of the target channel to obtain a target audio frame, thereby improving the signal-to-echo ratio of an input signal of the mono-channel echo cancellation processing, effectively improving the echo suppression effect, and improving the application effect of the echo cancellation processing in a mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of a dual-channel echo cancellation method provided by an embodiment of the present application;

[0022] Figure 2 is a flow chart of another dual-channel echo cancellation method provided by an embodiment of the present application;

[0023] Figure 3 is a structural schematic diagram of a dual-channel echo cancellation device provided in an embodiment of the present application;

[0024] Figure 4 It is a structural schematic diagram of a dual-channel echo cancellation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The above process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0026] The dual-channel echo cancellation method provided in the present application can be applied to voice call scenarios such as telephone conferences, voice assistants, and video calls. It aims to determine the target channel in the first channel and the second channel according to the channel energy difference between the left and right channels and the low energy proportion of the first channel, and perform single-channel echo cancellation processing on the audio frame of the target channel to obtain the target audio frame, improve the signal-to-echo ratio of the input signal of the single-channel echo cancellation processing (for example, the ratio of the effective signal to the echo signal), effectively improve the echo suppression effect, and improve the application effect of the echo cancellation processing in the mobile terminal.

[0027] In the existing echo cancellation scheme, it is generally performed through mono-channel wind echo cancellation technology or multi-channel echo cancellation technology. Mono-channel wind echo cancellation is generally based on adaptive filters. Adaptive filters can adjust themselves according to the dynamically changing echo characteristics in order to accurately cancel the echo in the environment. Common adaptive filters are generally based on LMS (least mean square error) algorithm and NLMS (normalized least mean square error) algorithm. The advantages of mono-channel adaptive filters are simple structure, low implementation cost and real-time processing of audio signals, but in complex echo and noise environments, performance is easily limited and it is difficult to achieve ideal echo suppression effects. With the popularity of smart phones and smart audio devices, multi-microphone configuration has become the mainstream. Multi-channel echo cancellation can enhance the echo suppression effect by collecting microphone inputs at different positions and using spatial information such as energy difference and phase difference between microphones. The core of the multi-microphone echo cancellation algorithm is still based on adaptive filters, but it further combines technologies such as sound source localization and beamforming to filter echoes more accurately. The advantage of this method is that the main signal and echo can be better distinguished with the help of spatial information between microphones, thereby reducing the phenomenon of false cancellation. However, since the signal processing and algorithm complexity of the multi-microphone system is high and stronger hardware performance support is required, it is more challenging in resource-constrained mobile applications. Based on this, a dual-channel echo cancellation method of an embodiment of the present application is provided to solve the technical problem that the echo suppression effect of the existing echo cancellation processing is poor.

[0028] Figure 1 A flowchart of a dual-channel echo cancellation method provided in an embodiment of the present application is given. The dual-channel echo cancellation method provided in an embodiment of the present application can be executed by a dual-channel echo cancellation device, which can be implemented in hardware and / or software and integrated in a dual-channel echo cancellation device.

[0029] The following description is made by taking a dual-channel echo cancellation device executing a dual-channel echo cancellation method as an example. Figure 1 , the dual-channel echo cancellation method comprises:

[0030] S110: Acquire multiple first channel audio frames received from the first channel, multiple second channel audio frames received from the second channel, and multiple far-end audio frames sent to the audio player, and determine the first channel energy according to the first channel audio frames, determine the second channel energy according to the second channel audio frames, and determine the far-end channel energy according to the far-end audio frames.

[0031] The dual-channel echo cancellation device provided by this solution can be configured with two or more microphones. The dual-channel echo cancellation device can record sound through two or more microphones and output audio frames. An audio frame includes a first channel audio frame corresponding to the first channel and a second channel audio frame corresponding to the second channel. Optionally, each channel can correspond to audio recorded by one microphone, or can correspond to audio recorded by multiple microphones (for example, audio after mixing multiple microphones). Optionally, the first channel and the second channel can be the left channel and the right channel, or the right channel and the left channel.

[0032] In one embodiment, the dual-channel echo cancellation device provided by the present solution collects the audio of the first channel and the second channel through multiple microphones when making a voice call with one or more terminal devices, and after the dual-channel echo cancellation method performs echo cancellation processing, sends it to other terminals of the call through the network. At the same time, after collecting the remote audio, the other terminals of the call send it to the dual-channel echo cancellation device through the network. After receiving the remote audio sent by other terminals, the dual-channel echo cancellation device can submit it to the audio player for playback. Optionally, the remote audio can be submitted directly to the audio player for playback, or it can be mixed with other audio (such as audio provided by other terminal devices, or audio played locally by the dual-channel echo cancellation device (such as music)) and then submitted to the audio player for playback. In one embodiment, when the dual-channel echo cancellation device plays the sound corresponding to the audio, it is possible that the played sound is received by the microphone, resulting in the generated audio having an echo.

[0033] Exemplarily, multiple first channel audio frames received from the first channel, multiple second channel audio frames received from the second channel, and multiple remote audio frames sent to the audio player are obtained. For example, after the call starts, multiple first channel audio frames are continuously received from the first channel, multiple second channel audio frames are continuously received from the second channel, and multiple remote audio frames are continuously obtained to be played and sent to the audio player.

[0034] In one embodiment, the first channel energy of each first channel audio frame, the first channel energy of each second channel audio frame, and the far-end channel energy of each far-end audio frame are determined. Optionally, the channel energy (including the first channel energy, the first channel energy, and the far-end channel energy) can be represented by the total value, average value, sum of squares, mean of the sum of squares, etc. of multiple sampling values ​​in the audio frame (the number of sampling values ​​(i.e., the frame length) can be determined according to the specific application scenario and the sampling rate of the audio file).

[0035] S120: Determine, according to the far-end channel energy, first channel echo audio frames with echo and first channel no-echo audio frames without echo among the plurality of first channel audio frames, and determine second channel echo audio frames with echo and second channel no-echo audio frames without echo among the plurality of second channel audio frames.

[0036] Exemplarily, it is possible to determine whether the current dual-channel echo cancellation device is in a scene where an echo will be recorded based on the far-end channel energy of each far-end audio frame, so as to determine whether the corresponding first-channel audio frame and second-channel audio frame are audio frames with echoes. That is, based on the far-end channel energy of each far-end audio frame, it is determined whether the corresponding first-channel audio frame is a first-channel echo audio frame with echoes or a first-channel no-echo audio frame without echoes, and it is determined whether the corresponding second-channel audio frame is a second-channel echo audio frame with echoes or a second-channel no-echo audio frame without echoes.

[0037] In one embodiment, the first channel audio frame and the second channel audio frame corresponding to the far-end audio frame may be the latest far-end audio frame, the first channel audio frame and the second channel audio frame to be analyzed for echo. Optionally, when the far-end channel energy of the far-end audio frame currently sent to the audio player is greater than a preset threshold, the dual-channel echo cancellation will play a sound greater than a preset volume (decibel), and the current dual-channel echo cancellation device may record an echo. It can be considered that the dual-channel echo cancellation device is in a scenario where an echo will be recorded. At this time, the collected first channel audio frame can be considered to be a first channel echo audio frame determined to have an echo, and the second channel audio frame is a second channel echo audio frame with an echo.

[0038] When the far-end channel energy of the far-end audio frame currently sent to the audio player is less than the preset threshold, the dual-channel echo cancellation will play a sound with a volume less than the preset volume (decibel). The current dual-channel echo cancellation device is less likely to record an echo, and it can be considered that the dual-channel echo cancellation device is not in a scenario where an echo will be recorded. At this time, the collected first-channel audio frame can be considered to be a first-channel echo-free audio frame in which no echo is determined, and the second-channel audio frame is a second-channel echo-free audio frame in which no echo is present.

[0039] S130: Determine a low energy proportion of the first channel according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determine a channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame.

[0040] Exemplarily, after determining multiple first channel echo audio frames and multiple second channel echo audio frames of the echo segment, and multiple first channel no-echo audio frames and multiple second channel no-echo audio frames of the no-echo segment, the low energy proportion of the first channel can be determined according to the first channel energy of the first channel echo audio frames and the second channel energy of the second channel echo audio frames, and the channel energy difference between the first channel and the second channel can be determined according to the first channel energy of the first channel no-echo audio frames and the second channel energy of the second channel no-echo audio frames.

[0041] The low energy ratio of the first channel can be understood as the ratio of the number of first channel echo audio frames whose energy of the first channel is lower than the preset energy threshold or lower than the energy of the second channel to the echo audio frames corresponding to the echo segment (the number of echo audio frames is consistent with the number of first channel echo audio frames). In the echo segment, according to the definition of the signal-to-echo ratio, the smaller the expected echo energy, the larger the signal-to-echo ratio. This solution counts the ratio of the number of frames with smaller energy in the first channel to accurately determine the channel with a higher signal-to-echo ratio for echo cancellation.

[0042] The channel energy difference provided by this solution can be used to indicate the difference between the channel energies of the first channel and the second channel. Optionally, the channel energy difference can be represented by the difference between the cumulative or average first channel energy of the first channel and the cumulative or average second channel energy of the second channel, or can be represented by the decibel value (DB value) of the cumulative or average first channel energy of the first channel and the cumulative or average second channel energy of the second channel. In the echo-free segment, according to the definition of the signal-to-echo ratio, the greater the near-end energy is expected to be, the better, or the smaller the difference between the two is, the better. This solution counts the channel energy difference between the first channel and the second channel to accurately determine the channel with a higher signal-to-echo ratio for echo cancellation.

[0043] S140: determining a target channel in the first channel and the second channel according to the channel energy difference and the low energy ratio of the first channel, and performing a mono-channel echo cancellation process on an audio frame of the target channel to obtain a target audio frame.

[0044] Exemplarily, after determining the channel energy difference and the low energy ratio of the first channel, a channel with a higher signal-to-echo ratio can be determined between the first channel and the second channel according to the channel energy difference and the low energy ratio of the first channel, and the channel can be used as the target channel. After determining the target channel, the audio frame of the target channel can be output to a pre-created audio processing link, and the audio frame of the target channel can be subjected to a mono-channel echo cancellation process through the audio processing link to obtain the target audio frame. The target audio frame can be sent to other terminal devices of the call through the network for playback by other terminal devices of the call.

[0045] In one embodiment, when establishing a call with other terminal devices, a dual-channel echo cancellation device creates an audio processing link. Before determining the target channel, the first channel audio frame received from the first channel and the second channel audio frame received from the second channel can be mixed, and the mixed audio can be output to the audio processing link. The mixed audio is processed by the audio processing link to perform single-channel echo cancellation to obtain an audio frame after echo cancellation. After determining the target channel, the audio frame corresponding to the target channel can be subsequently sent to the audio processing link for single-channel echo cancellation, without mixing the first channel and the second channel. This solution utilizes the physical characteristics of the device's multi-microphone (e.g., dual microphone) recording (different signal-to-return ratios), and optimizes the selection of channel data without changing the original system audio processing link. The signal-to-return ratio of the input signal of the audio processing system is improved, and the subsequent audio processing effect is improved, especially the echo cancellation effect. It can greatly improve the channel fluctuations and even pronunciation caused by excessive echoes, thereby improving the user's call experience.

[0046] In the above, by determining the first channel echo audio frame and the second channel echo audio frame with echo and the first channel no-echo audio frame and the second channel no-echo audio frame without echo according to the far-end channel energy, determining the first channel low energy ratio according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determining the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel no-echo audio frame and the second channel energy of the second channel no-echo audio frame, determining the target channel in the first channel and the second channel according to the channel energy difference and the first channel low energy ratio, and performing mono-channel echo cancellation processing on the audio frame of the target channel to obtain the target audio frame, the signal-to-return ratio of the input signal of the mono-channel echo cancellation processing is improved, the echo suppression effect is effectively improved, and the application effect of the echo cancellation processing in the mobile terminal is improved.

[0047] Based on the above embodiments, Figure 2 A flowchart of another dual-channel echo cancellation method provided by an embodiment of the present application is given. The dual-channel echo cancellation method is a specific implementation of the above dual-channel echo cancellation method. Figure 2 , the dual-channel echo cancellation method comprises:

[0048] S210: Acquire multiple first channel audio frames received from the first channel, multiple second channel audio frames received from the second channel, and multiple far-end audio frames sent to the audio player, and determine the first channel energy according to the first channel audio frames, determine the second channel energy according to the second channel audio frames, and determine the far-end channel energy according to the far-end audio frames.

[0049] S220: Determine, according to the far-end channel energy, first channel echo audio frames with echo and first channel no-echo audio frames without echo from among the plurality of first channel audio frames, and determine second channel echo audio frames with echo and second channel no-echo audio frames without echo from among the plurality of second channel audio frames.

[0050] In a possible embodiment, the dual-channel echo cancellation method provided by the present solution determines, according to the far-end channel energy, first channel echo audio frames with echo and first channel echo-free audio frames without echo in multiple first channel audio frames, and determines second channel echo audio frames with echo and second channel echo-free audio frames without echo in multiple second channel audio frames, including:

[0051] S221: When the far-end channel energy is greater than or equal to a preset far-end energy threshold and the device system volume is not muted, determine the corresponding first channel audio frame as a first channel echo audio frame with an echo, and determine the corresponding second channel audio frame as a second channel echo audio frame with an echo.

[0052] S222: When the far-end channel energy is less than a preset far-end energy threshold or the device system volume is not muted, determine the corresponding first channel audio frame as a first channel echo-free audio frame without echo, and determine the corresponding second channel audio frame as a second channel echo-free audio frame without echo.

[0053] Exemplarily, the remote audio frames sent to the audio player are continuously acquired and the remote channel energy of the remote audio frames is determined, and the remote channel energy is compared with a preset remote energy threshold to determine the comparison result. At the same time, the device volume of the dual-channel echo cancellation device is determined to determine whether the device volume is muted (i.e., whether the device volume is 0).

[0054] In one embodiment, when the far-end channel energy is greater than or equal to a preset far-end energy threshold and the device system volume is not muted (i.e., at this time, the dual-channel echo cancellation device will emit a sound with a volume greater than the preset volume threshold through the speaker, and the dual-channel echo cancellation device will collect the echo), the audio frame collected at this time is an echo audio frame with an echo, then the corresponding first channel audio frame can be determined as a first channel echo audio frame with an echo, and the corresponding second channel audio frame can be determined as a second channel echo audio frame with an echo.

[0055] In one embodiment, when the far-end channel energy is less than a preset far-end energy threshold (i.e., even if the device system volume is not muted at this time, the dual-channel echo cancellation device will emit a sound with a volume less than the preset volume threshold through the speaker, and the dual-channel echo cancellation device will not collect an echo at this time, or the collected echo is very small), or when the device system volume is not muted (the dual-channel echo cancellation device does not emit a sound and will not collect an echo at this time), the audio frame collected at this time is an echo-free audio frame without an echo, the corresponding first channel audio frame is determined as a first channel echo-free audio frame without an echo, and the corresponding second channel audio frame is determined as a second channel echo-free audio frame without an echo.

[0056] This solution accurately determines whether the collected audio frame has an echo based on the comparison result of the far-end channel energy with the preset far-end energy threshold and whether the device system volume is not muted, improves the calculation accuracy of the channel energy difference and the low energy ratio of the first channel, and improves the quality of dual-channel echo cancellation.

[0057] S230: Determine a low-energy audio frame from a plurality of first channel echo audio frames according to the first channel energy of the first channel echo audio frame.

[0058] S240: Determine a proportion of low-energy audio frames in a plurality of first channel echo audio frames, and determine the proportion as a first channel low-energy proportion.

[0059] Exemplarily, for each first channel echo audio frame, whether the first channel echo audio frame is a low energy audio frame is determined based on the first channel energy of the first channel echo audio frame. After determining multiple low energy audio frames (e.g., low energy audio frames of a set number or a set time length), the proportion of these low energy audio frames in the corresponding first channel echo audio frames can be determined, and the proportion is determined as the first channel low energy proportion. This solution improves the accuracy of determining high signal-to-echo ratio channels and improves the quality of dual-channel echo cancellation by accurately determining low energy audio frames based on the first channel energy of the first channel echo audio frames, and determining the first channel low energy proportion based on the proportion of low energy audio frames in multiple first channel echo audio frames.

[0060] In one embodiment, the present solution determines a low-energy audio frame from a plurality of first channel echo audio frames according to the first channel energy of the first channel echo audio frame, and may be to determine a first channel echo audio frame whose first channel energy is less than the corresponding second channel energy as a low-energy audio frame.

[0061] For example, for each first channel echo audio frame, the first channel energy of the first channel echo audio frame is compared with the second channel energy of the corresponding second channel echo audio frame (i.e., the second channel echo audio frame in the same audio frame). When the first channel energy is less than the second channel energy, the first channel echo audio frame can be determined as a low energy audio frame. This solution accurately determines the low energy audio frame by determining the first channel echo audio frame whose first channel energy is less than the second channel energy as a low energy audio frame, effectively improving the accuracy of determining the high signal-to-echo ratio channel and improving the quality of dual-channel echo cancellation.

[0062] In a possible embodiment, the dual-channel echo cancellation method provided by the present solution may further count a first preset number or more of first channel echo audio frames before determining the proportion of low-energy audio frames in a plurality of first channel echo audio frames. Accordingly, the present solution determines the proportion of low-energy audio frames in a plurality of first channel echo audio frames by: determining the proportion of low-energy audio frames in a first preset number or more of first channel echo audio frames.

[0063] Exemplarily, whether it is a low-energy audio frame is determined based on the first channel energy of the first channel echo audio frame, and the number of first channel echo audio frames (i.e., the number of echo audio frames) is accumulated. Before a first preset number of first channel echo audio frames are collected, the first channel low energy proportion is not calculated, but new echo audio frames are continuously detected until the first preset number or more of first channel echo audio frames are collected, and then the first channel low energy proportion is calculated.

[0064] In one embodiment, after collecting a first preset number or more of first channel echo audio frames, the proportion of low energy audio frames in the first preset number or more of first channel echo audio frames may be determined and determined as the first channel low energy proportion.

[0065] For example, when the number of first channel echo audio frames currently determined is less than the first preset number (frameHasEchoCnt<CHOOSE_CH_FRAME_COUNT), assuming that the newly received audio frame is an echo audio frame, if the first channel energy corresponding to the newly determined first channel echo audio frame is less than the second channel energy of the second channel echo audio frame (EnergyT1 is less than EnergyT2, where TI indicates the first channel and T2 indicates the second channel), the first channel echo audio frame is determined as a low energy audio frame, and the collection is updated to the first preset number (ChooseT1Frame++). When the number of first channel echo audio frames currently determined is greater than the first preset number (frameHasEchoCnt≥CHOOSE_CH_FRAME_COUNT), the number of low energy audio frames and the proportion of the first channel echo audio frames of the first preset number or more are used as the first channel low energy proportion (first channel low energy proportion ChooseT1Ratio=ChooseT1Frame / CHOOSE_CH_FRAME_COUNT). This solution calculates the low energy ratio of the first channel after counting a first preset number or more of the first channel echo audio frames, thereby effectively improving the robustness of the calculation of the low energy ratio of the first channel, more accurately determining the target channel with a high signal-to-echo ratio, and improving the quality of dual-channel echo cancellation.

[0066] S250: Determine a channel energy difference between the first channel and the second channel according to the first channel energy of the first channel anechoic audio frame and the second channel energy of the second channel anechoic audio frame.

[0067] In one embodiment, the channel energy difference can be determined according to the DB value of the first channel and the second channel to accurately determine the channel energy difference between the first channel and the second channel, thereby improving the quality of dual-channel echo cancellation. Based on this, the dual-channel echo cancellation method provided by this solution determines the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame, and the channel energy difference can be determined according to the following formula:

[0068] NearSingleEnDb=10*log 10 (NearSingleEnergyT1 / NearSingleEnergyT2)

[0069] Among them, NearSingleEnDb is the channel energy difference, NearSingleEnergyT1 is the accumulated first channel energy of multiple first channel echo-free audio frames, and NearSingleEnergyT2 is the accumulated second channel energy of multiple second channel echo-free audio frames.

[0070] In a possible embodiment, before determining the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame, the dual-channel echo cancellation method provided by the present solution may further count a second preset number of first channel echo-free audio frames and a second preset number of second channel echo-free audio frames. Accordingly, determining the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame includes: determining the channel energy difference between the first channel and the second channel according to the first channel energy of the second preset number of first channel echo-free audio frames and the second channel energy of the second preset number of second channel echo-free audio frames.

[0071] Exemplarily, the first channel no-echo audio frame is continuously determined from a plurality of first channel audio frames, and the second channel no-echo audio frame is continuously determined from a plurality of second channel audio frames, and the number of accumulated first channel no-echo audio frames and the number of accumulated second channel no-echo audio frames are determined. Before the number of first channel no-echo audio frames and the number of second channel no-echo audio frames (i.e., the number of no-echo audio frames) both reach a second preset number, the no-echo audio frame is continuously determined from the audio frames. Until the number of first channel no-echo audio frames and the number of second channel no-echo audio frames both reach a second preset number, the channel energy difference between the first channel and the second channel is determined based on the first channel energy of the second preset number of first channel no-echo audio frames and the second channel energy of the second preset number of second channel no-echo audio frames.

[0072] For example, when the number of echo-free audio frames is less than the second preset number (frameNoEchoCnt<VALID_NO_ECHO_FRAME_COUNT), assuming that the newly received audio frame is an echo-free audio frame, the echo-free audio frame channel energy corresponding to the echo-free audio frame can be accumulated, that is, the first channel energy of the newly determined first channel echo-free audio frame is accumulated to the current accumulated first channel energy (NearSingleEnergyT1+=EnergyT1), and the second channel energy of the newly determined second channel echo-free audio frame is accumulated to the current accumulated second channel energy NearSingleEnergyT2+=EnergyT2). This solution calculates the channel energy difference after counting the echo-free audio frames of the second preset number or more, thereby effectively improving the robustness of the channel energy difference calculation, more accurately determining the target channel with a high signal-to-echo ratio, and improving the quality of dual-channel echo cancellation.

[0073] S260: determining a target channel in the first channel and the second channel according to the channel energy difference and the low energy ratio of the first channel, and performing a mono-channel echo cancellation process on an audio frame of the target channel to obtain a target audio frame.

[0074] In a possible embodiment, the dual-channel echo cancellation method provided by the present solution determines a target channel in the first channel and the second channel according to the channel energy difference and the low energy proportion of the first channel, including:

[0075] S261: When the low energy proportion of the first channel is greater than a preset proportion and the absolute value of the channel energy difference is less than a preset energy difference threshold, determine the first channel as a target channel.

[0076] S262: When the low energy proportion of the first channel is greater than a preset proportion, the absolute value of the channel energy difference is greater than a preset energy difference threshold, and the channel energy difference is greater than zero, determine the first channel as a target channel.

[0077] S263: When the low energy proportion of the first channel is less than a preset proportion, the absolute value of the channel energy difference is greater than a preset energy difference threshold, and the channel energy difference is greater than zero, determine the first channel as a target channel.

[0078] In one embodiment, when the low energy proportion of the first channel is greater than a preset proportion (for example, ChooseT1Ratio>a, a is a preset proportion, for example, a=0.5), and the absolute value of the channel energy difference is less than or equal to a preset energy difference threshold (absNearSingleEnDb≤NEAR_SINGLE_EN_THREASHOLD), the first channel can be determined as the target channel, and when the low energy proportion of the first channel is less than the preset proportion, and the absolute value of the channel energy difference is less than the preset energy difference threshold, the second channel can be determined as the target channel, and when the low energy proportion of the first channel is equal to the preset proportion, the first channel or the second channel can be determined as the target channel.

[0079] In one embodiment, when the low energy proportion of the first channel is greater than a preset proportion and the absolute value of the channel energy difference is greater than a preset energy difference threshold, it is further determined whether the channel energy difference is greater than zero. When the channel energy difference is greater than zero, the first channel can be determined as the target channel. When the channel energy difference is less than zero, the first channel can be determined as the target channel. When the channel energy difference is zero, the first channel or the second channel can be determined as the target channel.

[0080] In one embodiment, when the low energy proportion of the first channel is less than a preset proportion and the absolute value of the channel energy difference is greater than a preset energy difference threshold, it is further determined whether the channel energy difference is greater than zero. When the channel energy difference is greater than zero, the first channel can be determined as the target channel, and when the channel energy difference is less than zero, the second channel can be determined as the target channel. When the channel energy difference is zero, the first channel or the second channel can be determined as the target channel.

[0081] This solution compares the low energy proportion of the first channel with the preset proportion, and compares the absolute value of the channel energy difference that is less than the preset energy difference threshold, and determines whether the first channel or the second channel is determined as the target channel according to the above comparison results, so as to more accurately determine the target channel with a high signal-to-echo ratio and improve the quality of dual-channel echo cancellation.

[0082] In the above, by determining the first channel echo audio frame and the second channel echo audio frame with echo and the first channel no-echo audio frame and the second channel no-echo audio frame without echo according to the far-end channel energy, determining the first channel low energy ratio according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determining the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel no-echo audio frame and the second channel energy of the second channel no-echo audio frame, determining the target channel in the first channel and the second channel according to the channel energy difference and the first channel low energy ratio, and performing mono-channel echo cancellation processing on the audio frame of the target channel to obtain the target audio frame, the signal-to-return ratio of the input signal of the mono-channel echo cancellation processing is improved, the echo suppression effect is effectively improved, and the application effect of the echo cancellation processing in the mobile terminal is improved. At the same time, by comparing the far-end channel energy with the preset far-end energy threshold and whether the device system volume is not muted, it is accurately determined whether the collected audio frame has an echo, thereby improving the calculation accuracy of the channel energy difference and the low energy ratio of the first channel, and improving the quality of dual-channel echo cancellation.

[0083] Figure 3 is a schematic diagram of the structure of a dual-channel echo cancellation device provided in an embodiment of the present application. Figure 3 The dual-channel echo cancellation device includes an energy determination module 31, an echo analysis module 32, an energy analysis module 33 and an echo cancellation module 34.

[0084] The energy determination module 31 is configured to obtain a plurality of first channel audio frames received from the first channel, a plurality of second channel audio frames received from the second channel, and a plurality of remote audio frames sent to the audio player, and determine the first channel energy according to the first channel audio frames, determine the second channel energy according to the second channel audio frames, and determine the remote channel energy according to the remote audio frames;

[0085] an echo analysis module 32, configured to determine, according to the far-end channel energy, first channel echo audio frames with echo and first channel echo-free audio frames without echo from among the plurality of first channel audio frames, and to determine second channel echo audio frames with echo and second channel echo-free audio frames without echo from among the plurality of second channel audio frames;

[0086] The energy analysis module 33 is configured to determine the low energy proportion of the first channel according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determine the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame;

[0087] The echo cancellation module 34 is configured to determine a target channel in the first channel and the second channel according to the channel energy difference and the low energy proportion of the first channel, and perform a single-channel echo cancellation process on the audio frame of the target channel to obtain a target audio frame.

[0088] In the above, by determining the first channel echo audio frame and the second channel echo audio frame with echo and the first channel no-echo audio frame and the second channel no-echo audio frame without echo according to the far-end channel energy, determining the first channel low energy ratio according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determining the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel no-echo audio frame and the second channel energy of the second channel no-echo audio frame, determining the target channel in the first channel and the second channel according to the channel energy difference and the first channel low energy ratio, and performing mono-channel echo cancellation processing on the audio frame of the target channel to obtain the target audio frame, the signal-to-return ratio of the input signal of the mono-channel echo cancellation processing is improved, the echo suppression effect is effectively improved, and the application effect of the echo cancellation processing in the mobile terminal is improved.

[0089] In a possible embodiment, the echo analysis module 32 determines, according to the far-end channel energy, first channel echo audio frames with echo and first channel no-echo audio frames without echo among multiple first channel audio frames, and determines second channel echo audio frames with echo and second channel no-echo audio frames without echo among multiple second channel audio frames, and is configured as follows:

[0090] When the far-end channel energy is greater than or equal to a preset far-end energy threshold and the device system volume is not muted, determining the corresponding first channel audio frame as a first channel echo audio frame with an echo, and determining the corresponding second channel audio frame as a second channel echo audio frame with an echo;

[0091] When the far-end channel energy is less than a preset far-end energy threshold or the device system volume is not muted, the corresponding first channel audio frame is determined as a first channel echo-free audio frame without echo, and the corresponding second channel audio frame is determined as a second channel echo-free audio frame without echo.

[0092] In a possible embodiment, the energy analysis module 33 determines the low energy proportion of the first channel according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and is configured as follows:

[0093] determining a low-energy audio frame from a plurality of first-channel echo audio frames according to first-channel energy of the first-channel echo audio frame;

[0094] The proportion of low-energy audio frames in the plurality of first-channel echo audio frames is determined, and the proportion is determined as the first-channel low-energy proportion.

[0095] In a possible embodiment, the energy analysis module 33 determines the low-energy audio frame from a plurality of first channel echo audio frames according to the first channel energy of the first channel echo audio frame, and is configured as follows:

[0096] A first channel echo audio frame whose first channel energy is less than the corresponding second channel energy is determined as a low energy audio frame.

[0097] In a possible embodiment, the dual-channel echo cancellation device further includes a first collection module, and the first collection module is configured as follows:

[0098] Counting a first preset number or more of first channel echo audio frames;

[0099] Accordingly, the energy analysis module 33 determines the proportion of low-energy audio frames in the plurality of first channel echo audio frames, and is configured as follows:

[0100] The proportion of a first preset number of low-energy audio frames in the plurality of first channel echo audio frames is determined.

[0101] In a possible embodiment, the energy analysis module 33 determines the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel anechoic audio frame and the second channel energy of the second channel anechoic audio frame, and is configured as follows:

[0102] The channel energy difference is determined according to the following formula:

[0103] NearSingleEnDb=10*log 10 (NearSingleEnergyT1 / NearSingleEnergyT2)

[0104] Among them, NearSingleEnDb is the channel energy difference, NearSingleEnergyT1 is the accumulated first channel energy of multiple first channel echo-free audio frames, and 2 is the accumulated second channel energy of multiple second channel echo-free audio frames.

[0105] In a possible embodiment, the dual-channel echo cancellation device further includes a second collection module, and the second collection module is configured as follows:

[0106] Counting a second preset number of first channel echo-free audio frames and a second preset number of second channel echo-free audio frames;

[0107] Accordingly, the energy analysis module 33 determines the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel anechoic audio frame and the second channel energy of the second channel anechoic audio frame, and is configured as follows:

[0108] A channel energy difference between the first channel and the second channel is determined according to the first channel energy of a second preset number of first channel echo-free audio frames and the second channel energy of a second preset number of second channel echo-free audio frames.

[0109] In a possible embodiment, the echo cancellation module 34 determines the target channel in the first channel and the second channel according to the channel energy difference and the low energy proportion of the first channel, and is configured as follows:

[0110] When the low energy proportion of the first channel is greater than a preset proportion and the absolute value of the channel energy difference is less than a preset energy difference threshold, determining the first channel as a target channel;

[0111] When the low energy proportion of the first channel is greater than a preset proportion, the absolute value of the channel energy difference is greater than a preset energy difference threshold, and the channel energy difference is greater than zero, determining the first channel as a target channel;

[0112] When the low energy proportion of the first channel is less than the preset proportion, the absolute value of the channel energy difference is greater than the preset energy difference threshold, and the channel energy difference is greater than zero, the first channel is determined as the target channel.

[0113] It is worth noting that in the embodiment of the above-mentioned dual-channel echo cancellation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.

[0114] The embodiment of the present application further provides a dual-channel echo cancellation device, which can integrate the dual-channel echo cancellation apparatus provided in the embodiment of the present application. Figure 4Schematic diagram of the structure of a dual-channel echo cancellation device provided in an embodiment of the present application. Figure 4 The dual-channel echo cancellation device includes: an input device 43, an output device 44, a memory 42 and one or more processors 41; the memory 42 is used to store one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 implement the dual-channel echo cancellation method provided in the above embodiment. The dual-channel echo cancellation device, equipment and computer provided above can be used to execute the dual-channel echo cancellation method provided in any of the above embodiments, and have corresponding functions and beneficial effects.

[0115] The embodiment of the present application also provides a non-volatile storage medium storing computer executable instructions, which are used to execute the dual-channel echo cancellation method provided in the above embodiment when executed by a computer processor. Of course, the non-volatile storage medium storing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the dual-channel echo cancellation method provided above, can also execute the related operations in the dual-channel echo cancellation method provided in any embodiment of the present application. The dual-channel echo cancellation device, equipment and storage medium provided in the above embodiment can execute the dual-channel echo cancellation method provided in any embodiment of the present application. For technical details not described in detail in the above embodiment, please refer to the dual-channel echo cancellation method provided in any embodiment of the present application.

[0116] On the basis of the above embodiments, the embodiments of the present application also provide a computer program product. The technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer program product is stored in a storage medium and includes a number of instructions for enabling a computer device, a mobile terminal or a processor therein to execute all or part of the steps of the dual-channel echo cancellation method provided in each embodiment of the present application.

Claims

1. A dual-channel echo cancellation method, characterized in that: include: Acquire a plurality of first channel audio frames received from the first channel, a plurality of second channel audio frames received from the second channel, and a plurality of remote audio frames sent to the audio player, and determine a first channel energy according to the first channel audio frames, determine a second channel energy according to the second channel audio frames, and determine a remote channel energy according to the remote audio frames; Determine, according to the far-end channel energy, first channel echo audio frames with echo and first channel echo-free audio frames without echo from among the plurality of first channel audio frames, and determine second channel echo audio frames with echo and second channel echo-free audio frames without echo from among the plurality of second channel audio frames; Determine a low energy proportion of the first channel according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determine a channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame; A target channel is determined in the first channel and the second channel according to the channel energy difference and the low energy proportion of the first channel, and a mono-channel echo cancellation process is performed on an audio frame of the target channel to obtain a target audio frame.

2. The dual-channel echo cancellation method according to claim 1, characterized in that: The method of determining, according to the far-end channel energy, first channel echo audio frames with echo and first channel echo-free audio frames without echo from among the plurality of first channel audio frames, and determining second channel echo audio frames with echo and second channel echo-free audio frames without echo from among the plurality of second channel audio frames comprises: When the far-end channel energy is greater than or equal to a preset far-end energy threshold and the device system volume is not muted, determining the corresponding first channel audio frame as a first channel echo audio frame with an echo, and determining the corresponding second channel audio frame as a second channel echo audio frame with an echo; When the far-end channel energy is less than a preset far-end energy threshold or the device system volume is not muted, the corresponding first channel audio frame is determined as a first channel echo-free audio frame without echo, and the corresponding second channel audio frame is determined as a second channel echo-free audio frame without echo.

3. The dual-channel echo cancellation method according to claim 1, characterized in that: The determining the first channel low energy proportion according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame includes: determining a low-energy audio frame from a plurality of first-channel echo audio frames according to the first-channel energy of the first-channel echo audio frame; The proportion of the low-energy audio frames in the plurality of first channel echo audio frames is determined, and the proportion is determined as the first channel low-energy proportion.

4. The dual-channel echo cancellation method according to claim 3, characterized in that: The determining a low-energy audio frame from a plurality of first channel echo audio frames according to the first channel energy of the first channel echo audio frame comprises: The first channel echo audio frame whose first channel energy is less than the corresponding second channel energy is determined as a low-energy audio frame.

5. The dual-channel echo cancellation method according to claim 3, characterized in that: Before determining the proportion of the low-energy audio frame in the plurality of first channel echo audio frames, the method further includes: Counting a first preset number or more of the first channel echo audio frames; Accordingly, determining the proportion of the low-energy audio frame in the plurality of first channel echo audio frames includes: Determine a proportion of the first preset number of the low-energy audio frames in the plurality of first channel echo audio frames.

6. The dual-channel echo cancellation method according to claim 1, characterized in that: The determining, according to the first channel energy of the first channel anechoic audio frame and the second channel energy of the second channel anechoic audio frame, a channel energy difference between the first channel and the second channel, comprises: The channel energy difference is determined according to the following formula: NearSingleEnDb=10*log 10 (NearSingleEnergyT1 / NearSingleEnergyT2) Among them, NearSingleENdb is the channel energy difference, NearSingleEnergyT1 is the accumulated first channel energy of multiple first channel echo-free audio frames, and NearSingle EnergyT2 is the accumulated second channel energy of multiple second channel echo-free audio frames.

7. The dual-channel echo cancellation method according to claim 1, characterized in that: Before determining the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel anechoic audio frame and the second channel energy of the second channel anechoic audio frame, the method further includes: Counting a second preset number of the first channel echo-free audio frames and a second preset number of the second channel echo-free audio frames; Correspondingly, determining the channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame includes: A channel energy difference between the first channel and the second channel is determined according to the first channel energy of the second preset number of echo-free audio frames of the first channel and the second channel energy of the second preset number of echo-free audio frames of the second channel.

8. The dual-channel echo cancellation method according to claim 1, characterized in that: The determining a target channel among the first channel and the second channel according to the channel energy difference and the low energy proportion of the first channel includes: When the low energy proportion of the first channel is greater than a preset proportion and the absolute value of the channel energy difference is less than a preset energy difference threshold, determining the first channel as a target channel; When the low energy proportion of the first channel is greater than a preset proportion, the absolute value of the channel energy difference is greater than a preset energy difference threshold, and the channel energy difference is greater than zero, determining the first channel as a target channel; When the low energy proportion of the first channel is less than a preset proportion, the absolute value of the channel energy difference is greater than a preset energy difference threshold, and the channel energy difference is greater than zero, the first channel is determined as a target channel.

9. A dual-channel echo cancellation device, characterized in that: It includes an energy determination module, an echo analysis module, an energy analysis module and an echo cancellation module, wherein: The energy determination module is configured to obtain a plurality of first channel audio frames received from the first channel, a plurality of second channel audio frames received from the second channel, and a plurality of remote audio frames sent to the audio player, and determine the first channel energy according to the first channel audio frames, determine the second channel energy according to the second channel audio frames, and determine the remote channel energy according to the remote audio frames; The echo analysis module is configured to determine, according to the far-end channel energy, first channel echo audio frames with echo and first channel echo-free audio frames without echo from among the plurality of first channel audio frames, and to determine second channel echo audio frames with echo and second channel echo-free audio frames without echo from among the plurality of second channel audio frames; The energy analysis module is configured to determine a first channel low energy proportion according to the first channel energy of the first channel echo audio frame and the second channel energy of the second channel echo audio frame, and determine a channel energy difference between the first channel and the second channel according to the first channel energy of the first channel echo-free audio frame and the second channel energy of the second channel echo-free audio frame; The echo cancellation module is configured to determine a target channel in the first channel and the second channel according to the channel energy difference and the low energy proportion of the first channel, and perform a single-channel echo cancellation process on the audio frame of the target channel to obtain a target audio frame.

10. A dual-channel echo cancellation device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the dual-channel echo cancellation method as described in any one of claims 1-8.

11. A non-volatile storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to execute the dual-channel echo cancellation method according to any one of claims 1 to 8 when executed by a computer processor.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the dual-channel echo cancellation method according to any one of claims 1 to 8 is implemented.