Correction method and apparatus for microphone array, device and storage medium
By obtaining the original response value matrix of the microphone array and determining the reference function relationship matrix, the microphone array is corrected, which solves the problem of inconsistent response values of the microphone array and improves the image consistency and accuracy of the acoustic imager.
Patent Information
- Application Number
- PCT/CN2024/112027
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-16
- Filing Date
- 2024-08-14
- Publication Date
- 2025-02-20
AI Technical Summary
When a microphone array responds to the same sound source, it may produce different response values, affecting the image consistency of the acoustic imager.
By obtaining the original response value matrix of the microphone array to the sound source in the working frequency band, a reference function relationship matrix is determined, which represents the functional relationship between the response value of the Piano and the response value of each microphone in the microphone array, and then based on the matrix pair The original response value matrix is corrected.
Improves the response value consistency of the microphone array and enhances the consistency and accuracy of the images generated by the acoustic imager.
Smart Images

Figure CN2024112027_20022025_PF_FP_ABST
Abstract
Description
Calibration method, device, equipment and storage medium for microphone array Technical Field
[0001] The present application relates to the field of digital signal processing, and in particular to a calibration method, apparatus, device, and storage medium for a microphone array. Background Art
[0002] An acoustic imager is a specialized device that uses an acoustic microphone array (e.g., a microphone array) to measure the distribution of sound fields within a specific range. It can be used to determine the location and radiation pattern of sound emitted by an object. Acoustic imagers are widely used in scenarios such as locating industrial gas leaks, localizing partial discharge (PD) in the power industry, and locating the source of abnormal mechanical failures.
[0003] Summary of the Invention
[0004] The present application provides a calibration method, apparatus, device, and storage medium for a microphone array.
[0005] In a first aspect, the present application provides a calibration method for a microphone array, the method comprising: obtaining an original response value matrix obtained by the microphone array collecting sound sources within a working frequency band; determining a reference function relationship matrix; wherein the reference function relationship matrix is used to represent the functional relationship between the response value of a standard microphone within the working frequency band and the response value of each microphone in the microphone array; and correcting the original response value matrix based on the reference function relationship matrix.
[0006] In one possible implementation, determining a reference function relationship matrix includes: for each frequency point of at least one frequency point within the working frequency band, obtaining a response value matrix obtained by the microphone array collecting a standard sound source of the frequency point in an anechoic chamber environment, as a calibration matrix corresponding to the frequency point; obtaining a response value matrix obtained by the standard microphone collecting a standard sound source of the frequency point in the anechoic chamber environment, as a standard response value matrix corresponding to the frequency point, wherein the number of rows and columns of the standard response value matrix is the same as the number of rows and columns of the calibration matrix; determining a reference matrix corresponding to the frequency point based on a relationship between elements at the same position in the calibration matrix and the standard response value matrix; and obtaining the reference function relationship matrix based on the reference matrix corresponding to each of the at least one frequency point.
[0007] In one possible implementation, the reference matrix corresponding to the frequency point is determined based on the relationship between the elements at the same position in the calibration matrix and the standard response value matrix, including: taking the quotient of the elements at the same position in the standard response value matrix and the calibration matrix as the element at the same position in the reference matrix.
[0008] In one possible implementation, the reference function relationship matrix is obtained according to the reference matrix corresponding to each of the at least one frequency point, including any one of the following items: when the at least one frequency point includes only one frequency point, the reference matrix corresponding to the frequency point is determined as the reference function relationship matrix; when the at least one frequency point includes multiple frequency points, the reference function relationship matrix is determined in combination with multiple reference matrices corresponding to the multiple frequency points.
[0009] In one possible implementation, the reference function relationship matrix is determined in combination with multiple reference matrices corresponding to the multiple frequency points, including any one of the following items: taking the average value of the elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix; taking the result value of the weighted sum of the elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix.
[0010] In one possible implementation, the correcting the original response value matrix based on the reference function relationship matrix includes: when the difference between a frequency point among the at least one frequency point and the working frequency point is less than or equal to a preset threshold, correcting the original response value matrix based on the reference function relationship matrix corresponding to the frequency point; the working frequency point is within the working frequency band.
[0011] In one possible implementation, the correction of the original response value matrix based on the reference function relationship matrix includes: determining a gain coefficient matrix based on the reference function relationship matrix through any one of the following items: when the at least one frequency point includes only one frequency point and the difference between the frequency point and the working frequency point is less than or equal to a preset threshold, determining the reference function relationship matrix as the gain coefficient matrix; the working frequency point is within the working frequency band; when the at least one frequency point includes multiple frequency points, determining the gain coefficient matrix based on a first calibration matrix corresponding to a first frequency point among the multiple frequency points, a second calibration matrix corresponding to a second frequency point among the multiple frequency points, and the reference function relationship matrix; when the at least one frequency point includes multiple frequency points, performing linear or nonlinear fitting based on the calibration matrices corresponding to each of the multiple frequency points and the reference function relationship matrix to determine the coefficients of the fitted frequency-related power function as the gain coefficient matrix; and correcting the original response value matrix based on the reference function relationship matrix and the gain coefficient matrix.
[0012] In a possible implementation, when the at least one frequency point includes multiple frequency points, determining the gain coefficient matrix according to a first calibration matrix corresponding to a first frequency point among the multiple frequency points, a second calibration matrix corresponding to a second frequency point among the multiple frequency points, and the reference function relationship matrix includes: determining the gain coefficient matrix according to the following formula:
[0013] K=(G*B f2 -G*B f1 ) / (f2-f1);
[0014] Where K represents the gain coefficient matrix; G represents the reference function relationship matrix; f1 represents the first frequency point; f2 represents the second frequency point; B f1 represents the first calibration matrix; B f2 represents the second calibration matrix.
[0015] In a possible implementation, correcting the original response value matrix based on the reference function relationship matrix and the gain coefficient matrix includes: determining a target response value matrix after correcting the original response value matrix according to the following formula:
[0016] S f0 =G*B f1 +K*(f0-f1);
[0017] Among them, S f0 represents the target response value matrix; f0 represents the operating frequency; G represents the reference function relationship matrix; K represents the gain coefficient matrix; f1 represents the first frequency point; B f1 represents the first calibration matrix.
[0018] According to the calibration method for a microphone array provided in this application, the original response value matrix of the sound source collected by the microphone array within the working frequency band can be obtained, and a reference function relationship matrix can be determined, wherein the reference function relationship matrix is used to represent the functional relationship between the response value of the standard microphone within the working frequency band and the response value of each microphone in the microphone array. Finally, based on the reference function relationship matrix, the original response value matrix is corrected. That is, each microphone in the microphone array is calibrated based on the standard microphone, and the elements in the corrected response value matrix are all based on the standard microphone as a reference, thereby improving the consistency of the microphone array.
[0019] In a second aspect, the present application provides a calibration device for a microphone array, which includes various functional modules used in the method described in the first aspect above.
[0020] In a third aspect, the present application provides an electronic device comprising a processor and a memory; the memory stores instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method described in the first aspect above.
[0021] In a fourth aspect, the present application provides a computer program product, which, when executed in an electronic device, enables the electronic device to execute the method described in the first aspect above.
[0022] In a fifth aspect, the present application provides a readable storage medium, which includes: software instructions; when the software instructions are executed in an electronic device, the electronic device implements the method described in the first aspect above.
[0023] The beneficial effects of the second to fifth aspects mentioned above can be referred to those described in the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of this application, the following briefly introduces the drawings required for describing the embodiments. The drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without inventive efforts.
[0025] FIG1 is a schematic diagram of the composition of a correction system provided in an embodiment of the present application.
[0026] FIG2 is a schematic diagram of an audio data link provided in an embodiment of the present application.
[0027] FIG3 is a schematic diagram of the composition of an electronic device provided in an embodiment of the present application.
[0028] FIG4 is a flow chart of a calibration method for a microphone array provided in an embodiment of the present application.
[0029] FIG5 is another flowchart of a calibration method for a microphone array provided in an embodiment of the present application.
[0030] FIG6 is a schematic diagram of a calibration environment provided in an embodiment of the present application.
[0031] FIG7 is a schematic diagram of another flow chart of a calibration method for a microphone array provided in an embodiment of the present application.
[0032] FIG8 is a schematic diagram of another flow chart of a calibration method for a microphone array provided in an embodiment of the present application.
[0033] FIG9 is a schematic diagram of another flow chart of a calibration method for a microphone array provided in an embodiment of the present application.
[0034] FIG10 is a schematic diagram of matrix changes provided in an embodiment of the present application.
[0035] FIG11 is a schematic diagram showing the composition of a calibration device for a microphone array provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] First, the terms involved in the embodiments of the present application are introduced.
[0037] An acoustic imaging camera, also known as a sound camera or acoustic imager, is a specialized device that uses an acoustic microphone array (e.g., a microphone array) to measure the distribution of sound fields within a specific range. It can be used to determine the location and radiation pattern of sound emitted by an object. An acoustic imaging camera uses a cloud image to display an intuitive image, with color and brightness representing the intensity of sound. This image can be combined with video to form a state diagram that can be used to intuitively analyze the noise level of the object being measured.
[0038] Microphone array: It is composed of a certain number of acoustic sensors (usually microphones) and is a system used to sample and process the spatial characteristics of the sound field.
[0039] Decibel: A unit of measurement for the relative loudness of a sound. The decibel is defined as the logarithm of the ratio of a quantity to a reference quantity of the same type, expressed in dB, equal to 1.
[0040] The microphone array may produce different response values (decibel values) to the same sound source, affecting the acoustic imager's subsequent image generation based on the response values of the microphone array. To improve the consistency of the microphone array, the following solutions can usually be used:
[0041] 1) Choose a microphone model with good frequency response consistency.
[0042] 2) Improve the consistency of microphone array patch process in the production line.
[0043] 3) Add optimization measures to the middleware. For example, design a waterproof or dustproof film with better uniformity for the microphone array to avoid the consistency difference of each microphone in the microphone array.
[0044] 4) Optimize the structural components. For example, add some design features to the microphone array components to remove reflections and background noise, thereby improving the consistency of the microphone array.
[0045] The above solutions all involve hardware optimization of the microphones, but they still face the problem of being unable to quantify and accordingly eliminate the individual differences between microphones in a microphone array. Based on this, the embodiments of the present application provide a calibration method, apparatus, device, and storage medium for a microphone array, which can use some calibrated parameters to calibrate the original response values of the microphone array through algorithmic processing, thereby improving the consistency of the microphone array.
[0046] The following is an introduction with reference to the accompanying drawings.
[0047] Figure 1 is a schematic diagram of the components of a calibration system provided in an embodiment of the present application. As shown in Figure 1 , the calibration system may include a microphone array 100 and a calibration device 200. The microphone array 100 and the calibration device 200 may be connected via a wired network or a wireless network.
[0048] The microphone array 100 may include multiple microphones arranged regularly or irregularly. For example, the multiple microphones may be arranged in a straight line to form a linear array; or the multiple microphones may be arranged in a plane to form a planar array with i rows and j columns, where i and j are both positive integers. The embodiments of the present application do not limit the arrangement of the multiple microphones in the microphone array.
[0049] Optionally, the microphones in the microphone array 100 may be digital microphones or analog microphones, etc. This embodiment of the present application does not impose any limitation on this.
[0050] The microphone array 100 can collect the original response value matrix of the sound source.
[0051] For example, the microphone array 100 may collect the sound signal of the sound source as an analog signal, then convert the analog signal into a digital signal through an analog to digital converter (ADC), and then process the digital signal to obtain an original response value matrix.
[0052] In some possible embodiments, the microphone array 100 may further send the collected original response value matrix to the calibration device 200 .
[0053] As described above, the microphone array 100 and the calibration apparatus 200 may be connected via a wired network or a wireless network that may include one or more media or devices capable of transmitting the original response value matrix from the microphone array 100 to the calibration apparatus 200 .
[0054] In some embodiments, the wired network or wireless network may include one or more communication media that enable the microphone array 100 to send the raw response value matrix directly to the calibration device 200. In this embodiment, the microphone array 100 may modulate the raw response value matrix according to a communication standard (e.g., a wireless communication protocol) and send the modulated raw response value matrix to the calibration device 200. The one or more communication media may include wireless and / or wired communication media, such as a radio frequency (RF) spectrum or one or more physical transmission lines.
[0055] Alternatively, the one or more communication media may form part of a packet-based network, such as a local area network, a wide area network, or a global network (such as the Internet).
[0056] Optionally, the one or more communication media may also include a router, a switch, a base station, or other devices that facilitate communication from the microphone array 100 to the calibration apparatus 200 .
[0057] The correction device 200 can be an electronic device with computing and processing functions, such as a computer, a server, an acoustic imager, or a component in an acoustic imager. Among them, the correction device 200 can be a single server, or it can be a server cluster composed of multiple servers. In some embodiments, the server cluster can also be a distributed cluster. Optionally, the server can also be implemented on a cloud platform. For example, the cloud platform can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an inter-cloud, and a multi-cloud, etc., or any combination thereof. The embodiments of the present application do not limit this.
[0058] The correction device 200 can correct the original response value matrix collected by the microphone array 100. The specific correction process can be referred to the following method embodiment, which will not be repeated here.
[0059] It should be noted that FIG1 illustrates the microphone array 100 and the calibration device 200 as separate devices. Alternatively, the microphone array 100 and the calibration device 200 may be combined into one device. That is, the microphone array 100 or its corresponding functions, and the calibration device 200 or its corresponding functions may be integrated into a single device. For example, the device may be an acoustic imager with a calibration function. This embodiment of the present application is not limited to this.
[0060] For example, FIG2 is a schematic diagram of an audio data link provided by an embodiment of the present application. As shown in FIG2, taking the microphone array 100 and the correction device 200 integrated in an acoustic imager as an example, in the present application, the processing of audio data may include: at 210, collecting audio data by the microphone array; then at 220, converting the audio data, for example, converting the audio data on an audio data conversion unit, which may be an ADC or other unit with similar functions; then at 230, processing the converted audio data, for example, processing the converted audio data on a data processing unit, which may be a field programmable gate array (FPGA) or other unit with similar functions, to obtain an original response value matrix; finally, at 240, correcting the original response value matrix, for example, correcting the original response value matrix on an audio data correction unit, which may be a system on chip or other unit with similar functions.
[0061] The execution subject of the correction method for a microphone array provided in an embodiment of the present application is the above-mentioned correction device 200. As mentioned above, the correction device 200 can be an electronic device (a computer, a server, an acoustic imager, or a component in an acoustic imager). The correction device 200 can also be an application (application, APP) with a correction function installed in the aforementioned electronic device; or, the correction device 200 can also be a processor in the aforementioned electronic device (such as a central processing unit (CPU)); or, the correction device 200 can also be a functional module with a correction function in the aforementioned electronic device; or, the correction device 200 can also be a control module in the aforementioned electronic device. The embodiment of the present application does not limit this.
[0062] For simplicity of description, the following description will be made using electronic devices as an example.
[0063] Figure 3 is a schematic diagram of the composition of an electronic device provided in an embodiment of the present application. As shown in Figure 3, the electronic device may include a processor 310, a memory 320, a communication circuit 330, a communication interface 340, and an input / output interface 350. The processor 310, the memory 320, the communication interface 340, and the input / output interface 350 may be connected to each other via the communication circuit 330.
[0064] The processor 310 is used to execute the instructions stored in the memory 320 to implement the correction method for the microphone array provided in the following embodiments of the present application. The processor 310 can be a CPU, a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller (MCU) / single-chip microcomputer / single-chip microcomputer, a programmable logic device (PLD) or any combination thereof. The processor 310 can also be any other device with a processing function, such as a circuit, a device or a software module, which is not limited in the embodiments of the present application. In one example, the processor 310 can include one or more CPUs, such as CPU 311 and CPU 312 in Figure 3. As an optional implementation, the electronic device can include multiple processors. For example, in addition to the processor 310, it can also include a processor 360 (an example shown in dotted lines in Figure 3).
[0065] The memory 320 is used to store instructions executable by the processor 310. For example, the instruction may be a computer program. Optionally, the memory 320 may be a read-only memory (ROM) or other types of static storage devices that can store static information and / or instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and / or instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, etc., and the embodiments of the present application are not limited thereto.
[0066] It should be noted that the memory 320 may exist independently of the processor 310 or may be integrated with the processor 310. The memory 320 may be located inside the electronic device or outside the electronic device, which is not limited in the embodiment of the present application.
[0067] The communication line 330 is used to transmit information between various components included in the electronic device.
[0068] The communication interface 340 is used to communicate with other devices (e.g., the microphone array 100 described above) or other communication networks. Such other communication networks may be Ethernet, radio access networks (RAN), wireless local area networks (WLAN), etc. The communication interface 340 may be a module, circuit, transceiver, or any other device capable of communication.
[0069] The input / output interface 350 is used to implement human-computer interaction between a user and an electronic device. For example, the input / output interface 350 implements action interaction or information interaction between a user and an electronic device.
[0070] For example, the input / output interface 350 may be a mouse, keyboard, display screen, or touch screen screen, etc. Action interaction or information interaction between a user and the electronic device may be achieved through the mouse, keyboard, display screen, or touch screen screen, etc.
[0071] It should be noted that the structure shown in Figure 3 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in Figure 3, or the electronic device may include a combination of certain components, or the components in the electronic device may be arranged in different ways.
[0072] The following introduces a calibration method for a microphone array provided in an embodiment of the present application.
[0073] Figure 4 is a flow chart of a method for calibrating a microphone array according to an embodiment of the present invention. As shown in Figure 4 , the method includes steps S101 to S103.
[0074] S101: The electronic device obtains an original response value matrix obtained by the microphone array collecting sound sources within a working frequency band.
[0075] Among them, the microphone array in S101 is also the microphone array 100 in Figure 1 above. The original response value matrix may include multiple elements, each element being the decibel value output by the microphone corresponding to the element in the microphone array. When the microphone array is working, it is at a certain working frequency point within the working frequency band, and the original response value matrix may be obtained by the microphone array collecting the sound source at the working frequency point. The microphone array can work in a certain working frequency band, and the working frequency band may be, for example, 1 kilohertz (kHz) to 10kHz or other frequency bands. The embodiment of the present application does not limit the specific value of the working frequency band. The working frequency point is within the working frequency band, and the working frequency point may be a frequency point input or selected by the administrator. When the microphone array is working, the working frequency point is already determined.
[0076] For example, taking a microphone array including 64 microphones as an example, assuming that the 64 microphones are arranged in a straight line (or the microphone array is a linear array), the original response value matrix can be expressed as:
[0077] A=[a1, a2, a3,..., a64].
[0078] Wherein, a1 represents the original response value (dB value) of the first microphone in the linear array, a2 represents the original response value of the second microphone in the linear array, a3 represents the original response value of the third microphone in the linear array, ..., a64 represents the original response value of the sixty-fourth microphone in the linear array.
[0079] For another example, taking the microphone array including 64 microphones as an example, assuming that the 64 microphones are arranged in 8 rows and 8 columns (or the microphone array is a plane array), the original response value matrix can be expressed as:
[0080] A=[a1(i1, j1), a2(i1, j2), a3(i1, j3), ..., a64(i8, j8)].
[0081] Among them, a1 represents the original response value of the microphone in the first row and first column of the array, a2 represents the original response value of the microphone in the first row and second column of the array, a3 represents the original response value of the microphone in the first row and third column of the array, ... a64 represents the original response value of the microphone in the eighth row and eighth column of the array.
[0082] The specific process of S101 can be referred to the description in FIG. 2 , which will not be repeated here.
[0083] S102: The electronic device determines a reference function relationship matrix.
[0084] The reference functional relationship matrix is used to represent the functional relationship between the response value of the standard microphone within the working frequency band and the response value of each microphone in the microphone array.
[0085] The specific process of S102 can be referred to S1021 to S1024 in FIG. 5 , which will not be described again here.
[0086] S103: The electronic device corrects the original response value matrix based on the reference function relationship matrix.
[0087] The specific process of S103 can be referred to S1031 to S1033 in FIG8 below, and will not be repeated here.
[0088] In the correction method for a microphone array provided in an embodiment of the present application, some calibrated parameters can be used to correct the original response value of the microphone array, thereby improving the consistency of the microphone array. Specifically, the electronic device can obtain the original response value matrix of the sound source collected by the microphone array within the working frequency band, and determine a reference function relationship matrix, wherein the reference function relationship matrix is used to represent the functional relationship between the response value of the standard microphone within the working frequency band and the response value of each microphone in the microphone array, and finally correct the original response value matrix based on the reference function relationship matrix. That is, each microphone in the microphone array is calibrated based on the standard microphone, and the elements in the corrected response value matrix are all based on the standard microphone as a reference, thereby improving the consistency of the microphone array.
[0089] The above-mentioned S102 is introduced below.
[0090] In some possible embodiments, the electronic device can obtain the response values of the microphone array and the response values of the standard microphone under the same environment to determine the reference function relationship matrix. In this case, Figure 5 is another flow diagram of the calibration method for the microphone array provided in an embodiment of the present application. As shown in Figure 5, the above-mentioned S102 can specifically include S1021 to S1024.
[0091] S1021. For each frequency point of at least one frequency point in the working frequency band, the electronic device obtains a response value matrix obtained by the microphone array collecting a standard sound source of the frequency point in an anechoic chamber environment as a calibration matrix corresponding to the frequency point.
[0092] For example, taking the above microphone array including 64 microphones as an example, the 64 microphones are arranged in 8 rows and 8 columns (or the microphone array is a planar array). In this case, the calibration matrix of the microphone array at a certain frequency point can be expressed as:
[0093] B=[b1(i1, j1), b2(i1, j2), b3(i1, j3), ..., b64(i8, j8)].
[0094] Among them, b1 represents the response value (decibel value) obtained by the microphone in the first row and first column of the microphone array collecting the standard sound source of the frequency point in an anechoic room environment, b2 represents the response value obtained by the microphone in the first row and second column of the microphone array collecting the standard sound source of the frequency point in an anechoic room environment, b3 represents the response value obtained by the microphone in the first row and third column of the microphone array collecting the standard sound source of the frequency point in an anechoic room environment, ..., b64 represents the response value obtained by the microphone in the eighth row and eighth column of the microphone array collecting the standard sound source of the frequency point in an anechoic room environment.
[0095] S1022: The electronic device obtains a response value matrix obtained by the standard microphone collecting the standard sound source of the frequency point in an anechoic room environment, as the standard response value matrix corresponding to the frequency point.
[0096] The number of rows and columns of the standard response value matrix is the same as the number of rows and columns of the calibration matrix corresponding to the frequency point.
[0097] For example, the electronic device can copy a response value obtained by sampling a standard sound source at a specific frequency using a standard microphone in an anechoic chamber environment to obtain a standard response value matrix with the same number of rows and columns as the calibration matrix. The elements in the standard response value matrix are identical and are all response values obtained by sampling a standard sound source at a specific frequency using a standard microphone in an anechoic chamber environment.
[0098] For example, taking the above microphone array including 64 microphones as an example, the 64 microphones are arranged in 8 rows and 8 columns (or the microphone array is a plane array), in this case, the standard response value matrix can be expressed as
[0099] M = [m1 (i1, j1), m2 (i1, j2), m3 (i1, j3), ..., m64 (i8, j8)].
[0100] Among them, m1 to m64 are the response values obtained by collecting the standard sound source of the frequency point by the standard microphone in the anechoic room environment.
[0101] For example, Figure 6 is a schematic diagram of a calibration environment provided by an embodiment of the present application. As shown in Figure 6, the calibration environment may include an anechoic chamber, a standard microphone, a microphone array, a transducer / sound source, a power amplifier, and a host computer. The host computer can control the sound signals of different frequencies from the transducer or sound source. These sound signals are amplified by the power amplifier and then collected by the standard microphone and microphone array to generate a response value matrix.
[0102] S1023: The electronic device determines a reference matrix corresponding to the frequency point according to the relationship between the elements at the same position in the calibration matrix and the standard response value matrix.
[0103] Optionally, the electronic device may use the quotient of an element in the standard response value matrix and an element at the same position in the calibration matrix as the element at the same position in the reference matrix to obtain the reference matrix.
[0104] For example, the electronic device may use the quotient of the element in the i-th row and j-th column of the standard response value matrix and the element in the i-th row and j-th column of the calibration matrix as the element in the i-th row and j-th column of the reference matrix to obtain the reference matrix.
[0105] For example, taking the above microphone array including 64 microphones as an example, the 64 microphones are arranged in 8 rows and 8 columns (or the microphone array is a plane array). In this case, the reference matrix can be expressed as:
[0106] G=[g1(i1, j1), g2(i1, j2), g3(i1, j3), ..., g64(i8, j8)].
[0107] Among them, g1 represents the quotient of the element in the first row and first column of the standard response value matrix and the element in the first row and first column of the calibration matrix, g2 represents the quotient of the element in the first row and second column of the standard response value matrix and the element in the first row and second column of the calibration matrix, g3 represents the quotient of the element in the first row and third column of the standard response value matrix and the element in the first row and third column of the calibration matrix, ..., g64 represents the quotient of the element in the eighth row and eighth column of the standard response value matrix and the element in the eighth row and eighth column of the calibration matrix.
[0108] S1024: The electronic device obtains a reference function relationship matrix according to a reference matrix corresponding to at least one frequency point.
[0109] In one possible implementation, when the at least one frequency point includes only one frequency point, the electronic device may directly determine the reference matrix corresponding to the frequency point as the reference function relationship matrix. In another possible implementation, when the at least one frequency point includes multiple frequency points, the electronic device may determine the reference function relationship matrix by combining multiple reference matrices corresponding to the multiple frequency points.
[0110] In one possible implementation, when at least one frequency point includes multiple frequency points, determining a reference function relationship matrix in combination with multiple reference matrices corresponding to the multiple frequency points may include: taking the average value of elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix.
[0111] Optionally, the electronic device may calculate the elements in the i-th row and j-th column of at least two reference matrices among the multiple reference matrices and use the average of these elements as the element in the i-th row and j-th column of the reference function relationship matrix to obtain the reference function relationship matrix. Optionally, the electronic device may calculate the elements in the i-th row and j-th column of each reference matrix among the multiple reference matrices and use the average of these elements as the element in the i-th row and j-th column of the reference function relationship matrix to obtain the reference function relationship matrix.
[0112] In one possible implementation, when at least one frequency point includes multiple frequency points, determining a reference function relationship matrix in combination with multiple reference matrices corresponding to the multiple frequency points may include: taking the result value of weighted summation of elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix.
[0113] Optionally, the electronic device may also perform a weighted summation on the elements in the i-th row and j-th column of at least two reference matrices among the multiple reference matrices, and use the result of the weighted summation as the element in the i-th row and j-th column of the reference function relationship matrix to obtain the reference function relationship matrix. Optionally, the electronic device may also perform a weighted summation on the elements in the i-th row and j-th column of each reference matrix among the multiple reference matrices, and use the result of the weighted summation as the element in the i-th row and j-th column of the reference function relationship matrix to obtain the reference function relationship matrix.
[0114] Fig. 7 is another flow chart of a calibration method for a microphone array according to an embodiment of the present application. As shown in Fig. 7 , taking two frequency points as an example, the above S1024 may specifically include S10241 to S10244.
[0115] S10241. The electronic device obtains a first calibration matrix of the microphone array at a first frequency point; and the electronic device obtains a second calibration matrix of the microphone array at a second frequency point.
[0116] The first frequency point and the second frequency point are frequency points in the working frequency band, and the first calibration matrix and the second calibration matrix are response value matrices obtained by the microphone array collecting standard sound sources of the first frequency point and the second frequency point in an anechoic room environment.
[0117] S10241 can refer to the above S1021 and will not be repeated here.
[0118] S10242. The electronic device obtains a first standard response value matrix obtained by the standard microphone collecting a standard sound source of a first frequency point in an anechoic room environment; the electronic device obtains a second standard response value matrix obtained by the standard microphone collecting a standard sound source of a second frequency point in the anechoic room environment.
[0119] The number of rows and columns of the first standard response value matrix are the same as the number of rows and columns of the first calibration matrix; the number of rows and columns of the second standard response value matrix are the same as the number of rows and columns of the second calibration matrix.
[0120] S10242 can refer to the above S1022 and will not be repeated here.
[0121] S10243. The electronic device determines a first reference matrix based on the relationship between the elements at the same position in the first calibration matrix and the first standard response value matrix; and determines a second reference matrix based on the relationship between the elements at the same position in the second calibration matrix and the second standard response value matrix.
[0122] S10243 can refer to the above S1023 and will not be repeated here.
[0123] S10244. The electronic device obtains a reference function relationship matrix according to the first reference matrix and the second reference matrix.
[0124] Optionally, the electronic device can calculate the average value of the elements in the i-th row and j-th column of the first reference matrix and the elements in the i-th row and j-th column of the second reference matrix, and use the average value as the element in the i-th row and j-th column of the reference function relationship matrix to obtain the reference function relationship matrix.
[0125] Optionally, the electronic device may also perform weighted summation on the elements in the i-th row and j-th column of the first reference matrix and the elements in the i-th row and j-th column of the second reference matrix, and use the result of the weighted summation as the elements in the i-th row and j-th column of the reference function relationship matrix to obtain the reference function relationship matrix.
[0126] The weights of the weighted sum can be preset in the electronic device by the administrator. The embodiment of the present application does not limit the specific values of the weights.
[0127] It should be noted that FIG7 above uses a first reference matrix corresponding to a first frequency point and a second reference matrix corresponding to a second frequency point to calculate a reference function relationship matrix as an example. Optionally, the electronic device may also obtain reference matrices at more frequencies to calculate the reference function relationship matrix. The specific calculation process can be referred to as described in FIG7 above and will not be repeated here.
[0128] The above-mentioned S103 is introduced below.
[0129] In some possible embodiments, S103 may include: when the difference between a frequency point among the at least one frequency point and the working frequency point is less than or equal to a preset threshold, correcting the original response value matrix based on a reference function relationship matrix corresponding to the frequency point; the working frequency point is within the working frequency band.
[0130] In some possible embodiments, the electronic device can directly determine the reference matrix corresponding to a certain frequency point as the reference function relationship matrix. In this case, the electronic device can compare the frequency point with the working frequency point. If the working frequency point is the same as the frequency point or the difference between the working frequency point and the frequency point is less than or equal to a preset threshold (recorded as the first preset threshold), the electronic device can directly use the product of the element in the i-th row and j-th column of the original response value matrix and the element in the i-th row and j-th column of the reference function relationship matrix as the element in the i-th row and j-th column of the corrected target response value matrix to obtain the corrected target response value matrix.
[0131] For example, taking the target response value matrix represented as S as follows, assuming that the original response value matrix is A above, and the reference function relationship matrix is directly determined by the reference matrix, represented as G above, then the elements in the target response value matrix can be calculated in sequence as follows:
[0132] S=[s1(i1,j1),s2(i1,j2),s3(i1,j3),…,s64(i8,j8)],
[0133] A=[a1(i1,j1),a2(i1,j2),a3(i1,j3),…,a64(i8,j8)],
[0134] G=[g1(i1,j1),g2(i1,j2),g3(i1,j3),…,g64(i8,j8)],
[0135] s1=a1×g1, s2=a2×g2, s3=a3×g3,…, s64=a64×g64.
[0136] In some possible embodiments, S103 may include: determining a gain coefficient matrix based on the reference function relationship matrix; and correcting the original response value matrix based on the reference function relationship matrix and the gain coefficient matrix.
[0137] In some possible embodiments, when the at least one frequency point includes only one frequency point and the difference between the frequency point and the operating frequency point is less than or equal to a preset threshold, the reference function relationship matrix is determined as the gain coefficient matrix; and the operating frequency point is within the operating frequency band.
[0138] For example, when the at least one frequency point includes only one frequency point, the electronic device may directly determine the reference matrix corresponding to the frequency point as the reference function relationship matrix. In this case, the electronic device may compare the frequency point with the operating frequency point. If the operating frequency point is the same as the frequency point or the difference between the operating frequency point and the frequency point is less than or equal to a preset threshold (denoted as a second preset threshold), the electronic device may determine the reference function relationship matrix as the gain coefficient matrix. The second preset threshold may be the same as or different from the first preset threshold.
[0139] In some possible embodiments, when the at least one frequency point includes multiple frequency points, the gain coefficient matrix is determined according to a first calibration matrix corresponding to a first frequency point among the multiple frequency points, a second calibration matrix corresponding to a second frequency point among the multiple frequency points, and the reference function relationship matrix;
[0140] For example, as described above, the electronic device can determine a first reference matrix for the first frequency point and a second reference matrix for the second frequency point. The electronic device can combine the first reference matrix and the second reference matrix to obtain a reference function relationship matrix. In this case, the electronic device can determine a gain coefficient matrix based on the reference function relationship matrix, and then correct the original response value matrix based on the gain coefficient matrix. Figure 8 is another flow diagram of a correction method for a microphone array provided in an embodiment of the present application. As shown in Figure 8, the above-mentioned S103 can specifically include S1031 to S1032.
[0141] S1031: The electronic device determines a gain coefficient matrix according to a first calibration matrix corresponding to the first frequency point, a second calibration matrix corresponding to the second frequency point, and a reference function relationship matrix.
[0142] Optionally, the electronic device may determine the gain coefficient matrix specifically according to the following formula (1):
[0143] K=(G*B f2 -G*B f1 ) / (f2-f1) formula (1).
[0144] In formula (1), K represents the gain coefficient matrix. G represents the reference function relationship matrix. f1 represents the first frequency point. f2 represents the second frequency point. B f1 Denotes the first calibration matrix. B f2 represents the second calibration matrix.
[0145] S1032: The electronic device determines a target response value matrix obtained by correcting the original response value matrix according to the operating frequency point, the reference function relationship matrix, the first calibration matrix, and the gain coefficient matrix.
[0146] Optionally, the electronic device may determine the target response value matrix specifically according to the following formula (2):
[0147] S f0 =G*B f1 +K*(f0-f1) formula (2).
[0148] Among them, S f0 represents the target response value matrix. f0 represents the operating frequency.
[0149] In some possible embodiments, when the at least one frequency point includes multiple frequency points, linear or nonlinear fitting is performed based on the calibration matrices corresponding to the multiple frequency points and the reference function relationship matrix to determine the coefficients of the fitted power function related to the frequency points as the gain coefficient matrix.
[0150] In this embodiment, the electronic device can determine a calibration matrix for each frequency point in at least one frequency point, and determine a reference function relationship matrix. The electronic device performs linear or nonlinear fitting on all calibration matrices and reference function relationship matrices to obtain a fitted power function related to all frequency points. The electronic device uses the coefficients of the power function as a gain coefficient matrix.
[0151] Based on the understanding of the above embodiments, Figure 9 is another flowchart of a calibration method for a microphone array provided in an embodiment of the present application. As shown in Figure 9, the method may include S201 to S205.
[0152] S201. The electronic device obtains the operating frequency of the acoustic imager.
[0153] S201 can refer to the above-mentioned S101 and will not be repeated here.
[0154] S202: The electronic device calls a calibration matrix at two frequency points within the working frequency band.
[0155] S203: The electronic device obtains a reference function relationship matrix of each frame of audio data of the acoustic imager.
[0156] S202 and S203 can refer to the above-mentioned S10241 to S10244, and will not be repeated here.
[0157] S204: The electronic device corrects each frame of audio data based on the reference function relationship matrix.
[0158] S205: The electronic device obtains a calibrated response value of each microphone.
[0159] S204 and S205 may refer to the above-mentioned S103 and will not be described in detail here.
[0160] Based on the understanding of the above embodiments, Figure 10 is a schematic diagram of matrix changes provided by an embodiment of the present application. As shown in Figure 10, the matrix change can include four stages: selecting a calibration matrix, calculating a reference function relationship matrix based on the standard microphone feedback data, obtaining a gain coefficient matrix, and obtaining a target response value matrix. The calibration matrix, reference function relationship matrix, gain coefficient matrix, and target response value matrix can be described in the above embodiments and will not be repeated here.
[0161] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of method. In order to achieve the above functions, the solution provided by the embodiment of the present application includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0162] In an exemplary embodiment, the present application also provides a calibration device for a microphone array. FIG11 is a schematic diagram of the components of the calibration device for a microphone array provided in an embodiment of the present application. As shown in FIG11 , the calibration device includes: an acquisition module 1101 and a processing module 1102.
[0163] The acquisition module 1101 is used to obtain an original response value matrix obtained by the microphone array collecting sound sources within a working frequency band.
[0164] The processing module 1102 is used to determine a reference function relationship matrix; wherein the reference function relationship matrix is used to represent the functional relationship between the response value of the standard microphone in the working frequency band and the response value of each microphone in the microphone array; based on the reference function relationship matrix, the original response value matrix is corrected.
[0165] In some possible embodiments, the processing module 1102 is specifically used to obtain, for each frequency point of at least one frequency point in the working frequency band, a response value matrix obtained by the microphone array collecting the standard sound source of the frequency point in an anechoic chamber environment, as a calibration matrix corresponding to the frequency point; obtain a response value matrix obtained by the standard microphone collecting the standard sound source of the frequency point in the anechoic chamber environment, as a standard response value matrix corresponding to the frequency point, wherein the number of rows and columns of the standard response value matrix is the same as the number of rows and columns of the calibration matrix; determine the reference matrix corresponding to the frequency point based on the relationship between the elements at the same position in the calibration matrix and the standard response value matrix; and obtain the reference function relationship matrix based on the reference matrix corresponding to each of the at least one frequency point.
[0166] In some other possible embodiments, the processing module 1102 is specifically configured to use the quotient of the elements at the same position in the standard response value matrix and the calibration matrix as the elements at the same position in the reference matrix.
[0167] In some other possible embodiments, the processing module 1102 is specifically used to determine the reference matrix corresponding to the frequency point as the reference function relationship matrix when the at least one frequency point includes only one frequency point; or to determine the reference function relationship matrix by combining multiple reference matrices corresponding to the multiple frequency points when the at least one frequency point includes multiple frequency points.
[0168] In some other possible embodiments, the processing module 1102 is specifically used to take the average value of the elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix; or take the result value of the weighted sum of the elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix.
[0169] In some other possible embodiments, the processing module 1102 is specifically used to correct the original response value matrix based on the reference function relationship matrix corresponding to the frequency point when the difference between a frequency point among the at least one frequency point and the working frequency point is less than or equal to a preset threshold; the working frequency point is within the working frequency band.
[0170] In some other possible embodiments, the processing module 1102 is specifically used to determine the gain coefficient matrix based on the reference function relationship matrix through any of the following items: when the at least one frequency point includes only one frequency point and the difference between the frequency point and the working frequency point is less than or equal to a preset threshold, the reference function relationship matrix is determined as the gain coefficient matrix; the working frequency point is within the working frequency band; when the at least one frequency point includes multiple frequency points, the gain coefficient matrix is determined according to a first calibration matrix corresponding to a first frequency point among the multiple frequency points, a second calibration matrix corresponding to a second frequency point among the multiple frequency points, and the reference function relationship matrix; when the at least one frequency point includes multiple frequency points, linear or nonlinear fitting is performed according to the calibration matrices corresponding to each of the multiple frequency points and the reference function relationship matrix to determine the coefficients of the fitted frequency-related power function as the gain coefficient matrix; based on the reference function relationship matrix and the gain coefficient matrix, the original response value matrix is corrected.
[0171] In some further possible embodiments, the processing module 1102 is specifically configured to determine the gain coefficient matrix according to the following formula:
[0172] K=(G*B f2 -G*B f1 ) / (f2-f1).
[0173] Where K represents the gain coefficient matrix; G represents the reference function relationship matrix; f1 represents the first frequency point; f2 represents the second frequency point; B f1represents the first calibration matrix; B f2 represents the second calibration matrix.
[0174] In some further possible embodiments, the processing module 1102 is specifically configured to determine the target response value matrix after correcting the original response value matrix according to the following formula:
[0175] S f0 =G*B f1 +K*(f0-f1).
[0176] Among them, S f0 represents the target response value matrix; f0 represents the operating frequency; G represents the reference function relationship matrix; K represents the gain coefficient matrix; f1 represents the first frequency point; B f1 represents the first calibration matrix.
[0177] It should be noted that the module division shown in FIG11 is schematic and represents only one logical functional division. In actual implementation, other divisions may be employed. For example, two or more functions may be integrated into a single processing module. Such integrated modules may be implemented in either hardware or software functional units.
[0178] In an exemplary embodiment, the present application also provides a readable storage medium including software instructions, which, when executed on an electronic device, enables the electronic device to execute any one of the methods provided in the above embodiments.
[0179] In an exemplary embodiment, the present application also provides a computer program product including computer-executable instructions, which, when executed on an electronic device, enables the electronic device to execute any one of the methods provided in the above embodiments.
[0180] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer-executable instructions. When the computer-executable instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer-executable instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer-executable instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or other media (eg, a solid state disk (SSD)).
[0181] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art can understand and implement other changes to the embodiments of the present application by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit can implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0182] Although the present application has been described in conjunction with specific features and embodiments thereof, various modifications and combinations of these specific features and embodiments thereof may be made without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely illustrative of the present application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Those skilled in the art may make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0183] The above is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A calibration method for a microphone array, characterized in that: The method comprises: Obtaining an original response value matrix obtained by the microphone array collecting sound sources within a working frequency band; Determine a reference function relationship matrix; wherein the reference function relationship matrix is used to represent the functional relationship between the response value of the standard microphone in the working frequency band and the response value of each microphone in the microphone array; Based on the reference function relationship matrix, the original response value matrix is corrected.
2. The method according to claim 1, characterized in that The step of determining a reference function relationship matrix comprises: For each frequency point in at least one frequency point in the working frequency band, Obtaining a response value matrix obtained by the microphone array collecting a standard sound source of the frequency point in an anechoic room environment as a calibration matrix corresponding to the frequency point; Obtaining a response value matrix obtained by the standard microphone collecting the standard sound source of the frequency point in the anechoic room environment as a standard response value matrix corresponding to the frequency point, wherein the number of rows and columns of the standard response value matrix is the same as the number of rows and columns of the calibration matrix; Determining a reference matrix corresponding to the frequency point according to a relationship between elements at the same position in the calibration matrix and the standard response value matrix; The reference function relationship matrix is obtained according to the reference matrix corresponding to each of the at least one frequency points.
3. The method according to claim 2, characterized in that Determining a reference matrix corresponding to the frequency point according to a relationship between elements at the same position in the calibration matrix and the standard response value matrix includes: The quotient of the elements at the same position in the standard response value matrix and the calibration matrix is used as the element at the same position in the reference matrix.
4. The method according to claim 2, characterized in that: Obtaining the reference function relationship matrix according to the reference matrix corresponding to each of the at least one frequency point includes any one of the following: In a case where the at least one frequency point includes only one frequency point, determining a reference matrix corresponding to the frequency point as the reference function relationship matrix; In the case that the at least one frequency point includes a plurality of frequency points, the reference function relationship matrix is determined by combining a plurality of reference matrices corresponding to the plurality of frequency points.
5. The method according to claim 4, characterized in that Determining the reference function relationship matrix in combination with a plurality of reference matrices corresponding to the plurality of frequency points includes any one of the following: Taking the average value of the elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix; The result value of weighted summation of the elements at the same position in the multiple reference matrices is used as the element at the same position in the reference function relationship matrix.
6. The method according to claim 4, characterized in that The correcting the original response value matrix based on the reference function relationship matrix includes: When the difference between a frequency point in the at least one frequency point and the working frequency point is less than or equal to a preset threshold, the original response value matrix is corrected based on a reference function relationship matrix corresponding to the frequency point; the working frequency point within the operating frequency band.
7. The method according to claim 4, characterized in that The correcting the original response value matrix based on the reference function relationship matrix includes: Determine the gain coefficient matrix based on the reference function relationship matrix by any of the following: In the case where the at least one frequency point includes only one frequency point and the difference between the frequency point and the working frequency point is less than or equal to a preset threshold, the reference function relationship matrix is determined as the gain coefficient matrix; the working frequency point is within the working frequency band In a case where the at least one frequency point includes a plurality of frequency points, determining the gain coefficient matrix according to a first calibration matrix corresponding to a first frequency point among the plurality of frequency points, a second calibration matrix corresponding to a second frequency point among the plurality of frequency points, and the reference function relationship matrix; In the case where the at least one frequency point includes a plurality of frequency points, linear or nonlinear fitting is performed according to calibration matrices corresponding to the plurality of frequency points and the reference function relationship matrix, so as to determine coefficients of the fitted power function related to the frequency points as the gain coefficient matrix; The original response value matrix is corrected based on the reference function relationship matrix and the gain coefficient matrix.
8. The method according to claim 7, characterized in that In the case where the at least one frequency point includes multiple frequency points, determining the gain coefficient matrix according to a first calibration matrix corresponding to a first frequency point among the multiple frequency points, a second calibration matrix corresponding to a second frequency point among the multiple frequency points, and the reference function relationship matrix, comprises: The gain coefficient matrix is determined according to the following formula: K=(G*B f2 -G*B f1 ) / (f2-f1); Wherein, K represents the gain coefficient matrix; G represents the reference function relationship matrix; f1 represents the first frequency point; f2 represents the second frequency point; B f1 represents the first calibration matrix; B f2 Denotes the second calibration matrix.
9. The method according to claim 7 or 8, characterized in that: Based on the reference function relationship matrix and the gain coefficient matrix, the original response value matrix is corrected, including: The target response value matrix after correcting the original response value matrix is determined according to the following formula: S f0 =G*B f1 +K*(f0-f1); Among them, S f0 represents the target response value matrix; f0 represents the operating frequency; G represents the reference function relationship matrix; K represents the gain coefficient matrix; f1 represents the first frequency point; B f1 Denotes the first calibration matrix.
10. A calibration device for a microphone array, characterized in that: The device comprises: an acquisition module and a processing module; The acquisition module is used to obtain the original response value matrix obtained by the microphone array collecting the sound source within the working frequency band; The processing module is used to determine a reference function relationship matrix; wherein the reference function relationship matrix is used to represent the functional relationship between the response value of the standard microphone in the working frequency band and the response value of each microphone in the microphone array; based on the reference function relationship matrix, the original response value matrix is corrected.
11. The device according to claim 10, characterized in that The processing module is specifically configured to obtain, for each frequency point of at least one frequency point in the working frequency band, a response value matrix obtained by the microphone array collecting a standard sound source of the frequency point in an anechoic room environment, as a calibration matrix corresponding to the frequency point; A response value matrix obtained by collecting the standard sound source of the frequency point by the standard microphone in the anechoic room environment is obtained as the standard response value matrix corresponding to the frequency point, wherein the number of rows and columns of the standard response value matrix are the same as the number of rows and columns of the calibration matrix; a reference matrix corresponding to the frequency point is determined according to the relationship between the elements at the same position in the calibration matrix and the standard response value matrix; and the reference function relationship matrix is obtained according to the reference matrix corresponding to each of the at least one frequency point.
12. The device according to claim 11, characterized in that The processing module is specifically used to use the quotient of the elements at the same position in the standard response value matrix and the calibration matrix as the element at the same position in the reference matrix.
13. The device according to claim 11, characterized in that The processing module is specifically used to determine the reference matrix corresponding to the frequency point as the reference function relationship matrix when the at least one frequency point includes only one frequency point; or to determine the reference function relationship matrix by combining multiple reference matrices corresponding to the multiple frequency points when the at least one frequency point includes multiple frequency points.
14. The device according to claim 13, characterized in that The processing module is specifically used to take the average value of the elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix; or take the result value of the weighted sum of the elements at the same position in the multiple reference matrices as the element at the same position in the reference function relationship matrix.
15. The device according to claim 13, characterized in that The processing module is specifically used to correct the original response value matrix based on a reference function relationship matrix corresponding to a frequency point among the at least one frequency point and the working frequency point when the difference between the frequency point and the working frequency point is less than or equal to a preset threshold; the working frequency point is within the working frequency band.
16. The device according to claim 13, characterized in that The processing module is specifically used to determine the gain coefficient matrix based on the reference function relationship matrix by any of the following: when the at least one frequency point includes only one frequency point and the difference between the frequency point and the working frequency point is less than or equal to a preset threshold, the reference function relationship matrix is determined as the gain coefficient matrix; the working frequency point is within the working frequency band; In the case where the at least one frequency point includes multiple frequency points, the gain coefficient matrix is determined according to a first calibration matrix corresponding to a first frequency point among the multiple frequency points, a second calibration matrix corresponding to a second frequency point among the multiple frequency points, and the reference function relationship matrix; in the case where the at least one frequency point includes multiple frequency points, Performing linear or nonlinear fitting according to the calibration matrices corresponding to the multiple frequency points and the reference function relationship matrix to determine the coefficients of the fitted power function related to the frequency points as the gain coefficient matrix; The processing module is specifically used to correct the original response value matrix based on the reference function relationship matrix and the gain coefficient matrix.
17. The device according to claim 16, characterized in that The processing module is specifically used to determine the gain coefficient matrix according to the following formula: K=(G*B f2 -G*B f1 ) / (f2-f1); Wherein, K represents the gain coefficient matrix; G represents the reference function relationship matrix; f1 represents the first frequency point; f2 represents the second frequency point; B f1 represents the first calibration matrix; B f2 Denotes the second calibration matrix.
18. The device according to claim 16 or 17, characterized in that The processing module is specifically used to determine the target response value matrix after correcting the original response value matrix according to the following formula: S f0 =G*B f1 +K*(f0-f1); Among them, S f0 represents the target response value matrix; f0 represents the operating frequency; G represents the reference function relationship matrix; K represents the gain coefficient matrix; f1 represents the first frequency point; B f1 Denotes the first calibration matrix.
19. An electronic device, characterized in that: The electronic device comprises: a memory and a processor; The memory stores instructions executable by the processor; When the processor is configured to execute the instructions, the electronic device implements the method according to any one of claims 1 to 9.
20. A readable storage medium, characterized in that: The storage medium includes: software instructions; When the software instructions are executed in an electronic device, the electronic device is enabled to implement the method as claimed in any one of claims 1 to 9.
Citation Information
Patent Citations
Audio signal correction method, device and equipment
CN107180642A
Noise reduction microphone correction method for wireless earphone, wireless earphone, and charging box
CN109246517A
Frequency response test method and device for microphone array
CN111065036A
Microphone and microphone calibration method and system
CN113068111A
Frequency response calibration method and system of microphone array
CN115776626A
Cited By
Terminal equipment and microphone array phase congruency testing method
CN120676304A