Echo cancellation method, device and electronic equipment

By receiving the far-end signal and mixed signal, using the pre-trained model to estimate the near-end signal and updating it online, the problem of insufficient accuracy and robustness of the nonlinear echo cancellation model in the existing technology in the terminal device is solved, and the user experience is improved. and model adaptability.

CN113113038BActive Publication Date: 2024-09-27DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110546298.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-19
Publication Date
2024-09-27
Estimated Expiration
2041-05-19

AI Technical Summary

Technical Problem

Existing nonlinear echo cancellation network models may not be able to effectively eliminate nonlinear residual echo in terminal devices, causing the user's voice interaction experience to be affected. Especially when the terminal device parameters change, the accuracy and robustness of the model are reduced.

Method used

By receiving the far-end signal and the mixed signal, the pre-trained echo cancellation model is used to estimate the near-end signal, and based on the accuracy of the model, it is judged whether it is necessary to train the model online, and the weight value is updated until the preset conditions are met to improve the accuracy of echo cancellation. .

Benefits of technology

It improves the accuracy of echo elimination and user experience of the network model, adapts to changes in terminal device parameters, and enhances the robustness and adaptability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113113038B
    Figure CN113113038B
Patent Text Reader

Abstract

The embodiments of the present disclosure provide an echo cancellation method, device and electronic device, the method comprising receiving a plurality of signals to be processed, obtaining an estimated masking value based on a far-end signal and / or a first mixed signal corresponding to the plurality of signals to be processed and a pre-trained echo cancellation model, determining an estimated near-end signal based on the estimated masking value, and if the pre-trained echo cancellation model determined based on the estimated masking value does not meet a preset condition, sending the estimated near-end signal or an alternative estimated near-end signal determined based on other traditional models to the far-end for playback, and after updating the weight value of the pre-trained echo cancellation model based on the estimated masking value, re-executing the step of receiving a plurality of signals to be processed until the re-trained echo cancellation model meets the preset condition. The present disclosure improves the accuracy of echo cancellation of the network model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular to an echo cancellation method, device and electronic device. Background Art

[0002] Acoustic echo is a signal collected by a near-end microphone after the far-end signal is played through a loudspeaker. The difference between it and the far-end signal not only includes the response of the near-end room system, but also the distortion caused by the nonlinear characteristics of the loudspeaker. The audio processing process of each device may also introduce nonlinear changes, causing the speaker in the far-end room to hear his own echo, seriously affecting the user's voice interaction experience. Therefore, acoustic echo cancellation is an indispensable module in voice interaction scenarios.

[0003] In the prior art, with the widespread application of deep learning neural networks, acoustic echoes can be eliminated by training a network model.

[0004] However, existing network models for nonlinear echo cancellation are all trained offline, which means that a large number of training data sets need to be prepared first, and then the model is trained to the optimal state on a high-performance server, and then the model is embedded in the corresponding terminal device for forward processing to obtain the corresponding results. However, nonlinear echo is related to the parameters of the terminal device. If the training data set does not contain the echo data of the device, the pre-trained network model may not be able to eliminate the nonlinear residual echo, which reduces the accuracy of the network model in eliminating echoes, and thus affects the user experience. Summary of the invention

[0005] The embodiments of the present disclosure provide an echo cancellation method, device and electronic device to improve the accuracy of echo cancellation of a network model.

[0006] In a first aspect, an embodiment of the present disclosure provides an echo cancellation method, including:

[0007] Receiving a plurality of signals to be processed, wherein each of the signals to be processed includes a remote-end signal sent by a remote end and / or a first mixed signal corresponding to the remote-end signal received by a near end;

[0008] Obtain an estimated masking value according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed and a pre-trained echo cancellation model, and determine an estimated near-end signal according to the estimated masking value;

[0009] If it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined according to other traditional models is sent to the far end for playback, and after the weight value of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0010] In a second aspect, an embodiment of the present disclosure provides an echo cancellation device, including:

[0011] A receiving module, configured to receive a plurality of signals to be processed, wherein each of the signals to be processed includes a remote-end signal sent by a remote end and / or a first mixed signal corresponding to the remote-end signal received by a near end;

[0012] a processing module, configured to determine an estimated near-end signal according to the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed, and a pre-trained echo cancellation model, wherein the pre-trained echo cancellation model is trained by using a far-end training signal and a mixed training signal corresponding to the far-end training signal;

[0013] The processing module is further used to determine the cancellation accuracy of the pre-trained echo cancellation model according to the estimated near-end signal;

[0014] The processing module is also used to send the estimated near-end signal to the far-end for playback if the elimination accuracy is not less than a first preset accuracy threshold and not greater than a second preset accuracy threshold, and update the weight value of the pre-trained echo cancellation model according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed. After the weight value of the pre-trained echo cancellation model is updated, re-execute the steps of obtaining the signal to be processed and subsequent steps until the elimination accuracy of the updated echo cancellation model is greater than the second preset accuracy threshold.

[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;

[0016] The memory stores computer-executable instructions;

[0017] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the echo cancellation method as described in the first aspect and various possible designs of the first aspect.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the echo cancellation method described in the first aspect and various possible designs of the first aspect is implemented.

[0019] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the echo cancellation method described in the first aspect and various possible designs of the first aspect is implemented.

[0020] The present embodiment provides an echo cancellation method, device and electronic device. After adopting the above scheme, a plurality of signals to be processed can be received first, wherein each signal to be processed includes a far-end signal sent by a far-end and / or a first mixed signal corresponding to the far-end signal received by a near-end. An estimated masking value is obtained according to the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed and a pre-trained echo cancellation model. An estimated near-end signal is then determined according to the estimated masking value. If the pre-trained echo cancellation model determined according to the estimated masking value does not meet a preset condition, the estimated near-end signal or the pre-trained echo cancellation model determined according to other traditional models is used to determine the near-end signal. The determined alternative estimated near-end signal is sent to the far-end for playback, and after the weight value of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the retrained echo cancellation model meets the preset conditions. By first determining an estimated masking value based on the pre-trained network model, and then determining the accuracy of the network model according to the estimated masking value, and judging the relationship between the accuracy of the network model and the preset conditions, it is determined whether the network model needs to be trained online, thereby improving the accuracy of the network model in eliminating echoes, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 A schematic diagram of the architecture of an application system of the echo cancellation method provided by an embodiment of the present disclosure;

[0023] Figure 2 A schematic diagram of the principle of the echo cancellation method provided by the embodiment of the present disclosure;

[0024] Figure 3 A flowchart of an echo cancellation method provided by an embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram of the principle of signal screening provided by an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram of a flow chart of updating weights of an echo cancellation model provided in an embodiment of the present disclosure;

[0027] Figure 6 A schematic diagram of the structure of an echo cancellation device provided in an embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0030] In the prior art, with the widespread application of deep learning neural networks (such as DNN networks), acoustic echoes can be eliminated by training a network model. However, the existing network models for nonlinear echo elimination are all offline training, that is, a large number of training data sets need to be prepared first, and then the model is trained to the optimal on a high-performance server, and then the model is embedded in the corresponding terminal device for forward processing to obtain the corresponding results. However, nonlinear echo is related to the parameters of the device. If the training data set does not contain the echo data of the device, the pre-trained network model may not be able to eliminate the nonlinear residual echo. For example, in the application scenario involving VoIP (Voice over Internet Protocol, network voice protocol), the terminal device is changeable, and it is difficult to cover all device types and scenarios when collecting training data. After a period of use, the parameters of the trained audio device may also change, resulting in changes in the nonlinear characteristics of the echo, reducing the accuracy and robustness of the network model to eliminate the echo, thereby affecting the user's experience.

[0031] Based on the above problems, the present application determines whether it is necessary to train the network model online to improve the accuracy of the network model by first determining an estimated masking value based on a pre-trained network model, then determining the accuracy of the network model based on the estimated masking value, and judging the relationship between the accuracy of the network model and the preset conditions. This method does not need to be restricted by the terminal device parameters, thereby achieving the technical effect of both improving the accuracy of the network model in eliminating echoes and improving the user experience.

[0032] Figure 1 A schematic diagram of the architecture of an application system of the echo cancellation method provided by an embodiment of the present disclosure, such as Figure 1 As shown, the echo cancellation method provided in the embodiment of the present application can be applied in a voice interaction scenario, wherein the voice interaction scenario can be a user answering a call, a voice call, a video call, etc., and the embodiment of the present application does not impose any special restrictions on this. In the application system, a first terminal device 101 corresponding to the far end and a second terminal device 102 corresponding to the near end are included. Taking the user answering a call as an example, for example, user 1 makes a call through the first terminal device 101, and user 2 answers the call through the second terminal device 102. In the specific implementation process, in the embodiment of the present disclosure, user 1 and user 2 talk, that is, user 1 makes a call to user 2 through the first terminal device 101, and user 2 answers the call of user 1 through the second terminal device 102. The signal received by the second terminal device of user 2 contains acoustic echo and near-end voice, and echo cancellation is required. If echo cancellation is not performed, user 1 will hear his own echo, which seriously affects the voice interaction. In the above application scenario, the second terminal device 102 can obtain the far-end signal sent by the first terminal device 101 and / or the first mixed signal corresponding to the far-end signal received by the second terminal device 102, and perform echo cancellation, which can not only completely suppress the acoustic echo to prevent user 1 from hearing his own echo, but also minimize the distortion of user 2's speaking voice and improve the quality of voice calls and interactions.

[0033] In addition, the second terminal device 102 and the first terminal device 101 can interchange functions, that is, user 2 can make a call through the second terminal device 102, and user 1 can answer the call from user 2 through the first terminal device 101, and perform echo cancellation processing to prevent user 2 from hearing his own echo, and to minimize the distortion of user 1's speaking voice.

[0034] In this embodiment, the first terminal device and the second terminal device may be handheld devices, vehicle-mounted devices, wearable devices, computing devices, and various forms of user equipment (UE) and other devices with call functions.

[0035] In addition, the first terminal device 101 may not exist, and there is no call scenario at this time. The far-end signal of the second terminal device 102 is music or voice signals stored in its own device or downloaded from the Internet, which are played through the speaker. At this time, the microphone of the second terminal device 102 receives the echo played by the speaker and the voice signal of the near-end user. If echo cancellation is not performed, it will affect the voice wake-up and recognition functions of the second terminal device 102 itself.

[0036] In addition, the system architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0037] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the echo cancellation system. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0038] The technical solution of the present application is described below by taking several embodiments as examples, and the same or similar concepts or processes may not be repeated in some embodiments.

[0039] Figure 2 The schematic diagram of the principle of the echo cancellation method provided by the embodiment of the present disclosure is as follows: Figure 2As shown, in this embodiment, the far-end signal sent by the far-end is played through the loudspeaker, and then its echo can be received by the microphone coupled with the loudspeaker, and at the same time, the local pure near-end signal is also propagated to the microphone, and the echo signal and the pure near-end signal constitute a first mixed signal. The echo cancellation module will eliminate a certain degree of echo in the first mixed signal according to different scenarios, and retain the estimated near-end signal. However, when the effect of the echo cancellation module is not ideal, the traditional echo cancellation algorithm or the neural network echo cancellation algorithm with general performance can be temporarily used to complete the function, and the far-end signal and the mixed signal are input into the data classification module at the same time to obtain the pure near-end signal and the pure echo signal, which are used as the input of the online training module of the neural network (i.e., the pre-trained echo cancellation model), and the weight value of the pre-trained echo cancellation model is continuously updated according to these real-time signals, and after the weight value of the pre-trained echo cancellation model is updated, the training state of the model is continuously detected within a certain time interval. If the model achieves a better effect, the algorithm in the original echo cancellation module is replaced, and the online training process is still continued. If it is detected that the training effect has reached the optimal level, the online training process can be stopped directly after the algorithm is replaced to prevent the model training process from diverging and reduce the waste of training resources.

[0040] In addition, if the computing resources of the local processor are insufficient, the data classification module and online training module can be deployed on the cloud server.

[0041] Figure 3 This is a flow chart of the echo cancellation method provided by the embodiment of the present disclosure. The execution subject of this embodiment may be the second terminal device 102. The specific execution subject may be determined according to the actual application scenario, and the embodiment of the present disclosure does not impose any special restrictions on this. Figure 3 As shown, the echo cancellation method provided by the embodiment of the present disclosure may include the following steps:

[0042] S301: Receive multiple signals to be processed, wherein each signal to be processed includes a far-end signal sent by a far-end and / or a first mixed signal corresponding to the far-end signal received by a near-end.

[0043] In this embodiment, in order to reduce the echo signal during the call, the second terminal device can obtain the signal to be processed in real time during the call, wherein the time length of the signal to be processed can be adjusted, and a longer signal can be divided into multiple signals. In order to improve the accuracy of the subsequent processing process, the signal to be processed in this embodiment can be set to multiple signals.

[0044] Furthermore, the type of each signal to be processed may also be different. For example, the signal to be processed may be a far-end signal sent by the far-end, or a first mixed signal composed of an echo corresponding to the far-end signal and a near-end voice received by the near-end, or a first mixed signal including both the far-end signal sent by the far-end and the echo corresponding to the far-end signal and a near-end voice received by the near-end (i.e., a double-talk state). The far-end signal is played through a loudspeaker, and then its echo is received by a microphone coupled to the loudspeaker. If there is no local pure near-end signal at this time, the echo signal received by the microphone at this time is the first mixed signal; if the local pure near-end signal is also transmitted to the microphone at the same time, the echo signal and the pure near-end signal constitute the first mixed signal.

[0045] S302: Obtain an estimated masking value according to the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed and a pre-trained echo cancellation model, and determine an estimated near-end signal according to the estimated masking value.

[0046] In this embodiment, after obtaining multiple signals to be processed, an estimated masking value can be determined according to the far-end signal or the first mixed signal, or the far-end signal and the first mixed signal corresponding to each signal to be processed, and a pre-trained echo cancellation model, and then the estimated near-end signal is determined according to the estimated masking value, wherein, theoretically speaking, the estimated near-end signal is the near-end signal obtained after the echo cancellation model eliminates the echo processing, that is, the near-end signal estimated by the echo cancellation model.

[0047] Further, obtaining an estimated masking value according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed and the pre-trained echo cancellation model, and determining the estimated near-end signal according to the estimated masking value may specifically include:

[0048] The far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed are screened based on a preset screening rule to obtain a pure near-end signal and a pure echo signal.

[0049] The pure near-end signal and the pure echo signal are mixed to obtain a second mixed signal.

[0050] The second mixed signal and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value, and the first estimated masking value and the spectrum of the second mixed signal are processed according to a first preset processing rule to obtain an estimated near-end signal.

[0051] Specifically, there are many ways to determine the pure near-end signal and the pure echo signal by presetting the screening rules. Figure 4 A schematic diagram of the principle of signal screening provided by the embodiment of the present disclosure, such as Figure 4As shown, the acquired signal to be processed can be judged first to determine whether the far-end signal exists. If the far-end signal does not exist, it can be determined that the acquired signal to be processed is a pure near-end signal. If the far-end signal exists, it continues to determine whether the near-end signal exists. If the near-end signal does not exist, it can be determined that the signal to be processed is a pure echo signal. If the near-end signal exists, it can be determined that the signal to be processed is a non-trainable signal. Among them, the signals in which the double-talk signal and the mixed signal are zero (that is, there is no near-end signal and no far-end signal) are all signals that cannot be used for training. In addition, judging the pure near-end signal only requires checking whether the far-end signal is 0, but judging the pure echo signal needs to rely on other methods to achieve.

[0052] In this embodiment, the preset screening rules can be implemented in two ways, one is to implement it by pre-training a network model, and the other is to implement it by traditional nonlinear echo processing.

[0053] Furthermore, for the method of pre-training a network model, the specific implementation process may be:

[0054] For each signal to be processed, it is determined whether the signal to be processed includes a remote signal.

[0055] If not, it is determined that the signal to be processed is a pure near-end signal;

[0056] If so, the signal to be processed is input into the pre-trained two-way talk detection network model for identification to determine whether the signal to be processed is a pure echo signal or an untrainable signal.

[0057] Specifically, the pre-trained two-way talk detection network model can be a small DTD (double talk detector) neural network (can be a network of the type of DNN, CNN or RNN, etc.). During the training process, the mixed signal and the far-end signal can be used as input signals, and the features of the input signals can be extracted (the features can be time domain features, short-time Fourier spectrum features, log short-time Fourier spectrum features or Mel spectrum features, etc.) and input into the neural network, and the state of DTD (pure near-end state, pure echo state, double talk state) is used as the target classification label for network training. The trained network can be used to predict the pure echo state and the double talk state (pure near-end signal and pure echo signal exist at the same time).

[0058] In addition, for the traditional nonlinear echo processing method, the specific implementation process can be:

[0059] For each signal to be processed, it is determined whether the signal to be processed includes a remote signal.

[0060] If not, it is determined that the signal to be processed is a pure near-end signal.

[0061] If yes, the signal to be processed is processed based on a preset nonlinear echo processing rule to determine a masking value corresponding to the signal to be processed. If the masking value corresponding to the signal to be processed is 0, the signal to be processed is a pure echo signal.

[0062] Specifically, the type of the signal to be processed can be determined by relying on a traditional nonlinear echo processing (NLP) module. If the calculated NLP masking values ​​are all 0, the signal to be processed is a pure echo signal. If the NLP masking value is between 0 and 1, the signal to be processed is a double-talk signal.

[0063] Among them, the specific implementation process of processing the first estimated masking value and the spectrum of the second mixed signal according to the first preset processing rule to obtain the estimated near-end signal can be: multiplying the first estimated masking value and the spectrum of the second mixed signal, and performing a short-time inverse Fourier transform to obtain the estimated near-end signal in the time domain.

[0064] In addition, by mixing the pure near-end signal and the pure echo signal to obtain a second mixed signal, and directly inputting the second mixed signal into the pre-trained two-way talk detection network model for identification, the two-way talk detection network model can better learn the corresponding characteristics of the residual echo signal between the far-end signal and the mixed signal, thereby improving the training speed of the network model.

[0065] In another embodiment, after the pure near-end signal and the pure echo signal are mixed to obtain a second mixed signal, the method may further include:

[0066] The second mixed signal is subjected to linear echo cancellation processing based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echo.

[0067] Correspondingly, the second mixed signal and the far-end signal are input into the pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value, and the first estimated masking value and the spectrum of the second mixed signal are processed according to a first preset processing rule to obtain an estimated near-end signal, which may specifically include:

[0068] The second mixed signal of the residual nonlinear echo and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a second estimated masking value, and the frequency spectrum of the second estimated masking value and the second mixed signal of the residual nonlinear echo is processed according to a second preset processing rule to obtain an estimated near-end signal.

[0069] Among them, the frequency spectrum of the second mixed signal of the second estimated masking value and the residual nonlinear echo is processed according to the second preset processing rule to obtain the estimated near-end signal. The specific implementation process can be: multiplying the frequency spectrum of the second estimated masking value and the second mixed signal of the residual nonlinear echo, and performing a short-time inverse Fourier transform to obtain the estimated near-end signal in the time domain.

[0070] In this embodiment, after obtaining the second mixed signal, linear echo elimination processing can be performed on the second mixed signal based on a preset elimination rule to obtain a second mixed signal with residual nonlinear echoes, and then features are extracted based on the second mixed signal with residual nonlinear echoes and the far-end signal, etc., to finally determine the estimated near-end signal. By performing additional processing on the second mixed signal, the difference between the second mixed signal and the far-end signal, as well as the near-end signal, etc. is made more obvious, which facilitates the network model to better distinguish between the signals.

[0071] Further, performing linear echo cancellation processing on the second mixed signal based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echoes may specifically include:

[0072] The second mixed signal is subjected to linear echo cancellation processing by an adaptive linear filter to obtain a second mixed signal with residual nonlinear echo, wherein the adaptive linear filter is a minimum mean square adaptive filter method, a block delay frequency domain adaptive algorithm or a recursive minimum mean square filter.

[0073] S303: If it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined according to other traditional models is sent to the far end for playback, and after the weight value of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0074] In this embodiment, after the estimated masking value is determined, the cancellation accuracy of the pre-trained echo cancellation model can be determined according to the estimated masking value, and then whether the echo cancellation model needs to be further trained can be determined according to the cancellation accuracy.

[0075] Specifically, in one implementation, if it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset condition, the estimated near-end signal or the substitute estimated near-end signal determined according to other models is sent to the far end for playback, and after the weight of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition, which may specifically include:

[0076] The label is extracted according to the second mixed signal of the residual nonlinear echo and the pure near-end signal, and a first target masking value is determined.

[0077] A first difference between the first target masking value and the second estimated near-end signal is determined, and a cancellation accuracy of the pre-trained echo cancellation model is determined based on the first difference.

[0078] Whether the pre-trained echo cancellation model meets the preset conditions is determined according to the cancellation accuracy.

[0079] If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other models is sent to the far end for playback, and after the weights of the pre-trained echo cancellation model are updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0080] In this implementation, a label can be extracted based on the second mixed signal of the residual nonlinear echo after additional processing and the pure near-end signal, and a first target masking value can be determined, and then the cancellation accuracy of the pre-trained echo cancellation model can be determined based on the first difference between the first target masking value and the second estimated near-end signal. The method of determining the cancellation accuracy of the pre-trained echo cancellation model based on the first difference between the first target masking value and the second estimated near-end signal can be determined using an existing method, which will not be discussed in detail here.

[0081] In another implementation, if it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset condition, the estimated near-end signal or the substitute estimated near-end signal determined according to other models is sent to the far end for playback, and after the weight of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition, which may specifically include:

[0082] The label is extracted according to the second mixed signal and the pure near-end signal, and a second target masking value is determined.

[0083] A second difference between the second target masking value and the first estimated near-end signal is determined, and a cancellation accuracy of the pre-trained echo cancellation model is determined based on the second difference.

[0084] Whether the pre-trained echo cancellation model meets the preset conditions is determined according to the cancellation accuracy.

[0085] If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other models is sent to the far end for playback, and after the weights of the pre-trained echo cancellation model are updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0086] In this implementation, the second mixed signal without additional processing and the pure near-end signal are used to extract the label. The remaining process is the same as the principle of the aforementioned implementation and will not be discussed in detail here.

[0087] The extracted labels may be a time domain waveform, a log spectrum, a Mel-Frequency Ceptral Coefficients (MFCC) spectrum, etc. of the speech.

[0088] In addition, the first target masking value and the second target masking value may also be replaced by an ideal amplitude masking value, an ideal ratio masking value, a Wiener filter masking value, an ideal binary masking value, or the like.

[0089] In addition, in the above two implementation methods, the extracted label may not be the target masking value, but the target pure near-end signal. Correspondingly, the echo cancellation model outputs the estimated near-end signal. Then, the difference between the target pure near-end signal and the estimated near-end signal output by the echo cancellation model can be determined, and the cancellation accuracy of the pre-trained echo cancellation model can be determined based on the difference.

[0090] The neural network structure of the pre-trained echo cancellation model can be various types of network structures and their extensions, such as DNN (deep neural network), CNN (convolutional neural network) or RNN (recursive neural network).

[0091] In addition, after determining the elimination accuracy, it can be determined whether the elimination accuracy meets the preset conditions, and further processing can be performed according to the judgment result. Among them, the judgment result can include two situations, one is that the elimination accuracy meets the preset conditions, and the other is that the elimination accuracy does not meet the preset conditions. If the elimination accuracy meets the preset conditions, the pre-trained echo cancellation model can be directly used to process the received multiple signals to be processed, and finally an estimated near-end signal is obtained, and the obtained estimated near-end signal is sent to the far end for playback. If the elimination accuracy does not meet the preset conditions, the pre-trained echo cancellation model can be trained until the preset conditions are met.

[0092] Furthermore, if the elimination accuracy does not meet the preset conditions, the specific process may be:

[0093] In one implementation, if the elimination accuracy is not less than a first preset accuracy threshold and not greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

[0094] A loss function is determined according to the estimated masking value, and then the weight value of the pre-trained echo cancellation model is reversely updated according to the loss function.

[0095] After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is greater than the second preset accuracy threshold.

[0096] In another implementation, if the elimination accuracy is less than a first preset accuracy threshold, a replacement estimated near-end signal estimated by other traditional models is sent to the far-end for playback.

[0097] A loss function is determined according to the estimated masking value, and then the weight value of the pre-trained echo cancellation model is reversely updated according to the loss function.

[0098] After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is not less than the first preset accuracy threshold and not greater than the second preset accuracy threshold.

[0099] Among them, other traditional models can be traditional nonlinear echo processing algorithms or other offline trained deep learning network models.

[0100] In addition, if the elimination accuracy meets the preset conditions, the method may further include:

[0101] If the elimination accuracy is greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

[0102] Specifically, the relationship between the first preset accuracy threshold and the second preset accuracy threshold can be used to determine whether it is necessary to continue training the echo cancellation model. The second preset accuracy threshold is greater than the first preset accuracy threshold. Exemplarily, the second preset accuracy threshold can be any value between 95% and 98%. The first preset accuracy threshold can be any value between 88% and 94%. In addition, the first preset accuracy threshold can also be equal to the second preset accuracy threshold. In this case, the training of the echo cancellation model can be stopped when it is determined that the elimination accuracy is equal to the first preset accuracy threshold or the second preset accuracy threshold.

[0103] After adopting the above scheme, a plurality of signals to be processed can be received first, wherein each of the signals to be processed includes a far-end signal sent by the far-end and / or a first mixed signal corresponding to the far-end signal received by the near-end. An estimated masking value is obtained according to the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed and a pre-trained echo cancellation model, and then an estimated near-end signal is determined according to the estimated masking value. If the pre-trained echo cancellation model determined according to the estimated masking value does not meet the preset condition, the estimated near-end signal or an alternative estimated near-end signal determined according to other traditional models is sent to the far-end for playback, and after the weight value of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving a plurality of signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition. By first determining an estimated masking value based on the pre-trained network model, then determining the accuracy of the network model according to the estimated masking value, and judging the relationship between the accuracy of the network model and the preset condition, it is determined whether the network model needs to be trained online, thereby improving the accuracy of the network model in eliminating echoes, thereby improving the user experience.

[0104] based on Figure 3 The method, the examples of this specification also provide some specific implementation plans of the method, which are described below.

[0105] In addition, in another embodiment, determining a loss function according to the estimated masking value, and then inversely updating the weight value of the pre-trained echo cancellation model according to the loss function may specifically include:

[0106] Determine the processor model of the processing device.

[0107] The update time interval and the number of model update layers are determined according to the processor model.

[0108] Then, updating the weight value of the pre-trained echo cancellation model according to the remote signal and / or the first mixed signal corresponding to the plurality of signals to be processed includes:

[0109] When it is determined that the current resources occupied by the processor of the processing device are not greater than the preset resource occupation threshold and the update time interval is reached, the loss function is determined according to the estimated masking value, and then the weight value corresponding to the number of model update layers in the pre-trained echo cancellation model is reversely updated according to the loss function.

[0110] In this embodiment, the processing device may be a server or a terminal device. Preferably, in order to improve the processing speed of batch data and the security of data, the processing device may be set as a local terminal device.

[0111] The loss function may be determined according to the estimated masking value predicted by the echo cancellation model in an existing manner, which will not be discussed in detail here.

[0112] Figure 5 A schematic diagram of a flow chart of updating weights of an echo cancellation model provided in an embodiment of the present disclosure, such as Figure 5 As shown, in this embodiment, the appropriate number of model update layers and update time interval can be selected according to the processor performance of the processing device. In the initialization stage, the processor model can be detected first to determine the update time interval of the network and the number of updated network weight layers during online training. After caching a certain amount of training data, check the current processor occupancy. If the update time has been reached and the processor occupancy is low, start the back propagation of the neural network and update the weights once. After the update, check whether the network has reached the optimal state. If so, stop the online training. If not, continue the above training process, that is, select the updated model update layer number according to the performance of the processing device through the back propagation of the deep learning model, without being limited to updating all network layers.

[0113] Corresponding to the echo cancellation method of the above embodiment, Figure 6 This is a schematic diagram of the structure of the echo cancellation device provided by the embodiment of the present disclosure. For the convenience of description, only the parts related to the embodiment of the present disclosure are shown.

[0114] Reference Figure 6 , the device may include:

[0115] The receiving module 601 is configured to receive a plurality of signals to be processed, wherein each signal to be processed includes a remote-end signal sent by a remote end and / or a first mixed signal corresponding to the remote-end signal received by a near end.

[0116] The processing module 602 is configured to obtain an estimated masking value according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed and a pre-trained echo cancellation model, and determine an estimated near-end signal according to the estimated masking value.

[0117] In this embodiment, the processing module is further used for:

[0118] The far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed are screened based on a preset screening rule to obtain a pure near-end signal and a pure echo signal.

[0119] Mixing the pure near-end signal and the pure echo signal to obtain a second mixed signal;

[0120] The second mixed signal and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value, and the first estimated masking value and the spectrum of the second mixed signal are processed according to a first preset processing rule to obtain an estimated near-end signal.

[0121] Furthermore, in one implementation, the processing module is further configured to:

[0122] For each of the signals to be processed, it is determined whether the signal to be processed includes a far-end signal.

[0123] If not, it is determined that the signal to be processed is a pure near-end signal.

[0124] If so, the signal to be processed is input into a pre-trained two-way talk detection network model for identification, and it is determined that the signal to be processed is a pure echo signal or an untrainable signal.

[0125] In another implementation, the processing module is further configured to:

[0126] For each of the signals to be processed, determining whether the signal to be processed includes a remote signal;

[0127] If not, determining that the signal to be processed is a pure near-end signal;

[0128] If yes, the signal to be processed is processed based on a preset nonlinear echo processing rule to determine a masking value corresponding to the signal to be processed;

[0129] If the masking value corresponding to the signal to be processed is 0, the signal to be processed is a pure echo signal.

[0130] In addition, the processing module is also used for:

[0131] The second mixed signal is subjected to linear echo cancellation processing based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echo.

[0132] The second mixed signal of the residual nonlinear echo and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a second estimated masking value, and the frequency spectrum of the second estimated masking value and the second mixed signal of the residual nonlinear echo is processed according to a second preset processing rule to obtain an estimated near-end signal.

[0133] Wherein, the processing module is also used for:

[0134] The second mixed signal is subjected to linear echo cancellation processing by an adaptive linear filter to obtain a second mixed signal with residual nonlinear echo, wherein the adaptive linear filter is a minimum mean square adaptive filter method, a block delay frequency domain adaptive algorithm or a recursive minimum mean square filter.

[0135] In one implementation, the processing module 602 is further configured to:

[0136] The label is extracted according to the second mixed signal of the residual nonlinear echo and the pure near-end signal, and a first target masking value is determined.

[0137] A first difference between the first target masking value and the second estimated masking value is determined, and a cancellation accuracy of the pre-trained echo cancellation model is determined based on the first difference.

[0138] It is determined whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy.

[0139] If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other models is sent to the far end for playback, and after the weights of the pre-trained echo cancellation model are updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0140] In another implementation, the processing module 602 is further configured to:

[0141] A label is extracted according to the second mixed signal and the pure near-end signal, and a second target masking value is determined.

[0142] A second difference between the second target masking value and the first estimated masking value is determined, and a cancellation accuracy of the pre-trained echo cancellation model is determined based on the second difference.

[0143] It is determined whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy.

[0144] If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other models is sent to the far end for playback, and after the weights of the pre-trained echo cancellation model are updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0145] Furthermore, the processing module 602 is further configured to:

[0146] If the elimination accuracy is not less than a first preset accuracy threshold and is not greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

[0147] A loss function is determined according to the estimated masking value, and then the weight value of the pre-trained echo cancellation model is reversely updated according to the loss function.

[0148] After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is greater than the second preset accuracy threshold.

[0149] In addition, the processing module 602 is further used for:

[0150] If the elimination accuracy is less than a first preset accuracy threshold, the alternative estimated near-end signal estimated by other traditional models is sent to the far-end for playback.

[0151] A loss function is determined according to the estimated masking value, and then the weight value of the pre-trained echo cancellation model is reversely updated according to the loss function.

[0152] After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is not less than the first preset accuracy threshold and not greater than the second preset accuracy threshold.

[0153] In addition, the processing module 602 is also used for:

[0154] If the elimination accuracy is greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

[0155] In addition, in another embodiment, the processing module 602 is further configured to:

[0156] Determine the processor model of the processing device.

[0157] The update time interval and the number of model update layers are determined according to the processor model.

[0158] When it is determined that the resources currently occupied by the processor of the processing device are not greater than the preset resource occupation threshold and the update time interval is reached, the loss function is determined according to the estimated masking value, and then the weight value corresponding to the number of model update layers in the pre-trained echo cancellation model is reversely updated according to the loss function.

[0159] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0160] refer to Figure 7 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present disclosure, and the electronic device 700 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0161] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. Various programs and data required for the operation of the electronic device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0162] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0163] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0164] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0165] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0166] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0167] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0168] The present disclosure also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0169] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0170] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0171] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0172] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0173] In a first aspect, according to one or more embodiments of the present disclosure, there is provided an echo cancellation method, comprising:

[0174] A plurality of signals to be processed are received, wherein each of the signals to be processed includes a far-end signal sent by a far-end and / or a first mixed signal corresponding to the far-end signal received by a near-end.

[0175] An estimated masking value is obtained according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed and a pre-trained echo cancellation model, and an estimated near-end signal is determined according to the estimated masking value.

[0176] If it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined according to other traditional models is sent to the far end for playback, and after the weight value of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0177] According to one or more embodiments of the present disclosure, obtaining an estimated masking value according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed and a pre-trained echo cancellation model, and determining an estimated near-end signal according to the estimated masking value includes:

[0178] The far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed are screened based on a preset screening rule to obtain a pure near-end signal and a pure echo signal.

[0179] Mixing the pure near-end signal and the pure echo signal to obtain a second mixed signal;

[0180] The second mixed signal and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value, and the first estimated masking value and the spectrum of the second mixed signal are processed according to a first preset processing rule to obtain an estimated near-end signal.

[0181] According to one or more embodiments of the present disclosure, the filtering of the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed based on a preset filtering rule to obtain a pure near-end signal and a pure echo signal includes:

[0182] For each of the signals to be processed, it is determined whether the signal to be processed includes a far-end signal.

[0183] If not, it is determined that the signal to be processed is a pure near-end signal.

[0184] If so, the signal to be processed is input into a pre-trained two-way talk detection network model for identification, and it is determined that the signal to be processed is a pure echo signal or an untrainable signal.

[0185] According to one or more embodiments of the present disclosure, the filtering of the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed based on a preset filtering rule to obtain a pure near-end signal and a pure echo signal includes:

[0186] For each of the signals to be processed, determining whether the signal to be processed includes a remote signal;

[0187] If not, it is determined that the signal to be processed is a pure near-end signal.

[0188] If yes, the signal to be processed is processed based on a preset nonlinear echo processing rule to determine a masking value corresponding to the signal to be processed.

[0189] If the masking value corresponding to the signal to be processed is 0, the signal to be processed is a pure echo signal.

[0190] According to one or more embodiments of the present disclosure, after the pure near-end signal and the pure echo signal are mixed to obtain a second mixed signal, the method further includes:

[0191] The second mixed signal is subjected to linear echo cancellation processing based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echo.

[0192] Then the second mixed signal and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value, and the frequency spectrum of the first estimated masking value and the second mixed signal is processed according to a first preset processing rule to obtain an estimated near-end signal, including:

[0193] The second mixed signal of the residual nonlinear echo and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a second estimated masking value, and the frequency spectrum of the second estimated masking value and the second mixed signal of the residual nonlinear echo is processed according to a second preset processing rule to obtain an estimated near-end signal.

[0194] According to one or more embodiments of the present disclosure, performing linear echo cancellation processing on the second mixed signal based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echoes includes:

[0195] The second mixed signal is subjected to linear echo cancellation processing by an adaptive linear filter to obtain a second mixed signal with residual nonlinear echo, wherein the adaptive linear filter is a minimum mean square adaptive filter method, a block delay frequency domain adaptive algorithm or a recursive minimum mean square filter.

[0196] According to one or more embodiments of the present disclosure, if it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset condition, the estimated near-end signal or the substitute estimated near-end signal determined according to other models is sent to the far end for playback, and after the weight of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition, including:

[0197] The label is extracted according to the second mixed signal of the residual nonlinear echo and the pure near-end signal, and a first target masking value is determined.

[0198] A first difference between the first target masking value and the second estimated masking value is determined, and a cancellation accuracy of the pre-trained echo cancellation model is determined based on the first difference.

[0199] It is determined whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy.

[0200] If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other models is sent to the far end for playback, and after the weights of the pre-trained echo cancellation model are updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0201] According to one or more embodiments of the present disclosure, if it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset condition, the estimated near-end signal or the substitute estimated near-end signal determined according to other models is sent to the far end for playback, and after the weight of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition, including:

[0202] A label is extracted according to the second mixed signal and the pure near-end signal, and a second target masking value is determined.

[0203] A second difference between the second target masking value and the first estimated masking value is determined, and a cancellation accuracy of the pre-trained echo cancellation model is determined based on the second difference.

[0204] It is determined whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy.

[0205] If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other models is sent to the far end for playback, and after the weights of the pre-trained echo cancellation model are updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0206] According to one or more embodiments of the present disclosure, if it is determined according to the cancellation accuracy that the pre-trained echo cancellation model does not meet the preset condition, the estimated near-end signal is sent to the far-end for playback, and after the weight of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition, including:

[0207] If the elimination accuracy is not less than a first preset accuracy threshold and is not greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

[0208] A loss function is determined according to the estimated masking value, and then the weight value of the pre-trained echo cancellation model is reversely updated according to the loss function.

[0209] After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is greater than the second preset accuracy threshold.

[0210] According to one or more embodiments of the present disclosure, if it is determined according to the cancellation accuracy that the pre-trained echo cancellation model does not meet the preset condition, a substitute estimated near-end signal determined according to other models is sent to the far-end for playback, and after updating the weight of the pre-trained echo cancellation model according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition, including:

[0211] If the elimination accuracy is less than a first preset accuracy threshold, the alternative estimated near-end signal estimated by other traditional models is sent to the far-end for playback.

[0212] A loss function is determined according to the estimated masking value, and then the weight value of the pre-trained echo cancellation model is reversely updated according to the loss function.

[0213] After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is not less than the first preset accuracy threshold and not greater than the second preset accuracy threshold.

[0214] According to one or more embodiments of the present disclosure, the method further includes:

[0215] If the elimination accuracy is greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

[0216] According to one or more embodiments of the present disclosure, the step of determining a loss function according to the estimated masking value, and then reversely updating a weight value of the pre-trained echo cancellation model according to the loss function includes:

[0217] Determine the processor model of the processing device.

[0218] The update time interval and the number of model update layers are determined according to the processor model.

[0219] When it is determined that the resources currently occupied by the processor of the processing device are not greater than the preset resource occupation threshold and the update time interval is reached, the loss function is determined according to the estimated masking value, and then the weight value corresponding to the number of model update layers in the pre-trained echo cancellation model is reversely updated according to the loss function.

[0220] In a second aspect, according to one or more embodiments of the present disclosure, an echo cancellation device is provided, comprising:

[0221] The receiving module is used to receive a plurality of signals to be processed, wherein each of the signals to be processed includes a far-end signal sent by a far-end and / or a first mixed signal corresponding to the far-end signal received by a near-end.

[0222] The processing module is used to obtain an estimated masking value according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed and a pre-trained echo cancellation model, and determine an estimated near-end signal according to the estimated masking value.

[0223] The processing module is further used to send the estimated near-end signal or an alternative estimated near-end signal determined according to other traditional models to the far end for playback if it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset conditions, and after updating the weight value of the pre-trained echo cancellation model according to the estimated masking value, re-execute the step of receiving multiple signals to be processed until the re-trained echo cancellation model meets the preset conditions.

[0224] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0225] The far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed are screened based on a preset screening rule to obtain a pure near-end signal and a pure echo signal.

[0226] Mixing the pure near-end signal and the pure echo signal to obtain a second mixed signal;

[0227] The second mixed signal and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value, and the first estimated masking value and the spectrum of the second mixed signal are processed according to a first preset processing rule to obtain an estimated near-end signal.

[0228] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0229] For each of the signals to be processed, it is determined whether the signal to be processed includes a far-end signal.

[0230] If not, it is determined that the signal to be processed is a pure near-end signal.

[0231] If so, the signal to be processed is input into a pre-trained two-way talk detection network model for identification, and it is determined that the signal to be processed is a pure echo signal or an untrainable signal.

[0232] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0233] For each of the signals to be processed, it is determined whether the signal to be processed includes a far-end signal.

[0234] If not, it is determined that the signal to be processed is a pure near-end signal.

[0235] If yes, the signal to be processed is processed based on a preset nonlinear echo processing rule to determine a masking value corresponding to the signal to be processed.

[0236] If the masking value corresponding to the signal to be processed is 0, the signal to be processed is a pure echo signal.

[0237] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0238] The second mixed signal is subjected to linear echo cancellation processing based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echo.

[0239] The second mixed signal of the residual nonlinear echo and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a second estimated masking value, and the frequency spectrum of the second estimated masking value and the second mixed signal of the residual nonlinear echo is processed according to a second preset processing rule to obtain an estimated near-end signal.

[0240] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0241] The second mixed signal is subjected to linear echo cancellation processing by an adaptive linear filter to obtain a second mixed signal with residual nonlinear echo, wherein the adaptive linear filter is a minimum mean square adaptive filter method, a block delay frequency domain adaptive algorithm or a recursive minimum mean square filter.

[0242] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0243] The label is extracted according to the second mixed signal of the residual nonlinear echo and the pure near-end signal, and a first target masking value is determined.

[0244] A first difference between the first target masking value and the second estimated masking value is determined, and a cancellation accuracy of the pre-trained echo cancellation model is determined based on the first difference.

[0245] It is determined whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy.

[0246] If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other models is sent to the far end for playback, and after the weights of the pre-trained echo cancellation model are updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0247] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0248] A label is extracted according to the second mixed signal and the pure near-end signal, and a second target masking value is determined.

[0249] A second difference between the second target masking value and the first estimated masking value is determined, and a cancellation accuracy of the pre-trained echo cancellation model is determined based on the second difference.

[0250] It is determined whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy.

[0251] If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other models is sent to the far end for playback, and after the weights of the pre-trained echo cancellation model are updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

[0252] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0253] If the elimination accuracy is not less than a first preset accuracy threshold and is not greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

[0254] A loss function is determined according to the estimated masking value, and then the weight value of the pre-trained echo cancellation model is reversely updated according to the loss function.

[0255] After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is greater than the second preset accuracy threshold.

[0256] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0257] If the elimination accuracy is less than a first preset accuracy threshold, the alternative estimated near-end signal estimated by other traditional models is sent to the far-end for playback.

[0258] A loss function is determined according to the estimated masking value, and then the weight value of the pre-trained echo cancellation model is reversely updated according to the loss function.

[0259] After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is not less than the first preset accuracy threshold and not greater than the second preset accuracy threshold.

[0260] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0261] If the elimination accuracy is greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

[0262] According to one or more embodiments of the present disclosure, the processing module is further configured to:

[0263] Determine the processor model of the processing device.

[0264] The update time interval and the number of model update layers are determined according to the processor model.

[0265] When it is determined that the resources currently occupied by the processor of the processing device are not greater than the preset resource occupation threshold and the update time interval is reached, the loss function is determined according to the estimated masking value, and then the weight value corresponding to the number of model update layers in the pre-trained echo cancellation model is reversely updated according to the loss function.

[0266] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0267] The memory stores computer-executable instructions;

[0268] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the echo cancellation method as described in the first aspect and various possible designs of the first aspect.

[0269] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the echo cancellation method described in the first aspect and various possible designs of the first aspect is implemented.

[0270] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the echo cancellation method described in the first aspect and various possible designs of the first aspect is implemented.

[0271] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0272] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0273] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. An echo cancellation method, the method comprising: Receiving a plurality of signals to be processed, wherein each of the signals to be processed includes a remote-end signal sent by a remote end and / or a first mixed signal corresponding to the remote-end signal received by a near end; Obtain an estimated masking value according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed and a pre-trained echo cancellation model, and determine an estimated near-end signal according to the estimated masking value; If it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset condition, the estimated near-end signal or the substitute estimated near-end signal determined according to other traditional models is sent to the far end for playback, and after the weight value of the pre-trained echo cancellation model is updated according to the estimated masking value, the step of receiving a plurality of signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition; The step of obtaining an estimated masking value according to the remote signal and / or the first mixed signal corresponding to the plurality of signals to be processed and a pre-trained echo cancellation model includes: Based on a preset screening rule, the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed are screened to obtain a pure near-end signal and a pure echo signal; Mixing the pure near-end signal and the pure echo signal to obtain a second mixed signal; Inputting the second mixed signal and the far-end signal into a pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value; The determining, according to the estimated masking value, that the pre-trained echo cancellation model does not meet a preset condition comprises: Extracting a label according to the second mixed signal and the pure near-end signal, and determining a second target masking value; Determine a second difference between the second target masking value and the first estimated masking value, and determine a cancellation accuracy of the pre-trained echo cancellation model based on the second difference; It is determined whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy.

2. The method according to claim 1, wherein: The determining an estimated near-end signal according to the estimated masking value comprises: The first estimated masking value and the frequency spectrum of the second mixed signal are processed according to a first preset processing rule to obtain an estimated near-end signal.

3. The method according to claim 1, wherein: The step of screening the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed based on a preset screening rule to obtain a pure near-end signal and a pure echo signal includes: For each of the signals to be processed, determining whether the signal to be processed includes a remote signal; If not, determining that the signal to be processed is a pure near-end signal; If so, the signal to be processed is input into a pre-trained two-way talk detection network model for identification, and it is determined that the signal to be processed is a pure echo signal or an untrainable signal.

4. The method according to claim 1, wherein: The step of screening the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed based on a preset screening rule to obtain a pure near-end signal and a pure echo signal includes: For each of the signals to be processed, determining whether the signal to be processed includes a remote signal; If not, determining that the signal to be processed is a pure near-end signal; If yes, the signal to be processed is processed based on a preset nonlinear echo processing rule to determine a masking value corresponding to the signal to be processed; If the masking value corresponding to the signal to be processed is 0, the signal to be processed is a pure echo signal.

5. The method according to claim 2, wherein: After the pure near-end signal and the pure echo signal are mixed to obtain a second mixed signal, the method further includes: Performing linear echo cancellation processing on the second mixed signal based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echo; Then the step of inputting the second mixed signal and the far-end signal into a pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value includes: Inputting the second mixed signal of the residual nonlinear echo and the far-end signal into a pre-trained echo cancellation model for echo cancellation processing to obtain a second estimated masking value; The step of processing the first estimated masking value and the spectrum of the second mixed signal according to a first preset processing rule to obtain an estimated near-end signal includes: The frequency spectrum of the second mixed signal of the second estimated masking value and the residual nonlinear echo is processed according to a second preset processing rule to obtain an estimated near-end signal.

6. The method according to claim 5, wherein: The performing linear echo cancellation processing on the second mixed signal based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echoes includes: The second mixed signal is subjected to linear echo cancellation processing by an adaptive linear filter to obtain a second mixed signal with residual nonlinear echo, wherein the adaptive linear filter is a minimum mean square adaptive filter method, a block delay frequency domain adaptive algorithm or a recursive minimum mean square filter.

7. The method according to claim 5, wherein: If it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset condition, the estimated near-end signal or the alternative estimated near-end signal determined according to other traditional models is sent to the far end for playback, and after updating the weight value of the pre-trained echo cancellation model according to the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset condition, including: Extracting a label according to the second mixed signal of the residual nonlinear echo and the pure near-end signal, and determining a first target masking value; Determine a first difference between the first target masking value and the second estimated masking value, and determine a cancellation accuracy of the pre-trained echo cancellation model based on the first difference; Determining whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy rate; If it is determined based on the elimination accuracy that the pre-trained echo cancellation model does not meet the preset conditions, the estimated near-end signal or the alternative estimated near-end signal determined based on other traditional models is sent to the far end for playback, and after the weight value of the pre-trained echo cancellation model is updated based on the estimated masking value, the step of receiving multiple signals to be processed is re-executed until the re-trained echo cancellation model meets the preset conditions.

8. The method according to claim 1, wherein: The preset conditions include: The elimination accuracy is not less than a first preset accuracy threshold and not greater than a second preset accuracy threshold; The step of sending the estimated near-end signal or the substitute estimated near-end signal determined according to other traditional models to the far-end for playback, and after updating the weight value of the pre-trained echo cancellation model according to the estimated masking value, re-performing the step of receiving a plurality of signals to be processed until the re-trained echo cancellation model meets the preset condition, includes: sending the estimated near-end signal to the far-end for playback; Determine a loss function according to the estimated masking value, and then reversely update the weight value of the pre-trained echo cancellation model according to the loss function; After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is greater than the second preset accuracy threshold.

9. The method according to claim 1, wherein: The preset conditions include: The elimination accuracy is less than a first preset accuracy threshold; The step of sending the estimated near-end signal or the substitute estimated near-end signal determined according to other traditional models to the far-end for playback, and after updating the weight value of the pre-trained echo cancellation model according to the estimated masking value, re-performing the step of receiving a plurality of signals to be processed until the re-trained echo cancellation model meets the preset condition, includes: sending a substitute estimated near-end signal estimated by other conventional models to the far-end for playback; Determine a loss function according to the estimated masking value, and then reversely update the weight value of the pre-trained echo cancellation model according to the loss function; After the weight value of the pre-trained echo cancellation model is updated, the steps of receiving the signal to be processed and subsequent steps are re-executed until the cancellation accuracy of the updated echo cancellation model is not less than the first preset accuracy threshold and not greater than the second preset accuracy threshold.

10. The method according to claim 8 or 9, wherein: The method further comprises: If the elimination accuracy is greater than a second preset accuracy threshold, the estimated near-end signal is sent to the far-end for playback.

11. The method according to claim 8, wherein: The step of determining a loss function according to the estimated masking value, and then reversely updating a weight value of the pre-trained echo cancellation model according to the loss function, comprises: Determine the processor model of the processing device; Determine the update time interval and the number of model update layers according to the processor model; When it is determined that the resources currently occupied by the processor of the processing device are not greater than the preset resource occupation threshold and the update time interval is reached, the loss function is determined according to the estimated masking value, and then the weight value corresponding to the number of model update layers in the pre-trained echo cancellation model is reversely updated according to the loss function.

12. An echo cancellation device, comprising: A receiving module, configured to receive a plurality of signals to be processed, wherein each of the signals to be processed includes a remote-end signal sent by a remote end and / or a first mixed signal corresponding to the remote-end signal received by a near end; A processing module, configured to obtain an estimated masking value according to the far-end signal and / or the first mixed signal corresponding to the multiple signals to be processed and a pre-trained echo cancellation model, and determine an estimated near-end signal according to the estimated masking value; The processing module is further configured to, if it is determined according to the estimated masking value that the pre-trained echo cancellation model does not meet the preset condition, send the estimated near-end signal or the substitute estimated near-end signal determined according to other traditional models to the far-end for playback, and after updating the weight value of the pre-trained echo cancellation model according to the estimated masking value, re-execute the step of receiving multiple signals to be processed until the re-trained echo cancellation model meets the preset condition; Wherein, the processing module is also used for: Based on a preset screening rule, the far-end signal and / or the first mixed signal corresponding to the plurality of signals to be processed are screened to obtain a pure near-end signal and a pure echo signal; Mixing the pure near-end signal and the pure echo signal to obtain a second mixed signal; Inputting the second mixed signal and the far-end signal into a pre-trained echo cancellation model for echo cancellation processing to obtain a first estimated masking value, and processing the first estimated masking value and the spectrum of the second mixed signal according to a first preset processing rule to obtain an estimated near-end signal; The processing module is also used for: Extracting a label according to the second mixed signal and the pure near-end signal, and determining a second target masking value; Determine a second difference between the second target masking value and the first estimated masking value, and determine a cancellation accuracy of the pre-trained echo cancellation model based on the second difference; It is determined whether the pre-trained echo cancellation model meets a preset condition according to the cancellation accuracy.

13. The device according to claim 12, wherein: The processing module is further used for: For each of the signals to be processed, determining whether the signal to be processed includes a remote signal; If not, determining that the signal to be processed is a pure near-end signal; If so, the signal to be processed is input into a pre-trained two-way talk detection network model for identification, and it is determined that the signal to be processed is a pure echo signal or an untrainable signal.

14. The device according to claim 12, wherein: The processing module is further used for: For each of the signals to be processed, determining whether the signal to be processed includes a remote signal; If not, determining that the signal to be processed is a pure near-end signal; If yes, the signal to be processed is processed based on a preset nonlinear echo processing rule to determine a masking value corresponding to the signal to be processed; If the masking value corresponding to the signal to be processed is 0, the signal to be processed is a pure echo signal.

15. The device according to claim 12, wherein: The processing module is further used for: Performing linear echo cancellation processing on the second mixed signal based on a preset cancellation rule to obtain a second mixed signal with residual nonlinear echo; The second mixed signal of the residual nonlinear echo and the far-end signal are input into a pre-trained echo cancellation model for echo cancellation processing to obtain a second estimated masking value, and the frequency spectrum of the second estimated masking value and the second mixed signal of the residual nonlinear echo is processed according to a second preset processing rule to obtain an estimated near-end signal.

16. An electronic device, comprising: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the echo cancellation method according to any one of claims 1 to 11.

17. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the echo cancellation method according to any one of claims 1 to 11 is implemented.