Time delay estimation method, echo cancellation method, training method, and related apparatuses

Through the combination of multiple filters and neural network models, the problems of high complexity and low accuracy of delay estimation in the existing technology are solved, efficient delay estimation and echo cancellation in noisy environments are achieved, and the quality of voice communication is improved. .

WO2024179500A1PCT designated stage expired Publication Date: 2024-09-06BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/078939
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2024-02-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, the cross-correlation algorithm for delay estimation has high computational complexity and is not suitable for real-time systems, and the audio fingerprint matching algorithm in WebRTC has reduced delay estimation accuracy in nonlinear echo and environmental noise environments.

Method used

Multiple filters are used to process the audio clips, combined with the neural network model, the matching information is extracted through the filters and the neural network is used to predict the delay probability, which reduces the computational complexity and improves the estimation accuracy.

Benefits of technology

It achieves the accuracy and robustness of delay estimation in high-complexity and noisy environments, improves processing efficiency and real-time performance, and performs echo cancellation through accurate delay estimation, improving the quality of voice communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078939_06092024_PF_FP
    Figure CN2024078939_06092024_PF_FP
Patent Text Reader

Abstract

A time delay estimation method, an echo cancellation method, a training method, related apparatuses, an electronic device, a computer readable storage medium, and a computer program, relating to the field of audio processing. The time delay estimation method comprises: using a plurality of filters to process a plurality of segments of first audio, wherein each segment comprises a plurality of consecutive frames, each filter is used for processing one segment of the first audio and second audio, and the second audio comprises corresponding content of the first audio (S102); and using a neural network model to process processing results of the plurality of filters to obtain a time delay estimation result of the corresponding content of the first audio in the second audio (S104). The method improves the precision of time delay estimation, and also has robustness in scenarios with noise and nonlinear echoes. In addition, the method also has high processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Delay estimation method, echo cancellation method, training method and related equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to an application filed in China with application number 202310199275.1 and filing date February 28, 2023. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field

[0003] The present disclosure relates to the field of audio processing, and in particular to a time delay estimation method, an echo cancellation method, a training method, and related devices. Background Art

[0004] In related technologies, the cross-correlation algorithm is mainly used for delay estimation, that is, the cross-correlation function between the near-end signal and the far-end signal is calculated, and the candidate time corresponding to the maximum cross-correlation coefficient is taken as the actual delay by traversing the cross-correlation coefficient of the candidate delays.

[0005] In the open-source WebRTC (Web Real-Time Communication), audio fingerprint matching is used to implement correlation operations. This involves performing a Fast Fourier Transform (FFT) on the far-end and near-end speech signals. The resulting spectrum is then used to obtain the binary spectra of the far-end and near-end speech signals, known as the audio fingerprint. By taking the bitwise exclusive-or value of the two, the candidate far-end signal with the highest similarity is selected, and the corresponding delay is calculated.

[0006] Summary of the Invention

[0007] According to a first aspect of some embodiments of the present disclosure, a time delay estimation method is provided, comprising: processing multiple segments of a first audio using multiple filters, wherein each segment includes multiple consecutive frames, and each filter is used to process a segment of the first audio and a second audio, wherein the second audio includes corresponding content of the first audio; and processing the processing results of the multiple filters using a neural network model to obtain a time delay estimation result of the corresponding content of the first audio in the second audio.

[0008] In some embodiments, processing multiple segments of the first audio using multiple filters includes: in a cache storing frames of the first audio, extracting segments of preset lengths starting from multiple positions to obtain multiple segments, wherein there is a preset interval between adjacent starting points; and inputting each extracted segment and the second audio into each of the multiple filters to obtain a processing result of each filter.

[0009] In some embodiments, the predetermined interval is less than the predetermined length.

[0010] In some embodiments, each filter includes multiple filter blocks, the number of filter blocks is equal to the number of frames in each segment, each filter block is used to estimate the echo present in the second audio based on the segment of the first audio, and subtract the estimated echo from the second audio to obtain an error, and use the error to update the weight of the filter, the energy sum of the weights of the filter block is the output of the filter block; and the processing result of each filter includes a set of outputs of each filter block of the filter.

[0011] In some embodiments, the filter is used to estimate matching information of the second audio to a segment of the first audio processed by the filter.

[0012] In some embodiments, the filter is a least mean square filter or a multi-delay block frequency domain adaptive filter.

[0013] In some embodiments, processing the processing results of multiple filters using a neural network model includes: splicing the processing results of multiple filters to generate input information; and processing the input information using a neural network model.

[0014] In some embodiments, the neural network model is used to predict the probabilities corresponding to various time delays, and the delay estimation result is the delay corresponding to the maximum probability.

[0015] In some embodiments, the number of weight parameters of the neural network model is less than 10 6 .

[0016] In some embodiments, the first audio is audio received from a transmitting end through a communication link, and the second audio is audio captured by an audio input device of a receiving end.

[0017] According to a second aspect of some embodiments of the present disclosure, there is provided an echo cancellation method, comprising: any one of the aforementioned delay estimation methods; and performing echo cancellation on a second audio based on a delay estimation result.

[0018] In some embodiments, the echo cancellation method further includes: receiving audio from the transmitting end through a communication link as the first audio; and collecting audio through an audio input device of the receiving end as the second audio.

[0019] According to a third aspect of some embodiments of the present disclosure, a training method is provided, including: performing delay processing on a third audio according to a target delay to obtain a fourth audio; processing multiple segments of the third audio using multiple filters, wherein each segment includes multiple consecutive frames, and each filter is used to process a segment of the third audio and a fourth audio, and the fourth audio includes corresponding content of the third audio; processing the processing results of the multiple filters using a neural network model to obtain a delay estimation result of the corresponding content of the third audio in the fourth audio; and adjusting the parameters of the neural network model according to the delay estimation result of the fourth audio and the target delay.

[0020] In some embodiments, delay processing is performed on the third audio according to the target delay to obtain the fourth audio, including: processing the fifth audio to obtain a simulated audio input device acquisition signal; processing the third audio to obtain an echo signal generated by the transmitting end signal at the receiving end; processing the simulated audio input device acquisition signal, the echo signal, and the noise signal to obtain a receiving end mixed signal; and delay processing is performed on the receiving end mixed signal according to the target delay to obtain the fourth audio.

[0021] According to a fourth aspect of some embodiments of the present disclosure, a time delay estimation device is provided, including: a first audio processing module, configured to use multiple filters to process multiple segments of a first audio, wherein each segment includes multiple consecutive frames, and each filter is used to process a segment of the first audio and a second audio, and the second audio includes corresponding content of the first audio; and a first estimation module, configured to use a neural network model to process the processing results of the multiple filters to obtain a time delay estimation result of the corresponding content of the first audio in the second audio.

[0022] According to a fifth aspect of some embodiments of the present disclosure, an echo cancellation device is provided, comprising: the aforementioned delay estimation device; and an echo cancellation module configured to perform echo cancellation on a second audio based on a delay estimation result.

[0023] In some embodiments, the echo cancellation apparatus further includes: a receiver configured to receive audio from a transmitter via a communication link as first audio; and an audio input device configured to collect audio as second audio.

[0024] According to a sixth aspect of some embodiments of the present disclosure, a training device is provided, including: a delay module, configured to perform delay processing on a third audio to obtain a fourth audio; a second audio processing module, configured to use multiple filters to process multiple segments of the third audio, wherein each segment includes multiple consecutive frames, and each filter is used to process a segment of the third audio and a fourth audio, and the fourth audio includes corresponding content of the third audio; a second estimation module, configured to use a neural network model to process the processing results of the multiple filters to obtain a delay estimation result of the corresponding content of the third audio in the fourth audio; a parameter adjustment module, configured to adjust the parameters of the neural network model according to the delay estimation result of the fourth audio and the target delay.

[0025] According to a seventh aspect of some embodiments of the present disclosure, an electronic device is provided, comprising: a memory; and a processor coupled to the memory, the processor being configured to execute any one of the aforementioned delay estimation methods, echo cancellation methods, or training methods based on instructions stored in the memory.

[0026] According to an eighth aspect of some embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, wherein when the program is executed by a processor, any one of the aforementioned delay estimation methods, echo cancellation methods, or training methods is implemented.

[0027] According to an eighth aspect of some embodiments of the present disclosure, a computer program is provided, comprising: instructions, which, when executed by a processor, cause the processor to execute any one of the aforementioned delay estimation methods, echo cancellation methods, or training methods.

[0028] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0030] FIG1 shows a schematic flow chart of a method for estimating time delay according to some embodiments of the present disclosure.

[0031] FIG2 shows a schematic flow chart of a filter processing method according to some embodiments of the present disclosure.

[0032] FIG3 exemplarily shows a schematic diagram of data processed by a data buffer and a filter.

[0033] FIG4 shows a schematic flow chart of an echo cancellation method according to some embodiments of the present disclosure.

[0034] FIG5 shows a flow chart of a neural network model training method according to some embodiments of the present disclosure.

[0035] FIG6 shows a schematic diagram of a process of mixing signals at a receiving end according to some embodiments of the present disclosure.

[0036] FIG7 shows a schematic structural diagram of a delay estimation device according to some embodiments of the present disclosure.

[0037] FIG8 shows a schematic structural diagram of an echo cancellation device according to some embodiments of the present disclosure.

[0038] FIG9 shows a schematic structural diagram of a training device according to some embodiments of the present disclosure.

[0039] FIG10 shows a schematic structural diagram of an electronic device according to some embodiments of the present disclosure.

[0040] FIG11 shows a schematic structural diagram of an electronic device according to other embodiments of the present disclosure. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is in no way intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0042] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0043] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0044] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0045] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0046] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0047] After analysis, the inventors found that the cross-correlation algorithm for delay estimation has high computational complexity, making it unsuitable for use in systems with high real-time requirements. Furthermore, the audio fingerprint matching algorithm used in WebRTC is sensitive to nonlinear echoes and ambient noise, significantly reducing the accuracy of delay estimation in environments with complex noise and other interference.

[0048] A technical problem to be solved by the embodiments of the present disclosure is: how to reduce the complexity of delay estimation and improve the accuracy of estimation.

[0049] An embodiment of the time delay estimation method disclosed herein is described below with reference to FIG1 . In this embodiment, a first audio signal is used as a reference audio signal to perform time delay estimation on a second audio signal. The second audio signal includes the corresponding content of the first audio signal, such as the same speech. In some embodiments, the second audio signal can be obtained by processing the first audio signal. For example, after playing the first audio signal, an audio input device such as a microphone collects the signal to obtain the second audio signal. In addition to the distorted content of the first audio signal, the second audio signal also includes noise, information about other speakers, and the like.

[0050] Figure 1 shows a schematic flow chart of a method for estimating time delay according to some embodiments of the present disclosure. As shown in Figure 1 , the method for estimating time delay in this embodiment includes steps S102 to S104.

[0051] In step S102, multiple filters are used to process multiple segments of the first audio, where each segment includes multiple consecutive frames. Each filter is used to process a segment of the first audio and the second audio. That is, each filter includes two inputs: one input is the segment of the first audio, and the other input is the second audio.

[0052] In some embodiments, the filter is used to estimate matching information of the second audio to a segment of the first audio processed by the filter.

[0053] In some embodiments, the filter is a least mean square (LMS) filter or a multi-delay block frequency-domain adaptive filter (MDF). Other types of filters may also be used as needed, which will not be described in detail here.

[0054] In some embodiments, the first audio is audio received from a transmitting end (ie, a remote end) through a communication link, and the second audio is audio captured by an audio input device at a receiving end (ie, a near end).

[0055] In step S104, the processing results of the multiple filters are processed using a neural network model to obtain a delay estimation result of the corresponding content of the first audio in the second audio.

[0056] In some embodiments, the processing results of multiple filters are concatenated to generate input information, for example, a vector including the processing results of multiple filters is generated; and the input information is processed using a neural network model. Thus, the information of each segment can be intuitively reflected in the input of the neural network model.

[0057] In some embodiments, a neural network model is used to predict the probabilities corresponding to various delays, with the delay estimation result being the delay corresponding to the highest probability. For example, the neural network model can be a classification model, with the model category corresponding to each candidate delay. The delay estimation result can be determined based on the classification results of the neural network model. This allows users to select the appropriate model for delay estimation as needed, improving the applicability of the solution.

[0058] In some embodiments, the neural network model is a small neural network model, for example, the number of weight parameters is less than 10 6 Therefore, the computational complexity can be reduced and the proposed method can be applied to real-time delay estimation.

[0059] The filter is used to estimate the linear echo. However, due to factors such as the near-end microphone and nonlinear devices in the hardware circuit, the echo in the mixed signal received at the near end contains not only the linear echo introduced by the environmental impulse response but also the nonlinear echo introduced by the device.

[0060] The above-described embodiment utilizes a combination of a filter bank and a classification neural network to achieve delay estimation. The filter accurately extracts information about the first and second audio signals, and then utilizes a neural network model to address nonlinear factors. Consequently, the disclosed embodiment improves the accuracy of delay estimation and is robust in the presence of noise and nonlinear echoes. Furthermore, this method offers high processing efficiency.

[0061] In some embodiments, segments may be extracted from the first audio at the same interval. An embodiment of the filter processing method disclosed herein will be described below with reference to FIG2 .

[0062] Fig. 2 shows a schematic flow chart of a filter processing method according to some embodiments of the present disclosure. As shown in Fig. 2 , the filter processing method of this embodiment includes steps S202 to S204.

[0063] In step S202, from a buffer storing frames of the first audio, segments of a preset length are extracted with a plurality of positions as starting points to obtain a plurality of segments, wherein there is a preset interval between adjacent starting points.

[0064] If the length of the first audio is longer than the buffer, only a portion of the first audio information can be stored in the buffer. For example, frames of the first audio are sequentially added to the buffer until the buffer is full. After all frames in the buffer are processed, the first frame in the buffer can be removed and the first frame from the unprocessed frames can be added to the buffer. The buffer can be implemented as a queue, i.e., a "first-in, first-out" data structure.

[0065] In some embodiments, the preset interval is smaller than the preset length. Thus, adjacent segments partially overlap, so that the edge portions of the segments can be reasonably considered, thereby improving the accuracy of processing.

[0066] In step S204, each extracted segment and the second audio are input into each of a plurality of filters to obtain a processing result of each filter.

[0067] Figure 3 exemplarily illustrates a schematic diagram of the data buffer and the data processed by the filter. As shown in Figure 3 , there are M adaptive filters (0th to M-1th), each with a length of N, and the overlap length of adjacent filters is L, i.e., the interval between the first frames of the segments processed by adjacent filters is NL.

[0068] When extracting a segment, starting from left to right, every NL frames, the corresponding data frames are sequentially extracted and fed into the corresponding filters. First, data is sequentially extracted from the data buffer's 0th data frame position and fed into the first filter, i.e., the 0th filter. Then, data is sequentially extracted from the data buffer's NLth data frame position and fed into the second filter, i.e., the 1st filter. And so on. Finally, data is sequentially extracted from the data buffer's (M-1)*(NL)th data frame position and fed into the M-1th filter, i.e., the filter marked M-1 in the figure.

[0069] In some embodiments, each filter includes multiple filter blocks, the number of filter blocks is equal to the number of frames in each segment, each filter block is used to estimate the echo present in the second audio based on the segment of the first audio, and subtract the estimated echo from the second audio to obtain an error, and use the error to update the weight of the filter, the energy sum of the weights of the filter block is the output of the filter block; and the processing result of each filter includes a set of outputs of each filter block of the filter.

[0070] For example, if each frame of the first audio has K sampling points, the length of each filter is K*N. The filter is divided into N filter blocks per frame. For each filter block, the sum of the energies of K weights is calculated as the total energy of the filter block, resulting in N filter weight energies for each filter. The same energy calculation method is applied to M filters, resulting in a total of N*M weight energies. These weight energy values ​​can then be concatenated and used as the input to the neural network model.

[0071] Through the above embodiment, frames from the first audio can be temporarily stored in a buffer, and then segments of a preset length can be sequentially extracted at preset intervals and input into the filter. Consequently, multiple filters can be used to quickly process each segment of the first audio, obtaining matching information between each segment and the second audio. This provides accurate input for the subsequent neural network model, improving the accuracy and processing efficiency of delay estimation.

[0072] In an audio or video call scenario, after the sound of the sender's speech (denoted as the near end) is transmitted to the receiver's device (denoted as the far end), the sound will be reflected by surrounding objects and picked up by the receiver's audio input device (such as a microphone). If the receiver's device does not use an echo cancellation algorithm, or the echo cancellation algorithm has performance defects, the uncleaned sound will be transmitted back to the current speaker, the sender, which is the so-called: what you say is heard by yourself. Echo cancellation can be achieved using the delay estimation method disclosed in the present invention. An embodiment of the echo cancellation method disclosed in the present invention is described below with reference to FIG4.

[0073] FIG4 shows a flow chart of an echo cancellation method according to some embodiments of the present disclosure. As shown in FIG4 , the echo cancellation method of this embodiment includes steps S402 to S406.

[0074] In step S402, multiple segments of the first audio are processed using multiple filters, where each segment includes multiple consecutive frames, and each filter is used to process a segment of the first audio and a second audio, where the second audio includes corresponding content of the first audio.

[0075] In some embodiments, audio from a transmitting end is received via a communication link as first audio; and audio is collected via an audio input device at a receiving end as second audio.

[0076] In step S404, the processing results of the multiple filters are processed using a neural network model to obtain a delay estimation result of the corresponding content of the first audio in the second audio.

[0077] In step S406, echo cancellation is performed on the second audio based on the delay estimation result.

[0078] Specifically, after the far-end signal (such as the sender's voice signal) reaches the receiver's device, it will be played out through the speaker, reflected by surrounding objects to form an echo, and then received by the near-end microphone. At the same time, the voice signal of the near-end speaker (i.e., the receiver) and the near-end environmental noise signal are received by the near-end device microphone together. Since the far-end signal is played out from the speaker of the near-end device, received by the near-end microphone and converted into a digital signal, there will be a time delay with the original far-end signal. Therefore, the near-end device will cache the mixed signal received from the sender's signal and the near-end microphone through the communication link in order to achieve alignment of the far-end and near-end (abbreviated as: dual-end) signals. After the echo is estimated, the far-end signal can be subtracted from the near-end mixed signal to achieve echo cancellation.

[0079] The above embodiment can perform echo cancellation more accurately by accurately estimating the time delay, thereby improving the quality of voice communication and user experience.

[0080] The present disclosure also provides a method for training a neural network model.

[0081] Figure 5 shows a flowchart of a neural network model training method according to some embodiments of the present disclosure. As shown in Figure 5, the neural network model training method of this embodiment includes steps S502 to S508.

[0082] In step S502, the third audio is subjected to delay processing according to the target delay to obtain a fourth audio.

[0083] In some embodiments, the fifth audio is processed to obtain a simulated audio input device acquisition signal; the third audio is processed to obtain an echo signal generated by the transmitting end signal at the receiving end; the simulated audio input device acquisition signal, the echo signal, and the noise signal are processed to obtain a receiving end mixed signal; and the receiving end mixed signal is subjected to delay processing according to the target delay to obtain a fourth audio.

[0084] Figure 6 illustrates an example of generating a mixed signal at the receiver. As shown in Figure 6, two different speakers' audio are randomly selected from a clean audio library. Speaker 1's audio is used as the far-end signal (S1), and Speaker 2's audio is used as the near-end signal. Two room impulse responses (1 and 2) are randomly selected from a room impulse response simulator and convolved with the near-end and far-end signals, respectively, to obtain the near-end speaker signal captured by the microphone and the echo signal generated by the far-end signal at the near-end. The room impulse response can be artificially simulated or acquired, for example, based on the relative distances between the microphone, speaker, and speaker. The power of the signals at both ends is then adjusted based on a set power ratio. This power ratio can be randomly set within a certain range, for example, between -10 and 30 dB. For the far-end signal, to simulate the nonlinear echo introduced by nonlinear devices such as speakers, random nonlinear processing can be performed on Speaker 1's audio before it is convolved. Furthermore, a noise is randomly selected from the noise library, and the near-end noise signal power is adjusted according to the set signal-to-noise ratio (relative to the near-end signal power). The noise signal, the echo signal, and the speaker signal collected by the near-end microphone are superimposed to obtain the near-end mixed signal S2, and then the mixed signal is delayed according to the target delay Y.

[0085] In step S504, multiple filters are used to process multiple segments of the third audio, where each segment includes multiple consecutive frames, and each filter is used to process a segment of the third audio and a fourth audio, and the fourth audio includes corresponding content of the third audio.

[0086] In step S506, the processing results of the multiple filters are processed using a neural network model to obtain a delay estimation result of the corresponding content of the third audio in the fourth audio.

[0087] In step S508, the parameters of the neural network model are adjusted according to the delay estimation result of the fourth audio and the target delay.

[0088] For example, based on the delay estimation result and the gap between the target delay, the parameters of the neural network model are adjusted using the gradient descent method.

[0089] Through the above embodiments, it is possible to simulate the generation of audio with a time delay effect based on existing audio. The audio after time delay processing is then processed using a filter bank and a neural network model to obtain a time delay estimation result. The neural network model can be trained based on the time delay estimation result and the preset time delay. Consequently, the trained neural network model can more accurately estimate time delay.

[0090] An embodiment of the delay estimation device disclosed in the present invention will be described below with reference to FIG7 .

[0091] Figure 7 shows a schematic diagram of the structure of a delay estimation device according to some embodiments of the present disclosure. As shown in Figure 7, the delay estimation device 700 of this embodiment includes: a first audio processing module 7100, configured to process multiple segments of a first audio using multiple filters, where each segment includes multiple consecutive frames, and each filter is used to process a segment of the first audio and a second audio, where the second audio includes corresponding content of the first audio; and a first estimation module 7200, configured to process the processing results of the multiple filters using a neural network model to obtain a delay estimation result for the corresponding content of the first audio in the second audio.

[0092] In some embodiments, the first audio processing module 7100 is further configured to extract segments of preset length from a cache storing frames of the first audio, starting from multiple positions, to obtain multiple segments, wherein there is a preset interval between adjacent starting points; and input each extracted segment and the second audio into each of the multiple filters, respectively, to obtain the processing result of each filter.

[0093] In some embodiments, the predetermined interval is less than the predetermined length.

[0094] In some embodiments, each filter includes multiple filter blocks, the number of filter blocks is equal to the number of frames in each segment, each filter block is used to estimate the echo present in the second audio based on the segment of the first audio, and subtract the estimated echo from the second audio to obtain an error, and use the error to update the weight of the filter, the energy sum of the weights of the filter block is the output of the filter block; and the processing result of each filter includes a set of outputs of each filter block of the filter.

[0095] In some embodiments, the filter is used to estimate matching information of the second audio to a segment of the first audio processed by the filter.

[0096] In some embodiments, the filter is a least mean square filter or a multi-delay block frequency domain adaptive filter.

[0097] In some embodiments, the first estimation module 7200 is further configured to concatenate the processing results of multiple filters to generate input information; and process the input information using a neural network model.

[0098] In some embodiments, the neural network model is used to predict the probabilities corresponding to various time delays, and the delay estimation result is the delay corresponding to the maximum probability.

[0099] In some embodiments, the number of weight parameters of the neural network model is less than 10 6 .

[0100] In some embodiments, the first audio is audio received from a transmitting end through a communication link, and the second audio is audio captured by an audio input device of a receiving end.

[0101] An embodiment of the echo cancellation device disclosed in the present disclosure will be described below with reference to FIG8 .

[0102] Figure 8 shows a schematic diagram of the structure of an echo cancellation device according to some embodiments of the present disclosure. As shown in Figure 8, the echo cancellation device 80 of this embodiment includes: the aforementioned delay estimation device 700; and an echo cancellation module 8300, which is configured to perform echo cancellation on the second audio based on the delay estimation result.

[0103] In some embodiments, the echo cancellation device 80 further includes: a receiver 8400 configured to receive audio from a transmitter via a communication link as first audio; and an audio input device 8500 configured to capture audio as second audio. The audio input device 8500 is, for example, a microphone.

[0104] An embodiment of the training device of the present disclosure will be described below with reference to FIG. 9 .

[0105] FIG9 shows a schematic diagram of the structure of a training device according to some embodiments of the present disclosure. As shown in FIG9 , the training device 900 of this embodiment includes: a delay module 9100 configured to perform delay processing on a third audio to obtain a fourth audio; a second audio processing module 9200 configured to process multiple segments of the third audio using multiple filters, wherein each segment includes multiple consecutive frames, and each filter is used to process a segment of the third audio and a fourth audio, wherein the fourth audio includes corresponding content of the third audio; a second estimation module 9300 configured to process the processing results of the multiple filters using a neural network model to obtain a delay estimation result of the corresponding content of the third audio in the fourth audio; and a parameter adjustment module 9400 configured to adjust the parameters of the neural network model based on the delay estimation result of the fourth audio and the target delay.

[0106] In some embodiments, the delay module 9100 is further configured to process the fifth audio to obtain a simulated audio input device acquisition signal; process the third audio to obtain an echo signal generated by the transmitting end signal at the receiving end; process the simulated audio input device acquisition signal, the echo signal, and the noise signal to obtain a receiving end mixed signal; and perform delay processing on the receiving end mixed signal according to the target delay to obtain a fourth audio.

[0107] Figure 10 shows a schematic diagram of the structure of an electronic device according to some embodiments of the present disclosure. As shown in Figure 10, the electronic device 100 of this embodiment includes: a memory 1010 and a processor 1020 coupled to the memory 1010. The processor 1020 is configured to execute the delay estimation method, echo cancellation method, or training method of any of the aforementioned embodiments based on instructions stored in the memory 1010.

[0108] The memory 1010 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, application programs, a boot loader, and other programs.

[0109] FIG11 shows a schematic diagram of the structure of an electronic device according to other embodiments of the present disclosure. As shown in FIG11 , the electronic device 110 of this embodiment includes: a memory 1110 and a processor 1120, and may also include an input / output interface 1130, a network interface 1140, a storage interface 1150, and the like. These interfaces 1130, 1140, 1150 and the memory 1110 and the processor 1120 can be connected, for example, via a bus 1160. The input / output interface 1130 provides a connection interface for input / output devices such as a display, mouse, keyboard, and touch screen. The network interface 1140 provides a connection interface for various networked devices. The storage interface 1150 provides a connection interface for external storage devices such as SD cards and USB flash drives.

[0110] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements any one of the aforementioned delay estimation methods, echo cancellation methods, or training methods.

[0111] Those skilled in the art will appreciate that embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0112] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0113] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0115] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A delay estimation method, comprising: Processing a plurality of segments of a first audio using a plurality of filters, wherein each segment includes a plurality of consecutive frames, and each filter is used to process a segment of the first audio and a second audio, wherein the second audio includes corresponding content of the first audio; and, The processing results of the multiple filters are processed using a neural network model to obtain a delay estimation result of the corresponding content of the first audio in the second audio.

2. The delay estimation method according to claim 1, wherein: The processing of the plurality of segments of the first audio using the plurality of filters comprises: In a buffer storing a frame of the first audio, extracting segments of a preset length from a plurality of positions as starting points to obtain a plurality of segments, wherein a preset interval exists between adjacent starting points; Each extracted segment and the second audio are respectively input into each of the plurality of filters to obtain a processing result of each filter.

3. The delay estimation method according to claim 2, wherein: The preset interval is smaller than the preset length.

4. The delay estimation method according to any one of claims 1 to 3, wherein: Each filter includes a plurality of filter blocks, the number of the filter blocks is equal to the number of frames in each segment, each filter block is used to estimate the echo present in the second audio according to the segment of the first audio, and use the second audio to subtract the estimated echo to obtain an error, and use the error to update the weight of the filter, and the energy sum of the weight of the filter block is the output of the filter block; and, The processing result of each filter comprises the set of outputs of the respective filter blocks of the filter.

5. The delay estimation method according to any one of claims 1 to 4, wherein: The filter is used to estimate matching information of the second audio with a segment of the first audio processed by the filter.

6. The delay estimation method according to claim 5, wherein: The filter is a minimum mean square filter or a multi-delay block frequency domain adaptive filter.

7. The delay estimation method according to any one of claims 1 to 6, wherein: The using of the neural network model to process the processing results of the plurality of filters comprises: splicing the processing results of the multiple filters to generate input information; and The input information is processed using the neural network model.

8. The delay estimation method according to any one of claims 1 to 7, wherein: The neural network model is used to predict the probability corresponding to each time delay, and the time delay estimation result is the time delay corresponding to the maximum probability.

9. The delay estimation method according to claim 8, wherein: The number of weight parameters of the neural network model is less than 10 6 .

10. The delay estimation method according to any one of claims 1 to 9, wherein: The first audio is audio received from a transmitting end through a communication link, and the second audio is audio collected by an audio input device at a receiving end.

11. An echo cancellation method, comprising: The delay estimation method according to any one of claims 1 to 10; as well as, Based on the delay estimation result, echo cancellation is performed on the second audio.

12. The echo cancellation method according to claim 11, further comprising: receiving audio from a transmitting end via a communication link as first audio; and, The audio is collected through the audio input device of the receiving end as the second audio.

13. A training method comprising: According to the target delay, delay processing is performed on the third audio to obtain a fourth audio; Processing multiple segments of the third audio using multiple filters, wherein each segment includes multiple consecutive frames, and each filter is used to process a segment of the third audio and a fourth audio, wherein the fourth audio includes corresponding content of the third audio; Using a neural network model, processing the processing results of the multiple filters to obtain a delay estimation result of the corresponding content of the third audio in the fourth audio; and The parameters of the neural network model are adjusted according to the delay estimation result of the fourth audio and the target delay.

14. The training method according to claim 13, wherein: The performing delay processing on the third audio according to the target delay to obtain the fourth audio includes: Processing the fifth audio to obtain a simulated audio input device acquisition signal; Processing the third audio to obtain an echo signal generated by the sending end signal at the receiving end; Processing the simulated audio input device acquisition signal, the echo signal and the noise signal to obtain a receiving end mixed signal; and According to the target delay, delay processing is performed on the receiving end mixed signal to obtain a fourth audio.

15. A delay estimation device, comprising: A first audio processing module is configured to process multiple segments of the first audio using multiple filters, Each segment includes a plurality of consecutive frames, and each filter is used to process a segment of the first audio and a second audio, wherein the second audio includes corresponding content of the first audio; and The first estimation module is configured to process the processing results of the multiple filters using a neural network model to obtain a delay estimation result of the corresponding content of the first audio in the second audio.

16. An echo cancellation device, comprising: The time delay estimation device as claimed in claim 15; as well as The echo cancellation module is configured to perform echo cancellation on the second audio based on the delay estimation result.

17. The echo cancellation device according to claim 16, further comprising: A receiver configured to receive audio from a transmitter via a communication link as first audio; and The audio input device is configured to capture audio as the second audio.

18. A training device comprising: A delay module, configured to perform delay processing on the third audio to obtain a fourth audio; A second audio processing module is configured to process multiple segments of the third audio using multiple filters, wherein each segment includes multiple consecutive frames, and each filter is used to process a segment of the third audio and a fourth audio, wherein the fourth audio includes corresponding content of the third audio; a second estimation module configured to process the processing results of the plurality of filters using a neural network model to obtain a delay estimation result of the corresponding content of the third audio in the fourth audio; and The parameter adjustment module is configured to adjust the parameters of the neural network model according to the delay estimation result of the fourth audio and the target delay.

19. An electronic device comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the delay estimation method according to any one of claims 1 to 10, the echo cancellation method according to claim 11 or 12, or the training method according to claim 13 or 14 based on instructions stored in the memory.

20. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the delay estimation method according to any one of claims 1 to 10, or the echo cancellation method according to claim 11 or 12, or the training method according to claim 13 or 14.

21. A computer program comprising: Instructions, when executed by a processor, cause the processor to perform the delay estimation method according to any one of claims 1 to 10, or the echo cancellation method according to claim 11 or 12, or the method according to claim 13. The training method described in 13 or 14.

Citation Information

Patent Citations

  • Method for suppressing acoustic echo of network telephone

    CN106571147A

  • Method for eliminating VoIP telephone echoes of mobile device

    CN110138990A

  • Signal time delay determination method and electronic equipment

    CN110992973A

  • Acoustic echo cancellation method and system based on adaptive filter and neural network

    CN113436636A

  • Echo elimination method and device, electronic equipment and computer readable medium

    CN115083431A