CN107864444B - A method for calibrating the frequency response of a microphone array - Google Patents
A method for calibrating the frequency response of a microphone array Download PDFInfo
- Publication number
- CN107864444B CN107864444B CN201711057646.3A CN201711057646A CN107864444B CN 107864444 B CN107864444 B CN 107864444B CN 201711057646 A CN201711057646 A CN 201711057646A CN 107864444 B CN107864444 B CN 107864444B
- Authority
- CN
- China
- Prior art keywords
- filter
- calibration
- vector
- signal
- formula
- 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.)
- Active
Links
- 230000004044 response Effects 0.000 title claims abstract description 40
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000005236 sound signal Effects 0.000 claims abstract description 11
- 239000013598 vector Substances 0.000 claims description 64
- 230000006870 function Effects 0.000 claims description 10
- 238000013459 approach Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000012935 Averaging Methods 0.000 claims description 3
- 239000011159 matrix material Substances 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 238000001914 filtration Methods 0.000 description 2
- 230000008447 perception Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 241000282414 Homo sapiens Species 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/004—Monitoring arrangements; Testing arrangements for microphones
- H04R29/005—Microphone arrays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
- H04R1/22—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only
- H04R1/222—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only for microphones
Landscapes
- Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- General Health & Medical Sciences (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
Description
技术领域technical field
本发明涉及信号处理技术领域,尤其涉及一种麦克风阵列频响校准方法。The invention relates to the technical field of signal processing, in particular to a microphone array frequency response calibration method.
背景技术Background technique
声音是人类广泛使用的信息载体,音频信号是信号处理技术的一个重要研究对象。麦克风作为声音传感器,在声音信号处理中发挥着重要的作用。由于单个麦克风具有声音拾取范围有限及噪声抑制能力弱,无法满足日益增长的音频信号质量要求,人们提出了麦克风阵列技术。由于其在时域、频域外还引进了空间域的信息,故对声音信号的处理能力得到增强,目前已成为众多高质量音频处理应用中的首选目标。作为声音信息采集工具,麦克风阵列对阵列音频处理领域中有着重要的作用。麦克风拾取声音过程一般由以下两个部分组成:(1)声信号转换成电信号;(2)电信号再经过前置放大器得到足够大的电信号。由于麦克风声-电参数的离散性或放大器中元器件参数的离散性等原因,不同麦克风之间不论是声/电信号转换模块还是前置放大器模块均会存在一些差异。这些差异在廉价麦克风或不同品牌的麦克风之间更为明显。这种差异导致了同一阵列中各麦克风之间的频率响应互不相同。具体表现为:同一位置不同的麦克风拾取同一段声信号时,所得到的电信号之间均存在着一定的差异。麦克风之间的频响差异会直接影响后续的音频信号处理结果,如声场感知、语音增强等算法的性能。然而,由于硬件电路等原因,同一阵列中的各个麦克风频率响之间往往存在一些差异。麦克风阵列的一些应用如声场感知、语音增强等都将受到上述差异的影响,导致处理性能下降。因此,校准同一阵列中各个麦克风的频响,使它们接近一致就成为麦克风阵列中的一个现实技术需求。现有技术中关于麦克风阵列的增益校准技术中由于只校准麦克风阵列中各麦克风之间的增益,并不能保证各麦克风在频响上相互一致,导致校准后各麦克风的幅频响应和相频响应仍然存在一定差异Sound is an information carrier widely used by human beings, and audio signal is an important research object of signal processing technology. As a sound sensor, a microphone plays an important role in sound signal processing. Because a single microphone has a limited sound pickup range and weak noise suppression ability, it cannot meet the increasing audio signal quality requirements, and people have proposed a microphone array technology. Because it also introduces information in the space domain in addition to the time domain and frequency domain, the processing ability of the sound signal is enhanced, and it has become the first choice for many high-quality audio processing applications. As a sound information collection tool, the microphone array plays an important role in the field of array audio processing. The process of picking up sound by a microphone generally consists of the following two parts: (1) the acoustic signal is converted into an electrical signal; (2) the electrical signal is then passed through a preamplifier to obtain a sufficiently large electrical signal. Due to the discreteness of the acoustic-electrical parameters of the microphone or the discreteness of the component parameters in the amplifier, there are some differences between different microphones, whether it is an acoustic/electrical signal conversion module or a preamplifier module. These differences are more pronounced between cheap microphones or between different brands of microphones. This difference results in frequency responses that vary from microphone to microphone in the same array. The specific performance is: when different microphones at the same position pick up the same segment of sound signal, there are certain differences among the obtained electrical signals. The difference in frequency response between microphones will directly affect the subsequent audio signal processing results, such as the performance of algorithms such as sound field perception and speech enhancement. However, due to reasons such as hardware circuits, there are often some differences between the frequency responses of microphones in the same array. Some applications of microphone arrays such as sound field perception, speech enhancement, etc. will be affected by the above differences, resulting in reduced processing performance. Therefore, calibrating the frequency response of each microphone in the same array to make them close to the same becomes a practical technical requirement in the microphone array. In the gain calibration technology of the microphone array in the prior art, since only the gain between the microphones in the microphone array is calibrated, the frequency response of each microphone cannot be guaranteed to be consistent with each other, resulting in the amplitude-frequency response and phase-frequency response of each microphone after calibration. there are still some differences
发明内容Contents of the invention
根据现有技术存在的问题,本发明公开了一种麦克风阵列频响校准方法,包括以下步骤:According to the problems existing in the prior art, the present invention discloses a microphone array frequency response calibration method, comprising the following steps:
S1:电音频信号w(n)经扬声器和声传播信道到达麦克风阵列,麦克风阵列输入声信号为x(n);S1: The electric audio signal w(n) reaches the microphone array through the speaker and the acoustic propagation channel, and the input acoustic signal of the microphone array is x(n);
S2:声信号x(n)经过k个不同的麦克风及前置放大器,分别得到不同的电信号x1(n)~xk(n);S2: The acoustic signal x(n) passes through k different microphones and preamplifiers to obtain different electrical signals x 1 (n)~x k (n);
S3:电信号x1(n)~xk(n)分别当作各路校准滤波器的输入信号用于调整各校准滤波器的滤波系数;所述校准滤波器的滤波系数的调整方式为:通过调整各路滤波器的滤波系数使输出信号y1(n)~yk(n)均向目标信号d(n)逼近,逼近原则是使y1(n)~yk(n)与d(n)之间的均方误差分别最小;S3: The electrical signals x 1 (n) to x k (n) are respectively used as input signals of each calibration filter to adjust the filter coefficients of each calibration filter; the adjustment method of the filter coefficients of the calibration filters is: By adjusting the filter coefficients of each filter, the output signals y 1 (n)~y k (n) are all approached to the target signal d(n), and the approximation principle is to make y 1 (n)~y k (n) and d The mean square errors between (n) are the smallest respectively;
S4:根据上述调整方式,计算各校准滤波器的滤波系数,以完成麦克风阵列的频响校准。S4: Calculate the filter coefficients of each calibration filter according to the above adjustment method, so as to complete the frequency response calibration of the microphone array.
进一步的,当各路校准滤波器输出信号y1(n)~yk(n)向目标信号d(n)逼近实现阵列频响校准时采用如下方式:设一帧数字信号的长度为N,则第i路校准滤波器的输入信号xi(n)与目标信号d(n)写成以下向量形式Further, when the calibration filter output signals y 1 (n)~y k (n) of each channel approach the target signal d(n) to realize array frequency response calibration, the following method is adopted: set the length of one frame of digital signal to N, Then the input signal x i (n) and the target signal d(n) of the i-th calibration filter are written in the following vector form
xi=[xi(0),xi(1),...,xi(N-1)]T (2)x i =[x i (0), x i (1),..., x i (N-1)] T (2)
d=[d(0),d(1),...,d(N-1)]T (3)d=[d(0),d(1),...,d(N-1)] T (3)
其中,[]T表示向量或矩阵的转置,列出以下代价函数Among them, [] T represents the transpose of a vector or matrix, and the following cost functions are listed
其中,Σ表示级数求和,使代价函数J最小,求出目标信号d(n)为Among them, Σ represents the series summation, so that the cost function J is minimized, and the target signal d(n) is obtained as
d=(x0+x1+...+xk)/k (5)d=(x 0 +x 1 +...+x k )/k (5)
即,目标信号的向量形式d等于对各滤波器的输入向量之和求平均。That is, the vector form d of the target signal is equal to averaging the sum of the input vectors of the filters.
当目标信号d(n)确定后,以第i路滤波器输出信号yi(n)与目标信号d(n)之间的均方误差最小为准则,计算出第i路滤波器系数hi(n)采用如下方式:When the target signal d(n) is determined, the i-th filter coefficient h i is calculated based on the minimum mean square error between the i-th filter output signal y i (n) and the target signal d(n) (n) in the following manner:
yi=[yi(0),yi(1),...,yi(N-1)]T (6)y i =[y i (0),y i (1),...,y i (N-1)] T (6)
则yi(n)与d(n)之间误差信号ei(n)写成以下向量形式Then the error signal e i (n) between y i (n) and d(n) is written in the following vector form
ei=[ei(0),ei(1),...,ei(N-1)]T=yi-d (7)e i =[e i (0),e i (1),...,e i (N-1)] T =y i -d (7)
列出另一组代价函数List another set of cost functions
Fi=ei Tei (8)F i =e i T e i (8)
其中,i=1,2,...,k,k为待校准麦克风的个数,使Fi最小,计算出第i路校准滤波器的滤波系数hi(n),计算规则为:Wherein, i=1,2,...,k, k is the number of microphones to be calibrated, so that F i is the smallest, and the filter coefficient h i (n) of the i-th road calibration filter is calculated, and the calculation rule is:
hi=[hi(0),hi(1),...,hi(Mi-1)]T=(Xi TXi)-1DTxi_m (9)h i =[h i (0),h i (1),...,h i (M i -1)] T =(X i T X i ) -1 D T x i_m (9)
其中,xi_m是由第i路校准滤波器输入向量的前N-Mi+1个元素组成的向量,即Among them, x i_m is a vector composed of the first NM i + 1 elements of the i-th calibration filter input vector, namely
xi_m=[xi(0),xi(1),...,xi(N-Mi)]T (10)x i_m = [x i (0), x i (1),..., x i (NM i )] T (10)
而式(9)中的Xi与D分别为And Xi and D in formula (9) are respectively
当i从1取到k时,用上述方法计算出每路校准滤波器的滤波系数,完成麦克风阵列频响校准。When i ranges from 1 to k, use the above method to calculate the filter coefficient of each calibration filter to complete the microphone array frequency response calibration.
当分别对多帧输入数据时进行校准,对得到的多组滤波器系数进行融合、得到滤波器系数采用如下方式:When the multi-frame input data is calibrated separately, the obtained multiple sets of filter coefficients are fused to obtain the filter coefficients in the following way:
设第i路麦克风经过Q帧数据进行校准,根据式(9)得到Q组滤波器系数向量分别为hi_1、hi_2、...hi_Q,其中,hi_Q表示第i路麦克风在第Q帧输入数据得到的滤波器系数向量;此外,Q个滤波器系数向量的平均向量定义为Assume that the i-th microphone is calibrated by Q frame data, and the Q-group filter coefficient vectors are obtained according to formula (9) as h i_1 , h i_2 , ... h i_Q , where h i_Q means that the i-th microphone is at the Qth The filter coefficient vector obtained from the frame input data; in addition, the average vector of Q filter coefficient vectors is defined as
Hi=(hi_1+hi_2+...+hi_Q)/Q (13)H i =(h i_1 +h i_2 +...+h i_Q )/Q (13)
第i路第q帧滤波器系数向量的方差向量定义为The variance vector of the i-th road q-th frame filter coefficient vector is defined as
δi_q=(hi_q-Hi)·(hi_q-Hi) (14)δ i_q = (h i_q -H i )·(h i_q -H i ) (14)
其中,符号“·”表示向量点乘,q=1,2,...,Q,第i路第q帧滤波器系数向量的方差倒数向量θi_q被定义为Among them, the symbol "·" represents the vector dot product, q=1,2,...,Q, the reciprocal variance vector θ i_q of the filter coefficient vector of the i-th road and the q-th frame is defined as
θi_q=[1/δi_q(0),1/δi_q(1),...,1/δi_q(Mi-1)]T (15)θ i_q =[1/δ i_q (0),1/δ i_q (1),...,1/δ i_q (M i -1)] T (15)
即,向量θi_q中的每个元素分别是向量δi_q所对应元素的倒数,关于第i路校准滤波器,其滤波器系数向量的方差倒数向量和被定义为That is, each element in the vector θi_q is the reciprocal of the corresponding element of the vector δi_q , and for the i-th calibration filter, the vector sum of the reciprocal variance of the filter coefficient vector is defined as
θi=θi_1+θi_2+。。。+θi_Q (16)θ i =θ i_1 +θ i_2 +. . . +θ i_Q (16)
根据θi和θi_q(q=1,2,...,Q)得出Q个滤波器系数权重向量Ci_1,Ci_2,...,Ci_q,...,Ci_Q,其中,According to θ i and θ i_q (q=1,2,...,Q), Q filter coefficient weight vectors C i_1 , C i_2 ,..., C i_q ,..., C i_Q are obtained , where,
Ci_q=[θi_q(0)/θi(0),θi_q(1)/θi(1),...,θi_q(Mi-1)/θi(Mi-1)]T (17)C i_q =[θ i_q (0)/θ i (0),θ i_q (1)/θ i (1),...,θ i_q (M i -1)/θ i (M i -1)] T (17)
根据hi_q和Ci_q得出第i路校准滤波器最终的滤波系数According to h i_q and C i_q , the final filter coefficient of the i-th calibration filter is obtained
hi=hi_1·Ci_1+hi_2·Ci_2+...+hi_Q·Ci_Q (18)h i =h i_1 ·C i_1 +h i_2 ·C i_2 +...+h i_Q ·C i_Q (18)
其中,i=1,2,...,k,k为麦克风数量。Wherein, i=1,2,...,k, k is the number of microphones.
由于采用了上述技术方案,本发明提供的一种麦克风阵列频响校准方法,该方法使同一阵列中不同麦克风的频响接近一致,从而提高了麦克风阵列的信号处理能力。因此,一些麦克风阵列的应用,如声源定位或语音增强的性能都采用本发明公开的麦克风阵列频响校准方法来对信号进行处理。Due to the adoption of the above technical solution, the present invention provides a microphone array frequency response calibration method, which makes the frequency responses of different microphones in the same array nearly consistent, thereby improving the signal processing capability of the microphone array. Therefore, some microphone array applications, such as sound source localization or speech enhancement, use the microphone array frequency response calibration method disclosed in the present invention to process signals.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明麦克风阵列频响校准方法的流程图;Fig. 1 is the flowchart of the calibration method of microphone array frequency response of the present invention;
图2为本发明中麦克风与扬声器、麦克风与麦克风之间的距离示意图;Fig. 2 is the schematic diagram of the distance between microphone and loudspeaker, microphone and microphone in the present invention;
图3为本发明中校准滤波器的工作原理图;Fig. 3 is a working principle diagram of the calibration filter in the present invention;
图4为本发明中麦克风阵列频响校准方法的效果示意图;Fig. 4 is the schematic diagram of the effect of the microphone array frequency response calibration method in the present invention;
图5为本发明中麦克风阵列频响校准方法的效果示意图;5 is a schematic diagram of the effect of the method for calibrating the frequency response of the microphone array in the present invention;
图6为本发明中麦克风阵列频响校准方法的效果示意图;6 is a schematic diagram of the effect of the method for calibrating the frequency response of the microphone array in the present invention;
图7为本发明中麦克风阵列频响校准方法的效果示意图。FIG. 7 is a schematic diagram of the effect of the method for calibrating the frequency response of the microphone array in the present invention.
具体实施方式Detailed ways
为使本发明的技术方案和优点更加清楚,下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚完整的描述:In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the drawings in the embodiments of the present invention:
如图1所示的一种麦克风阵列频响校准方法,具体包括以下步骤:A method for calibrating the frequency response of a microphone array as shown in Figure 1 specifically includes the following steps:
S1:电音频信号w(n)经扬声器和声传播信道到达麦克风阵列,麦克风阵列输入声信号为x(n);S1: The electric audio signal w(n) reaches the microphone array through the speaker and the acoustic propagation channel, and the input acoustic signal of the microphone array is x(n);
S2:声信号x(n)经过k个不同的麦克风及前置放大器,分别得到不同的电信号x1(n)~xk(n);S2: The acoustic signal x(n) passes through k different microphones and preamplifiers to obtain different electrical signals x 1 (n)~x k (n);
S3:电信号x1(n)~xk(n)分别当作各路校准滤波器的输入信号用于调整各校准滤波器的滤波系数;所述校准滤波器的滤波系数的调整方式为:通过调整各路滤波器的滤波系数使输出信号y1(n)~yk(n)均向目标信号d(n)逼近,逼近原则是使y1(n)~yk(n)与d(n)之间的均方误差分别最小;S3: The electrical signals x 1 (n) to x k (n) are respectively used as input signals of each calibration filter to adjust the filter coefficients of each calibration filter; the adjustment method of the filter coefficients of the calibration filters is: By adjusting the filter coefficients of each filter, the output signals y 1 (n)~y k (n) are all approached to the target signal d(n), and the approximation principle is to make y 1 (n)~y k (n) and d The mean square errors between (n) are the smallest respectively;
S4:根据上述调整方式,计算各校准滤波器的滤波系数,以完成麦克风阵列的频响校准。S4: Calculate the filter coefficients of each calibration filter according to the above adjustment method, so as to complete the frequency response calibration of the microphone array.
如图1所示:本方法中需要不同麦克风的输入信号均为x(n),即不同麦克风之间需保持相同的输入信号。然而,在实际环境中由于麦克风的位置各不相同,导致各麦克风接收到的信号之间均存在差异。校准时,为使各麦克风的接收信号之间接近一致,扬声器与麦克风阵列的摆放规则如图2所示,其中:(1)扬声器与麦克风阵列之间的距离L保持足够大;(2)麦克风之间的距离l应足够小。As shown in Figure 1: In this method, the input signals of different microphones are required to be x(n), that is, the same input signals need to be kept between different microphones. However, in an actual environment, since the positions of the microphones are different, there are differences among the signals received by each microphone. During calibration, in order to make the received signals of each microphone close to the same, the placement rules of the loudspeaker and the microphone array are shown in Figure 2, where: (1) the distance L between the loudspeaker and the microphone array is kept sufficiently large; (2) The distance l between the microphones should be small enough.
进一步的,校准滤波器由k个FIR滤波器组成,其作用是使待校准麦克风之间的频响相互逼近。定义第i个麦克风所对应的校准滤波器输入信号为xi(n),输出为滤波结果yi(n),即Further, the calibration filter is composed of k FIR filters, and its function is to make the frequency responses of the microphones to be calibrated approach each other. Define the input signal of the calibration filter corresponding to the i-th microphone as x i (n), and the output is the filtering result y i (n), namely
其中,Mi为第i路校准滤波器的阶数,hi(m)为第m个滤波器系数,yi(n)为n时刻的滤波结果,xi(n-m)为n-m时刻的输入信号,i的取值范围为1~k之间的整数。该滤波器框图如图3所示。此外,第i路校准滤波器的滤波系数hi(m)取决于其滤波器输入信号xi(n)与目标信号d(n)。当输入信号w(n)确定之后,第i路滤波器输入信号xi(n)仅取决于第i个麦克风与前置放大器的频率响应,所以目标信号d(n)的计算显得尤为重要。Among them, M i is the order of the i-th calibration filter, h i (m) is the m-th filter coefficient, y i (n) is the filtering result at time n, and x i (nm) is the input at time nm Signal, the value range of i is an integer between 1 and k. The block diagram of the filter is shown in Figure 3. In addition, the filter coefficient h i (m) of the i-th calibration filter depends on its filter input signal xi (n) and target signal d(n). After the input signal w(n) is determined, the i-th filter input signal xi (n) only depends on the frequency response of the i-th microphone and the preamplifier, so the calculation of the target signal d(n) is particularly important.
进一步的,为了使各路校准滤波器输出信号y1(n)~yk(n)向目标信号d(n)逼近,从而达到校准目的。设一帧数字信号的长度为N,则第i路校准滤波器的输入信号xi(n)与目标信号d(n)均可写成以下向量形式Further, in order to make the output signals y 1 (n)˜y k (n) of each calibration filter approach the target signal d(n), so as to achieve the purpose of calibration. Assuming that the length of a frame of digital signal is N, the input signal x i (n) and the target signal d(n) of the i-th calibration filter can be written in the following vector form
xi=[xi(0),xi(1),...,xi(N-1)]T (2)x i =[x i (0), x i (1),..., x i (N-1)] T (2)
d=[d(0),d(1),...,d(N-1)]T (3)d=[d(0),d(1),...,d(N-1)] T (3)
其中,[]T表示向量或矩阵的转置。为使目标信号与每个滤波器的输入信号之间的均方误差最小,可列出以下代价函数where [] T represents the transpose of a vector or matrix. In order to minimize the mean square error between the target signal and the input signal of each filter, the following cost function can be listed
其中,Σ表示级数求和。使代价函数J最小,可求出目标信号d(n)为where Σ represents the series summation. To minimize the cost function J, the target signal d(n) can be obtained as
d=(x0+x1+...+xk)/k (5)d=(x 0 +x 1 +...+x k )/k (5)
即,目标信号的向量形式d等于对各滤波器的输入向量之和求平均。That is, the vector form d of the target signal is equal to averaging the sum of the input vectors of the filters.
滤波器系数采用如下方式计算:The filter coefficients are calculated as follows:
当目标信号d(n)确定之后,本发明以第i路滤波器输出信号yi(i)与目标信号d(n)之间的均方误差最小为准则,计算出第i路滤波器系数hi(n)。定义第i路校准滤波器的输出信号yi(n)的向量形式为After the target signal d(n) is determined, the present invention calculates the i-th filter coefficient based on the minimum mean square error between the i-th filter output signal y i (i) and the target signal d(n) h i (n). Define the vector form of the output signal y i (n) of the i-th calibration filter as
yi=[yi(0),yi(1),...,yi(N-1)]T (6)y i =[y i (0),y i (1),...,y i (N-1)] T (6)
则yi(i)与d(n)之间误差信号ei(n)可写成以下向量形式Then the error signal e i (n) between y i (i) and d(n) can be written in the following vector form
ei=[ei(0),ei(1),...,ei(N-1)]T=yi-d (7)e i =[e i (0),e i (1),...,e i (N-1)] T =y i -d (7)
此时,可列出另一组代价函数At this point, another set of cost functions can be listed
Fi=ei Tei (8)F i =e i T e i (8)
其中,i=1,2,...,k,k为待校准麦克风的个数。使Fi最小,可算出第i路校准滤波器的滤波系数hi(n),计算规则为:Wherein, i=1,2,...,k, k is the number of microphones to be calibrated. Make F i the smallest, the filter coefficient h i (n) of the i-th calibration filter can be calculated, and the calculation rule is:
hi=[hi(0),hi(1),...,hi(Mi-1)]T=(Xi TXi)-1DTxi_m (9)h i =[h i (0),h i (1),...,h i (M i -1)] T =(X i T X i ) -1 D T x i_m (9)
其中,xi_m是由第i路校准滤波器输入向量的前N-Mi+1个元素组成的向量,即Among them, x i_m is a vector composed of the first NM i + 1 elements of the i-th calibration filter input vector, namely
xi_m=[xi(0),xi(1),...,xi(N-Mi)]T (10)x i_m = [x i (0), x i (1),..., x i (NM i )] T (10)
而式(9)中的Xi与D分别为And Xi and D in formula (9) are respectively
当i从1取到k时,用上述方法可算出每路校准校准滤波器的滤波系数,从而完成麦克风阵列频响校准校准。When i ranges from 1 to k, the above method can be used to calculate the filter coefficient of each calibration filter, thereby completing the microphone array frequency response calibration.
为了进一步提高校准效果,可通过上述方法分别对多帧输入数据时进行校准,然后对得到的多组滤波器系数进行融合,从而得到更精准的滤波器系数。设第i路麦克风经过Q帧数据进行校准,根据式(9)可得到Q组滤波器系数向量,分别为hi_1、hi_2、...hi_Q,其中,hi_Q表示第i路麦克风在第Q帧输入数据得到的滤波器系数向量。此外,Q个滤波器系数向量的平均向量可定义为In order to further improve the calibration effect, the above method can be used to calibrate multiple frames of input data, and then fuse the obtained sets of filter coefficients to obtain more accurate filter coefficients. Assuming that the i-th microphone is calibrated by Q frame data, the Q group of filter coefficient vectors can be obtained according to formula (9), which are h i_1 , h i_2 , ... h i_Q , where h i_Q means that the i-th microphone is in The filter coefficient vector obtained from the input data of the Qth frame. Furthermore, the average vector of Q filter coefficient vectors can be defined as
Hi=(hi_1+hi_2+...+hi_Q)/Q (13)H i =(h i_1 +h i_2 +...+h i_Q )/Q (13)
此时,第i路第q帧滤波器系数向量的方差向量可定义为At this time, the variance vector of the filter coefficient vector of the i-th channel and the q-th frame can be defined as
δi_q=(hi_q-Hi)·(hi_q-Hi) (14)δ i_q = (h i_q -H i )·(h i_q -H i ) (14)
其中,符号’·’表示向量点乘,q=1,2,...,Q。第i路第q帧滤波器系数向量的方差倒数向量θi_q被定义为Wherein, the symbol '·' represents vector dot product, q=1,2,...,Q. The reciprocal variance vector θ i_q of the filter coefficient vector of the i-th frame q-th frame is defined as
θi_q=[1/δi_q(0),1/δi_q(1),...,1/δi_q(Mi-1)]T (15)θ i_q =[1/δ i_q (0),1/δ i_q (1),...,1/δ i_q (M i -1)] T (15)
即,向量θi_q中的每个元素分别是向量δi_q所对应元素的倒数。关于第i路校准滤波器,其滤波器系数向量的方差倒数向量和被定义为That is, each element in the vector θ i_q is the reciprocal of the corresponding element in the vector δ i_q . Regarding the i-th calibration filter, the vector sum of the reciprocal variance of the filter coefficient vector is defined as
θi=θi_1+θi_2+。。。+θi_Q (16)θ i =θ i_1 +θ i_2 +. . . +θ i_Q (16)
此时,根据θi和θi_q(q=1,2,...,Q)可得出Q个滤波器系数权重向量Ci_1,Ci_2,...,Ci_q,...,Ci_Q。其中,At this time, according to θ i and θ i_q (q=1,2,...,Q), Q filter coefficient weight vectors C i_1 , C i_2 ,..., C i_q ,..., C i_Q . in,
Ci_q=[θi_q(0)/θi(0),θi_q(1)/θi(1),...,θi_q(Mi-1)/θi(Mi-1)]T (17)C i_q =[θ i_q (0)/θ i (0),θ i_q (1)/θ i (1),...,θ i_q (M i -1)/θ i (M i -1)] T (17)
最后,根据hi_q和Ci_q得出第i路校准滤波器最终的滤波系数Finally, according to h i_q and C i_q , the final filter coefficient of the i-th calibration filter is obtained
hi=hi_1·Ci_1+hi_2·Ci_2+...+hi_Q·Ci_Q (18)h i =h i_1 ·C i_1 +h i_2 ·C i_2 +...+h i_Q ·C i_Q (18)
其中,i=1,2,...,k,k为麦克风数量。Wherein, i=1,2,...,k, k is the number of microphones.
为了验证本发明的方法的效果,采用频率响应不同的两个麦克风进行校准实验,其幅频响应和相频响应分别如图4、图5所示。由图4、图5可见,两个麦克风频响在通带、阻带、幅频、相频等均存在一定差异。In order to verify the effect of the method of the present invention, two microphones with different frequency responses are used for calibration experiments, and their amplitude-frequency responses and phase-frequency responses are shown in Fig. 4 and Fig. 5 respectively. It can be seen from Figure 4 and Figure 5 that there are certain differences in the frequency responses of the two microphones in the passband, stopband, amplitude frequency, and phase frequency.
采用本发明提出的校准方法对上述两个麦克风进行校准。系统参数选择如下:采样频率为16KHz,麦克风个数k=2,一帧数字信号长度N=32768,两个校准滤波器的阶数M1=M2=128,输入数据帧数Q=2,输入信号w(n)为均匀白噪声。校准结果如图6、图7所示。可以看出校准后两个麦克风频响在通带、阻带、幅频、相频上均相互逼近。The above two microphones are calibrated by using the calibration method proposed by the present invention. The system parameters are selected as follows: the sampling frequency is 16KHz, the number of microphones k=2, the length of one frame of digital signal N=32768, the order of two calibration filters M 1 =M 2 =128, the number of input data frames Q=2, The input signal w(n) is uniform white noise. The calibration results are shown in Figure 6 and Figure 7. It can be seen that the frequency responses of the two microphones are close to each other in the passband, stopband, amplitude frequency, and phase frequency after calibration.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, any person familiar with the technical field within the technical scope disclosed in the present invention, according to the technical solution of the present invention Any equivalent replacement or change of the inventive concepts thereof shall fall within the protection scope of the present invention.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711057646.3A CN107864444B (en) | 2017-11-01 | 2017-11-01 | A method for calibrating the frequency response of a microphone array |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711057646.3A CN107864444B (en) | 2017-11-01 | 2017-11-01 | A method for calibrating the frequency response of a microphone array |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107864444A CN107864444A (en) | 2018-03-30 |
| CN107864444B true CN107864444B (en) | 2019-10-29 |
Family
ID=61696457
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711057646.3A Active CN107864444B (en) | 2017-11-01 | 2017-11-01 | A method for calibrating the frequency response of a microphone array |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107864444B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116437280A (en) * | 2018-08-22 | 2023-07-14 | 深圳市汇顶科技股份有限公司 | Method, device, device and system for evaluating consistency of microphone arrays |
| CN109275084B (en) * | 2018-09-12 | 2021-01-01 | 北京小米智能科技有限公司 | Method, device, system, equipment and storage medium for testing microphone array |
| CN109246517B (en) * | 2018-10-12 | 2021-03-12 | 歌尔科技有限公司 | Noise reduction microphone correction method of wireless earphone, wireless earphone and charging box |
| CN111182434A (en) * | 2019-12-31 | 2020-05-19 | 深圳市潮流网络技术有限公司 | Conference system microphone anomaly detection method, conference system and test system |
| CN113207065B (en) * | 2021-05-10 | 2022-04-12 | 杭州兆华电子股份有限公司 | Acoustic calibrator and method based on ANC feedforward topology |
| CN113068111B (en) * | 2021-06-03 | 2021-09-24 | 深圳市创成微电子有限公司 | Microphone and microphone calibration method and system |
| CN115776626B (en) * | 2023-02-10 | 2023-05-02 | 杭州兆华电子股份有限公司 | Frequency response calibration method and system for microphone array |
| CN116471530A (en) * | 2023-03-27 | 2023-07-21 | 北京航天计量测试技术研究所 | A distributed calibration system and method for a large acoustic array measurement system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1809105A (en) * | 2006-01-13 | 2006-07-26 | 北京中星微电子有限公司 | Dual-microphone speech enhancement method and system applicable to mini-type mobile communication devices |
| CN104244159A (en) * | 2013-06-06 | 2014-12-24 | 美商富迪科技股份有限公司 | Method for calibrating performance of small array microphones |
| EP2708039B1 (en) * | 2011-05-09 | 2016-08-10 | DTS, Inc. | Room characterization and correction for multi-channel audio |
| US9532139B1 (en) * | 2012-09-14 | 2016-12-27 | Cirrus Logic, Inc. | Dual-microphone frequency amplitude response self-calibration |
-
2017
- 2017-11-01 CN CN201711057646.3A patent/CN107864444B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1809105A (en) * | 2006-01-13 | 2006-07-26 | 北京中星微电子有限公司 | Dual-microphone speech enhancement method and system applicable to mini-type mobile communication devices |
| EP2708039B1 (en) * | 2011-05-09 | 2016-08-10 | DTS, Inc. | Room characterization and correction for multi-channel audio |
| US9532139B1 (en) * | 2012-09-14 | 2016-12-27 | Cirrus Logic, Inc. | Dual-microphone frequency amplitude response self-calibration |
| CN104244159A (en) * | 2013-06-06 | 2014-12-24 | 美商富迪科技股份有限公司 | Method for calibrating performance of small array microphones |
Non-Patent Citations (1)
| Title |
|---|
| 分布式麦克风阵列定位方法研究;王舒文;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130915;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107864444A (en) | 2018-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107864444B (en) | A method for calibrating the frequency response of a microphone array | |
| US11818534B2 (en) | Forming virtual microphone arrays using dual omnidirectional microphone array (DOMA) | |
| KR101768260B1 (en) | Spectrally uncolored optimal crosstalk cancellation for audio through loudspeakers | |
| CN111385713A (en) | Microphone device and headphone | |
| US11381909B2 (en) | Method and apparatus for forming differential beam, method and apparatus for processing signal, and chip | |
| US8731211B2 (en) | Calibrated dual omnidirectional microphone array (DOMA) | |
| US20110051950A1 (en) | Calibrating a Dual Omnidirectional Microphone Array (DOMA) | |
| US10070220B2 (en) | Method for equalization of microphone sensitivities | |
| US10595150B2 (en) | Method and apparatus for acoustic crosstalk cancellation | |
| CN110896512B (en) | Noise reduction method and system for semi-in-ear earphone and semi-in-ear earphone | |
| CN110708651B (en) | Hearing aid squeal detection and suppression method and device based on segmented trapped wave | |
| CN113782046A (en) | Microphone array pickup method and system for remote speech recognition | |
| US10902837B2 (en) | Sparsity-aware adaptive feedback cancellation | |
| CN118824277A (en) | Adaptive speech noise reduction method based on ternary microphone array | |
| CN106454673B (en) | Adaptive Calibration Method of Microphone Array Output Signal Based on RLS Algorithm | |
| Kinoshita et al. | Blind source separation using spatially distributed microphones based on microphone-location dependent source activities. | |
| CN106973353A (en) | A kind of microphone array passage based on Volterra wave filters mismatches calibration method | |
| HK1145751A (en) | Dual omnidirectional microphone array |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |