[go: up one dir, main page]

CN113783551A - Filter coefficient determination method, echo cancellation method and device - Google Patents

Filter coefficient determination method, echo cancellation method and device Download PDF

Info

Publication number
CN113783551A
CN113783551A CN202110904297.4A CN202110904297A CN113783551A CN 113783551 A CN113783551 A CN 113783551A CN 202110904297 A CN202110904297 A CN 202110904297A CN 113783551 A CN113783551 A CN 113783551A
Authority
CN
China
Prior art keywords
filter
filters
signal
sub
filter coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110904297.4A
Other languages
Chinese (zh)
Inventor
黄景标
林聚财
史巍
殷俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110904297.4A priority Critical patent/CN113783551A/en
Publication of CN113783551A publication Critical patent/CN113783551A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H21/00Adaptive networks
    • H03H21/0012Digital adaptive filters
    • H03H21/0043Adaptive algorithms
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L2021/02082Noise filtering the noise being echo, reverberation of the speech

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

The application provides a filter coefficient determining method, an echo eliminating method and a device. The filter coefficient determination method includes: constructing a plurality of sub far-end signals based on the far-end signals; calculating the step length of each filter based on the sub far-end signal corresponding to each filter by taking the error signal obtained by the next filtering of each filter as the calculation condition, wherein the product of the filter coefficient lengths of all the filters is equal to the length of the far-end signal; the next filter coefficient for each filter is calculated based on the step size of each filter. The application can improve the convergence speed of the filter.

Description

滤波器系数确定方法、回声消除方法及装置Filter coefficient determination method, echo cancellation method and device

技术领域technical field

本申请涉及滤波技术领域,特别是涉及滤波器系数确定方法、回声消除方法及装置。The present application relates to the field of filtering technologies, and in particular, to a method for determining filter coefficients, a method and apparatus for echo cancellation.

背景技术Background technique

在现实生活中,当人们使用手机开启免提电话或是视频会议终端进行视频会议时,由于扬声器的外放会导致扬声器播放的声音再次被麦克风采集到,从而导致回声问题。通常来说,回声信号会严重影响通话质量和降低语音识别的准确性,因此需要采用自适应滤波器对产生的回声进行消除。但是现有的自适应滤波器的收敛速度较慢。In real life, when people use a mobile phone to turn on a hands-free phone or a video conference terminal to conduct a video conference, the sound played by the speaker will be collected by the microphone again due to the loudspeaker, resulting in an echo problem. Generally speaking, the echo signal will seriously affect the call quality and reduce the accuracy of speech recognition, so it is necessary to use an adaptive filter to cancel the generated echo. But the existing adaptive filters have slow convergence speed.

发明内容SUMMARY OF THE INVENTION

本申请提供滤波器系数确定方法、回声消除方法及装置,以解决现有的自适应滤波器的收敛速度较慢的问题。The present application provides a filter coefficient determination method, an echo cancellation method, and an apparatus, so as to solve the problem of the slow convergence speed of the existing adaptive filter.

为解决上述问题,本申请提供一种滤波器系数确定方法,该方法包括:In order to solve the above problems, the present application provides a method for determining filter coefficients, the method comprising:

基于远端信号构造多个子远端信号;Constructing multiple sub-remote signals based on the remote signal;

以每个滤波器下一次滤波得到的误差信号等于近端信号为计算条件,基于每个滤波器对应的子远端信号计算出每个滤波器的步长,其中所有滤波器的滤波系数长度的乘积等于远端信号的长度;Taking the error signal obtained by the next filtering of each filter equal to the near-end signal as the calculation condition, the step size of each filter is calculated based on the sub-end signal corresponding to each filter, where the length of the filter coefficients of all filters is equal to The product is equal to the length of the far-end signal;

基于每个滤波器的步长计算出每个滤波器的下一滤波系数。The next filter coefficient for each filter is calculated based on the step size of each filter.

其中,基于远端信号构造多个子远端信号的步骤包括:Wherein, the step of constructing multiple sub-remote signals based on the remote signal includes:

基于远端信号和其他滤波器的当前滤波系数进行计算,以得到每一个滤波器对应的子远端信号。The calculation is performed based on the far-end signal and the current filter coefficients of other filters to obtain the sub-remote signal corresponding to each filter.

其中,基于远端信号构造多个子远端信号的步骤包括:Wherein, the step of constructing multiple sub-remote signals based on the remote signal includes:

基于远端信号构造两个子远端信号;Construct two sub-remote signals based on the remote signal;

其中,两个子远端信号和两个滤波器一一对应,且两个滤波器的滤波系数长度的乘积等于远端信号的长度。The two sub-remote signals are in one-to-one correspondence with the two filters, and the product of the filter coefficient lengths of the two filters is equal to the length of the remote signal.

其中,基于远端信号和其他滤波器的当前滤波系数进行计算的步骤包括:Wherein, the steps of calculating based on the remote signal and the current filter coefficients of other filters include:

将其他滤波器的当前滤波系数和单位矩阵进行克罗内克乘运算,得到其他滤波器的第一矩阵;Perform Kronecker multiplication of the current filter coefficients of other filters and the identity matrix to obtain the first matrix of other filters;

将其他滤波器的第一矩阵和远端信号相乘,以得到每一个滤波器对应的子远端信号。Multiply the first matrix of other filters and the far-end signals to obtain sub-remote signals corresponding to each filter.

其中,以每个滤波器下一次滤波得到的误差信号等于近端信号为计算条件,基于每个滤波器对应的子远端信号计算出每个滤波器的步长的步骤包括:Wherein, the error signal obtained by the next filtering of each filter is equal to the near-end signal as the calculation condition, and the step of calculating the step size of each filter based on the sub-end signal corresponding to each filter includes:

将近端信号作为下一滤波的误差信号代入到每个滤波器的第一关系公式中,第一关系公式为每个滤波器的下一滤波的误差信号、当前滤波的误差信号、子远端信号以及步长之间的关系公式,以得到每个滤波器的步长。Substitute the near-end signal as the error signal of the next filter into the first relationship formula of each filter, and the first relationship formula is the error signal of the next filter, the error signal of the current filter, the sub-end of each filter. The formula for the relationship between the signal and the step size to get the step size for each filter.

其中,每个滤波器的第一关系公式是利用每个滤波器的下一滤波系数计算公式、下一滤波的误差信号计算公式以及当前滤波的误差信号计算公式推算得到的。The first relational formula of each filter is calculated by using the next filter coefficient calculation formula of each filter, the error signal calculation formula of the next filter, and the error signal calculation formula of the current filter.

其中,第i个滤波器的第一关系公式如下所示:Among them, the first relational formula of the ith filter is as follows:

Figure BDA0003201060500000021
Figure BDA0003201060500000021

其中,v(n)为近端信号,ei(n)为第i个滤波器当前滤波的误差信号,mi(n)为第i个滤波器对应的子远端信号,

Figure BDA0003201060500000022
为第i个滤波器对应的子远端信号的转置矩阵,μi(n)为第i个滤波器的步长,ξ为预设常数。Among them, v(n) is the near-end signal, e i (n) is the error signal currently filtered by the ith filter, m i (n) is the sub-end signal corresponding to the ith filter,
Figure BDA0003201060500000022
is the transposed matrix of the sub-remote signal corresponding to the ith filter, μ i (n) is the step size of the ith filter, and ξ is a preset constant.

其中,基于每个滤波器的步长计算出每个滤波器的下一滤波系数的步骤之后包括:Wherein, the step of calculating the next filter coefficient of each filter based on the step size of each filter includes:

将所有滤波器的滤波器系数融合,以得到一个总滤波系数,以便通过总滤波系数对远端信号进行处理而得到远端信号的模拟回声信号。The filter coefficients of all filters are fused to obtain a total filter coefficient, so that the far-end signal is processed by the total filter coefficient to obtain an analog echo signal of the far-end signal.

为解决上述问题,本申请提供一种回声消除方法,该方法包括:In order to solve the above problems, the present application provides an echo cancellation method, the method includes:

将接收的远端音频信号作为远端信号输入至自适应滤波器,以得到模拟回声信号,其中,自适应滤波器中的滤波系数根据上述的滤波器系数确定方法确定;The received far-end audio signal is input to the adaptive filter as a far-end signal to obtain an analog echo signal, wherein the filter coefficient in the adaptive filter is determined according to the above-mentioned filter coefficient determination method;

基于模拟回声信号和近端采集信号获得回声消除处理后的信号。The echo-cancelled signal is obtained based on the analog echo signal and the near-end acquisition signal.

为解决上述问题,本申请提供一种电子设备,电子设备包括处理器;处理器用于执行指令以实现上述方法的步骤。To solve the above problem, the present application provides an electronic device, the electronic device includes a processor; the processor is configured to execute instructions to implement the steps of the above method.

为解决上述问题,本申请提供一种计算机存储介质,其上存储有指令/程序数据,指令/程序数据被执行时实现上述方法的步骤。In order to solve the above problems, the present application provides a computer storage medium on which instructions/program data are stored, and the steps of the above method are implemented when the instructions/program data are executed.

本申请的方法是:基于远端信号构造出多个子远端信号,其中多个子远端信号和多个滤波器一一对应,以便利用多个子远端信号分别训练其对应的滤波器,且由于多个滤波器的滤波系数长度的乘积等于远端信号的长度,本实施方式更新的滤波器系数总数小于现有的“利用远端信号直接训练一个滤波器”方案中滤波器系数的量,而且本实施方式的多个滤波器可同时更新,从而可以提高滤波器收敛的速度。The method of the present application is to construct a plurality of sub-remote-end signals based on the remote-end signals, wherein the plurality of sub-remote-end signals are in one-to-one correspondence with a plurality of filters, so as to use the plurality of sub-end-end signals to train their corresponding filters respectively, and due to The product of the filter coefficient lengths of the multiple filters is equal to the length of the far-end signal, and the total number of filter coefficients updated in this embodiment is smaller than the amount of filter coefficients in the existing “directly train a filter by using the far-end signal” scheme, and A plurality of filters in this embodiment can be updated at the same time, so that the speed of filter convergence can be improved.

附图说明Description of drawings

为了更清楚地说明本申请实施方式中的技术方案,下面将对实施方式描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施方式,对本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请滤波器系数确定方法一实施方法的流程示意图;1 is a schematic flowchart of an implementation method of a filter coefficient determination method of the present application;

图2为本申请回声消除方法一实施方式的流程示意图;2 is a schematic flowchart of an embodiment of an echo cancellation method of the present application;

图3为本申请电子设备一实施方式的结构示意图;FIG. 3 is a schematic structural diagram of an embodiment of the electronic device of the present application;

图4是本申请计算机存储介质一实施方式的结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of a computer storage medium of the present application.

具体实施方式Detailed ways

为使本领域的技术人员更好地理解本申请的技术方案,下面结合附图和具体实施方式对本申请所提供的滤波器系数确定方法、回声消除方法及装置做进一步详细描述。In order for those skilled in the art to better understand the technical solutions of the present application, the method for determining filter coefficients, the method and apparatus for echo cancellation provided by the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

本申请中的术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”、“第三”的特征可以明示或者隐含地包括至少一个该特征。本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。The terms "first", "second" and "third" in this application are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as "first", "second", "third" may expressly or implicitly include at least one of that feature. In the description of the present application, "a plurality of" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.

在本文中提及“实施方式”意味着,结合实施方式描述的特定特征、结构或特性可以包含在本申请的至少一个实施方式中。在说明书中的各个位置出现该短语并不一定均是指相同的实施方式,也不是与其它实施方式互斥的独立的或备选的实施方式。本领域技术人员显式地和隐式地理解的是,在不冲突的情况下,本文所描述的实施方式可以与其它实施方式相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments without conflict.

如图1所示,图1为本申请滤波器系数确定方法第一实施方式的流程示意图,本申请的滤波器系数确定方法可以包括以下步骤。其中,本申请的滤波器滤波算法可以为最小均方(Least Mean Square,LMS)算法或归一化最小均方(Normalized Least MeanSquares,NLMS)等,在此不做限制。为便于描述,下述内容中以LMS算法为例对滤波器系数更新过程进行描述。需要注意的是,以下步骤编号仅用于简化说明,并不旨在限制步骤的执行顺序,本实施方式的各步骤可以在不违背本申请技术思想的基础上,任意更换执行顺序。As shown in FIG. 1 , FIG. 1 is a schematic flowchart of the first embodiment of the filter coefficient determination method of the present application. The filter coefficient determination method of the present application may include the following steps. Wherein, the filter filtering algorithm of the present application may be a Least Mean Square (Least Mean Square, LMS) algorithm or a Normalized Least Mean Square (Normalized Least Mean Squares, NLMS), etc., which is not limited herein. For ease of description, the following content takes the LMS algorithm as an example to describe the filter coefficient update process. It should be noted that the following step numbers are only used to simplify the description, and are not intended to limit the execution sequence of the steps. The execution sequence of each step in this embodiment can be changed arbitrarily without violating the technical idea of the present application.

S101:基于远端信号构造多个子远端信号。S101: Construct a plurality of sub-remote signals based on the remote signals.

可以基于远端信号构造出多个子远端信号,其中多个子远端信号和多个滤波器一一对应,这样后续可利用多个子远端信号分别训练其对应的滤波器,且由于多个滤波器的滤波系数长度的乘积等于远端信号的长度,本实施方式更新的滤波器系数总数小于现有的“利用远端信号直接训练一个滤波器”方案中滤波器系数的量,而且本实施方式的多个滤波器可同时更新,从而可以提高滤波器收敛的速度。Multiple sub-remote signals can be constructed based on the far-end signals, wherein the multiple sub-remote signals are in one-to-one correspondence with multiple filters, so that the corresponding filters can be trained respectively by using the multiple sub-remote signals, and due to the multiple filters The product of the filter coefficient lengths of the filter is equal to the length of the far-end signal, and the total number of filter coefficients updated in this embodiment is smaller than the number of filter coefficients in the existing scheme of “directly training a filter by using the far-end signal”, and this embodiment Multiple filters of can be updated at the same time, which can improve the speed of filter convergence.

可选地,可以基于远端信号和其他滤波器的当前滤波系数进行计算,以得到每一个滤波器对应的子远端信号,使得子远端信号和其对应的滤波器的系数长度匹配,使得滤波器能对其对应的子远端信号进行处理,从而能够利用子远端信号对滤波器的系数进行更新,并且使得两个滤波器滤波系数更新过程会利用到对方滤波器的数据,从而可以保证滤波器能够收敛。Optionally, can be calculated based on the current filter coefficients of the far-end signal and other filters to obtain the sub-remote signal corresponding to each filter, so that the sub-remote signal and the coefficient length of its corresponding filter are matched, so that The filter can process its corresponding sub-remote signal, so that the coefficient of the filter can be updated by using the sub-remote signal, and the update process of the filter coefficients of the two filters will use the data of the other filter, so that the filter coefficients of the two filters can be updated. Make sure that the filter can converge.

其中,上面所说的“其他滤波器”可以指与多个子远端信号对应的多个滤波器中除每个滤波器本身以外的至少一个滤波器。例如,子远端信号的数量为二,且滤波器的数量也为二,可利用第二个滤波器的当前滤波系数计算第一个滤波器对应的子远端信号,利用第一个滤波器的当前滤波系数计算出第二个滤波器对应的子远端信号。The "other filters" mentioned above may refer to at least one filter other than each filter itself among the multiple filters corresponding to the multiple sub-remote signals. For example, if the number of sub-remote signals is two, and the number of filters is also two, the current filter coefficient of the second filter can be used to calculate the sub-remote signals corresponding to the first filter, and the first filter can be used to calculate the corresponding sub-remote signals. The current filter coefficient of , calculates the sub-remote signal corresponding to the second filter.

其中,基于远端信号和其他滤波器的当前滤波系数进行计算的步骤可包括:将其他滤波器的当前滤波系数和单位矩阵进行克罗内克乘运算,得到其他滤波器的第一矩阵;将其他滤波器的第一矩阵和远端信号相乘,以得到每一个滤波器对应的子远端信号。Wherein, the step of calculating based on the far-end signal and the current filter coefficients of other filters may include: performing Kronecker multiplication operation on the current filter coefficients of other filters and the identity matrix to obtain the first matrix of the other filters; The first matrices of other filters are multiplied by the far-end signals to obtain sub-remote signals corresponding to each filter.

进一步地,各个滤波器的当前滤波系数可被分成多个系数数据。其中,各个滤波器的多个系数数量的长度可以相等。例如,一个滤波器的当前滤波系数的长度为6,且被分为两个系数数据,可将该滤波器的当前滤波系数中的前三个滤波系数作为该滤波器的第一个系数数据,将该滤波器的当前滤波系数中的后三个滤波系数作为该滤波器的第二个系数数据。Further, the current filter coefficients of the respective filters may be divided into a plurality of coefficient data. Wherein, the lengths of the number of coefficients of each filter may be equal. For example, the length of the current filter coefficient of a filter is 6, and it is divided into two coefficient data, the first three filter coefficients in the current filter coefficient of the filter can be used as the first coefficient data of the filter, The last three filter coefficients in the current filter coefficients of the filter are used as the second coefficient data of the filter.

将其他滤波器的当前滤波系数和单位矩阵进行克罗内克乘运算的步骤具体可体现为:将其他滤波器的各个系数数据和单位矩阵进行克罗内克乘运算,得到各个系数数据的第一矩阵;相应地,将其他滤波器的第一矩阵和远端信号相乘的步骤具体可体现为:将其他滤波器的各个系数数据的第一矩阵和远端信号相乘,以得到其他滤波器的各个系数数据处理后的信号;然后可以将其他滤波器的所有系数数据处理后的信号进行组合,以得到每一个滤波器对应的子远端信号。The step of performing the Kronecker multiplication operation on the current filter coefficients and the unit matrix of other filters can be embodied as follows: perform Kronecker multiplication operation on each coefficient data of other filters and the unit matrix, and obtain the first number of each coefficient data. Correspondingly, the step of multiplying the first matrix of the other filters and the far-end signal can be embodied as: multiplying the first matrix of the coefficient data of the other filters and the far-end signal to obtain the other filter Then, the processed signals of all the coefficient data of other filters can be combined to obtain the sub-remote signal corresponding to each filter.

具体地计算公式可如下所示:The specific calculation formula can be as follows:

Figure BDA0003201060500000051
Figure BDA0003201060500000051

Figure BDA0003201060500000052
Figure BDA0003201060500000052

Figure BDA0003201060500000053
Figure BDA0003201060500000053

Figure BDA0003201060500000054
Figure BDA0003201060500000054

其中,

Figure BDA0003201060500000061
为第i个滤波器的第d个系数数据,其中d=[1,D],而D为各个滤波器的当前滤波系数的划分数量,具体可根据实际情况进行设置,在此不做限制,例如可为2;
Figure BDA0003201060500000062
为第i个滤波器的当前滤波系数,
Figure BDA0003201060500000063
为单位矩阵,Li为第i个滤波器的滤波系数长度,
Figure BDA0003201060500000064
表示克罗内克乘,
Figure BDA0003201060500000065
为第i个滤波器的第d个系数数据的第一矩阵,x(n)为远端信号,
Figure BDA0003201060500000066
为第i个滤波器的第d个系数数据处理后的信号;xi(n)为利用第i个滤波器的当前滤波系数计算出的子远端信号,若i取值范围为1或2,在i=1的情况下,xi(n)为第二个滤波器对应的子远端信号,在i=2的情况下,xi(n)为第一个滤波器对应的子远端信号。in,
Figure BDA0003201060500000061
is the d-th coefficient data of the i-th filter, where d=[1, D], and D is the number of divisions of the current filter coefficients of each filter, which can be set according to the actual situation, which is not limited here. For example, it can be 2;
Figure BDA0003201060500000062
is the current filter coefficient of the ith filter,
Figure BDA0003201060500000063
is the identity matrix, L i is the filter coefficient length of the ith filter,
Figure BDA0003201060500000064
represents the Kronecker multiplication,
Figure BDA0003201060500000065
is the first matrix of the d-th coefficient data of the i-th filter, x(n) is the far-end signal,
Figure BDA0003201060500000066
is the signal processed by the d-th coefficient data of the ith filter; x i (n) is the sub-remote signal calculated by using the current filter coefficient of the ith filter, if the value range of i is 1 or 2 , in the case of i=1, x i (n) is the sub-remote signal corresponding to the second filter, and in the case of i=2, x i (n) is the sub-remote corresponding to the first filter. terminal signal.

S102:以每个滤波器下一次滤波得到的误差信号等于近端信号为计算条件,基于每一个滤波器对应的子远端信号计算出每个滤波器的步长。S102: Calculate the step size of each filter based on the sub-end signal corresponding to each filter on the condition that the error signal obtained by the next filtering of each filter is equal to the near-end signal.

基于步骤S101构造出多个子远端信号后,可以以每个滤波器下一次滤波得到的误差信号等于近端信号为计算条件,基于每一个滤波器对应的子远端信号计算出每个滤波器的步长,从而可以计算出最优步长,使得基于计算出的步长计算出的下一滤波系数优于固定步长计算出的下一滤波系数,从而加快了滤波器的收敛速度。After constructing a plurality of sub-remote signals based on step S101, the error signal obtained by the next filtering of each filter is equal to the near-end signal as the calculation condition, and each filter can be calculated based on the sub-remote signal corresponding to each filter. Therefore, the optimal step size can be calculated, so that the next filter coefficient calculated based on the calculated step size is better than the next filter coefficient calculated with the fixed step size, thereby speeding up the convergence speed of the filter.

其中所有滤波器的滤波系数长度的乘积等于远端信号的长度,且所有滤波器的滤波系数长度大于1,这样本实施方式更新的滤波器系数总数小于现有的“利用远端信号直接训练一个滤波器”方案中滤波器系数的量,减少了计算复杂度,提高了滤波器的收敛速度。The product of the filter coefficient lengths of all filters is equal to the length of the far-end signal, and the filter coefficient lengths of all filters are greater than 1, so the total number of filter coefficients updated in this embodiment is smaller than the existing "Using the far-end signal to directly train a The number of filter coefficients in the filter scheme reduces the computational complexity and improves the convergence speed of the filter.

可选地,可以将近端信号作为下一滤波的误差信号代入到每个滤波器的第一关系公式中,以计算得到每个滤波器的步长,其中,第一关系公式为每个滤波器的下一滤波的误差信号、当前滤波的误差信号、子远端信号以及步长之间的关系公式。Optionally, the near-end signal can be substituted into the first relational formula of each filter as the error signal of the next filtering to obtain the step size of each filter, wherein the first relational formula is each filter. The relationship formula between the next filtered error signal of the filter, the current filtered error signal, the sub-remote signal and the step size.

示例性地,每个滤波器的第一关系公式可分别如下所示:Exemplarily, the first relational formula of each filter may be respectively as follows:

Figure BDA0003201060500000067
Figure BDA0003201060500000067

其中,v(n)为近端信号,ei(n)为第i个滤波器当前滤波的误差信号,mi(n)为第i个滤波器对应的子远端信号,

Figure BDA0003201060500000068
为第i个滤波器对应的子远端信号的转置矩阵,μi(n)为第i个滤波器的步长,ξ为一个预设常数,可根据实际情况进行设定,例如可为0.0001,以保证分母为不会出现0的情况。其中,mi(n)可根据步骤S101进行计算,在此不做赘述,例如假设子远端信号和滤波器的数量均为二,m1(n)=x2(n),m2(n)=x1(n)。Among them, v(n) is the near-end signal, e i (n) is the error signal currently filtered by the ith filter, m i (n) is the sub-end signal corresponding to the ith filter,
Figure BDA0003201060500000068
is the transposed matrix of the sub-remote signal corresponding to the ith filter, μ i (n) is the step size of the ith filter, and ξ is a preset constant, which can be set according to the actual situation, for example, it can be 0.0001 to ensure that the denominator will not appear 0. Wherein, m i (n) can be calculated according to step S101, which will not be repeated here. For example, assuming that the number of sub-remote signals and filters are both two, m 1 (n)=x 2 (n), m 2 ( n)=x 1 (n).

其中,每个滤波器的第一关系公式是利用每个滤波器的下一滤波系数的计算公式、下一滤波的误差信号的计算公式以及当前滤波的误差信号计算公式推算得到的。其中,每个滤波器的下一滤波系数即为每个滤波器的下一次滤波时使用的滤波系数,每个滤波器的下一滤波的误差信号为每个滤波器的下一次滤波时得到的误差信号。The first relational formula of each filter is calculated by using the calculation formula of the next filter coefficient of each filter, the calculation formula of the error signal of the next filter, and the calculation formula of the error signal of the current filter. Among them, the next filter coefficient of each filter is the filter coefficient used in the next filter of each filter, and the error signal of the next filter of each filter is obtained in the next filter of each filter. error signal.

其中,每个滤波器的当前滤波的误差信号计算公式可为:

Figure BDA0003201060500000071
Wherein, the calculation formula of the current filtered error signal of each filter can be:
Figure BDA0003201060500000071

每个滤波器的下一滤波系数的计算公式可为:

Figure BDA0003201060500000072
Figure BDA0003201060500000073
The calculation formula of the next filter coefficient of each filter can be:
Figure BDA0003201060500000072
Figure BDA0003201060500000073

每个滤波器的下一滤波的误差信号的计算公式可为:

Figure BDA0003201060500000074
Figure BDA0003201060500000075
The calculation formula of the next filtered error signal of each filter can be:
Figure BDA0003201060500000074
Figure BDA0003201060500000075

其中,y(n)为近端采集信号,mi(n)为第i个滤波器对应的子远端信号,

Figure BDA0003201060500000076
为第i个滤波器的当前滤波系数的转置矩阵,ei(n)为第i个滤波器的当前滤波的误差信号,
Figure BDA0003201060500000077
为第i个滤波器的当前滤波系数,
Figure BDA0003201060500000078
为第i个滤波器的下一滤波系数,μi(n)为第i个滤波器的步长,∈i(n)为第i个滤波器的下一滤波的误差信号。Among them, y(n) is the near-end acquisition signal, m i (n) is the sub-end-end signal corresponding to the ith filter,
Figure BDA0003201060500000076
is the transposed matrix of the current filter coefficient of the ith filter, e i (n) is the error signal of the current filter of the ith filter,
Figure BDA0003201060500000077
is the current filter coefficient of the ith filter,
Figure BDA0003201060500000078
is the next filter coefficient of the ith filter, μ i (n) is the step size of the ith filter, and ∈ i (n) is the error signal of the next filter of the ith filter.

可选地,利用每个滤波器的下一滤波系数的计算公式、下一滤波的误差信号的计算公式以及当前滤波的误差信号计算公式推算得到每个滤波器的第一关系公式的步骤可以包括:将每个滤波器的下一滤波的误差信号的计算公式与每个滤波器的当前滤波的误差信号计算公式相减,得到第二关系公式;将每个滤波器的下一滤波系数的计算公式代入到每个滤波器的第二关系公式中,以得到每个滤波器的第一关系公式。Optionally, using the calculation formula of the next filter coefficient of each filter, the calculation formula of the error signal of the next filter and the calculation formula of the error signal of the current filter to calculate the step of obtaining the first relationship formula of each filter may include: : The calculation formula of the error signal of the next filter of each filter is subtracted from the calculation formula of the error signal of the current filter of each filter to obtain the second relationship formula; the calculation of the next filter coefficient of each filter is calculated. The formula is substituted into the second relational formula for each filter to obtain the first relational formula for each filter.

为避免步长计算出错,导致滤波器无法收敛,在每个滤波器的下一滤波系数的计算公式代入到每个滤波器的第二关系公式而得到每个滤波器的第三关系公式的情况下,其中,第三关系公式为等式,且第三关系公式一端为每个滤波器的下一滤波的误差信号,对第三关系公式另一端求期望并令其等于近端信号的期望,从而得到每个滤波器的第一关系公式。In order to avoid errors in the step size calculation, causing the filter to fail to converge, the calculation formula of the next filter coefficient of each filter is substituted into the second relational formula of each filter to obtain the third relational formula of each filter. where, the third relational formula is an equation, and one end of the third relational formula is the error signal of the next filter of each filter, and the other end of the third relational formula is expected to be equal to the expectation of the near-end signal, Thus, the first relational formula for each filter is obtained.

其中,每个滤波器的第三关系公式可为:Among them, the third relational formula of each filter can be:

Figure BDA0003201060500000081
Figure BDA0003201060500000081

对第三关系公式另一端求期望并令其等于近端信号的期望具体可如下所示:Finding the expectation on the other side of the third relational formula and making it equal to the expectation of the near-end signal can be as follows:

Figure BDA0003201060500000082
Figure BDA0003201060500000082

S103:基于每个滤波器的步长计算出每个滤波器的下一滤波系数。S103: Calculate the next filter coefficient of each filter based on the step size of each filter.

基于步骤S102计算出每个滤波器的步长后,可以基于每个滤波器的步长计算出每个滤波器的下一滤波系数。After the step size of each filter is calculated based on step S102, the next filter coefficient of each filter may be calculated based on the step size of each filter.

可选地,可利用每个滤波器的下一滤波系数的计算公式(例如

Figure BDA0003201060500000083
)的计算公式计算出每个滤波器的下一滤波系数。Optionally, the calculation formula of the next filter coefficient of each filter can be used (for example,
Figure BDA0003201060500000083
) to calculate the next filter coefficient of each filter.

基于步骤S103计算出每个滤波器的下一滤波系数之后,可以判断每个滤波器是否收敛;若滤波器收敛,则可利用任一个滤波器对近端采集信号进行回声消除,或者对所有滤波器的滤波器系数进行运算,以得到一个总滤波器的滤波系数,以便利用总滤波器直接对近端采集信号对应的远端信号进行处理;若滤波器未收敛,可将每个滤波器的下一滤波系数作为每个滤波器的当前滤波系数,并返回到步骤S101以再次进行滤波器系数的更新,直至滤波器收敛。After calculating the next filter coefficient of each filter based on step S103, it can be judged whether each filter converges; if the filter converges, any filter can be used to perform echo cancellation on the near-end collected signal, or all filters can be used for echo cancellation. Calculate the filter coefficient of the filter to obtain the filter coefficient of a total filter, so that the total filter can be used to directly process the far-end signal corresponding to the near-end acquisition signal; if the filter does not converge, the filter coefficient of each filter can be The next filter coefficient is used as the current filter coefficient of each filter, and the process returns to step S101 to update the filter coefficient again until the filter converges.

其中,假设滤波器的数量为二,可利用下述公式对所有滤波器的滤波器系数进行运算,以得到一个总滤波器的滤波系数;Wherein, assuming that the number of filters is two, the following formula can be used to calculate the filter coefficients of all filters to obtain the filter coefficients of a total filter;

Figure BDA0003201060500000084
Figure BDA0003201060500000084

Figure BDA0003201060500000085
为第i个滤波器的第d个系数数据,i=1或2,其中d=[1,D],而D为各个滤波器的当前滤波系数的划分数量,具体可根据实际情况进行设置,在此不做限制,例如可为2;
Figure BDA0003201060500000086
为第i个滤波器的第d个系数数据的第一矩阵的转置矩阵,
Figure BDA0003201060500000087
为总滤波器的滤波系数。
Figure BDA0003201060500000085
is the d-th coefficient data of the i-th filter, i=1 or 2, where d=[1, D], and D is the number of divisions of the current filter coefficients of each filter, which can be set according to the actual situation, There is no limit here, for example, it can be 2;
Figure BDA0003201060500000086
is the transpose matrix of the first matrix of the d-th coefficient data of the ith filter,
Figure BDA0003201060500000087
is the filter coefficient of the total filter.

在本实施方式中,基于远端信号构造出多个子远端信号,其中多个子远端信号和多个滤波器一一对应,以便利用多个子远端信号分别训练其对应的滤波器,且由于多个滤波器的滤波系数长度的乘积等于远端信号的长度,本实施方式更新的滤波器系数总数小于现有的“利用远端信号直接训练一个滤波器”方案中滤波器系数的量,而且本实施方式的多个滤波器可同时更新,从而可以提高滤波器收敛的速度。In this implementation manner, a plurality of sub-remote-end signals are constructed based on the far-end signals, wherein the sub-remote-end signals are in a one-to-one correspondence with a plurality of filters, so as to use the plurality of sub-remote-end signals to train their corresponding filters respectively, and since The product of the filter coefficient lengths of the multiple filters is equal to the length of the far-end signal, and the total number of filter coefficients updated in this embodiment is smaller than the amount of filter coefficients in the existing “directly train a filter by using the far-end signal” scheme, and A plurality of filters in this embodiment can be updated at the same time, so that the speed of filter convergence can be improved.

下面为更好说明本申请滤波器系数确定方法,提供以下滤波器系数确定具体实施例来示例性说明。In order to better describe the filter coefficient determination method of the present application, the following specific embodiments of filter coefficient determination are provided for illustrative illustration.

实施例Example

自适应滤波的本质在于寻找一个有限脉冲响应,使得该响应与远端信号卷积得到信号与目标回声信号的差最小,即:The essence of adaptive filtering is to find a finite impulse response, so that the difference between the signal obtained by convolving the response with the far-end signal and the target echo signal is the smallest, namely:

Figure BDA0003201060500000091
Figure BDA0003201060500000091

h(n)为接收的回声信号,d(n)为目标回声,x(n)为远端信号,

Figure BDA0003201060500000092
为待估计量;h(n) is the received echo signal, d(n) is the target echo, x(n) is the far-end signal,
Figure BDA0003201060500000092
to be estimated;

一般来说,对于近端采集信号可以表示为:Generally speaking, for the near-end acquisition signal can be expressed as:

y(n)=ωTx(n)+v(n) (2)y(n)=ω T x(n)+v(n) (2)

y(n)表示近端采集信号,即输入信号,v(n)表示近端信号,ωTx(n)表示模拟回声信号;y(n) represents the near-end acquisition signal, that is, the input signal, v(n) represents the near-end signal, and ω T x(n) represents the analog echo signal;

通常上会采用LMS算法对ω进行估计,即:Usually, the LMS algorithm is used to estimate ω, that is:

Figure BDA0003201060500000093
Figure BDA0003201060500000093

Figure BDA0003201060500000094
Figure BDA0003201060500000094

其中μ(n)为步长,e(n)为误差信号;where μ(n) is the step size, and e(n) is the error signal;

本实施例利用两个滤波器进行滤波系数更新,可先利用两个滤波器的当前滤波系数和远端信号构造出两个子远端信号;In this embodiment, two filters are used to update the filter coefficients, and two sub-remote signals can be constructed first by using the current filter coefficients and the remote signals of the two filters;

Figure BDA0003201060500000095
Figure BDA0003201060500000095

Figure BDA0003201060500000096
Figure BDA0003201060500000096

Figure BDA0003201060500000097
Figure BDA0003201060500000097

Figure BDA0003201060500000101
Figure BDA0003201060500000101

其中i=1,2,其中L1×L2=N;

Figure BDA0003201060500000102
表示克罗内克乘,其中D为经验系数,通常设为2,
Figure BDA0003201060500000103
为单位矩阵,Li为第i个滤波器的滤波系数长度;where i=1,2, where L 1 ×L 2 =N;
Figure BDA0003201060500000102
represents the Kronecker multiplication, where D is the empirical coefficient, usually set to 2,
Figure BDA0003201060500000103
is the identity matrix, L i is the filter coefficient length of the ith filter;

本方案中两个滤波器的当前滤波的误差信号可以分别表现为下述两个公式:The currently filtered error signals of the two filters in this scheme can be expressed as the following two formulas respectively:

Figure BDA0003201060500000104
Figure BDA0003201060500000104

Figure BDA0003201060500000105
Figure BDA0003201060500000105

其中,e1(n)和e2(n)完全相等,这边区分e1(n)和e2(n)的目的是为了和前面拆分出来的两个子远端信号保持一致。Among them, e 1 (n) and e 2 (n) are completely equal. The purpose of distinguishing e 1 (n) and e 2 (n) here is to be consistent with the two sub-remote signals split previously.

根据式(4),自适应滤波器的迭代可以转换为:According to equation (4), the iteration of the adaptive filter can be transformed into:

Figure BDA0003201060500000106
Figure BDA0003201060500000106

Figure BDA0003201060500000107
Figure BDA0003201060500000107

而式(11),(12)又可以在式(9),(10)中计算得到下一次的误差信号;And equations (11), (12) can be calculated in equations (9), (10) to obtain the next error signal;

式(9),(10)被称为自适应滤波的先验误差,而后验误差计算如下:Equations (9), (10) are called the prior error of adaptive filtering, and the posterior error is calculated as follows:

Figure BDA0003201060500000108
Figure BDA0003201060500000108

Figure BDA0003201060500000109
Figure BDA0003201060500000109

将式(13),(14)分别与式(9),(10)相减,并利用式(11),(12)的转换公式,可以得到:Subtracting equations (13) and (14) from equations (9) and (10) respectively, and using the conversion formulas of equations (11) and (12), we can get:

Figure BDA00032010605000001010
Figure BDA00032010605000001010

Figure BDA00032010605000001011
Figure BDA00032010605000001011

对公式(15)和公式(16)求期望并令其等于近端信号的期望,即:Equation (15) and Equation (16) take the expectation and make it equal to the expectation of the near-end signal, that is:

Figure BDA00032010605000001012
Figure BDA00032010605000001012

Figure BDA00032010605000001013
Figure BDA00032010605000001013

则可以得到:then you can get:

Figure BDA00032010605000001014
Figure BDA00032010605000001014

Figure BDA0003201060500000111
Figure BDA0003201060500000111

ξ为一个常数,通常设为0.0001,用于保证分母不会出现0的情况;ξ is a constant, usually set to 0.0001, to ensure that the denominator does not appear 0;

基于公式(19)和公式(20)分別计算出两个滤波器的步长μ1(n)和步长μ2(n)后,可以将计算出的步长μ1(n)和步长μ2(n)分别代入到式(11),(12)以计算出两个滤波器的下一滤波系数。After calculating the step size μ 1 (n) and the step size μ 2 (n) of the two filters based on formula (19) and formula (20), respectively, the calculated step size μ 1 (n) and step size can be converted into μ 2 (n) is substituted into equations (11) and (12) respectively to calculate the next filter coefficients of the two filters.

若计算得到的两个滤波器的下一滤波系数收敛,可以利用下述公式对两个滤波器的下一滤波系数进行运算,以得到总滤波器的滤波系数:If the calculated next filter coefficients of the two filters converge, the following formula can be used to calculate the next filter coefficients of the two filters to obtain the filter coefficients of the total filter:

Figure BDA0003201060500000112
Figure BDA0003201060500000112

请参阅图2,图2为本申请回声消除方法一实施方式的流程示意图。需注意的是,若有实质上相同的结果,本实施例并不以图2所示的流程顺序为限。本实施方式中,回声消除方法包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of an embodiment of an echo cancellation method of the present application. It should be noted that, if there is substantially the same result, the present embodiment is not limited to the sequence of the processes shown in FIG. 2 . In this embodiment, the echo cancellation method includes the following steps:

S301:将接收的远端音频信号作为远端信号输入至自适应滤波器,以得到模拟回声信号。S301: Input the received far-end audio signal as a far-end signal to an adaptive filter to obtain an analog echo signal.

其中,自适应滤波器中的滤波系数根据上述的滤波器系数确定方法确定。Wherein, the filter coefficients in the adaptive filter are determined according to the above-mentioned filter coefficient determination method.

S302:基于模拟回声信号和近端采集信号获得回声消除处理后的信号。S302: Obtain a signal after echo cancellation processing based on the analog echo signal and the near-end acquisition signal.

请参阅图3,图3是本申请电子设备一实施方式的结构示意图。本电子设备10包括处理器12,处理器12用于执行指令以实现上述滤波器系数确定方法和回声消除方法。具体实施过程请参阅上述实施方式的描述,在此不再赘述。Please refer to FIG. 3 , which is a schematic structural diagram of an embodiment of the electronic device of the present application. The electronic device 10 includes a processor 12 for executing instructions to implement the filter coefficient determination method and the echo cancellation method described above. For the specific implementation process, please refer to the description of the above-mentioned implementation manner, which will not be repeated here.

处理器12还可以称为CPU(Central Processing Unit,中央处理单元)。处理器12可能是一种集成电路芯片,具有信号的处理能力。处理器12还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器12也可以是任何常规的处理器等。The processor 12 may also be referred to as a CPU (Central Processing Unit, central processing unit). The processor 12 may be an integrated circuit chip with signal processing capability. Processor 12 may also be a general purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components . A general purpose processor may be a microprocessor or the processor 12 may be any conventional processor or the like.

电子设备10还可进一步包括存储器11,用于存储处理器12运行所需的指令和数据。The electronic device 10 may further include a memory 11 for storing instructions and data required for the operation of the processor 12 .

处理器12用于执行指令以实现上述本申请滤波器系数确定方法和回声消除方法任一实施例及任意不冲突的组合所提供的方法。The processor 12 is configured to execute instructions to implement the method provided by any of the above-mentioned embodiments of the filter coefficient determination method and the echo cancellation method of the present application and any non-conflicting combination.

请参阅图4,图4为本申请实施方式中计算机可读存储介质的结构示意图。本申请实施例的计算机可读存储介质30存储有指令/程序数据31,该指令/程序数据31被执行时实现本申请滤波器系数确定方法和回声消除方法任一实施例以及任意不冲突的组合所提供的方法。其中,该指令/程序数据31可以形成程序文件以软件产品的形式存储在上述存储介质30中,以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式方法的全部或部分步骤。而前述的存储介质30包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、磁碟或者光盘等各种可以存储程序代码的介质,或者是计算机、服务器、手机、平板等终端设备。Please refer to FIG. 4 , which is a schematic structural diagram of a computer-readable storage medium in an embodiment of the present application. The computer-readable storage medium 30 of this embodiment of the present application stores instructions/program data 31, and when the instruction/program data 31 is executed, implements any of the embodiments of the method for determining filter coefficients and the method for echo cancellation of the present application and any non-conflicting combination provided method. Wherein, the instruction/program data 31 can be stored in the above-mentioned storage medium 30 in the form of a program file in the form of a software product, so that a computer device (may be a personal computer, a server, or a network device, etc.) or a processor (processor) Perform all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium 30 includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes , or terminal devices such as computers, servers, mobile phones, and tablets.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

以上仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields, All are similarly included in the scope of patent protection of the present application.

Claims (11)

1.一种滤波器系数确定方法,其特征在于,所述方法包括:1. a filter coefficient determination method, is characterized in that, described method comprises: 基于远端信号构造多个子远端信号;Constructing multiple sub-remote signals based on the remote signal; 以每个所述滤波器下一次滤波得到的误差信号等于近端信号为计算条件,基于每个所述滤波器对应的子远端信号计算出每个所述滤波器的步长,其中所有滤波器的滤波系数长度的乘积等于所述远端信号的长度;Taking the error signal obtained by the next filtering of each of the filters equal to the near-end signal as the calculation condition, the step size of each of the filters is calculated based on the sub-end signal corresponding to each of the filters. The product of the filter coefficient lengths of the filter is equal to the length of the far-end signal; 基于每个所述滤波器的步长计算出每个所述滤波器的下一滤波系数。The next filter coefficient for each of the filters is calculated based on the step size of each of the filters. 2.根据权利要求1所述的滤波器系数确定方法,其特征在于,所述基于远端信号构造多个子远端信号的步骤包括:2. The filter coefficient determination method according to claim 1, wherein the step of constructing a plurality of sub-remote signals based on the remote signal comprises: 基于远端信号和其他滤波器的当前滤波系数进行计算,以得到每一个所述滤波器对应的子远端信号。The calculation is performed based on the far-end signal and the current filter coefficients of other filters to obtain the sub-remote signal corresponding to each of the filters. 3.根据权利要求2所述的滤波器系数确定方法,其特征在于,所述基于远端信号构造多个子远端信号的步骤包括:3. The filter coefficient determination method according to claim 2, wherein the step of constructing a plurality of sub-remote signals based on the remote signal comprises: 基于远端信号构造两个子远端信号;Construct two sub-remote signals based on the remote signal; 其中,所述两个子远端信号和两个所述滤波器一一对应,且两个所述滤波器的滤波系数长度的乘积等于所述远端信号的长度。The two sub-remote signals are in one-to-one correspondence with the two filters, and the product of the filter coefficient lengths of the two filters is equal to the length of the remote signal. 4.根据权利要求3所述的滤波器系数确定方法,其特征在于,所述基于远端信号和其他滤波器的当前滤波系数进行计算的步骤包括:4. filter coefficient determination method according to claim 3, is characterized in that, the described step of calculating based on the current filter coefficient of far-end signal and other filters comprises: 将所述其他滤波器的当前滤波系数和单位矩阵进行克罗内克乘运算,得到所述其他滤波器的第一矩阵;Kronecker multiplication is performed on the current filter coefficients of the other filters and the identity matrix to obtain the first matrix of the other filters; 将所述其他滤波器的所述第一矩阵和所述远端信号相乘,以得到每一个所述滤波器对应的子远端信号。Multiplying the first matrix of the other filters and the far-end signal to obtain a sub-remote signal corresponding to each of the filters. 5.根据权利要求1所述的滤波器系数确定方法,其特征在于,所述以每个所述滤波器下一次滤波得到的误差信号等于近端信号为计算条件,基于每个所述滤波器对应的子远端信号计算出每个所述滤波器的步长的步骤包括:5. The method for determining filter coefficients according to claim 1, wherein the calculation condition is that the error signal obtained by the next filtering of each of the filters is equal to the near-end signal, and based on each of the filters The step of calculating the step size of each of the filters for the corresponding sub-remote signals includes: 将近端信号作为下一滤波的误差信号代入到每个所述滤波器的第一关系公式中,所述第一关系公式为每个所述滤波器的下一滤波的误差信号、当前滤波的误差信号、子远端信号以及步长之间的关系公式,以得到每个所述滤波器的步长。Substitute the near-end signal as the error signal of the next filter into the first relational formula of each of the filters, and the first relational formula is the error signal of the next filtering of each of the filters, the current filtered error signal, The relationship between the error signal, the sub-remote signal, and the step size is formulated to obtain the step size of each of the filters. 6.根据权利要求5所述的滤波器系数确定方法,其特征在于,每个滤波器的所述第一关系公式是利用每个滤波器的下一滤波系数计算公式、下一滤波的误差信号计算公式以及当前滤波的误差信号计算公式推算得到的。6. filter coefficient determination method according to claim 5, is characterized in that, the described first relational formula of each filter is to utilize the error signal of next filter coefficient calculation formula of each filter, next filter The calculation formula and the current filtered error signal calculation formula are calculated. 7.根据权利要求5所述的滤波器系数确定方法,其特征在于,第i个滤波器的所述第一关系公式如下所示:7. filter coefficient determination method according to claim 5, is characterized in that, described first relational formula of ith filter is as follows:
Figure FDA0003201060490000021
Figure FDA0003201060490000021
其中,v(n)为近端信号,ei(n)为第i个滤波器当前滤波的误差信号,mi(n)为第i个滤波器对应的子远端信号,
Figure FDA0003201060490000022
为第i个滤波器对应的子远端信号的转置矩阵,μi(n)为第i个滤波器的步长,ξ为预设常数。
Among them, v(n) is the near-end signal, e i (n) is the error signal currently filtered by the ith filter, m i (n) is the sub-end signal corresponding to the ith filter,
Figure FDA0003201060490000022
is the transposed matrix of the sub-remote signal corresponding to the ith filter, μ i (n) is the step size of the ith filter, and ξ is a preset constant.
8.根据权利要求1所述的滤波器系数确定方法,其特征在于,所述基于每个所述滤波器的步长计算出每个所述滤波器的下一滤波系数的步骤之后包括:8. The filter coefficient determination method according to claim 1, wherein the step of calculating the next filter coefficient of each of the filters based on the step size of each of the filters comprises: 将所有滤波器的滤波器系数融合,以得到一个总滤波系数,以便通过所述总滤波系数对所述远端信号进行处理而得到所述远端信号的模拟回声信号。The filter coefficients of all filters are fused to obtain a total filter coefficient, so as to process the far-end signal through the total filter coefficient to obtain an analog echo signal of the far-end signal. 9.一种回声消除方法,其特征在于,所述方法包括:9. A method for echo cancellation, characterized in that the method comprises: 将接收的远端音频信号作为远端信号输入至自适应滤波器,以得到模拟回声信号,其中,所述自适应滤波器中的滤波系数根据权利要求1-7中任一项所述的滤波器系数确定方法确定;The received far-end audio signal is input to the adaptive filter as a far-end signal to obtain an analog echo signal, wherein the filter coefficient in the adaptive filter is according to the filtering described in any one of claims 1-7 The method for determining the coefficient of the device is determined; 基于所述模拟回声信号和所述近端采集信号获得回声消除处理后的信号。An echo-cancelled signal is obtained based on the analog echo signal and the near-end acquisition signal. 10.一种电子设备,其特征在于,所述电子设备包括处理器;所述处理器用于执行指令以实现如权利要求1-9中任一项所述方法的步骤。10. An electronic device, characterized in that the electronic device comprises a processor; the processor is configured to execute instructions to implement the steps of the method according to any one of claims 1-9. 11.一种计算机可读存储介质,其上存储有程序和/或指令,其特征在于,所述程序和/或指令被执行时实现权利要求1-9中任一项所述方法的步骤。11. A computer-readable storage medium on which programs and/or instructions are stored, characterized in that, when the programs and/or instructions are executed, the steps of the method according to any one of claims 1-9 are implemented.
CN202110904297.4A 2021-08-06 2021-08-06 Filter coefficient determination method, echo cancellation method and device Pending CN113783551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110904297.4A CN113783551A (en) 2021-08-06 2021-08-06 Filter coefficient determination method, echo cancellation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110904297.4A CN113783551A (en) 2021-08-06 2021-08-06 Filter coefficient determination method, echo cancellation method and device

Publications (1)

Publication Number Publication Date
CN113783551A true CN113783551A (en) 2021-12-10

Family

ID=78837037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110904297.4A Pending CN113783551A (en) 2021-08-06 2021-08-06 Filter coefficient determination method, echo cancellation method and device

Country Status (1)

Country Link
CN (1) CN113783551A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080175375A1 (en) * 2007-01-24 2008-07-24 Oki Electric Industry Co., Ltd. Echo canceler and echo canceling method
US20120140939A1 (en) * 2010-12-07 2012-06-07 Electronics And Telecommunications Research Institute Method and device for cancelling acoustic echo
US20160006880A1 (en) * 2014-07-02 2016-01-07 Youhong Lu Variable step size echo cancellation with accounting for instantaneous interference
CN108390663A (en) * 2018-03-09 2018-08-10 电信科学技术研究院有限公司 A kind of update method and device of finite impulse response filter coefficient vector
CN111199748A (en) * 2020-03-12 2020-05-26 紫光展锐(重庆)科技有限公司 Echo cancellation method, device, equipment and storage medium
CN111445917A (en) * 2020-03-17 2020-07-24 浙江大华技术股份有限公司 Echo cancellation method, device and computer storage medium
CN111681666A (en) * 2020-05-21 2020-09-18 浙江大华技术股份有限公司 Backup of filter coefficient, device and computer storage medium
CN111798827A (en) * 2020-07-07 2020-10-20 上海立可芯半导体科技有限公司 Echo cancellation method, apparatus, system and computer readable medium
CN112017679A (en) * 2020-08-05 2020-12-01 海尔优家智能科技(北京)有限公司 Method, device and equipment for updating adaptive filter coefficient
CN112397080A (en) * 2020-10-30 2021-02-23 浙江大华技术股份有限公司 Echo cancellation method and apparatus, voice device, and computer-readable storage medium
CN112803921A (en) * 2021-04-13 2021-05-14 浙江华创视讯科技有限公司 Adaptive filter, method, medium, and electronic device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080175375A1 (en) * 2007-01-24 2008-07-24 Oki Electric Industry Co., Ltd. Echo canceler and echo canceling method
US20120140939A1 (en) * 2010-12-07 2012-06-07 Electronics And Telecommunications Research Institute Method and device for cancelling acoustic echo
US20160006880A1 (en) * 2014-07-02 2016-01-07 Youhong Lu Variable step size echo cancellation with accounting for instantaneous interference
CN108390663A (en) * 2018-03-09 2018-08-10 电信科学技术研究院有限公司 A kind of update method and device of finite impulse response filter coefficient vector
CN111199748A (en) * 2020-03-12 2020-05-26 紫光展锐(重庆)科技有限公司 Echo cancellation method, device, equipment and storage medium
CN111445917A (en) * 2020-03-17 2020-07-24 浙江大华技术股份有限公司 Echo cancellation method, device and computer storage medium
CN111681666A (en) * 2020-05-21 2020-09-18 浙江大华技术股份有限公司 Backup of filter coefficient, device and computer storage medium
CN111798827A (en) * 2020-07-07 2020-10-20 上海立可芯半导体科技有限公司 Echo cancellation method, apparatus, system and computer readable medium
CN112017679A (en) * 2020-08-05 2020-12-01 海尔优家智能科技(北京)有限公司 Method, device and equipment for updating adaptive filter coefficient
CN112397080A (en) * 2020-10-30 2021-02-23 浙江大华技术股份有限公司 Echo cancellation method and apparatus, voice device, and computer-readable storage medium
CN112803921A (en) * 2021-04-13 2021-05-14 浙江华创视讯科技有限公司 Adaptive filter, method, medium, and electronic device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CEN WU 等: "Study on the performance of the variable step-size LMS algorithms", 《2020 IEEE INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY, BIG DATA AND ARTIFICIAL INTELLIGENCE (ICIBA)》, 14 December 2020 (2020-12-14), pages 159 - 162 *
张守勇: "自适应回波抵消与噪声消除技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 01, 15 January 2013 (2013-01-15), pages 136 - 91 *
李跃明 等: "变步长比例仿射投影算法及在回声消除中的应用", 《计算机工程与应用》, vol. 48, no. 35, 13 October 2011 (2011-10-13), pages 126 - 130 *
范文之: "适用于声回声抵消的自适应算法和后处理研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 04, 15 April 2021 (2021-04-15), pages 136 - 76 *

Similar Documents

Publication Publication Date Title
CN111768796B (en) Acoustic echo cancellation and dereverberation method and device
CN109727604A (en) Frequency domain echo cancel method and computer storage media for speech recognition front-ends
CN110992923B (en) Echo cancellation method, electronic device, and storage device
CN103369162B (en) A kind of listener's echo self adaptive elimination method of low complex degree
CN110265054B (en) Speech signal processing method, device, computer readable storage medium and computer equipment
CN107105111B (en) A kind of proportional affine projection echo cancel method of combination step-length
CN105391879A (en) Echo residue-free double-end communication robust acoustic echo elimination method
CN109727605B (en) Method and system for processing sound signal
JP2003503871A (en) Acoustic echo and noise removal
CN111370016B (en) Echo cancellation method and electronic equipment
CN112929506B (en) Audio signal processing method and device, computer storage medium and electronic equipment
CN114242100B (en) Audio signal processing method, training method, device, equipment and storage medium thereof
KR20220157475A (en) Echo Residual Suppression
CN112802487B (en) Echo processing method, device and system
TWI854590B (en) Echo cancelling method for dual-microphone array, echo cancelling device for dual-microphone array, electronic equipment, and computer-readable medium
WO2023093292A9 (en) Multi-channel echo cancellation method and related apparatus
CN112242145B (en) Speech filtering method, device, medium and electronic equipment
CN111883155A (en) Echo cancellation method, device and storage medium
CN113783551A (en) Filter coefficient determination method, echo cancellation method and device
CN111681666A (en) Backup of filter coefficient, device and computer storage medium
CN115834778A (en) Echo cancellation method, device, electronic equipment and storage medium
CN112803921B (en) Adaptive filter, method, medium, and electronic device
CN118486317A (en) Nonlinear echo suppression method and device, electronic equipment and storage medium
CN115706757A (en) Acoustic echo cancellation using control parameters
CN113362844A (en) Low-complexity leaving correlation self-adaptive acoustic echo cancellation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination