# US 12,720,258 B2 · Multi-channel echo cancellation method and related apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,720,258 B2
- Document ID: US12720258B2
- Status: Granted
- Kind: B2
- Application number: 18/456,054
- Filed: 2023-08-25
- Published: 2023-12-14
- Granted: 2026-08-25
- Earliest claimed: 2021-11-26
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Rui Zhu; Zhipeng Liu; Yuepeng Li
- Web page: https://patentgrep.com/patent/US12720258B2

## CPC

- H04R 3/02: for preventing acoustic reaction {, i.e. acoustic oscillatory feedback (specially adapted for hearing aids H04R25/453)}
- G10L 21/02: Speech enhancement, e.g. noise reduction or echo cancellation (reducing echo effects in line transmission systems H04B3/20; echo suppression in hands-free telephones H04M9/08)
- G10L 21/0208: Noise filtering
- H04M 9/08: Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
- H04R: LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS (producing sounds with frequency not determined by supply frequency G10K)
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)

## Abstract

A multi-channel echo cancellation method includes obtaining far-end audio signals outputted by channels, obtaining a filter coefficient matrix corresponding to a kth frame of microphone signal outputted by a target microphone and including frequency domain filter coefficients of filter sub-blocks corresponding to the channels, performing frame-partitioning and block-partitioning processing on the far-end audio signals to determine a far-end frequency domain signal matrix corresponding to the kth frame of microphone signal and including far-end frequency domain signals of the filter sub-blocks, performing filtering processing according to the filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the kth frame of microphone signal, and performing echo cancellation according to a frequency domain signal of the kth frame of microphone signal and the echo signal in the kth frame of microphone signal to obtain a near-end audio signal outputted by the target microphone.

## Claims

### Claim 1

A multi-channel echo cancellation method, performed by a computer device, comprising:
obtaining a plurality of far-end audio signals outputted by a plurality of channels, respectively;
obtaining a first filter coefficient matrix corresponding to a kth frame of microphone signal outputted by a target microphone, comprising:
obtaining a second filter coefficient matrix corresponding to a (k-1)th frame of microphone signal outputted by the target microphone, the first and second filter coefficient matrices respectively including frequency domain filter coefficients of filter sub-blocks corresponding to the plurality of channels, and k being an integer greater than or equal to 1; and
determining the first filter coefficient matrix according to the second filter coefficient matrix, a gain coefficient, and a residual signal prediction value corresponding to the kth frame of microphone signal, wherein the residual signal prediction value corresponding to the kth frame of microphone signal represents an echo signal corresponding to a next frame of microphone signal predicted based on the second filter coefficient matrix;
performing frame-partitioning and block-partitioning processing on the plurality of far-end audio signals to determine a far-end frequency domain signal matrix corresponding to the kth frame of microphone signal, the far-end frequency domain signal matrix including far-end frequency domain signals of the filter sub-blocks;
performing filtering processing according to the filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the kth frame of microphone signal; and
performing echo cancellation according to a frequency domain signal of the kth frame of microphone signal and the echo signal in the kth frame of microphone signal to obtain a near-end audio signal outputted by the target microphone.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining the first filter coefficient matrix comprises: updating the second filter coefficient matrix iteratively to obtain the first filter coefficient matrix, and the gain coefficient is obtained by:
obtaining an observation covariance matrix corresponding to the kth frame of microphone signal, and obtaining a state covariance matrix corresponding to the (k-1)th frame of microphone signal, the observation covariance matrix and the state covariance matrix being diagonal matrices; and
calculating the gain coefficient according to the observation covariance matrix corresponding to the kth frame of microphone signal and the state covariance matrix corresponding to the (k-1)th frame of microphone signal.

### Claim 3 (depends on 2)

The method according to claim 2, wherein:
obtaining the observation covariance matrix corresponding to the kth frame of microphone signal includes:
performing filtering processing according to the second filter coefficient matrix and the far-end frequency domain signal matrix to obtain the residual signal prediction value corresponding to the kth frame of microphone signal; and
calculating the observation covariance matrix corresponding to the kth frame of microphone signal according to the residual signal prediction value corresponding to the kth frame of microphone signal; and
obtaining the state covariance matrix corresponding to the (k-1)th frame of microphone signal includes:
calculating the state covariance matrix corresponding to the (k-1)th frame of microphone signal according to the second filter coefficient matrix.

### Claim 4 (depends on 1)

The method according to claim 1, wherein performing frame-partitioning and block-partitioning processing on the plurality of far-end audio signals to determine a far-end frequency domain signal matrix includes:
obtaining the far-end frequency domain signals of the filter sub-blocks corresponding to the plurality of channels using an overlap reservation algorithm according to a preset frame shift and a preset frame length; and
forming the far-end frequency domain signal matrix using the far-end frequency domain signals of the filter sub-blocks corresponding to the plurality of channels.

### Claim 5 (depends on 1)

The method according to claim 1, wherein:
the target microphone is one of a plurality of microphones of a voice communication device;
the method further comprising:
performing signal mixing on near-end audio signals outputted by the plurality of microphones, respectively, to obtain a target audio signal.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
estimating background noise included in the target audio signal; and
cancelling the background noise from the target audio signal to obtain a near-end voice signal.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the filter sub-blocks are obtained by performing block partitioning on a partitioned-block frequency domain Kalman filter, the partitioned-block frequency domain Kalman filter including at least two filter sub-blocks.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the gain coefficient represents an influence of the residual signal prediction value on a state estimation.

### Claim 9

A computer device comprising:
a memory storing program codes; and
a processor configured to execute the program codes to:
obtain a plurality of far-end audio signals outputted by a plurality of channels, respectively;
obtain a first filter coefficient matrix corresponding to a kth frame of microphone signal outputted by a target microphone, comprising:
obtaining a second filter coefficient matrix corresponding to a (k-1)th frame of microphone signal outputted by the target microphone, the first and second filter coefficient matrices respectively including frequency domain filter coefficients of filter sub-blocks corresponding to the plurality of channels, and k being an integer greater than or equal to 1; and
determining the first filter coefficient matrix according to the second filter coefficient matrix, a gain coefficient, and a residual signal prediction value corresponding to the kth frame of microphone signal, wherein the residual signal prediction value corresponding to the kth frame of microphone signal represents an echo signal corresponding to a next frame of microphone signal predicted based on the second filter coefficient matrix;
perform frame-partitioning and block-partitioning processing on the plurality of far-end audio signals to determine a far-end frequency domain signal matrix corresponding to the kth frame of microphone signal, the far-end frequency domain signal matrix including far-end frequency domain signals of the filter sub-blocks;
perform filtering processing according to the filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the kth frame of microphone signal; and
perform echo cancellation according to a frequency domain signal of the kth frame of microphone signal and the echo signal in the kth frame of microphone signal to obtain a near-end audio signal outputted by the target microphone.

### Claim 10 (depends on 9)

The device according to claim 9, wherein the processor is further configured to execute the program codes to:
obtain an observation covariance matrix corresponding to the kth frame of microphone signal, and obtain a state covariance matrix corresponding to the (k-1)th frame of microphone signal, the observation covariance matrix and the state covariance matrix being diagonal matrices; and
calculate the gain coefficient according to the observation covariance matrix corresponding to the kth frame of microphone signal and the state covariance matrix corresponding to the (k-1)th frame of microphone signal.

### Claim 11 (depends on 10)

The device according to claim 10, wherein the processor is further configured to execute the program codes to:
perform filtering processing according to the second filter coefficient matrix and the far-end frequency domain signal matrix to obtain the residual signal prediction value corresponding to the kth frame of microphone signal;
calculate the observation covariance matrix corresponding to the kth frame of microphone signal according to the residual signal prediction value corresponding to the kth frame of microphone signal; and
calculate the state covariance matrix corresponding to the (k-1)th frame of microphone signal according to the second filter coefficient matrix.

### Claim 12 (depends on 9)

The device according to claim 9, wherein the processor is further configured to execute the program codes to:
obtain the far-end frequency domain signals of the filter sub-blocks corresponding to the plurality of channels using an overlap reservation algorithm according to a preset frame shift and a preset frame length; and
form the far-end frequency domain signal matrix using the far-end frequency domain signals of the filter sub-blocks corresponding to the plurality of channels.

### Claim 13 (depends on 9)

The device according to claim 9, wherein:
the target microphone is one of a plurality of microphones of a voice communication device; and
the processor is further configured to execute the program codes to:
perform signal mixing on near-end audio signals outputted by the plurality of microphones, respectively, to obtain a target audio signal.

### Claim 14 (depends on 13)

The device according to claim 13, wherein the processor is further configured to execute the program codes to:
estimate background noise included in the target audio signal; and
cancel the background noise from the target audio signal to obtain a near-end voice signal.

### Claim 15 (depends on 9)

The device according to claim 9, wherein the filter sub-blocks are obtained by performing block partitioning on a partitioned-block frequency domain Kalman filter, the partitioned-block frequency domain Kalman filter including at least two filter sub-blocks.

### Claim 16

A non-transitory computer-readable storage medium storing program codes that, when executed by a processor, cause the processor to:
obtain a plurality of far-end audio signals outputted by a plurality of channels, respectively;
obtain a first filter coefficient matrix corresponding to a kth frame of microphone signal outputted by a target microphone, comprising:
obtaining a second filter coefficient matrix corresponding to a (k-1)th frame of microphone signal outputted by the target microphone, the first and second filter coefficient matrices respectively including frequency domain filter coefficients of filter sub-blocks corresponding to the plurality of channels, and k being an integer greater than or equal to 1; and
determining the first filter coefficient matrix according to the second filter coefficient matrix, a gain coefficient, and a residual signal prediction value corresponding to the kth frame of microphone signal, wherein the residual signal prediction value corresponding to the kth frame of microphone signal represents an echo signal corresponding to a next frame of microphone signal predicted based on the second filter coefficient matrix;
perform frame-partitioning and block-partitioning processing on the plurality of far-end audio signals to determine a far-end frequency domain signal matrix corresponding to the kth frame of microphone signal, the far-end frequency domain signal matrix including far-end frequency domain signals of the filter sub-blocks;
perform filtering processing according to the filter coefficient matrix and the far-end frequency domain signal matrix to obtain an echo signal in the kth frame of microphone signal; and
perform echo cancellation according to a frequency domain signal of the kth frame of microphone signal and the echo signal in the kth frame of microphone signal to obtain a near-end audio signal outputted by the target microphone.

### Claim 17 (depends on 16)

The storage medium according to claim 16, wherein the program codes further cause the processor to:
obtain an observation covariance matrix corresponding to the kth frame of microphone signal, and obtain a state covariance matrix corresponding to the (k-1)th frame of microphone signal, the observation covariance matrix and the state covariance matrix being diagonal matrices; and
calculate the gain coefficient according to the observation covariance matrix corresponding to the kth frame of microphone signal and the state covariance matrix corresponding to the (k-1)th frame of microphone signal.

### Claim 18 (depends on 17)

The storage medium according to claim 17, wherein the program codes further cause the processor to:
perform filtering processing according to the second filter coefficient matrix and the far-end frequency domain signal matrix to obtain the residual signal prediction value corresponding to the kth frame of microphone signal;
calculate the observation covariance matrix corresponding to the kth frame of microphone signal according to the residual signal prediction value corresponding to the kth frame of microphone signal; and
calculate the state covariance matrix corresponding to the (k-1)th frame of microphone signal according to the second filter coefficient matrix.
