CN114449434A - Microphone calibration method and electronic equipment - Google Patents

Microphone calibration method and electronic equipment Download PDF

Info

Publication number
CN114449434A
CN114449434A CN202210361341.6A CN202210361341A CN114449434A CN 114449434 A CN114449434 A CN 114449434A CN 202210361341 A CN202210361341 A CN 202210361341A CN 114449434 A CN114449434 A CN 114449434A
Authority
CN
China
Prior art keywords
microphone
parameter information
information
electronic device
target
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.)
Granted
Application number
CN202210361341.6A
Other languages
Chinese (zh)
Other versions
CN114449434B (en
Inventor
陈福顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210361341.6A priority Critical patent/CN114449434B/en
Publication of CN114449434A publication Critical patent/CN114449434A/en
Application granted granted Critical
Publication of CN114449434B publication Critical patent/CN114449434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/004Monitoring arrangements; Testing arrangements for microphones
    • H04R29/005Microphone arrays

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses a microphone calibration method and electronic equipment, and relates to the technical field of audio processing, wherein the method comprises the following steps: the electronic device may obtain performance parameter information for each of the plurality of microphones. Then, the electronic equipment determines a uniform target parameter value based on the performance parameter information of the plurality of microphones. The electronic device may determine calibration parameter information for each microphone based on the target parameter value and the performance parameter information for each microphone. The electronic device may process the input signal for each microphone based on the calibration parameter information for each microphone.

Description

Microphone calibration method and electronic equipment
Technical Field
The present disclosure relates to the field of audio processing technologies, and in particular, to a microphone calibration method and an electronic device.
Background
With the development of terminal technology, users have higher demands on audio experience on electronic devices. Most electronic devices with a loudspeaker function are equipped with one or more microphones. A microphone on the one or more electronic devices may receive sounds surrounding the electronic device (e.g., speech uttered by the user, ambient noise, etc.) to meet the user's needs for recording, reducing noise on the call, operating the electronic device based on voice instructions, etc.
However, when a plurality of microphones are disposed inside an electronic device, differences between physical structures (e.g., sound holes, sealing rings, etc. used for collecting sound by the microphones) related to the microphones on the electronic device may cause large differences in performance parameter (e.g., sensitivity, frequency response, phase, etc.) information corresponding to the microphones, which may affect subsequent speech processing, reduce accuracy and efficiency of the speech processing, and bring a poor user experience to the user.
Disclosure of Invention
The application provides a microphone calibration method and electronic equipment, which can be used for calibrating performance parameters of each microphone on the electronic equipment, so that the performance parameters corresponding to different microphones can reach the same target parameter value, and each microphone can convert a target electric signal based on a sound signal, thereby improving the accuracy and efficiency of subsequent voice processing.
In a first aspect, the present application provides a microphone calibration method applied to an electronic device including a plurality of microphones, the plurality of microphones including a first microphone and a second microphone, including: the electronic equipment collects sound signals of a first sound source through the first microphone and the second microphone; the electronic equipment converts the sound signal of the first sound source into a first electric signal through the first microphone and converts the sound signal of the first sound source into a second electric signal through the second microphone; the electronic equipment determines first performance parameter information of the first microphone based on the first electric signal; the electronic equipment determines second performance parameter information of the second microphone based on the second electric signal; wherein the first performance parameter information comprises one or more of sensitivity information, frequency response information, phase response information, and the like of the first microphone, and the second performance parameter information comprises one or more of sensitivity information, frequency response information, phase response information, and the like of the second microphone; the electronic equipment determines a target parameter value based on the first performance parameter information and the second performance parameter information; wherein the target parameter value comprises one or more of a target value of sensitivity, a target frequency response curve, a target phase response curve and the like; the electronic equipment determines first calibration parameter information of the first microphone based on the target parameter value and the first performance parameter information; the electronic equipment determines second calibration parameter information of the second microphone based on the target parameter value and the second performance parameter information; the electronic equipment calibrates the electric signal output by the first microphone based on the first calibration parameter information; the electronic device calibrates the electrical signal output by the second microphone based on the second calibration parameter information.
In one possible implementation manner, before the electronic device calibrates the electric signal output by the first microphone based on the first calibration parameter information, the method further includes: the electronic device writes the first calibration parameter information to the first microphone and the second calibration parameter information to the second microphone.
In a possible implementation manner, before the electronic device collects the sound signal of the first sound source through the first microphone and the second microphone, the method further includes: the electronic equipment plays the first sound source.
In a possible implementation manner, the determining, by the electronic device, a target parameter value based on the first performance parameter information and the second performance parameter information specifically includes: the first performance parameter information includes sensitivity information of the first microphone, and the second performance parameter information includes sensitivity information of the second microphone; the electronic equipment determines a sensitivity average value or a sensitivity median value based on the sensitivity information of the first microphone and the sensitivity information of the second microphone; the electronic device determines the sensitivity average value or the sensitivity median value as a target value of the sensitivity among the target parameter values.
In a possible implementation manner, the determining, by the electronic device, a target parameter value based on the first performance parameter information and the second performance parameter information specifically includes: the first performance parameter information comprises frequency response information of the first microphone, and the second performance parameter information comprises frequency response information of the second microphone; the electronic equipment determines a frequency response mean curve based on the frequency response information of the first microphone and the frequency response information of the second microphone; and the electronic equipment determines the frequency response mean curve as a target frequency response curve in the target parameter values.
In a possible implementation manner, the determining, by the electronic device, a target parameter value based on the first performance parameter information and the second performance parameter information specifically includes: the first performance parameter information comprises phase response information of the first microphone, and the second performance parameter information comprises phase response information of the second microphone; the electronic equipment determines a phase response mean value curve based on the phase response information of the first microphone and the phase response information of the second microphone; and the electronic equipment determines the phase response mean value curve as a target phase response curve in the target parameter values.
In a second aspect, an embodiment of the present application provides an electronic device, including a processor, a first microphone, and a second microphone, wherein: the first microphone and the second microphone are used for collecting sound signals of a first sound source; the first microphone is also used for converting the sound signal of the first sound source into a first electric signal; the second microphone is also used for converting the sound signal of the first sound source into a second electric signal; the processor is further configured to determine first performance parameter information for the first microphone based on the first electrical signal; determining second performance parameter information for the second microphone based on the second electrical signal; wherein the first performance parameter information comprises one or more of sensitivity information, frequency response information, phase response information, and the like of the first microphone, and the second performance parameter information comprises one or more of sensitivity information, frequency response information, phase response information, and the like of the second microphone; the processor is further configured to determine a target parameter value based on the first performance parameter information and the second performance parameter information; wherein the target parameter value comprises one or more of a target value of sensitivity, a target frequency response curve, a target phase response curve and the like; the processor is further configured to determine first calibration parameter information for the first microphone based on the target parameter value and the first performance parameter information; the processor is further configured to determine second calibration parameter information for the second microphone based on the target parameter value and the second performance parameter information; the first microphone is also used for calibrating an electric signal output by the first microphone based on the first calibration parameter information; the second microphone is further configured to calibrate an electrical signal output by the second microphone based on the second calibration parameter information.
In one possible implementation, the electronic device further includes a speaker; the loudspeaker is used for playing the first sound source.
In one possible implementation, the electronic device further includes a first interface; the first interface is configured to write the first calibration parameter information to the first microphone, and the second calibration parameter information to the second microphone.
In a third aspect, an embodiment of the present application provides a computer storage medium, where a computer program is stored in the computer storage medium, where the computer program includes executable instructions, and when the executable instructions are executed by a processor, the processor is caused to perform the method in any one of the possible implementation manners of the first aspect.
In a fourth aspect, an embodiment of the present application provides a chip or a chip system, including a processing circuit and an interface circuit, where the interface circuit is configured to receive a code instruction and transmit the code instruction to the processing circuit, and the processing circuit is configured to execute the code instruction to perform a method in any one of the possible implementation manners of the first aspect.
Drawings
Fig. 1 is a schematic hardware structure diagram of an electronic device 100 according to an embodiment of the present disclosure;
fig. 2A is a schematic physical structure diagram of a microphone configuration according to an embodiment of the present disclosure;
fig. 2B is a schematic view illustrating a position of a microphone disposed on an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart illustrating a microphone calibration method according to an embodiment of the present disclosure;
fig. 4A is a schematic diagram of a frequency response curve of a microphone according to an embodiment of the present application;
fig. 4B is a schematic diagram of a phase response curve of a microphone according to an embodiment of the present disclosure;
fig. 5A is a schematic diagram of an internal structure of a microphone according to an embodiment of the present disclosure;
fig. 5B is a schematic diagram of an internal structure of another microphone according to an embodiment of the present disclosure;
fig. 6A is a schematic circuit structure diagram of a microphone according to an embodiment of the present disclosure;
fig. 6B is a schematic circuit structure diagram of another microphone according to the embodiment of the present disclosure;
fig. 7 is a schematic diagram of a software structure applied to the electronic device 100 according to an embodiment of the present disclosure.
Detailed Description
The terminology used in the following embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this specification and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the listed features. In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
First, an exemplary electronic device 100 provided in the embodiment of the present application is introduced.
Fig. 1 shows a hardware configuration diagram of an electronic device 100.
The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, a Virtual Reality (VR) device, an Artificial Intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, and/or a smart city device, and the embodiment of the present application does not particularly limit the specific type of the electronic device 100.
As shown in fig. 1, the electronic device 100 may include a processor 101, a memory 102, a wireless communication module 103, a display screen 104, a microphone 105, an audio module 106, a speaker 107, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may also include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 101 may include one or more processor units, for example, the processor 101 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 101 for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 101. If the processor 101 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 101, thereby increasing the efficiency of the system.
In some embodiments, processor 101 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a USB interface, etc.
In this embodiment, the processor 101 may be configured to obtain performance parameter information of each microphone on the electronic device 100, and determine calibration parameter information and/or a target parameter value of each microphone based on the performance parameter information of each microphone.
Memory 102 is coupled to processor 101 for storing various software programs and/or sets of instructions. In particular implementations, memory 102 may include a volatile memory (volatile memory), such as a Random Access Memory (RAM); non-volatile memory (non-volatile memory) such as ROM, flash memory, Hard Disk Drive (HDD), or Solid State Drive (SSD) may also be included; the memory 102 may also comprise a combination of the above-mentioned kinds of memories. The memory 102 may also store some program codes, so that the processor 101 may call the program codes stored in the memory 102 to implement the method implemented in the electronic device 100 according to the embodiment of the present application. The memory 102 may store an operating system, such as an embedded operating system like uCOS, VxWorks, RTLinux, etc.
The wireless communication module 103 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 103 may be one or more devices integrating at least one communication processing module. The wireless communication module 103 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 101. The wireless communication module 103 may also receive a signal to be transmitted from the processor 101, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna to radiate the electromagnetic waves. In some embodiments, the electronic device 100 may further transmit a signal to detect or scan a device near the electronic device 100 through a bluetooth module (not shown in fig. 1) or a WLAN module (not shown in fig. 1) in the wireless communication module 103, and establish a wireless communication connection with the nearby device to transmit data. Wherein, the bluetooth module may provide a solution including one or more of classic bluetooth (BR/EDR) or Bluetooth Low Energy (BLE) bluetooth communication, and the WLAN module may provide a solution including one or more of Wi-Fi direct, Wi-Fi LAN, or Wi-Fi softAP WLAN communication.
The display screen 104 may be used to display images, video, and the like. The display screen 104 may include a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 104, N being a positive integer greater than 1.
The microphone 105, which may also be referred to as a "microphone," is used to convert acoustic signals into electrical signals. When making a call or sending voice information, the user can input a voice signal into the microphone 105 by speaking into the mouth near the microphone 105. The electronic device 100 may be provided with at least one microphone 105. In other embodiments, the electronic device 100 may be provided with two microphones 105, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 105 to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The audio module 106 may be used to convert digital audio information into an analog audio signal output and may also be used to convert an analog audio input into a digital audio signal. The audio module 106 may also be used to encode and decode audio signals. In some embodiments, the audio module 106 may also be disposed in the processor 101, or some functional modules of the audio module 106 may be disposed in the processor 101.
The speaker 107, which may also be referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music through the speaker 107 or to a hands free phone.
The electronic device 100 may further have a sound hole (not shown in fig. 1) for the microphone 105 to receive sound, and the sound hole may be an upper sound hole on the upper side of the package cover of the microphone 105 or a lower sound hole near the bottom of the pad of the microphone 105. The sound holes may be disposed on the top, bottom, or side of the electronic device 100, and the application does not limit the locations of the sound holes.
The electronic device 100 may also include a sensor module (not shown in fig. 1) and/or a touch sensor (not shown in fig. 1). The touch sensor may also be referred to as a "touch device". The touch sensor may be disposed on the display screen 104, and the touch sensor and the display screen 104 form a touch screen, which is also called a "touch screen". The touch sensor may be used to detect a touch operation applied thereto or nearby. Optionally, the sensor module may further include a gyroscope sensor (not shown in fig. 1), an acceleration sensor (not shown in fig. 1), and the like. Where a gyro sensor may be used to determine the motion pose of the electronic device 100, in some embodiments, the electronic device 100 may determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) via the gyro sensor. The acceleration sensor may be used to detect the magnitude of acceleration of the electronic device 100 in various directions (typically, x, y, and z axes), and may also detect the magnitude and direction of gravity when the electronic device 100 is stationary.
The electronic device 100 may also include a mobile communication module (not shown in fig. 1). The mobile communication module may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100.
It should be noted that the electronic device 100 shown in fig. 1 is only used for exemplarily explaining a hardware structure of the electronic device provided in the present application, and does not specifically limit the present application.
Currently, when one or more microphones are disposed inside the electronic device 100, differences between physical structures (e.g., a sound hole, a sealing ring, etc. used for collecting sound by each microphone) on the electronic device 100 related to each microphone may cause the performance parameter (e.g., sensitivity, frequency response, phase, etc.) information corresponding to each microphone to have a large difference, which may affect subsequent speech processing, reduce accuracy and efficiency of speech processing, and thereby cause poor user experience for users.
For example, as shown in fig. 2A, the microphone is a Micro Electro Mechanical System (MEMS) microphone 201, and the electronic device 100 is a mobile phone, which shows a physical structure of the microphone configured in the electronic device. When the microphone 201 is disposed inside the electronic device 100, the physical structure related to the microphone 201 may include a Printed Circuit Board (PCB) 202 soldered below the microphone 201, a sealing ring 203 disposed below the PCB 202, and a sound hole 204 for the microphone 201 to pick up sound. The difference in physical structures, such as the thickness and the inner diameter of the sealing ring 203, the diameter of the sound hole 204 near the external sound receiving port, and the diameter of the sound hole 204 near the microphone 201 end, can affect the frequency, the time delay, the loudness and other factors when the sound signal is transmitted into the microphone 201, so as to affect the information of the corresponding performance parameters (e.g., sensitivity, frequency response, phase and the like) of the microphone 201. Due to the tolerance of the physical structure, the performance parameter information corresponding to each microphone disposed in the electronic device 100 may have differences, which may affect subsequent voice processing, reduce the accuracy and efficiency of the voice processing, and thereby cause poor user experience for users.
Therefore, the application provides a microphone calibration method applied to an electronic device. The method can determine a uniform target parameter value based on the performance parameter information of the plurality of microphones, and then the electronic device can determine calibration parameter information of each of the plurality of microphones based on the target parameter value and write the calibration parameter information into the corresponding microphone. The plurality of microphones may be disposed on the same electronic device, or may be disposed on different electronic devices. The microphone in the embodiment of the present application may be an analog microphone or a digital microphone, which is not limited in the present application. The method can be used for calibrating the performance parameters of each microphone on the electronic equipment, so that the performance parameters corresponding to different microphones reach the same target parameter value, and each microphone can convert a target electric signal based on the sound signal, thereby improving the accuracy and efficiency of subsequent voice processing.
In some embodiments, the microphone calibration method may be applied to the electronic device 100, so that the performance parameters of multiple microphones in the electronic device 100 reach the same target parameter value (i.e. calibrate the performance parameters of multiple microphones configured on a single electronic device). For example, the electronic device 100 includes a microphone 1 and a microphone 2, and the embodiment of the microphone calibration method provided in the present application enables the performance parameter of the microphone 1 and the performance parameter of the microphone 2 to both reach the same target parameter value.
In other embodiments, the microphone calibration method may be applied to a plurality of electronic devices, so that the performance parameters of the microphones at corresponding positions on the plurality of electronic devices reach the same target parameter value. Illustratively, as shown in fig. 2B, the electronic device 100 is provided with a sound hole 205 near the bottom of the device and a sound hole 207 at the side; the electronic device 200 is provided with sound holes 206 near the bottom of the device and sound holes 208 at the sides. The sound hole 205 and the sound hole 206 are provided at corresponding positions of different electronic devices, and the sound hole 207 and the sound hole 208 are provided at corresponding positions of different electronic devices. Therefore, the microphone to which the sound hole 205 is connected and the microphone to which the sound hole 206 is connected are also provided at corresponding positions of different electronic devices; the microphone connected to the sound hole 207 and the microphone connected to the sound hole 208 are also provided at corresponding positions of different electronic apparatuses. The microphone calibration method can enable the performance parameter of the microphone connected with the sound hole 205 and the performance parameter of the microphone connected with the sound hole 206 to reach the same target parameter value 1; the performance parameters of the microphone connected to the sound hole 207 and the performance parameters of the microphone connected to the sound hole 208 are brought to the same target parameter value 2. Wherein, the target parameter value 1 is different from the target parameter value 2. The hardware structure and/or the software structure of the electronic device 200 may refer to the description of the electronic device 100, and will not be described herein.
In other embodiments, the microphone calibration method may enable the performance parameters of all microphones at the locations of the plurality of electronic devices to reach the same target parameter value. Illustratively, for example, the electronic device 100 includes a microphone 3 and a microphone 4, and the electronic device 200 includes a microphone 5 and a microphone 6. The microphone 3 and the microphone 4 are located differently and the microphone 5 and the microphone 6 are located differently. Embodiments of the microphone calibration method provided in the present application may enable a performance parameter of the microphone 3, a performance parameter of the microphone 4, a performance parameter of the microphone 5, and a performance parameter of the microphone 6 to all reach a same target parameter value.
The following embodiments take the calibration of the performance parameters of multiple microphones in the electronic device 100 as an example, and describe the microphone calibration method provided in the present application in detail.
Specifically, the performance parameters of the microphones in the electronic device 100 are calibrated as an example. The electronic device 100 may be internally configured with a plurality of microphones, which may include a microphone 1 and a microphone 2. The loudspeaker 1 can play back a sound source 1. The electronic apparatus 100 can acquire a sound signal of the sound source 1 by a plurality of microphones (for example, a microphone 1 and a microphone 2) arranged inside the apparatus. The electronic apparatus 100 may acquire performance parameter information (for example, performance parameter information 1 corresponding to the microphone 1 and performance parameter information 2 corresponding to the microphone 2) of each microphone based on the acquired sound signal. Then, the electronic apparatus 100 may determine the target parameter value based on the performance parameter information (e.g., performance parameter information 1 and performance parameter information 2) of the plurality of microphones. The electronic device 100 may determine calibration parameter information for each of the plurality of microphones (e.g., calibration parameter information 1 for microphone 1, calibration parameter information 2 for microphone 2) based on the performance parameter information and the target parameter value for each microphone. The electronic device 100 may write the calibration parameter information into the corresponding microphone, for example, write calibration parameter information 1 into the corresponding microphone 1, and write calibration parameter information 2 into the corresponding microphone 2. The electronic device 100 may process the input signal of each microphone based on the calibration parameter information of each microphone, so that each microphone may convert out a target electrical signal based on the sound signal.
The speaker 1 may be a speaker provided in the electronic apparatus 100, or may be an external speaker not provided in the electronic apparatus 100. The sound source 1 may be a sweep frequency sound source whose frequency changes continuously in a designated frequency band range, or may be a preset sound source with frequency changes. The performance parameter corresponding to the microphone in this embodiment may include one or more of sensitivity, frequency response, phase (may also be referred to as phase response), and the like, and the performance parameter information of the microphone may include one or more of a value of the sensitivity (may also be referred to as sensitivity information), frequency response information, phase information (may also be referred to as phase response information), and the like. The target parameter values may include one or more of a target value of sensitivity, a target value of frequency response, a target value of phase, and the like. The plurality of microphones (e.g., microphone 1 and microphone 2) on electronic device 100 may be analog microphones or digital microphones. This is not limited by the present application.
By implementing the microphone calibration method provided by the application, calibration parameter information corresponding to each microphone can be conveniently and efficiently calculated, and the operation steps are simple. Meanwhile, the electronic device 100 may not need to distinguish a use scenario (e.g., a call scenario, a recording scenario, a game scenario, a scenario that operates in response to a voice instruction of a user, etc.), and may directly process the input signals of the microphones based on the calibration parameter information stored in the microphones, so that the performance parameters of the microphones may reach the same target parameter value, and thus, the microphones may convert the target electrical signals based on the sound signals, thereby improving accuracy and efficiency of the voice processing.
Next, a specific flow of a microphone calibration method provided in the embodiment of the present application is described.
Referring to fig. 3, fig. 3 schematically illustrates a specific flowchart of a microphone calibration method according to an embodiment of the present application. As shown in fig. 3, the method may specifically include:
s301, the speaker 1 plays the sound source 1.
The speaker 1 may be an internal speaker disposed in the electronic apparatus 100, or may be an external speaker not disposed in the electronic apparatus 100. When the speaker 1 is an external speaker not provided in the electronic apparatus 100, the speaker 1 may be fixed to face the display screen of the electronic apparatus 100, may be fixed to face the rear cover of the electronic apparatus 100, may be fixed to the left of the display screen of the electronic apparatus 100, or may be fixed to the right of the display screen of the electronic apparatus 100. That is, the fixed orientation of the loudspeaker 1 is not limiting in this application.
The sound source 1 may be a sweep frequency sound source whose frequency changes continuously in a designated frequency range, or may be a preset sound source with frequency changes, and the application does not limit the sound source 1. When the sound source 1 is a sweep frequency sound source, the frequency of the sound source 1 may be continuously changed from high to low in the designated frequency band range, or may be continuously changed from low to high in the designated frequency band range. For example, when the source 1 is a swept source 1, the source 1 may vary linearly from 0.1 kilohertz (KHz) to 4KHz for a duration of 10 seconds. It is to be understood that the present application is not particularly limited as to the range and duration of the frequency variation of the audio source 1.
S302, the electronic device 100 may acquire the sound signal of the sound source 1 through a plurality of microphones disposed inside the device. Among them, the plurality of microphones may include a microphone 1 and a microphone 2.
Specifically, the microphone in the electronic device 100 may be a digital microphone or an analog microphone, which is not limited in this application. In some embodiments, the sound signals of the sound source 1 acquired by the electronic device 100 through the plurality of microphones may be stored in the electronic device 100 and/or in other electronic devices different from the electronic device 100. That is, the present application is not limited as to how the acquired sound signal is saved.
S303, the electronic device 100 may determine performance parameter information of each of the plurality of microphones based on the electrical signal converted by each microphone with respect to the sound signal of the sound source 1.
After each microphone in the electronic device 100 acquires the sound signal of the sound source 1, the sound signal may be converted into an electrical signal corresponding to each microphone. For example, the microphone 1 may convert a sound signal of the sound source 1 into the electric signal 1, and the microphone 2 may convert a sound signal of the sound source 1 into the electric signal 2. Then, the electronic device 100 may determine performance parameter information for each microphone based on the electrical signal of each microphone. For example, the electronic device 100 may determine the performance parameter information 1 of the microphone 1 based on the electrical signal 1 and determine the performance parameter information 2 of the microphone 2 based on the electrical signal 2. The performance parameters corresponding to the microphone may include one or more of sensitivity, frequency response, phase, etc. That is, the present application does not limit the specific content included in the performance parameter corresponding to the microphone.
Illustratively, taking microphone 1 as an example, how electronic device 100 determines the sensitivity of each microphone is described.
The sensitivity of the microphone is the ratio of the analog output voltage of the analog microphone/the digital output amplitude value of the digital microphone to the input sound pressure of the sound signal at a specified frequency (e.g., 1KHz, 2KHz, etc.) of the sound signal. The sensitivity of the microphone can be used to express the conversion efficiency of the microphone acoustic signal-electric signal, and the higher the sensitivity, the higher the conversion efficiency. The unit of sensitivity can be expressed in decibels (db). Taking the designated frequency of 1KHz as an example, when the microphone 1 is an analog microphone, the electronic device 100 may acquire a sound signal with the frequency of 1KHz in the sound source 1 based on the foregoing steps, and determine the sound pressure corresponding to the sound source 1 and the output voltage of the microphone 1. The electronic apparatus 100 may determine the value of the sensitivity of the microphone 1 based on the sound pressure of the sound source 1 and the output voltage of the microphone 1. For the sensitivity measurement of the analog microphone, reference may be made to the prior art, and details thereof are not repeated here. The microphone sensitivity measuring method is not limited in the present application.
When the microphone 1 is a digital microphone, the electronic device 100 may determine the sound pressure corresponding to the sound source 1 and the digital output amplitude value of the microphone 1 based on the sound signal with the frequency of 1KHz in the sound source 1 obtained through the foregoing steps. The electronic device 100 may determine the sensitivity of the microphone 1 based on the sound pressure of the sound source 1 and the digital output amplitude value of the microphone 1. For the sensitivity measurement of the digital microphone, reference may be made to the prior art, and details thereof are not repeated here.
For example, taking microphone 1 as an example, how electronic device 100 determines frequency response information of each microphone is described.
The frequency response information of the microphone is the ratio of the output signal when the microphone receives the sound signal of each frequency to the output signal when the microphone receives the sound signal of a specified frequency (e.g., 1 KHz) at the same sound loudness. That is, the frequency response of the microphone is that when the microphone receives sounds of different frequencies, the output signal is amplified or attenuated with the change of the frequency. The frequency response information of the microphone may be represented by a curve, which may be referred to as a frequency response curve. Accordingly, the electronic apparatus 100 may determine a frequency response curve representing the microphone 1 based on a ratio (which may be referred to as a relative sensitivity) of an output signal of the microphone 1 at each frequency of the sound signal to an output signal of the sound signal at a specified frequency (for example, 1 KHz). For example, the frequency response curve of the microphone 1 may be as shown in fig. 4A. Wherein the X-axis in fig. 4A may represent frequency in hertz (hertz, Hz); the Y-axis may represent relative sensitivity in db. 0db represents that the output signal of the microphone 1 is consistent with the original sound (i.e. the sound source 1) and is not changed; greater than 0db represents the output signal of the microphone 1 being amplified; less than 0db indicates that the output signal of the microphone 1 is attenuated. As can be seen from fig. 4A, when the frequency of the sound signal is greater than 200Hz and less than 1KHz, the output signal of the microphone 1 is attenuated; when the frequency of the sound signal is greater than 1KHz, the output signal of the microphone 1 is amplified. For the specific measurement of the frequency response curve of the microphone, reference may be made to the prior art, and details thereof are not repeated herein. The present application is not limited to the method of measuring the frequency response curve of a microphone.
It should be noted that the frequency response curve shown in fig. 4A is only used for exemplary explanation of the present application, and does not specifically limit the present application. The frequency response curves of the microphones on the electronic device 100 may be different from the frequency response curves shown in fig. 4A.
For example, taking the microphone 1 as an example, how the electronic device 100 determines the phase information of each microphone is described.
The phase information of a microphone, which may also be referred to as phase response information of the microphone, is the information that the difference between the phase of the microphone output signal and the phase of the sound signal input to the microphone varies with frequency. The phase response information of the microphone may be represented by a curve, which may be referred to as a phase response curve. The phase response curve of the microphone 1 determined by the electronic device 100 based on some or all of the sound signals of the sound source 1 acquired in the foregoing steps can be as shown in fig. 4B. Wherein the X-axis in FIG. 4B may represent frequency in Hz; the Y-axis may represent the angle of difference, in degrees, between the phase of the output signal of the microphone 1 and the phase of the sound signal input to the microphone 1. The 0 degree, i.e. the phase representing the output signal of the microphone 1, is consistent with the phase of the sound signal (i.e. the sound signal corresponding to the sound source 1) input to the microphone 1. As can be seen from fig. 4B, in the range of the frequency 200Hz to the frequency 5KHz, as the frequency of the sound signal input to the microphone 1 increases, the difference between the phase of the output signal of the microphone 1 and the phase of the sound signal input to the microphone 1 gradually decreases from 60 degrees. The method for measuring the phase response curve of the microphone is not limited in the present application.
It should be noted that the phase response curve shown in fig. 4B is only used for exemplary explanation of the present application, and does not specifically limit the present application. The phase response curves of the microphones on the electronic device 100 may be different from the phase response curves shown in fig. 4B.
S304, the electronic device 100 determines a target parameter value based on the performance parameter information corresponding to the plurality of microphones.
The target parameter value may include one or more of a target value of sensitivity, a target value of frequency response, a target value of phase response, and the like. The electronic device 100 may perform statistical analysis on the performance parameter information of each microphone in the device to determine a uniform target parameter value.
For example, taking the sensitivity of the target parameter value as an example, in one possible implementation manner, the electronic device 100 may perform an average calculation based on the sensitivity values of the microphones obtained in the previous step, and the obtained sensitivity average value may be determined by the electronic device 100 as the target value of the sensitivity. For example, taking the electronic device 100 configured with the microphone 1 and the microphone 2 as an example, if the sensitivity of the microphone 1 is-42 db and the sensitivity of the microphone 2 is-40 db, the average thereof is-41 db. The electronic device 100 can determine the average-41 db as a target value for sensitivity; in another possible implementation manner, the electronic device 100 may determine a median value of the microphone sensitivity values obtained in the previous steps as a target value of the sensitivity. For example, taking the electronic apparatus 100 configured with the microphone 1, the microphone 2, and the microphone 3 as an example, the sensitivity of the microphone 1 is-42 db, the sensitivity of the microphone 2 is-40 db, and the sensitivity of the microphone 3 is-44 db. The electronic apparatus 100 may determine the median-42 db therein as the target value of the sensitivity; in another possible implementation, the electronic device 100 may also determine a sensitivity value of the specified microphone as the target value of the sensitivity. For example, taking the electronic apparatus 100 configured with the microphone 1, the microphone 2, and the microphone 3 as an example, the sensitivity of the microphone 1 is-42 db, the sensitivity of the microphone 2 is-40 db, and the sensitivity of the microphone 3 is-44 db. The electronic apparatus 100 may determine the sensitivity value-42 db of the microphone 2 (i.e., the designated microphone) as the target value of the sensitivity. That is, the present application does not limit the specific method for the electronic device 100 to determine the target value of the sensitivity based on the sensitivity values of the microphones obtained in the foregoing steps.
For example, taking the frequency response in the target parameter as an example, in one possible implementation manner, the electronic device 100 may calculate an average value curve based on the frequency response curves of the microphones obtained in the previous steps, and determine the average value curve as a target frequency response curve, where the target frequency response curve is a target value representing the frequency response; in another possible implementation manner, the electronic device 100 may calculate a median curve based on the frequency response curves of the microphones obtained in the foregoing steps, and determine the median curve as a target frequency response curve, which is a target value representing the frequency response; in another possible implementation, the electronic device 100 may also determine a frequency response curve of the given microphone as a target frequency response curve, i.e., a target value that characterizes the frequency response. That is, the present application does not limit the specific method for the electronic device 100 to determine the target frequency response curve based on the frequency response curves of the microphones obtained in the foregoing steps.
For example, taking the phase response in the target parameter as an example, in one possible implementation manner, the electronic device 100 may calculate an average value curve based on the phase response curves of the microphones obtained in the previous steps, and determine the average value curve as a target phase response curve, where the target phase response curve is a target value representing the phase response; in another possible implementation manner, the electronic device 100 may calculate a median curve based on the phase response curves of the microphones obtained in the foregoing steps, and determine the median curve as a target phase response curve, which is a target value representing the phase response; in another possible implementation, the electronic device 100 may also determine a phase response curve of the given microphone as a target phase response curve, i.e., a target value that characterizes the phase response. That is, the present application does not limit the specific method for determining the target phase response curve by the electronic device 100 based on the phase response curves of the microphones obtained in the foregoing steps.
In some embodiments, the electronic device 100 may perform a statistical analysis based on the performance parameter information of each of the plurality of microphones to determine a uniform target parameter value, so that the performance parameter of each of the microphones in the electronic device 100 reaches the target parameter value. For example, the electronic device 100 may perform statistical analysis based on the performance parameter information of each microphone in the electronic device 100, the performance parameter information of each microphone in the electronic device 200, and the performance parameter information of each microphone in the electronic device 300 to determine a uniform target parameter value, such as one or more of a sensitivity target value, a frequency response target value, a phase response target value, and the like. The hardware structures and the software structures of the electronic device 200 and the electronic device 300 may refer to the electronic device 100, and the obtaining of the performance parameter information corresponding to each microphone on the electronic device 200 and the electronic device 300 and the determining of the target parameter value in this embodiment may refer to the description in the foregoing steps, which is not described herein again.
S305, the electronic device 100 determines calibration parameter information of each microphone in the plurality of microphones based on the performance parameter information of each microphone and the target parameter value.
The calibration parameter information of each of the plurality of microphones determined by the electronic device 100 may include calibration parameter information 1 of the microphone 1 and calibration parameter information 2 of the microphone 2.
Specifically, the calibration parameter information of each microphone determined by the electronic device 100 based on the performance parameter information of each microphone and the target parameter value may include one or more of parameter adjustment information such as gain adjustment information, bandwidth adjustment information, and cutoff frequency adjustment information. Wherein the gain adjustment information may be used to calibrate the sensitivity of the microphone to a sensitivity target value; the bandwidth adjustment information and/or the cut-off frequency adjustment information may be used to calibrate a frequency response curve and/or a phase response curve of the microphone to achieve a target phase response curve.
For example, taking the microphone 1 as an example, the calibration parameter information 1 corresponding to the microphone 1 determined by the electronic device 100 may include gain adjustment information 1, bandwidth adjustment information 1, and cutoff frequency adjustment information 1. The electronic apparatus 100 may cause the sensitivity of the microphone 1 to reach the sensitivity target value based on the gain adjustment information. The electronic apparatus 100 may cause the frequency response curve and the phase response curve of the microphone 1 to reach the target frequency response curve and the target phase response curve, respectively, based on the bandwidth adjustment information 1 and the cutoff frequency information 1.
S306, the electronic device 100 writes the calibration parameter information into the corresponding microphone.
The electronic device 100 may write each calibration parameter information into the corresponding microphone through a designated interface (which may also be referred to as a first interface). The designated interface may be an integrated circuit (I2C) interface, or may be another interface. The process of writing each calibration parameter information into the corresponding microphone by the electronic device 100 through the designated interface may include writing the calibration parameter information 1 into the microphone 1 by the electronic device 100 through the designated interface, and writing the calibration parameter information 2 into the microphone 2 through the designated interface.
In a possible implementation manner, the storage device of the electronic device 100 may store each calibration parameter information, and a mapping relationship between each calibration parameter information and each microphone, and the electronic device 100 does not write each calibration parameter information into the corresponding microphone. For example, the calibration parameter information 1 and the mapping relation 1 of the calibration parameter information 1 to the microphone 1, and the calibration parameter information 2 and the mapping relation 1 of the calibration parameter information 2 to the microphone 2 may be stored in the storage device of the electronic device 100, and the electronic device 100 does not write the calibration parameter information 1 and the calibration parameter information 2 into the microphone 1 and the microphone 2, respectively.
S307, the electronic device 100 processes the input signal of the microphone based on the calibration parameter information of each microphone.
Specifically, after the calibration parameter information is written into the corresponding microphone, the electronic device 100 may process the input signal of each microphone based on the calibration parameter information of each microphone, so that each microphone converts the target electrical signal (i.e., the electrical signal output by the calibration microphone) based on the sound signal.
It should be noted that, the above steps are only used for exemplifying the present application, and the order of implementing the steps may be changed in the specific implementation, and more steps or fewer steps than those shown in the drawings may also be included.
It should be noted that, in this embodiment, the microphone 1 may be referred to as a first microphone, the microphone 2 may be referred to as a second microphone, the audio source 1 may be referred to as a first audio source, the electrical signal 1 may be referred to as a first electrical signal, the electrical signal 2 may be referred to as a second electrical signal, the performance parameter information 1 may be referred to as first performance parameter information, the performance parameter information 2 may be referred to as second performance parameter information, the calibration parameter information 1 may be referred to as first calibration parameter information, and the calibration parameter information 2 may be referred to as second calibration parameter information.
In some embodiments, electronic device 100 may determine different values of the target parameter based on multiple microphones at different locations. For example, electronic device 100 may be configured with multiple microphones, which may include microphone 1, microphone 2, microphone 7, and microphone 8. Where microphone 1 and microphone 7 are located at location 1 on electronic device 100 (e.g., the top of electronic device 100), microphone 2 and microphone 8 are located at location 2 on electronic device 100 (e.g., the bottom of electronic device 100), and location 1 and location 2 are different. The electronic apparatus 100 may acquire performance parameter information of each of the microphone 1, the microphone 2, the microphone 7, and the microphone 8. The electronic device 100 may determine the target parameter value 3 based on the performance parameter information of the microphone 1 and the microphone 7; the electronic device 100 may determine the target parameter value 4 based on the performance parameter information of the microphones 2 and 8. Target parameter value 3 is different from target parameter value 4. Then, the electronic device 100 may determine calibration parameter information of the microphone 1 based on the target parameter value 3 and the performance parameter information of the microphone 1; determining calibration parameter information of the microphone 7 based on the target parameter value 3 and the performance parameter information of the microphone 7; determining calibration parameter information of the microphone 2 based on the target parameter value 4 and the performance parameter information of the microphone 2; based on the target parameter value 4 and the performance parameter information of the microphone 8, calibration parameter information of the microphone 8 is determined. The electronic device 100 may write the calibration parameter information into the corresponding microphone to facilitate subsequent speech processing. For the acquisition of the performance parameter information of each microphone, the determination of the target parameter value, and other specific implementation processes in this embodiment, reference may be made to the description of the embodiment shown in fig. 3, which is not repeated herein.
It should be noted that, in this embodiment, the electronic device 100 may include 2, 3, 4 or more microphones. The positions of the microphones may be the top, bottom, side, etc. of the electronic device 100, and the microphones in different positions may have the same number or different numbers (for example, 2 microphones are disposed on the top and 1 microphone is disposed on the bottom). Microphones at the same position correspond to the same target parameter value, and microphones at different positions correspond to different target parameter values. This is not limited by the present application.
In this way, not only may the electrical signals output by the microphones on electronic device 100 be calibrated, but the electronic device 100 may also be made to pick up more natural stereo sound based on the microphones within the device.
In some embodiments, when the microphone calibration method is applied to a plurality of electronic devices, so that the performance parameters of the microphones at the corresponding positions on the plurality of electronic devices reach the same target parameter value, the same target parameter value may be determined based on the performance parameter information of the microphones at the corresponding positions on the plurality of electronic devices. The electronic device may then determine calibration parameter information for each microphone based on the target parameter value.
Illustratively, as shown in fig. 2B, the description of each electronic device shown in fig. 2B may refer to the foregoing description. The electronic device 100 may acquire performance parameter information of a microphone to which the sound hole 205 is connected, performance parameter information of a microphone to which the sound hole 206 is connected, performance parameter information of a microphone to which the sound hole 207 is connected, and performance parameter information of a microphone to which the sound hole 208 is connected. Wherein the sound holes 205 and 206 are located at corresponding positions of different devices, and the sound holes 207 and 208 are located at corresponding positions of different devices. Therefore, the electronic device 100 may determine the target parameter value 1 based on the performance parameter information of the microphone connected to the sound hole 205 and the performance parameter information of the microphone connected to the sound hole 206, and then determine the calibration parameter information of the microphone connected to the sound hole 205 and the calibration parameter information of the microphone connected to the sound hole 206; the electronic device 100 may determine the target parameter value 2 based on the performance parameter information of the microphone connected to the sound hole 207 and the performance parameter information of the microphone connected to the sound hole 208, and then determine the calibration parameter information of the microphone connected to the sound hole 207 and the calibration parameter information of the microphone connected to the sound hole 208. The electronic device 100 may write the parameter information into the corresponding microphone. For the acquisition of the performance parameter information of each microphone, the determination of the target parameter value, and other specific implementation processes in this embodiment, reference may be made to the description of the embodiment shown in fig. 3, which is not repeated herein.
In this way, not only can the electric signals output by the microphones among the electronic devices be efficiently calibrated, but also the microphones can be made to pick up more natural stereo sound.
In some embodiments, when the microphone calibration method is applied to a plurality of electronic devices such that the performance parameters of all microphones on the plurality of electronic devices reach the same target parameter value, the same target parameter value may be determined based on the performance parameter information of all microphones on the plurality of electronic devices. The electronic device may then determine calibration parameter information for each microphone based on the target parameter value. For the acquisition of the performance parameter information of each microphone, the determination of the target parameter value, and other specific implementation processes in this embodiment, reference may be made to the description of the embodiment shown in fig. 3, which is not repeated herein.
In some embodiments, the target parameter value may be determined by the electronic device 100 or by another electronic device distinct from the electronic device 100. This is not limited by the present application.
Next, an internal structure of a microphone provided in an embodiment of the present application is described.
The microphone provided in the embodiment of the present application may be an Electret Condenser Microphone (ECM), or may be a MEMS microphone. The embodiments of the present application take a MEMS microphone as an example for explanation.
Referring to fig. 5A, fig. 5A schematically illustrates an internal structure of a microphone.
As shown in fig. 5A, the internal structure of the microphone may include a MEMS chip 601 and an Application Specific Integrated Circuit (ASIC) chip 602. Therein, the MEMS chip 601 and the ASIC chip 602 may be connected. Calibration parameter information for the microphone may be written into the ASIC chip 602. When a speaker (e.g., the speaker 1 in the foregoing) plays audio and the air pressure changes due to sound waves, the silicon diaphragm in the MEMS chip 601 may bend along with the air pressure, and the capacitance between the silicon diaphragm and the back plate on the MEMS chip 601 may change. The ASIC chip 602 may convert the capacitance change caused by the acoustic wave into a target electrical signal based on the calibration parameter information. In a possible implementation manner, if the microphone is a digital microphone, the internal structure of the microphone may further include an analog-to-digital converter (ADC, not shown) for outputting a digital signal.
In some embodiments, as shown in fig. 5B, the internal structure of the microphone may include a MEMS chip 601, an ASIC chip 602, and an ASIC chip 603. Wherein, the MEMS chip 601 and the ASIC chip 602 may be connected, and the ASIC chip 602 may be connected in series with the ASIC chip 603. Calibration parameter information for the microphone may be written into the ASIC chip 603. The ASIC chip 602 can convert the capacitance change in the MEMS chip 601 caused by the acoustic wave into a target electrical signal based on the calibration parameter information in the ASIC chip 603.
In some embodiments, the MEMS chip may be circular, square, or other shape. The microphone may include one MEMS chip or may include a plurality of MEMS chips, which is not limited in this application.
It should be noted that the internal structure of the microphone in the above-mentioned illustration is only used for exemplifying and explaining the present application, and does not constitute a specific limitation to the present application.
Next, a circuit structure in which a microphone provided in an embodiment of the present application is disposed inside the electronic device 100 will be described.
The embodiments of the present application take a MEMS microphone as an example for explanation.
Referring to fig. 6A, if the microphone is a digital microphone, fig. 6A schematically illustrates a circuit structure of the microphone disposed inside the electronic device 100.
As shown in fig. 6A, the carrier of the circuit structure may be referred to as a pad of the microphone, and the pad may be circular, square, or the like, and the shape of the pad is not limited in the present application. The circuit structure may include a Ground (GND) pin 70, a Virtual Device Driver (VDD) pin 71, a GND pin 72, a DATA (DATA) pin 73, a Serial CLOCK (SCL) pin 74, a Serial DATA (SDA) pin 75, a left/right channel (left/right, L/R) pin 76, and a CLOCK (CLOCK) pin 77.
Among other things, the GND pin 70 is used to connect a pin in a circuit to the ground of a power supply to protect the safety of the human body and equipment. The VDD pin 71 is used to supply power to the microphone for processing of the acoustic/electrical signal. The function of the GND terminal 72 can be referred to as the GND terminal 70, and will not be described in detail. DATA pin 73 and CLOCK pin 77 may be used for microphone output digital signals. SCL pin 74 and SDA pin 75 are interfaces on the I2C serial bus. SCL pin 74 is a serial clock pin and SDA pin 75 is a serial data pin. The SCL pin 74 and the SDA pin 75 may be used for the electronic device 100 to write calibration parameter information to the microphone and/or for the electronic device 100 to read calibration parameter information from the microphone. The L/R pin 76 is used for left and right channel selection.
Referring to fig. 6B, if the microphone is an analog microphone, fig. 6B schematically shows another circuit structure of the microphone disposed inside the electronic device 100.
As shown in fig. 6B, the carrier of the circuit structure may be referred to as a pad of the microphone, and the pad may be circular, square, or the like, and the shape of the pad is not limited in the present application. The circuit structure may include a GND pin 78, a VDD pin 79, an output positive (OUT +) pin 80, an output negative (OUT-) pin 81, an SCL pin 82, and an SDA pin 83.
The description of the GND pin 78, the VDD pin 79, the SCL pin 82, and the SDA pin 83 may refer to the description of the GND pin 70, the VDD pin 71, the SCL pin 74, and the SDA pin 75 in the foregoing embodiment, and will not be repeated herein. The OUT + pin 80 and OUT-pin 81 may be used for microphone output analog signals.
It should be noted that the above circuit structure is only used for exemplifying the present application, and does not set any limit to the present application. In practical applications, the circuit structure may include other pins than those described above, or may have more or fewer pins than those shown. This is not limited by the present application.
Next, a software structure applied to the electronic device 100 according to an embodiment of the present application will be described.
Referring to fig. 7, fig. 7 illustrates a software structure applied to the electronic device 100.
As shown in fig. 7, the electronic device 100 may include a sound signal acquisition module 801, a performance parameter information acquisition module 802, a calibration parameter information determination module 803, and a storage module 804.
The sound signal acquiring module 801 may be used for acquiring the sound signal of the audio 1 played by the speaker 1 by the electronic device 100. The performance parameter information acquisition module 802 may be configured to acquire performance parameter information for each of a plurality of microphones on the electronic device 100. The calibration parameter information determination module 803 may be used for the electronic device 100 to determine the calibration parameter information of each microphone on the electronic device 100 based on the target parameter value and/or for the electronic device 100 to determine the target parameter value. The storage module 804 may be configured to store calibration parameter information and/or some program codes, so that the electronic device 100 may call the program codes and/or the calibration parameter information stored in the storage module 804, so that the performance parameter of each microphone in the electronic device 100 reaches a target parameter value, so that each microphone converts a target electrical signal based on a sound signal, and to implement the implementation method in the electronic device 100 according to the embodiment of the present application.
It should be noted that the above-mentioned software structure is only used for exemplifying and explaining the present application, and does not set any limit to the present application. In particular implementations, electronic device 100 may include other modules, and may include more or fewer modules than those shown.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …", depending on the context. Similarly, depending on the context, the phrase "at the time of determination …" or "if (a stated condition or event) is detected" may be interpreted to mean "if the determination …" or "in response to the determination …" or "upon detection (a stated condition or event)" or "in response to detection (a stated condition or event)".
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). 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, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (11)

1. A microphone calibration method applied to an electronic device including a plurality of microphones, the plurality of microphones including a first microphone and a second microphone, the method comprising:
the electronic equipment collects sound signals of a first sound source through the first microphone and the second microphone;
the electronic equipment converts the sound signal of the first sound source into a first electric signal through the first microphone, and converts the sound signal of the first sound source into a second electric signal through the second microphone;
the electronic equipment determines first performance parameter information of the first microphone based on the first electric signal;
the electronic equipment determines second performance parameter information of the second microphone based on the second electric signal; wherein the first performance parameter information comprises one or more of sensitivity information, frequency response information, phase response information, and the like of the first microphone, and the second performance parameter information comprises one or more of sensitivity information, frequency response information, phase response information, and the like of the second microphone;
the electronic equipment determines a target parameter value based on the first performance parameter information and the second performance parameter information; wherein the target parameter value comprises one or more of a target value of sensitivity, a target frequency response curve, a target phase response curve and the like;
the electronic equipment determines first calibration parameter information of the first microphone based on the target parameter value and the first performance parameter information; the electronic equipment determines second calibration parameter information of the second microphone based on the target parameter value and the second performance parameter information;
the electronic equipment calibrates the electric signal output by the first microphone based on the first calibration parameter information;
the electronic device calibrates the electrical signal output by the second microphone based on the second calibration parameter information.
2. The method of claim 1, wherein before the electronic device calibrates the electrical signal output by the first microphone based on the first calibration parameter information, the method further comprises:
the electronic device writes the first calibration parameter information to the first microphone and the second calibration parameter information to the second microphone.
3. The method of claim 1, wherein before the electronic device captures the sound signal of the first audio source through the first microphone and the second microphone, the method further comprises:
the electronic equipment plays the first sound source.
4. The method according to claim 1, wherein the determining, by the electronic device, a target parameter value based on the first performance parameter information and the second performance parameter information specifically includes:
the first performance parameter information includes sensitivity information of the first microphone, and the second performance parameter information includes sensitivity information of the second microphone;
the electronic equipment determines a sensitivity average value or a sensitivity median value based on the sensitivity information of the first microphone and the sensitivity information of the second microphone;
the electronic device determines the sensitivity average value or the sensitivity median value as a target value of the sensitivity among the target parameter values.
5. The method according to claim 1 or 4, wherein the determining, by the electronic device, a target parameter value based on the first performance parameter information and the second performance parameter information specifically includes:
the first performance parameter information comprises frequency response information of the first microphone, and the second performance parameter information comprises frequency response information of the second microphone;
the electronic equipment determines a frequency response mean curve based on the frequency response information of the first microphone and the frequency response information of the second microphone;
and the electronic equipment determines the frequency response mean curve as a target frequency response curve in the target parameter values.
6. The method according to claim 5, wherein the determining, by the electronic device, a target parameter value based on the first performance parameter information and the second performance parameter information specifically includes:
the first performance parameter information comprises phase response information of the first microphone, and the second performance parameter information comprises phase response information of the second microphone;
the electronic equipment determines a phase response mean value curve based on the phase response information of the first microphone and the phase response information of the second microphone;
and the electronic equipment determines the phase response mean curve as a target phase response curve in the target parameter value.
7. An electronic device comprising a processor, a first microphone, and a second microphone, wherein:
the first microphone and the second microphone are used for collecting sound signals of a first sound source;
the first microphone is also used for converting the sound signal of the first sound source into a first electric signal;
the second microphone is also used for converting the sound signal of the first sound source into a second electric signal;
the processor is further configured to determine first performance parameter information for the first microphone based on the first electrical signal; determining second performance parameter information of the second microphone based on the second electrical signal; wherein the first performance parameter information comprises one or more of sensitivity information, frequency response information, phase response information, and the like of the first microphone, and the second performance parameter information comprises one or more of sensitivity information, frequency response information, phase response information, and the like of the second microphone;
the processor is further configured to determine a target parameter value based on the first performance parameter information and the second performance parameter information; wherein the target parameter value comprises one or more of a target value of sensitivity, a target frequency response curve, a target phase response curve and the like;
the processor is further configured to determine first calibration parameter information for the first microphone based on the target parameter value and the first performance parameter information;
the processor is further configured to determine second calibration parameter information for the second microphone based on the target parameter value and the second performance parameter information;
the first microphone is also used for calibrating an electric signal output by the first microphone based on the first calibration parameter information;
the second microphone is further configured to calibrate an electrical signal output by the second microphone based on the second calibration parameter information.
8. The electronic device of claim 7, wherein the electronic device further comprises a speaker;
the loudspeaker is used for playing the first sound source.
9. The electronic device of claim 7, further comprising a first interface;
the first interface is configured to write the first calibration parameter information to the first microphone, and the second calibration parameter information to the second microphone.
10. A computer-readable storage medium, in which a computer program is stored, the computer program comprising executable instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1-6.
11. A chip or system-on-chip comprising processing circuitry and interface circuitry, the interface circuitry being arranged to receive code instructions and transmit them to the processing circuitry, the processing circuitry being arranged to execute the code instructions to perform the method of any of claims 1 to 6.
CN202210361341.6A 2022-04-07 2022-04-07 Microphone calibration method and electronic equipment Active CN114449434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210361341.6A CN114449434B (en) 2022-04-07 2022-04-07 Microphone calibration method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210361341.6A CN114449434B (en) 2022-04-07 2022-04-07 Microphone calibration method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114449434A true CN114449434A (en) 2022-05-06
CN114449434B CN114449434B (en) 2022-08-16

Family

ID=81358845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210361341.6A Active CN114449434B (en) 2022-04-07 2022-04-07 Microphone calibration method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114449434B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1453349A2 (en) * 2003-02-25 2004-09-01 AKG Acoustics GmbH Self-calibration of a microphone array
CN1682566A (en) * 2002-09-13 2005-10-12 皇家飞利浦电子股份有限公司 Calibrating a first and a second microphone
CN101895809A (en) * 2010-07-01 2010-11-24 北京航空航天大学 Microphone calibrator and calibration method thereof
US20120237055A1 (en) * 2009-11-12 2012-09-20 Institut Fur Rundfunktechnik Gmbh Method for dubbing microphone signals of a sound recording having a plurality of microphones
CN103974179A (en) * 2013-01-29 2014-08-06 宏相科技股份有限公司 microphone correction method
CN105409241A (en) * 2013-07-26 2016-03-16 美国亚德诺半导体公司 Microphone calibration
CN105554674A (en) * 2015-12-28 2016-05-04 努比亚技术有限公司 Microphone calibration method, device and mobile terminal
CN106921928A (en) * 2017-04-06 2017-07-04 中国商用飞机有限责任公司北京民用飞机技术研究中心 Measurement, calibration method and device to microphone
CN107360528A (en) * 2017-06-07 2017-11-17 歌尔股份有限公司 A kind of calibration method and device based on microphone array
CN109246517A (en) * 2018-10-12 2019-01-18 歌尔科技有限公司 A kind of noise reduction microphone bearing calibration, wireless headset and the charging box of wireless headset
CN109313909A (en) * 2018-08-22 2019-02-05 深圳市汇顶科技股份有限公司 Assess method, unit and the system of microphone array consistency
CN111083625A (en) * 2019-12-16 2020-04-28 歌尔股份有限公司 Microphone performance testing method, testing management equipment and testing system
CN111683331A (en) * 2020-06-09 2020-09-18 美特科技(苏州)有限公司 Audio calibration method and device
CN111902861A (en) * 2018-02-01 2020-11-06 思睿逻辑国际半导体有限公司 System and method for calibrating and testing an Active Noise Cancellation (ANC) system
CN112333595A (en) * 2020-11-04 2021-02-05 声源科技(深圳)有限公司 Earphone calibration method, device and system
CN112822578A (en) * 2019-11-18 2021-05-18 松下电器(美国)知识产权公司 Sound reception device, sound reception method, and storage medium storing sound reception program
CN113068111A (en) * 2021-06-03 2021-07-02 深圳市创成微电子有限公司 Microphone and microphone calibration method and system
CN113141562A (en) * 2020-01-17 2021-07-20 西万拓私人有限公司 Method for coordinating respective phase responses of a first microphone and a second microphone
CN113496708A (en) * 2020-04-08 2021-10-12 华为技术有限公司 Sound pickup method and device and electronic equipment
CN113630708A (en) * 2021-08-13 2021-11-09 RealMe重庆移动通信有限公司 Earphone microphone abnormality detection method and device, earphone kit and storage medium
WO2021241864A1 (en) * 2020-05-26 2021-12-02 삼성전자 주식회사 Method for correcting characteristics of microphone and electronic device thereof

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1682566A (en) * 2002-09-13 2005-10-12 皇家飞利浦电子股份有限公司 Calibrating a first and a second microphone
EP1453349A2 (en) * 2003-02-25 2004-09-01 AKG Acoustics GmbH Self-calibration of a microphone array
US20120237055A1 (en) * 2009-11-12 2012-09-20 Institut Fur Rundfunktechnik Gmbh Method for dubbing microphone signals of a sound recording having a plurality of microphones
CN101895809A (en) * 2010-07-01 2010-11-24 北京航空航天大学 Microphone calibrator and calibration method thereof
CN103974179A (en) * 2013-01-29 2014-08-06 宏相科技股份有限公司 microphone correction method
CN105409241A (en) * 2013-07-26 2016-03-16 美国亚德诺半导体公司 Microphone calibration
CN105554674A (en) * 2015-12-28 2016-05-04 努比亚技术有限公司 Microphone calibration method, device and mobile terminal
CN106921928A (en) * 2017-04-06 2017-07-04 中国商用飞机有限责任公司北京民用飞机技术研究中心 Measurement, calibration method and device to microphone
CN107360528A (en) * 2017-06-07 2017-11-17 歌尔股份有限公司 A kind of calibration method and device based on microphone array
CN111902861A (en) * 2018-02-01 2020-11-06 思睿逻辑国际半导体有限公司 System and method for calibrating and testing an Active Noise Cancellation (ANC) system
CN109313909A (en) * 2018-08-22 2019-02-05 深圳市汇顶科技股份有限公司 Assess method, unit and the system of microphone array consistency
CN109246517A (en) * 2018-10-12 2019-01-18 歌尔科技有限公司 A kind of noise reduction microphone bearing calibration, wireless headset and the charging box of wireless headset
CN112822578A (en) * 2019-11-18 2021-05-18 松下电器(美国)知识产权公司 Sound reception device, sound reception method, and storage medium storing sound reception program
CN111083625A (en) * 2019-12-16 2020-04-28 歌尔股份有限公司 Microphone performance testing method, testing management equipment and testing system
CN113141562A (en) * 2020-01-17 2021-07-20 西万拓私人有限公司 Method for coordinating respective phase responses of a first microphone and a second microphone
EP3852388A1 (en) * 2020-01-17 2021-07-21 Sivantos Pte. Ltd. Method for tuning the respective phase difference of a first microphone and a second microphone
CN113496708A (en) * 2020-04-08 2021-10-12 华为技术有限公司 Sound pickup method and device and electronic equipment
WO2021241864A1 (en) * 2020-05-26 2021-12-02 삼성전자 주식회사 Method for correcting characteristics of microphone and electronic device thereof
CN111683331A (en) * 2020-06-09 2020-09-18 美特科技(苏州)有限公司 Audio calibration method and device
CN112333595A (en) * 2020-11-04 2021-02-05 声源科技(深圳)有限公司 Earphone calibration method, device and system
CN113068111A (en) * 2021-06-03 2021-07-02 深圳市创成微电子有限公司 Microphone and microphone calibration method and system
CN113630708A (en) * 2021-08-13 2021-11-09 RealMe重庆移动通信有限公司 Earphone microphone abnormality detection method and device, earphone kit and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王汀洲等: "基于麦克风阵列的不一致性的校正", 《复旦学报(自然科学版)》 *
王汀洲等: "基于麦克风阵列的不一致性的校正", 《复旦学报(自然科学版)》, no. 03, 15 June 2018 (2018-06-15) *

Also Published As

Publication number Publication date
CN114449434B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
JP7244666B2 (en) Screen control method, electronic device, and storage medium
WO2021238354A1 (en) Sound leakage canceling method and electronic device
CN112470217A (en) Method for determining electronic device to perform speech recognition and electronic device
CN105745942A (en) Systems and methods for providing a wideband frequency response
CN110931053B (en) Method, device, terminal and storage medium for detecting recording time delay and recording audio
CN108335703B (en) Method and apparatus for determining accent position of audio data
US11428679B2 (en) Electronic device having structure with gas sensor
CN109003621B (en) Audio processing method and device and storage medium
CN113726940B (en) Recording method and device
CN109192223B (en) Audio alignment method and device
CN109243479B (en) Audio signal processing method and device, electronic equipment and storage medium
CN111613213B (en) Audio classification method, device, equipment and storage medium
EP4203447A1 (en) Sound processing method and apparatus thereof
CN111984222A (en) Method and device for adjusting volume, electronic equipment and readable storage medium
CN110600034B (en) Singing voice generation method, singing voice generation device, singing voice generation equipment and storage medium
CN113921002A (en) Equipment control method and related device
CN111048109A (en) Acoustic feature determination method and apparatus, computer device, and storage medium
CN112599144B (en) Audio data processing method, audio data processing device, medium and electronic equipment
CN112086102B (en) Method, apparatus, device and storage medium for expanding audio frequency band
CN114449434B (en) Microphone calibration method and electronic equipment
CN113556421B (en) Recording data processing method, recording data processing device and storage medium
US11533394B2 (en) Electronic device comprising earphone jack integrally formed with gas sensor
CN112992127A (en) Voice recognition method and device
CN113362836B (en) Vocoder training method, terminal and storage medium
CN115696114B (en) Microphone configuration adjustment method, electronic equipment and medium

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
TA01 Transfer of patent application right

Effective date of registration: 20220616

Address after: 100095 floors 2-14, building 3, yard 5, honeysuckle Road, Haidian District, Beijing

Applicant after: Beijing Honor Device Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Applicant before: Honor Device Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant