Multi-channel echo cancellation method and related apparatus

Through frequency domain processing and frame and block technology, the calculation of multi-channel echo cancellation is simplified, solving the problems of large delay and high complexity in the existing technology, and achieving a more efficient echo cancellation effect.

WO2023093292A9PCT designated stage expired Publication Date: 2024-09-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2022/122387
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-11-26
Filing Date
2022-09-29
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Existing multi-channel echo cancellation methods have large delays and high computational complexity due to long echo paths, and cannot be effectively applied in production.

Method used

By transforming the calculation into the frequency domain and combining it with frame and block processing, the delay caused by the echo path is reduced, and the calculation amount and complexity of multi-channel echo cancellation are simplified. Fourier transform and block frequency domain Kalman are used Filtering algorithm performs echo cancellation.

Benefits of technology

It is possible to reduce the delay and computational complexity without increasing the filter order, and improve the convergence performance of echo cancellation, which is suitable for multi-channel voice communication scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2022122387_19092024_PF_FP_ABST
    Figure CN2022122387_19092024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a multi-channel echo cancellation method and a related apparatus. The method comprises: obtaining a plurality of far-end audio signals output by a plurality of channels, and obtaining a first filter coefficient matrix corresponding to a k-th frame of microphone signal; performing frame division and blocking processing according to the plurality of far-end audio signals, and determining a far-end frequency domain signal matrix corresponding to the k-th frame of microphone signal, wherein the far-end frequency domain signal matrix comprises far-end frequency domain signals of filter sub-blocks corresponding to the respective plurality of channels; performing filtering processing according to the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the k-th frame of microphone signal; and then performing echo cancellation according to the frequency domain signals of the k-th frame of microphone signal and the echo signal in the k-th frame of microphone signal to obtain a near-end audio signal output by a target microphone. The solution reduces a time delay caused by reasons such as an echo path, greatly reduces the calculation amount and calculation complexity of multi-channel echo cancellation, and obtains better convergence performance.
Need to check novelty before this filing date? Find Prior Art

Description

A multi-channel echo cancellation method and related device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 26, 2021, with application number 2021114247029 and application name “A multi-channel echo cancellation method and related device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of audio processing technology, and in particular to multi-channel echo cancellation technology. Background Art

[0003] Many scenarios involving audio processing, such as video conferencing systems and hands-free phones, often involve multi-channel audio signals emitted simultaneously by multiple people. To ensure clear hearing of these multi-channel audio signals, voice communication equipment must perform echo cancellation on the acquired multi-channel audio signals. For example, assume that devices A and B simultaneously emit audio signals. Device A includes a microphone and a speaker, and device B also includes a microphone and a speaker. The sound emitted by device B's speaker may be transmitted to device A through device B's microphone, generating unnecessary echo that needs to be eliminated.

[0004] Current echo cancellation methods often introduce significant delays due to multiple echo paths, especially long ones. To reduce delays, the filter order must be increased, which makes multi-channel echo cancellation computationally very complex, making it impractical for practical production applications.

[0005] Summary of the Invention

[0006] In order to solve the above technical problems, the present application provides a multi-channel echo cancellation method and related devices, which can reduce the delay caused by reasons such as the echo path, and greatly simplify the calculation amount and complexity of multi-channel echo cancellation, thereby achieving better convergence performance.

[0007] The embodiments of this application disclose the following technical solutions:

[0008] In a first aspect, an embodiment of the present application provides a multi-channel echo cancellation method, which is executed by a computer device. The method includes:

[0009] Acquire multiple remote audio signals, where the multiple remote audio signals are audio signals output by multiple channels respectively;

[0010] Obtaining a first filter coefficient matrix corresponding to the k-th frame microphone signal output by the target microphone, where the first filter coefficient matrix includes frequency domain filter coefficients of filter sub-blocks corresponding to each of the multiple channels;

[0011] Performing frame and block processing on multiple remote audio signals to determine a remote frequency domain signal matrix corresponding to the microphone signal of the kth frame, where the remote frequency domain signal matrix includes remote frequency domain signals of filter sub-blocks corresponding to each of the multiple channels;

[0012] Performing filtering processing according to the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the microphone signal of the kth frame;

[0013] Echo cancellation is performed based on the frequency domain signal of the k-th frame microphone signal and the echo signal in the k-th frame microphone signal to obtain a near-end audio signal output by the target microphone.

[0014] In a second aspect, an embodiment of the present application provides a multi-channel echo cancellation device, which includes an acquisition unit, a determination unit, a filtering unit, and an elimination unit:

[0015] An acquiring unit, configured to acquire a plurality of remote audio signals, where the plurality of remote audio signals are audio signals outputted respectively by a plurality of channels;

[0016] The acquisition unit is further configured to acquire a first filter coefficient matrix corresponding to the k-th frame microphone signal output by the target microphone, the first filter coefficient matrix including frequency domain filter coefficients of filter sub-blocks corresponding to each of the multiple channels; k is an integer greater than or equal to 1;

[0017] a determination unit, configured to perform frame and block processing on the plurality of remote audio signals, and determine a remote frequency domain signal matrix corresponding to the microphone signal of the kth frame, wherein the remote frequency domain signal matrix includes remote frequency domain signals of filter sub-blocks corresponding to the plurality of channels;

[0018] a filtering unit, configured to perform filtering processing according to the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the microphone signal of the kth frame;

[0019] The cancellation unit is configured to perform echo cancellation based on the frequency domain signal of the k-th frame microphone signal and the echo signal in the k-th frame microphone signal to obtain a near-end audio signal output by the target microphone.

[0020] In a third aspect, an embodiment of the present application provides a computer device, the device including a processor and a memory:

[0021] The memory is used to store program codes and transmit the program codes to the processor;

[0022] The processor is configured to execute the method according to the instructions in the program code.

[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the method shown in the first aspect.

[0024] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method shown in the first aspect when executed by a processor.

[0025] It can be seen from the above technical solution that in a multi-channel echo cancellation scenario, multiple far-end audio signals output by multiple channels can be obtained, and when the target microphone outputs the k-th frame microphone signal, the first filter coefficient matrix corresponding to the k-th frame microphone signal is obtained. The first filter coefficient matrix includes the frequency domain filter coefficients of the filter sub-blocks corresponding to each of the multiple channels. Then, frame and block processing is performed based on the multiple far-end audio signals to determine the far-end frequency domain signal matrix. The far-end frequency domain signal matrix includes the far-end frequency domain signals of the filter sub-blocks corresponding to each of the multiple channels. In this way, when filtering is performed based on the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain the echo signal in the k-th frame microphone signal, the calculation is transformed into the frequency domain. Since the Fourier transform suitable for frequency domain calculation is fast, it is combined with frame and block processing. There is no need to wait for the far-end audio signal to be completely output through the target microphone, which can reduce the delay caused by reasons such as the echo path and greatly reduce the amount of calculation and complexity. Then, based on the frequency domain signal of the kth microphone signal and the echo signal in the kth microphone signal, echo cancellation can be quickly performed to obtain the near-end audio signal output by the target microphone. This solution does not require increasing the filter order. Instead, it transforms the calculation into the frequency domain and combines it with frame and block processing. This reduces the delay caused by factors such as the echo path, significantly reduces the computational effort and complexity of multi-channel echo cancellation, and achieves better convergence performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] FIG1 is a schematic diagram of the principle of echo cancellation provided by an embodiment of the present application;

[0027] FIG2 is a schematic diagram of the system architecture of a multi-channel echo cancellation method provided by an embodiment of the present application;

[0028] FIG3 is a flow chart of a multi-channel echo cancellation method provided by an embodiment of the present application;

[0029] FIG4 is an example diagram of multi-channel recording and playback of a dedicated audio and video conferencing device provided in an embodiment of the present application;

[0030] FIG5 is an example diagram of a user interface of an audio and video conferencing application provided in an embodiment of the present application;

[0031] FIG6 is a block diagram of a multi-channel recording and playback system provided by an embodiment of the present application;

[0032] FIG7 is an example diagram of a multi-channel echo cancellation method provided by the related art;

[0033] FIG8 is an example diagram of another multi-channel echo cancellation method provided by the related art;

[0034] FIG9 is an example diagram of MSD curves of the three echo cancellation methods described above in a single-talk state provided by an embodiment of the present application;

[0035] FIG10 is an example diagram of a far-end audio signal and a near-end audio signal provided in an embodiment of the present application;

[0036] FIG11 is an example diagram of MSD curves of the three echo cancellation methods described above in a dual-talk state provided by an embodiment of the present application;

[0037] FIG12 is a structural diagram of a multi-channel echo cancellation device provided in an embodiment of the present application;

[0038] FIG13 is a structural diagram of a smart phone provided in an embodiment of the present application;

[0039] FIG14 is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The embodiments of the present application are described below with reference to the accompanying drawings.

[0041] Referring to Figure 1 , the voice of a far-end user is collected by a far-end microphone 101 and transmitted to a voice communication device. After wireless or wired transmission, it reaches the near-end voice communication device and is played back through the near-end speaker 202. This played back voice (referred to as the far-end audio signal during the signal transmission process) is again collected by the near-end microphone 201, forming an acoustic echo signal. This is then transmitted back to the far-end voice communication device and played back through the far-end speaker 102, allowing the far-end user to hear their own echo. If the near-end user is also speaking at this time, the far-end user hears both their own echo (referred to as the echo signal during the signal transmission process) and the near-end user's voice (referred to as the near-end audio signal during the signal transmission process). In other words, the signal output by the far-end speaker 102 includes both the echo signal and the near-end audio signal.

[0042] To ensure that the far-end user can clearly hear the near-end user's speech (i.e., the near-end audio signal), acoustic echo cancellation (AEC) is required. For ease of description, this will be referred to as echo cancellation. Related technologies can introduce significant latency due to factors such as the echo path. To reduce latency, the filter order must be increased, which in turn increases computational complexity.

[0043] In order to solve the above technical problems, an embodiment of the present application provides a multi-channel echo cancellation method. This method does not require increasing the order of the filter, but instead transforms the calculation into the frequency domain and combines it with framing and blocking for processing, thereby reducing the delay caused by reasons such as the echo path, and greatly simplifies the calculation amount and complexity of multi-channel echo cancellation, thereby achieving better convergence performance.

[0044] It should be noted that the method provided in the embodiment of the present application can be applied to related applications in voice communication scenarios, or related voice communication equipment, especially various scenarios where multi-channel voice communications require echo cancellation, such as audio and video conferencing applications, online classroom applications, telemedicine applications, voice communication equipment that can conduct hands-free calls, etc., and the embodiment of the present application does not limit this.

[0045] It should be noted that the method provided in the embodiments of the present application may relate to the field of cloud technology, such as cloud computing, cloud applications, cloud education, cloud conferencing, etc.

[0046] For ease of understanding, the system architecture of the multi-channel echo cancellation method provided in an embodiment of the present application will be introduced in conjunction with Figure 2. The system architecture includes a terminal 201 and a terminal 202, wherein the terminal 201 and the terminal 202 are voice communication devices, the terminal 201 can be a near-end voice communication device, and the terminal 202 can be a far-end voice communication device. The terminal 201 includes multiple speakers 2011 and at least one microphone 2012. The multiple speakers 2011 are used to play the far-end audio signals transmitted by the terminal 202, and the at least one microphone 2012 is used to collect the near-end audio signals and can collect the far-end audio signals played by the multiple speakers 2011 at the same time, thereby forming an echo signal.

[0047] Terminal 202 may include a speaker 2021 and a microphone 2022. Since microphone 2012 collects near-end audio signals while also collecting far-end audio signals played by multiple speakers 2011, to prevent the user corresponding to terminal 202 from hearing their own echo, terminal 202 may execute the multi-channel echo cancellation method provided in an embodiment of the present application. This embodiment does not limit the number of speakers 2021 and microphones 2022 included in terminal 202; the number of speakers 2021 may be one or more, and the number of microphones 2022 may also be one or more.

[0048] Terminals 201 and 202 can be, but are not limited to, smartphones, tablets, laptops, desktop computers, smart speakers, smart watches, in-vehicle terminals, smart TVs, dedicated audio and video conferencing equipment, etc. FIG1 illustrates the example of terminals 201 and 202 being smartphones, where voice communication can be conducted between the users corresponding to terminals 201 and 202. The embodiments of this application primarily illustrate a scenario where audio and video conferencing applications are installed on terminals 201 and 202, allowing for audio and video conferencing.

[0049] The server can support terminal 201 and terminal 202 in providing services to users (such as audio and video conferencing) in the background. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal 201, terminal 202 and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0050] In the embodiment of the present application, the terminal 202 can obtain multiple far-end audio signals, which are far-end audio signals output by multiple channels, wherein the multiple channels can be channels formed by the multiple speakers 2011 in FIG1 , and each speaker 2011 corresponds to one channel.

[0051] Terminal 202 can perform echo cancellation in frames and blocks. For this purpose, when the target microphone outputs the kth frame microphone signal, terminal 202 can obtain the first filter coefficient matrix corresponding to the kth frame microphone signal. The first filter coefficient matrix includes frequency domain filter coefficients of filter sub-blocks corresponding to multiple channels, thereby dividing the filter into blocks to obtain filter sub-blocks.

[0052] Terminal 202 then performs frame and block processing based on the multiple far-end audio signals to determine a far-end frequency domain signal matrix corresponding to the k-th frame microphone signal. This far-end frequency domain signal matrix includes the far-end frequency domain signals of the filter sub-blocks corresponding to each of the multiple channels. Thus, when filtering is performed based on the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain the echo signal from the k-th frame microphone signal, the calculation is transformed into the frequency domain, and the Fourier transform is fast, combined with frame and block processing. This eliminates the need to wait for the entire far-end audio signal to be output through the target microphone, thereby reducing delays caused by factors such as the echo path and significantly simplifying the computational effort and complexity.

[0053] Afterwards, the terminal 202 can quickly implement echo cancellation based on the frequency domain signal of the k-th frame microphone signal and the echo signal in the k-th frame microphone signal to obtain the near-end audio signal output by the target microphone.

[0054] It should be noted that FIG2 illustrates the multi-channel echo cancellation method using terminal 202 as an example. In some possible implementations, the multi-channel echo cancellation method may also be executed by a server corresponding to terminal 202, or by terminal 202 and the server in cooperation. This embodiment of the present application does not limit the execution entity of the multi-channel echo cancellation method.

[0055] It can be understood that the multi-channel echo cancellation method provided in the embodiment of the present application can be integrated into an echo canceller, and the echo canceller can be built into relevant applications of the voice communication scenario or related voice communication equipment, thereby eliminating the echoes of other users collected by the near-end voice communication equipment, retaining only the voice of the local user, and improving the voice communication experience.

[0056] Next, the multi-channel echo cancellation method will be introduced with reference to the accompanying drawings, using the remote terminal as the execution subject. Referring to FIG3 , FIG3 shows a flow chart of a multi-channel echo cancellation method, which includes:

[0057] S301: Acquire multiple remote audio signals, where the multiple remote audio signals are audio signals output by multiple channels respectively.

[0058] This embodiment takes the audio and video conferencing scenario as an example. At this time, the far-end and near-end terminals can be any of the aforementioned devices that can conduct audio and video conferencing, for example, dedicated audio and video conferencing equipment. Dedicated audio and video conferencing equipment supports multi-channel recording and playback, which greatly improves people's call experience. Referring to Figure 4, Figure 4 shows an example diagram of multi-channel recording and playback of dedicated audio and video conferencing equipment, including multiple speakers (such as speaker 1, speaker 2, speaker 3 and speaker 4) and multiple microphones (such as microphone 1, microphone 2, ..., and microphone 7). In some cases, one microphone may also be included, and Figure 4 only takes multiple microphones as an example.

[0059] The far-end audio signals emitted by multiple speakers are picked up by microphones and sent back to the remote endpoint, forming an echo signal. For example, in an audio or video conferencing room, the far-end audio signals played by the speakers reflect off obstacles such as walls, floors, and ceilings. These reflected sounds and the direct sound (i.e., the unreflected far-end audio signals) are picked up by the microphones, forming an echo signal. Therefore, multi-channel echo cancellation is necessary. In this case, an echo canceller can be built into the dedicated audio or video conferencing equipment.

[0060] For example, in an audio and video conferencing application, user A enters an online conference room, turns on the microphone, and begins speaking, as shown in the user interface in Figure 5. At this point, the microphone picks up user A's voice. The voices of other users in the online conference, after being played through the terminal's speakers, are also picked up by the microphone. This causes other users to hear user A's voice alongside their own voices, creating an echo signal. Therefore, multi-channel echo cancellation is necessary. In this case, an echo canceller can be built into the audio and video conferencing application.

[0061] It should be noted that this only demonstrates one specific usage method. Other methods, such as replacing icons or changing the prompt text content or text location on the user interface, are also covered by this application. In addition, the example is a user interface corresponding to a scenario where multiple people are conducting an audio or video conference. Other scenarios, such as online classroom applications and telemedicine applications, are presented in a similar manner and will not be repeated here.

[0062] In a multi-channel scenario, that is, the near-end terminal includes multiple speakers, the multiple far-end audio signals are the audio signals output by the multiple speakers included in the near-end terminal, and the far-end terminal can obtain the multiple far-end audio signals. The embodiments of the present application provide multiple exemplary methods for obtaining multiple far-end audio signals. One method can be that the far-end terminal directly determines the multiple far-end audio signals based on the sound emitted by the corresponding user. Another method can be that the near-end terminal determines the multiple far-end audio signals output by its speakers. Then, the far-end terminal can obtain the multiple far-end audio signals from the near-end terminal.

[0063] S302 : Obtain a first filter coefficient matrix corresponding to the k-th frame microphone signal output by the target microphone, where the first filter coefficient matrix includes frequency domain filter coefficients of filter sub-blocks corresponding to respective channels.

[0064] During echo cancellation, a filter is typically used to simulate the echo path. The filter's processing of the far-end audio signal (e.g., by multiplying the filter coefficients with the far-end audio signal) simulates the echo signal generated by the far-end audio signal passing through the echo path. To reduce echo cancellation latency, the far-end terminal can perform echo cancellation on a frame-by-frame or block-by-block basis. For this purpose, when performing echo cancellation on the kth frame of microphone signal, the filter can be processed in blocks.

[0065] Filter block processing involves dividing a filter of a certain length into multiple equal parts, each of which is called a filter sub-block. Each filter sub-block has the same length. For example, if a filter has a length of N and is divided into P filter sub-blocks, the length of each filter sub-block is L = N / P. By performing filter block processing, the processing of a far-end audio signal by a single filter can be converted to the processing of the far-end audio signal by P parallel filter sub-blocks.

[0066] The filtering effect of the filter is reflected by the filter coefficient. When the filter is divided into multiple filter sub-blocks, each filter sub-block can filter its corresponding far-end audio signal in parallel. The filtering effect of the filter sub-block also needs to be reflected by the corresponding filter coefficient obtained after the block division. Therefore, each filter sub-block has a corresponding filter coefficient. Therefore, for each filter sub-block, its filter coefficient is used to perform operations with the far-end audio signal on the filter sub-block, thereby realizing parallel processing of the far-end audio signal by P parallel filter sub-blocks.

[0067] In addition, due to the rapidity of the Fourier transform, combining it with frame and block processing can better reduce the delay caused by factors such as the echo path, and greatly simplify the amount of calculation and complexity. Therefore, the embodiment of the present application can convert the filter coefficients of each filter sub-block into the frequency domain through the Fourier transform, thereby obtaining the frequency domain filter coefficients of each filter sub-block. The frequency domain filter coefficients of the filter sub-blocks corresponding to multiple channels can constitute a filter coefficient matrix. In this way, for each frame of microphone signal, the filter coefficient matrix corresponding to the frame of microphone signal is used for calculation with the corresponding far-end audio signal.

[0068] Based on this, when the k-th frame microphone signal output by the target microphone arrives, the remote terminal can obtain the first filter coefficient matrix corresponding to the k-th frame microphone signal, and the first filter coefficient matrix includes the frequency domain filter coefficients of the filter sub-blocks corresponding to each of the multiple channels. The target microphone here refers to the microphone on the near-end terminal; the k-th frame microphone signal output by the target microphone is the k-th frame microphone signal collected by the target microphone, which includes the near-end audio signal and the echo signal (that is, the echo signal generated based on multiple far-end audio signals), and k here is an integer greater than or equal to 1.

[0069] In an embodiment of the present application, the method for obtaining the first filter coefficient matrix corresponding to the k-th frame microphone signal can be to obtain the second filter coefficient matrix corresponding to the k-1-th frame microphone signal, the second filter coefficient matrix including the frequency domain filter coefficients of the filter sub-block corresponding to each channel when the target microphone outputs the k-1-th frame microphone signal, and k is an integer greater than 1. The second filter coefficient matrix is ​​then iteratively updated to obtain the first filter coefficient matrix. That is to say, when the current frame microphone signal (for example, the k-th frame microphone signal) arrives, the first filter coefficient matrix used for multi-channel echo cancellation of the current frame microphone signal can be iteratively updated according to the second filter coefficient matrix corresponding to the previous frame microphone signal (for example, the k-1-th frame microphone signal), thereby continuously optimizing the filter coefficient matrix and converging quickly.

[0070] It should be noted that the filter may be a Kalman filter, and the filter sub-blocks may be obtained by dividing a frequency domain Kalman filter into blocks, wherein the frequency domain Kalman filter includes at least two filter sub-blocks. By performing block-based frequency domain Kalman filtering with the divided frequency domain Kalman filter, the far-end audio signal can be freed from nonlinear preprocessing and double-end talk detection, thereby avoiding correlation interference in multi-channel echo cancellation, reducing computational complexity, and improving convergence efficiency.

[0071] To implement the steps S302-305 and obtain the first filter coefficient matrix through iterative updating, a frequency-domain observation signal model and a frequency-domain state signal model can be first constructed. Next, the principles of constructing the observation signal model and the state signal model will be described in conjunction with the multi-channel recording and playback system block diagram shown in FIG6 .

[0072] The microphone signal y(n) at discrete sampling time n is expressed as:

[0073]

[0074] The superscript T indicates transposition, x i (n) = [x i (n),…,x i (n-N+1)] T The input signal vector of the i-th channel with a length of N, that is, the vector representation of the far-end audio signal, see X0, ..., X in FIG6 H ;w i (n)=[w i,0 (n),…,w i,N-1 (n)] T represents the echo path (also called filter) between the i-th channel and the microphone with a length of N, see W0, ..., W in Figure 6 H; v(n) represents the near-end audio signal, which is usually the sum of the near-end speech signal and background noise; H represents the number of channels, that is, the number of speakers.

[0075] Then, the observation signal model in the frequency domain is established based on the formula shown in (1). Frequency domain signal processing is based on frame processing. If k represents the frame number, the echo path w i (n) is divided into P sub-blocks of equal length, each of which can be called a filter sub-block. At this time, when the target microphone outputs the k-th frame microphone signal, the filter coefficient of the p-th filter sub-block corresponding to the i-th channel is expressed as:

[0076] w i,p (k)=[w i,pL (k),…,w i,pL+L-1 (k)] T (2)

[0077] Where L represents the length of each filter sub-block, and the length of each filter sub-block is L=N / P. i,p (k) is transformed into the frequency domain and the following formula is obtained:

[0078]

[0079] Where F is the M×M Fourier transform matrix (M=2L), L×1 represents an all-zero column vector of dimension L×1.

[0080] At the same time, based on x i (n) = [x i (n),…,x i (n-N+1)] T , the far-end audio signal of the p-th filter sub-block of the i-th channel is processed by frame and block, and converted into the frequency domain:

[0081] x i,p (k)=diag{F[x i (kL-pL-L),…,x i (kL-pL+L-1)] T} (4)

[0082] Where diag{} represents the operation of converting a vector into a diagonal matrix. F[] represents Fourier transform.

[0083] Based on the formula shown in (1), the k-th frame microphone signal is converted into a frequency domain signal, and the following formula is obtained:

[0084]

[0085] Y(k)=F[01×L ,y(kL),…,y(kL+L-1)] T and V(k)=F[0 1×L ,v(kL),…,v(kL+L-1)] T are the frequency domain signals of the k-th frame microphone signal and the near-end audio signal, G 01 is the window matrix, the purpose is to ensure that the result of circular convolution is consistent with that of linear convolution, 0 1×L is an all-zero matrix with dimension 1×L.

[0086] Among them, G 01 It can be expressed as:

[0087]

[0088] 0 L represents an all-zero matrix of dimension L×L, I L represents the identity matrix of dimension L×L, and F represents the Fourier transform matrix. We can further rewrite the formula (5) into a more compact matrix-vector product form:

[0089] Y(k)=X(k)W(k)+V(k) (7)

[0090] Where X(k)=G 01 [X 1,0 (k),…,X 1,P-1 (k),…,X H,0 (k),…,X H,P-1 (k)] is a matrix composed of frequency domain signals of the far-end audio signals of H channels, which can be called a far-end frequency domain signal matrix; is the first filter coefficient matrix corresponding to the k-th frame microphone signal composed of all filter sub-blocks of H channels. So far, the frequency domain observation signal model under the multi-channel echo cancellation framework has been established.

[0091] Next, a frequency domain state signal model is established. In an actual acoustic environment, the change of the echo path over time is very complex, and it is almost impossible to accurately describe this change with a single model. To this end, the embodiment of the present application uses a first-order Markov model to model the echo path, namely the frequency domain state signal model:

[0092] W(k)=AW(k-1)+ΔW(k) (8)

[0093] Where A is a transfer parameter that does not change with time, and W(k-1) is the second filter coefficient matrix corresponding to the microphone signal of the k-1th frame; represents the process noise vector of dimension HLP×1, which is a random signal with zero mean and independent of W(k).

[0094] The covariance matrix of ΔW(k) is:

[0095] Ψ Δ (k) = E[ΔW(k)ΔW Φ (k)] (9)

[0096] Where Φ represents the conjugate transpose, E represents the computational expectation, and the covariance matrix of ΔW includes (HP) 2 A submatrix with dimension N×N. Further, assuming that the process noises between different channels are independent of each other, we can Δ (k) is approximately a diagonal matrix:

[0097] Ψ Δ (k)≈(1-A 2 )diag{W(k)⊙W Φ (k)} (10)

[0098] Where ⊙ represents a dot product operation, and diag{} represents the operation of converting a vector into a diagonal matrix. Essentially, the above formula uses the transfer parameter A and the energy of the true echo path to jointly describe the change of the echo path over time. If the noise signal covariance matrix (observation covariance matrix) can be accurately estimated, the process noise covariance matrix estimation method provided by formula (10) can effectively cope with large echo path changes, even for large parameter A.

[0099] Based on the frequency domain observation signal model and frequency domain state signal model established in the above manner, an accurate block frequency domain Kalman filtering algorithm can be derived. When the block frequency domain Kalman filter algorithm is applied to multi-channel echo cancellation, the second filter coefficient matrix is ​​iteratively updated to obtain the first filter coefficient matrix by obtaining the observation covariance matrix corresponding to the k-th frame microphone signal and the state covariance matrix corresponding to the k-1-th frame microphone signal. The observation covariance matrix and the state covariance matrix are diagonal matrices, which respectively represent the uncertainty of the residual signal prediction value estimation and the state estimation in the Kalman filter; according to the observation covariance matrix corresponding to the k-th frame microphone signal and the state covariance matrix corresponding to the k-1-th frame microphone signal, the gain coefficient is calculated, and the gain coefficient represents the influence of the residual signal prediction value estimation on the state estimation; according to the second filter coefficient matrix, the gain coefficient and the residual signal prediction value corresponding to the k-th frame microphone signal, the first filter coefficient matrix is ​​determined, and then in the iterative update process, the gain coefficient and the residual signal prediction value corresponding to the k-th frame microphone signal are continuously corrected to improve the accuracy of the state estimation (i.e., the new filter coefficient matrix, such as the first filter coefficient matrix). In this case, the iterative update calculation formula of the first filter coefficient matrix can be:

[0100]

[0101] in, represents the second filter coefficient matrix corresponding to the k-1th frame microphone signal, K i (k) represents a gain coefficient, E(k) represents a frequency domain representation of a predicted residual signal corresponding to the k-th frame microphone signal, and A represents a transfer parameter. In one possible embodiment, the method for obtaining the observation covariance matrix corresponding to the k-th frame microphone signal can be to perform filtering processing based on the second filter coefficient matrix and the far-end frequency domain signal matrix to obtain a predicted residual signal corresponding to the k-th frame microphone signal; and calculate the observation covariance matrix corresponding to the k-th frame microphone signal based on the predicted residual signal corresponding to the k-th frame microphone signal.

[0102] Among them, the filtering processing based on the second filter coefficient matrix and the far-end frequency domain signal matrix can be to multiply and sum the second filter coefficient matrix and the far-end frequency domain signal matrix, and the residual signal prediction value corresponding to the k-th frame microphone signal can represent the echo signal that may correspond to the next frame microphone signal based on the second filter coefficient matrix. Specifically, according to the frequency domain observation signal model established above, the frequency domain representation of the residual signal prediction value corresponding to the k-th frame microphone signal can be determined as:

[0103]

[0104] Among them, E(k) represents the frequency domain representation of the residual signal prediction value corresponding to the k-th frame microphone signal, and Y(k) represents the frequency domain signal of the k-th frame microphone signal. represents the far-end frequency domain signal matrix corresponding to the k-th frame microphone signal, represents the second filter coefficient matrix corresponding to the k-1th microphone signal, H is the number of channels, L is the length of each filter subblock, and i is the subscript of each element in the matrix. Where E(k) = Fe(k), Y(k) = Fy(k), e(k) is the time domain representation of the predicted residual signal corresponding to the kth microphone signal, and y(k) is the time domain representation of the kth microphone signal.

[0105] When calculating the observation covariance matrix corresponding to the microphone signal of the kth frame, the observation covariance matrix corresponding to the microphone signal of the k-1th frame can be combined for calculation. When the filter converges to a steady state, the predicted value of the residual signal is very close to the true noise vector. Therefore, the calculation formula of the observation covariance matrix corresponding to the microphone signal of the kth frame is as follows:

[0106] Ψ s (k)=αΨ s (k-1)+(1-α)diag{E(k)⊙E φ (k)} (13)

[0107] Among them, s (k) represents the observation covariance matrix corresponding to the microphone signal of the kth frame, Ψ s (k-1) represents the observed covariance matrix corresponding to the microphone signal of the k-1th frame, α is the smoothing factor, which is set based on actual experience, E(k) represents the frequency domain representation of the predicted value of the residual signal corresponding to the microphone signal of the kth frame, ⊙ represents the dot product operation, diag{} represents the operation of converting a vector into a diagonal matrix, and φ represents the conjugate transpose.

[0108] In this embodiment, a manner of obtaining the state covariance matrix corresponding to the k-1th frame microphone signal may be to calculate the state covariance matrix corresponding to the k-1th frame microphone signal according to the second filter coefficient matrix.

[0109] Specifically, the calculation formula is as follows:

[0110]

[0111] Among them, P i,j (k-1) represents the state covariance matrix corresponding to the k-1th frame microphone signal, P i,j (k-2) represents the state covariance matrix corresponding to the k-2th frame microphone signal, K i(k-1) represents the gain coefficient corresponding to the microphone signal of the k-1th frame, represents the far-end frequency domain signal matrix corresponding to the k-1th frame microphone signal, represents the second filter coefficient matrix corresponding to the microphone signal of the k-1th frame, i and j are the subscripts of the elements in the matrix, R is the frame shift, and M is the frame length.

[0112] It should be noted that certain variables corresponding to the microphone signal of the k-1th frame, such as the gain coefficient and the second filter coefficient matrix, can be calculated based on the variables corresponding to the microphone signal of the previous frame, or can be set as initial values. Similarly, the state covariance matrix corresponding to the microphone signal of the k-1th frame and the state covariance matrix corresponding to the microphone signal of the k-2th frame can also be set as initial values.

[0113] According to the observation covariance matrix corresponding to the microphone signal of the kth frame and the state covariance matrix corresponding to the microphone signal of the k-1th frame, the gain coefficient can be calculated by first calculating the gain estimation intermediate variable:

[0114]

[0115] Among them, D x (k) is the intermediate variable for gain estimation, R is the frame shift, M is the frame length, represents the far-end frequency domain signal matrix corresponding to the k-th frame microphone signal, P i,j (k-1) represents the state covariance matrix corresponding to the k-1th frame microphone signal, represents the conjugate transpose of the far-end frequency domain signal matrix corresponding to the k-th frame microphone signal, Ψ s (k) represents the observation covariance matrix corresponding to the microphone signal of the kth frame, and i and j are the subscripts of the elements in the matrix respectively.

[0116] The formula for calculating the gain coefficient can be:

[0117]

[0118] Among them, K i (k) represents the gain coefficient, P i,j (k-1) represents the state covariance matrix corresponding to the k-1th frame microphone signal, represents the conjugate transpose of the far-end frequency domain signal matrix corresponding to the k-th frame microphone signal, Perform an inverse transform on the intermediate variable of gain estimation, where R is the frame shift, M is the frame length, and j is the subscript of the element in the matrix.

[0119] S303 : Process the multiple far-end audio signals by framing and blocking, and determine a far-end frequency domain signal matrix corresponding to the k-th frame microphone signal, where the far-end frequency domain signal matrix includes far-end frequency domain signals of filter sub-blocks corresponding to the multiple channels.

[0120] S304 : Perform filtering processing according to the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the microphone signal of the kth frame.

[0121] The far-end audio signal may include multiple frames, and the embodiment of the present application performs echo cancellation on each frame of the microphone signal. When performing echo cancellation on the k-th frame microphone signal, it is necessary to select the far-end audio signal corresponding to the k-th frame microphone signal from the multiple frames of the far-end audio signal to achieve echo cancellation in frames.

[0122] In addition, to reduce latency, the filter is divided into blocks in S302 so that the far-end audio signal can be processed in parallel using the multiple filter sub-blocks obtained after the block division. That is, each filter sub-block needs to process a portion of the far-end audio signal. Based on this, the far-end terminal needs to perform frame processing and block processing based on the multiple far-end audio signals, thereby obtaining the far-end audio signal corresponding to the k-th frame microphone signal, and dividing the far-end audio signal into multiple parts equal to the number of filter sub-blocks, each part corresponding to a filter sub-block, and the multiple parts corresponding to the multiple frames of far-end audio signals constitute a far-end audio signal matrix. In this way, when performing echo cancellation on the k-th frame microphone signal, the far-end audio signal corresponding to the k-th frame microphone signal is processed in parallel using multiple filter sub-blocks, that is, each filter sub-block processes the corresponding part of the far-end audio signal.

[0123] Due to the rapid nature of the Fourier transform, combined with framing and blocking for processing, there is no need to wait for the entire far-end audio signal to be output through the target microphone, thereby reducing delays caused by factors such as the echo path and greatly simplifying the amount of computation and complexity. Therefore, in the embodiments of the present application, the framing and blocking of the far-end audio signal can be converted to the frequency domain through the Fourier transform, thereby obtaining a frequency domain representation of the far-end audio signal. Accordingly, the far-end audio signal matrix is ​​converted into a far-end frequency domain signal matrix.

[0124] The far-end frequency domain signal matrix includes the far-end frequency domain signals of the filter sub-blocks corresponding to each of the multiple channels. Thus, when filtering the echo signal from the k-th microphone frame using the first filter coefficient matrix and the far-end frequency domain signal matrix, the calculation is transformed into the frequency domain. This reduces delays caused by factors such as the echo path and significantly simplifies the computational effort and complexity.

[0125] In one possible implementation, the far-end frequency domain signal matrix may be determined by performing frame and block processing on the multiple far-end audio signals. An overlap-preserving algorithm may be employed to obtain the far-end frequency domain signals for each filter sub-block corresponding to each of the multiple channels according to a preset frame shift and a preset frame length, and the far-end frequency domain signals for each filter sub-block corresponding to each of the multiple channels are combined to form the far-end frequency domain signal matrix. The preset frame shift may be represented by R.

[0126] It should be noted that, based on the construction process of the frequency domain observation signal model, the remote audio signal x h (n) Perform frame and block processing to obtain vector x h,l (k) represents the far-end audio signal of the lth filter sub-block corresponding to the hth channel when the target microphone outputs the kth frame microphone signal. The length of each filter sub-block is 2N (equivalent to L in the construction process of the aforementioned frequency domain observation signal model), and the frame shift is N (equivalent to the preset frame shift R). It is specifically expressed as:

[0127] x h,l (k) = {x h [(kl-1)N],…,x h [(k-l+1)N-1]} T (17)

[0128] The microphone signal collected by the target microphone, such as the t-th microphone, is divided into frames to obtain the vector y t (k), y t (k) represents the frequency domain signal of the kth frame of microphone signal output by the target microphone, which is specifically expressed as follows. In the following step description, the microphone number t is omitted:

[0129] y t (k)=[y t (kN),…,y t (kN+N-1)] T (18)

[0130] Where T represents the transpose operation.

[0131] The residual signal prediction value e(k) corresponding to the k-th frame microphone signal is frame-padding with zeros:

[0132] e(k)=[0 1×N ,e(kN),…,e(kN+N-1)] T (19)

[0133] Among them, 0 1×N represents an all-zero matrix of dimension 1×N, and T represents the transpose operation.

[0134] Determine the filter coefficients:

[0135]

[0136] w h,l (n)=[w h,lN (n),…,wh,(l+1)N-1(n)] T (twenty one)

[0137] Among them, w h (n) is the time domain representation of the filter coefficient corresponding to the h-th channel, w h,l (n) is the time domain representation of the filter coefficients of the lth filter sub-block corresponding to the hth channel, and n represents the discrete sampling time.

[0138] For the time domain vector x in (20) and (21) h,l (k) and w h,l (n) Perform Fourier transform respectively to obtain frequency domain representation:

[0139]

[0140]

[0141] in, represents the far-end frequency domain signal matrix, represents the first filter coefficient matrix, F represents the Fourier transform with a dimension of 2N×2N, l=mod(i,L), where mod is a remainder operation and L is the number of filter sub-blocks (equivalent to P in the aforementioned process of constructing the frequency domain observation signal model).

[0142] Through the above expression, filtering processing based on the first filter coefficient matrix and the remote frequency domain signal matrix can be and Perform product-sum operation to obtain the echo signal in the microphone signal of the kth frame.

[0143] S305 : Perform echo cancellation based on the frequency domain signal of the k-th frame microphone signal and the echo signal in the k-th frame microphone signal to obtain a near-end audio signal output by the target microphone.

[0144] After obtaining the echo signal based on the aforementioned steps, the remote terminal may subtract the echo signal from the frequency domain signal of the kth frame microphone signal, thereby achieving echo cancellation and obtaining the near-end audio signal output by the target microphone.

[0145] It should be noted that the target microphone is located on the voice communication device. The voice communication device may include one microphone, and the microphone is the target microphone. The near-end audio signal output by the target microphone is used as the signal ultimately played to the far-end user.

[0146] In some cases, a voice communication device may include multiple microphones, for example, T microphones, where T is an integer greater than 1. The target microphone is the t-th microphone among the T microphones, where 0 ≤ t ≤ T-1 and t is an integer. In this case, the near-end audio signal output by the target microphone is the near-end audio signal output by each microphone. In this case, the near-end audio signals output by the T microphones can be mixed to generate the target audio signal, thereby improving the quality of the target audio signal played to the far-end user through mixing.

[0147] As shown in FIG6 , the near-end audio signals output by T microphones are S0, ..., S T-1 , S0, ...S T-1 Perform signal mixing to obtain the target audio signal.

[0148] In some cases, since the near-end audio signal may include both speech and background noise, the background noise contained in the near-end audio signal can be eliminated to obtain a clearer speech signal. Since T microphones output T near-end audio signals, to avoid performing background noise elimination on each near-end audio signal separately, the background noise contained in the target audio signal can be estimated after obtaining the target audio signal, and then the background noise can be eliminated from the target audio signal to obtain the near-end speech signal.

[0149] By performing signal mixing first and then eliminating background noise, it is possible to avoid performing background noise elimination on each near-end audio signal separately, thereby reducing the amount of calculation and improving calculation efficiency.

[0150] It can be seen from the above technical solution that in a multi-channel echo cancellation scenario, multiple far-end audio signals output by multiple channels can be obtained, and when the target microphone outputs the k-th frame microphone signal, the first filter coefficient matrix corresponding to the k-th frame microphone signal is obtained. The first filter coefficient matrix includes the frequency domain filter coefficients of the filter sub-blocks corresponding to each of the multiple channels. Then, frame and block processing is performed based on the multiple far-end audio signals to determine the far-end frequency domain signal matrix. The far-end frequency domain signal matrix includes the far-end frequency domain signals of the filter sub-blocks corresponding to each of the multiple channels. In this way, when filtering is performed based on the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain the echo signal in the k-th frame microphone signal, the calculation is transformed into the frequency domain. Since the Fourier transform suitable for frequency domain calculation is fast, it is combined with frame and block processing. There is no need to wait for the far-end audio signal to be completely output through the target microphone, which can reduce the delay caused by reasons such as the echo path and greatly reduce the amount of calculation and complexity. Then, based on the frequency domain signal of the kth microphone signal and the echo signal in the kth microphone signal, echo cancellation can be quickly performed to obtain the near-end audio signal output by the target microphone. This solution does not require increasing the filter order. Instead, it transforms the calculation into the frequency domain and combines it with frame and block processing. This reduces the delay caused by factors such as the echo path, significantly reduces the computational effort and complexity of multi-channel echo cancellation, and achieves better convergence performance.

[0151] Related art provides two multi-channel echo cancellation methods. Method 1 can be seen in Figure 7, and Method 2 can be seen in Figure 8. Method 1 uses an echo filter to perform echo filtering on M receiving-end signals, obtaining M filtered receiving-end signals. These M filtered receiving-end signals are then subtracted from the transmitting-end signal to obtain a system output signal with the receiving-end echo eliminated. Buffers (buffer 1, ..., buffer M) are used to buffer the M receiving-end signals. A decorrelation matrix is ​​calculated based on the M buffered receiving-end signals within each preset length. The decorrelation matrix is ​​used to decompose the buffered M receiving-end signals into M decorrelated receiving-end signals. The echo filter update is calculated based on the decorrelation matrix, the M decorrelated receiving-end signals, and the feedback system output signal. Method 1 actually introduces a preprocessing method. While removing inter-channel correlation, this preprocessing method can also cause a decrease in voice quality, reducing the user experience. Parameter setting requires a balance between these two requirements.

[0152] Method 2 independently models each echo path and then copies the coefficients of the independently modeled model to a new filter. This approach can provide more accurate estimates of each echo path when the echo path is stable. However, it is still essentially a Normalized Least Mean Square (NLMS) adaptive filter, which suffers from drawbacks such as slow convergence and lack of stability against changing paths. Furthermore, implementation complexity increases exponentially with increasing number of channels.

[0153] Compared with Method 1 and Method 2, the method provided in the embodiment of the present application has significant performance advantages. It does not require any nonlinear preprocessing of the far-end audio signal, nor does it require the use of a two-end intercom detection method. It can avoid correlation interference in multi-channel echo cancellation, reduce computational complexity, and improve convergence efficiency.

[0154] Next, taking the filter as a block frequency domain Kalman filter and performing block frequency domain Kalman filtering as an example, if the transfer parameter A is set to 0.9999, all state covariance matrices are initialized to the unit matrix IN, and MSD (MSD is a normalized system distance) is used to evaluate the performance of Method 1, Method 2 and the multi-channel echo cancellation method provided in the embodiment of the present application (i.e., the present solution in Figures 9 and 11).

[0155] Referring to FIG9 , FIG9 is an example diagram of the MSD curves of the three echo cancellation methods described above in a single-talk state. The larger the MSD value, the worse the performance. FIG9 shows that before t = 30 seconds, the multi-channel echo cancellation method provided in the embodiment of the present application achieves better performance relatively quickly, that is, the MSD value decreases relatively quickly. The echo path changes at t = 30 seconds (the echo path is multiplied by -1 to simulate an echo path mutation), resulting in a decrease in the performance of the three echo cancellation methods. The MSD value immediately increases. However, the multi-channel echo cancellation method provided in the embodiment of the present application achieves better performance relatively quickly after the echo path mutation. It can be seen that the performance of the multi-channel echo cancellation method provided in the embodiment of the present application is better than that of Method 1 and Method 2.

[0156] As shown in Figure 10, if both the far-end audio signal shown in Figure 10 and the near-end audio signal shown in Figure 10 are present in the microphone signal, that is, in a double-talk state, the performance of the above three echo cancellation methods is evaluated. Referring to Figure 11, Figure 11 shows an example of the MSD curves of the above three echo cancellation methods in a double-talk state. Figure 10 shows that the near-end audio signal appears in the 20s-30s and 40s-50s time intervals, respectively. Figure 11 shows that Method 1 and Method 2 diverge rapidly when near-end audio signal interference is present in the 20s-30s and 40s-50s time intervals, i.e., the MSD values ​​significantly increase, resulting in performance degradation. However, the multi-channel echo cancellation method provided in the embodiment of the present application exhibits a rapid decrease in MSD, i.e., it is highly robust to interference from near-end audio signals even in the absence of double-talk detection.

[0157] It should be noted that, based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods.

[0158] Based on the multi-channel echo cancellation method provided in the embodiment corresponding to FIG3 , the embodiment of the present application further provides a multi-channel echo cancellation device. Referring to FIG12 , the device 1200 includes an acquisition unit 1201, a determination unit 1202, a filtering unit 1203, and an elimination unit 1204:

[0159] An acquiring unit 1201 is configured to acquire a plurality of remote audio signals, where the plurality of remote audio signals are audio signals outputted by a plurality of channels respectively;

[0160] The acquiring unit 1201 is further configured to acquire a first filter coefficient matrix corresponding to the k-th frame microphone signal output by the target microphone, the first filter coefficient matrix including frequency domain filter coefficients of the filter sub-blocks corresponding to each of the plurality of channels; k is an integer greater than or equal to 1;

[0161] A determining unit 1202 is configured to perform frame and block processing on the multiple far-end audio signals, and determine a far-end frequency domain signal matrix corresponding to the microphone signal of the k-th frame, where the far-end frequency domain signal matrix includes far-end frequency domain signals of filter sub-blocks corresponding to the multiple channels.

[0162] The filtering unit 1203 is configured to perform filtering processing according to the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the microphone signal of the kth frame;

[0163] The cancellation unit 1204 is configured to perform echo cancellation based on the frequency domain signal of the k-th frame microphone signal and the echo signal in the k-th frame microphone signal to obtain a near-end audio signal output by the target microphone.

[0164] In a possible implementation, the acquiring unit 1201 is specifically configured to:

[0165] Obtain a second filter coefficient matrix corresponding to the k-1th frame microphone signal output by the target microphone, where the second filter coefficient matrix includes frequency domain filter coefficients of filter sub-blocks corresponding to each of the multiple channels, and k is an integer greater than 1;

[0166] The second filter coefficient matrix is ​​iteratively updated to obtain a first filter coefficient matrix.

[0167] In a possible implementation, the acquiring unit 1201 is specifically configured to:

[0168] Obtain an observation covariance matrix corresponding to the microphone signal of the kth frame, and obtain a state covariance matrix corresponding to the microphone signal of the k-1th frame, where the observation covariance matrix and the state covariance matrix are diagonal matrices;

[0169] Calculate the gain coefficient according to the observation covariance matrix corresponding to the microphone signal of the kth frame and the state covariance matrix corresponding to the microphone signal of the k-1th frame;

[0170] The first filter coefficient matrix is ​​determined according to the second filter coefficient matrix, the gain coefficient, and the residual signal prediction value corresponding to the microphone signal of the kth frame.

[0171] In a possible implementation, the acquiring unit 1201 is specifically configured to:

[0172] Perform filtering processing according to the second filter coefficient matrix and the far-end frequency domain signal matrix to obtain a residual signal prediction value corresponding to the k-th frame microphone signal;

[0173] Calculate the observation covariance matrix corresponding to the k-th frame microphone signal based on the residual signal prediction value corresponding to the k-th frame microphone signal;

[0174] The state covariance matrix corresponding to the k-1th frame microphone signal is calculated according to the second filter coefficient matrix.

[0175] In a possible implementation, the determining unit 1202 is configured to:

[0176] According to the preset frame shift and the preset frame length, the overlap preservation algorithm is used to obtain the far-end frequency domain signal of each filter sub-block corresponding to each of the multiple channels;

[0177] The far-end frequency domain signals of each filter sub-block corresponding to the multiple channels are used to form a far-end frequency domain signal matrix.

[0178] In one possible implementation, the target microphone is located on a voice communication device, the voice communication device includes T microphones, T is an integer greater than 1, the target microphone is the t-th microphone among the T microphones, 0≤t≤T-1 and t is an integer, and the apparatus further includes a mixing unit:

[0179] The mixing unit is used to mix the near-end audio signals output by the T microphones to obtain a target audio signal.

[0180] In a possible implementation, the apparatus further includes an estimating unit:

[0181] an estimating unit, configured to estimate background noise included in the target audio signal;

[0182] The elimination unit 1204 is further configured to eliminate background noise from the target audio signal to obtain a near-end speech signal.

[0183] The embodiment of the present application further provides a computer device, which may be a voice communication device. The voice communication device may be, for example, a terminal. For example, a smartphone is used as the terminal.

[0184] FIG13 is a block diagram showing a partial structure of a smartphone provided in an embodiment of the present application. Referring to FIG13 , the smartphone includes components such as a radio frequency (RF) circuit 1310, a memory 1320, an input unit 1330, a display unit 1340, a sensor 1350, an audio circuit 1360, a wireless fidelity (WiFi) module 1370, a processor 1380, and a power supply 1390. The input unit 1330 may include a touch panel 1331 and other input devices 1332, the display unit 1340 may include a display panel 1341, and the audio circuit 1360 may include a speaker 1361 and a microphone 1362. Those skilled in the art will appreciate that the smartphone structure shown in FIG13 does not constitute a limitation on smartphones, and may include more or fewer components than shown, or combine certain components, or arrange components differently.

[0185] The memory 1320 can be used to store software programs and modules. The processor 1380 executes the various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 1320. The memory 1320 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created based on the use of the smartphone (such as audio data, a phone book, etc.). In addition, the memory 1320 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0186] Processor 1380 is the control center of the smartphone, connecting all components of the smartphone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 1320 and accessing data stored in memory 1320, it executes various smartphone functions and processes data, thereby providing overall smartphone monitoring. Optionally, processor 1380 may include one or more processing units; preferably, processor 1380 may integrate an application processor and a modem processor, with the application processor primarily handling the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 1380.

[0187] In this embodiment, the processor 1380 in the smart phone can execute the multi-channel echo cancellation method provided in the embodiment of the present application.

[0188] The embodiment of the present application also provides a server, as shown in Figure 14, which is a structural diagram of the server 1400 provided in the embodiment of the present application. The server 1400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 1422 (for example, one or more processors) and a memory 1432, and one or more storage media 1430 (for example, one or more mass storage devices) for storing application programs 1442 or data 1444. Among them, the memory 1432 and the storage medium 1430 can be temporary storage or permanent storage. The program stored in the storage medium 1430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1422 can be configured to communicate with the storage medium 1430 to execute a series of instruction operations in the storage medium 1430 on the server 1400.

[0189] The server 1400 may also include one or more power supplies 1426, one or more wired or wireless network interfaces 1450, one or more input and output interfaces 1458, and / or one or more operating systems 1441, such as Windows Server 2003. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.

[0190] In this embodiment, the steps performed by the central processor 1422 in the server 1400 can be implemented based on the structure shown in FIG. 14 .

[0191] According to one aspect of the present application, a computer-readable storage medium is provided. The computer-readable storage medium is used to store program codes. The program codes are used to execute the multi-channel echo cancellation method of each of the aforementioned embodiments.

[0192] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the above-described embodiments.

[0193] The descriptions of the processes or structures corresponding to the above figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0194] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0195] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0196] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected based on actual needs to achieve the objectives of this embodiment.

[0197] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0198] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0199] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, ordinary technical members in this field should understand that they can still modify the technical solutions recorded in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A multi-channel echo cancellation method, executed by a computer device, the method comprising: Acquire multiple remote audio signals, where the multiple remote audio signals are audio signals output by multiple channels respectively; Acquire a first filter coefficient matrix corresponding to the k-th frame microphone signal output by the target microphone, wherein the first filter coefficient matrix includes frequency domain filter coefficients of the filter sub-blocks corresponding to each of the multiple channels; k is an integer greater than or equal to 1; Performing frame and block processing on the multiple remote audio signals, determining a remote frequency domain signal matrix corresponding to the kth frame microphone signal, wherein the remote frequency domain signal matrix includes remote frequency domain signals of filter sub-blocks corresponding to each of the multiple channels; Perform filtering processing according to the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the k-th frame microphone signal; Echo cancellation is performed according to the frequency domain signal of the k-th frame microphone signal and the echo signal in the k-th frame microphone signal to obtain a near-end audio signal output by the target microphone.

2. The method according to claim 1, wherein obtaining a first filter coefficient matrix corresponding to the k-th frame microphone signal comprises: Acquire a second filter coefficient matrix corresponding to the k-1th frame microphone signal output by the target microphone, wherein the second filter coefficient matrix includes frequency domain filter coefficients of the filter sub-blocks corresponding to each of the multiple channels, and k is an integer greater than 1; The second filter coefficient matrix is ​​iteratively updated to obtain the first filter coefficient matrix.

3. The method according to claim 2, wherein the iterative updating of the second filter coefficient matrix to obtain the first filter coefficient matrix comprises: Obtaining an observation covariance matrix corresponding to the k-th frame microphone signal, and obtaining a state covariance matrix corresponding to the k-1-th frame microphone signal, wherein the observation covariance matrix and the state covariance matrix are diagonal matrices; Calculating a gain coefficient according to an observation covariance matrix corresponding to the k-th frame microphone signal and a state covariance matrix corresponding to the k-1-th frame microphone signal; The first filter coefficient matrix is ​​determined according to the second filter coefficient matrix, the gain coefficient and the residual signal prediction value corresponding to the k-th frame microphone signal.

4. The method according to claim 3, wherein obtaining the observed covariance matrix corresponding to the k-th frame microphone signal comprises: Perform filtering processing according to the second filter coefficient matrix and the far-end frequency domain signal matrix to obtain a residual signal prediction value corresponding to the k-th frame microphone signal; Calculating an observation covariance matrix corresponding to the k-th frame microphone signal according to a predicted value of a residual signal corresponding to the k-th frame microphone signal; The obtaining of the state covariance matrix corresponding to the k-1th frame microphone signal includes: The state covariance matrix corresponding to the k-1th frame microphone signal is calculated according to the second filter coefficient matrix.

5. The method according to any one of claims 1 to 4, wherein the step of performing frame and block processing on the multiple remote audio signals to determine the remote frequency domain signal matrix comprises: According to a preset frame shift and a preset frame length, an overlap preservation algorithm is used to obtain a far-end frequency domain signal of each filter sub-block corresponding to each of the multiple channels; The far-end frequency domain signal matrix is ​​formed by using the far-end frequency domain signal of each filter sub-block corresponding to each of the multiple channels.

6. The method according to any one of claims 1 to 4, wherein the target microphone is located on a voice communication device, the voice communication device includes T microphones, T is an integer greater than 1, the target microphone is the t-th microphone among the T microphones, 0≤t≤T-1 and t is an integer, and the method further comprises: Signal mixing is performed on the near-end audio signals respectively output by the T microphones to obtain a target audio signal.

7. The method according to claim 6, after performing signal mixing on the near-end audio signals respectively output by the T microphones to obtain the target audio signal, the method further comprises: estimating background noise included in the target audio signal; The background noise is eliminated from the target audio signal to obtain a near-end speech signal.

8. According to the method according to any one of claims 1-4, the filter sub-block is obtained by dividing the block frequency domain Kalman filter into blocks, and the block frequency domain Kalman filter includes at least two filter sub-blocks.

9. A multi-channel echo cancellation device, comprising an acquisition unit, a determination unit, a filtering unit and an elimination unit: The acquisition unit is used to acquire a plurality of remote audio signals, where the plurality of remote audio signals are audio signals respectively output by a plurality of channels; The acquisition unit is further used to acquire a first filter coefficient matrix corresponding to the k-th frame microphone signal output by the target microphone, wherein the first filter coefficient matrix includes frequency domain filter coefficients of the filter sub-blocks corresponding to each of the multiple channels; k is an integer greater than or equal to 1; The determining unit is configured to perform frame and block processing on the multiple remote audio signals to determine a remote frequency domain signal matrix corresponding to the k-th frame microphone signal, wherein the remote frequency domain signal matrix includes remote frequency domain signals of filter sub-blocks corresponding to each of the multiple channels; The filtering unit is used to perform filtering processing according to the first filter coefficient matrix and the far-end frequency domain signal matrix to obtain the echo signal in the k-th frame microphone signal; The elimination unit is used to perform echo elimination according to the frequency domain signal of the k-th frame microphone signal and the echo signal in the k-th frame microphone signal to obtain the near-end audio signal output by the target microphone.

10. The device according to claim 9, wherein the acquisition unit is specifically configured to: Acquire a second filter coefficient matrix corresponding to the k-1th frame of microphone signal, where the second filter coefficient matrix includes frequency domain filter coefficients of filter sub-blocks corresponding to each of the multiple channels, and k is an integer greater than 1; The second filter coefficient matrix is ​​iteratively updated to obtain the first filter coefficient matrix.

11. The device according to claim 10, wherein the acquisition unit is specifically configured to: Obtaining an observation covariance matrix corresponding to the k-th frame microphone signal, and obtaining a state covariance matrix corresponding to the k-1-th frame microphone signal, wherein the observation covariance matrix and the state covariance matrix are diagonal matrices; Calculating a gain coefficient according to an observation covariance matrix corresponding to the k-th frame microphone signal and a state covariance matrix corresponding to the k-1-th frame microphone signal; The first filter coefficient matrix is ​​determined according to the second filter coefficient matrix, the gain coefficient and the residual signal prediction value corresponding to the k-th frame microphone signal.

12. The device according to claim 11, wherein the acquisition unit is specifically configured to: Perform filtering processing according to the second filter coefficient matrix and the far-end frequency domain signal matrix to obtain a residual signal prediction value corresponding to the k-th frame microphone signal; Calculating an observation covariance matrix corresponding to the k-th frame microphone signal according to a predicted value of a residual signal corresponding to the k-th frame microphone signal; The state covariance matrix corresponding to the k-1th frame microphone signal is calculated according to the second filter coefficient matrix.

13. A computer device, comprising a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1 to 8 according to the instructions in the program code.

14. A computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, wherein the program code is used to execute the method according to any one of claims 1 to 8.

15. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.