Microphone detection method and system and storage medium
By acquiring and analyzing ambient temperature and humidity data and microphone characteristic data, performing calculations of air density and sound speed, and combining sound source quality detection and correction calculations, the problem that environmental factors on microphone performance in the prior art have not been effectively quantified, and the detection accuracy is improved.
Patent Information
- Application Number
- CN202411913461.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art has failed to effectively quantify the impact of environmental factors (such as ambient sound, temperature, humidity, etc.) on microphone performance, resulting in low detection accuracy.
By obtaining ambient temperature and humidity data, microphone characteristic data, preset sound speed data, microphone input signal and detection sound source signal, air density calculation and sound speed adjustment, characteristic calculations are performed based on microphone characteristic data, sound source quality detection, correction and correction calculation are performed, and the detection results are finally obtained through data analysis.
By quantifying environmental factors, the accuracy of microphone detection is improved, and microphone performance can be more accurately evaluated and the impact of environmental changes and equipment differences can be reduced.
Smart Images

Figure CN119729329A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio signal processing, and in particular to a microphone detection method, system and storage medium. Background Art
[0002] At present, microphones are important input devices for various sound recording systems, such as voice recognition and video calls. The quality of microphones directly affects the effect of sound recording, so microphone performance testing is an indispensable part of the production and manufacturing process. The sound collection performance of a microphone is an important indicator of its quality, including parameters such as sensitivity, maximum signal amplitude, frequency response, signal-to-noise ratio and directivity.
[0003] In one prior art, a microphone detection method uses ambient sound and silence in a test environment to evaluate the performance of a microphone. The detection system calculates an evaluation coefficient by correcting the detection signal. If the evaluation coefficient exceeds the qualified range, the microphone is judged to be unqualified. However, these systems do not effectively analyze the impact of ambient sound on the microphone, and lack in-depth analysis of the detection data, and are unable to quantify the impact of factors such as ambient sound, temperature, and humidity on microphone performance.
[0004] The existing technology fails to effectively quantify the impact of environmental factors (such as ambient sound, temperature and humidity, etc.) on microphone performance, resulting in low detection accuracy. Summary of the invention
[0005] The present invention provides a microphone detection method, system, electronic equipment and storage medium to improve the microphone detection accuracy.
[0006] In a first aspect, in order to solve the above technical problem, the present invention provides a microphone detection method, comprising: Obtaining ambient temperature and humidity data, microphone characteristic data, preset sound velocity data, microphone input signal and detection sound source signal; Calculating air density based on the ambient temperature and humidity data to obtain actual air density; Performing data calculation on the actual air density and the preset sound speed data to obtain a first mapping parameter; Performing a characteristic calculation operation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter; According to the detected sound source signal, sound source quality detection and correction are performed to obtain a corrected sound source distance and a corrected sound pressure level; Performing correction calculation according to the input signal of the microphone and the second mapping parameter, the corrected sound source distance and the corrected sound pressure level to obtain a corrected input signal; The modified input signal and the detected sound source signal are subjected to data analysis to obtain a detection result.
[0007] In an optional implementation, the calculating the air density according to the ambient temperature and humidity data to obtain the actual air density includes: The actual air density is calculated by the following formula: in, is the ambient air pressure, is the gas constant, is the ambient temperature, is the actual air density, is the relative humidity.
[0008] In an optional implementation, performing a data calculation operation on the actual air density and the preset sound speed data to obtain a first mapping parameter includes: The first mapping parameter is calculated by the following formula: in, First mapping, is the preset sound speed, is the actual air density, is the standard air density, is the ambient temperature, is the standard temperature.
[0009] In an optional implementation, performing characteristic calculation on the first mapping parameter and the microphone characteristic data to obtain the second mapping parameter includes: The second mapping parameter is obtained by the following formula: in, is the first mapping parameter, is the speed of sound under standard conditions, is the actual sensitivity of the microphone, is the second mapping parameter, is the standard reference sensitivity.
[0010] In an optional implementation, performing sound source quality detection and correction according to the detected sound source signal to obtain a corrected sound source distance and a corrected sound pressure level includes: According to the detection sound source signal, determining whether the frequency in the detection sound source signal is greater than the maximum allowed frequency, if so, not performing a correction operation; if not, performing a correction operation; The corrected sound source distance is calculated by the following formula: The corrected sound pressure level is calculated by the following formula: in, is the reference distance, To detect the frequency of the sound source, is the distance from the sound source, To correct the distance of the sound source, is the initial sound pressure level, To correct the sound pressure level.
[0011] In an optional implementation, performing correction calculation according to the input signal of the microphone and the second mapping parameter, the corrected sound source distance and the corrected sound pressure level to obtain the corrected input signal includes: The modified input signal is calculated by the following formula: in, To correct the input signal, is the microphone input signal, is the distance from the sound source, is the second mapping parameter, is the speed of sound under standard conditions, To correct the distance of the sound source.
[0012] In an optional implementation manner, performing data analysis on the modified input signal and the detection sound source signal to obtain a detection result includes: Perform error calculation on the corrected input signal and the detected sound source signal to obtain a system error; Compare and distinguish the system error with a preset error threshold to obtain a detection result; Determine whether the system error is greater than the preset error threshold. If so, output the normal detection result; if not, output the abnormal detection result; The system error is calculated by the following formula: in, is the system error, To detect the sound source signal, To correct the input signal.
[0013] In a second aspect, the present invention provides a microphone detection system, comprising: A data acquisition module is used to acquire ambient temperature and humidity data, microphone characteristic data, preset sound speed data, microphone input signal and detection sound source signal; A density calculation module, used to calculate the air density according to the ambient temperature and humidity data to obtain the actual air density; A first calculation module, used for performing a data calculation operation on the actual air density and the preset sound speed data to obtain a first mapping parameter; A second calculation module, used for performing characteristic calculation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter; A sound source correction module, used to perform sound source quality detection and correction according to the detected sound source signal, and obtain a corrected sound source distance and a corrected sound pressure level; a correction calculation module, configured to perform correction calculation according to the input signal of the microphone and the second mapping parameter, the correction sound source distance and the correction sound pressure level, so as to obtain a corrected input signal; The result analysis module is used to perform data analysis on the corrected input signal and the detected sound source signal to obtain a detection result.
[0014] In a third aspect, the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements any one of the above-mentioned microphone detection methods when executing the computer program.
[0015] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the microphone detection methods described above.
[0016] Compared with the prior art, the present invention has the following beneficial effects: the present invention discloses a method for detecting a microphone, comprising obtaining ambient temperature and humidity data, microphone characteristic data, preset sound speed data, microphone input signal and detection sound source signal; performing air density calculation according to the ambient temperature and humidity data to obtain actual air density; performing data calculation on the actual air density and the preset sound speed data to obtain a first mapping parameter; performing characteristic calculation operation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter; performing sound source quality detection and correction according to the detection sound source signal to obtain a corrected sound source distance and a corrected sound pressure level; performing correction calculation according to the microphone input signal and the second mapping parameter, the corrected sound source distance and the corrected sound pressure level to obtain a corrected input signal; performing data analysis on the corrected input signal and the detection sound source signal to obtain a detection result. The present invention can improve detection accuracy by quantifying environmental factors. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a schematic flow chart of a microphone detection method provided by a first embodiment of the present invention; Figure 2 It is a schematic diagram of the structure of a microphone detection system provided by the second embodiment of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] Reference Figure 1 The first embodiment of the present invention provides a method for detecting a microphone, comprising the following steps: S11, obtaining ambient temperature and humidity data, microphone characteristic data, preset sound speed data, microphone input signal and detection sound source signal; S12, calculating the air density according to the ambient temperature and humidity data to obtain the actual air density; S13, performing data calculation on the actual air density and the preset sound speed data to obtain a first mapping parameter; S14, performing a characteristic calculation operation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter; S15, performing sound source quality detection and correction according to the detected sound source signal to obtain a corrected sound source distance and a corrected sound pressure level; S16, performing correction calculation according to the input signal of the microphone and the second mapping parameter, the corrected sound source distance and the corrected sound pressure level to obtain a corrected input signal; S17, performing data analysis on the corrected input signal and the detected sound source signal to obtain a detection result.
[0020] In step S11, environmental temperature and humidity data, microphone characteristic data, preset sound velocity data, microphone input signal and detection sound source signal are obtained.
[0021] In this embodiment, the temperature sensors include thermistors (NTC), thermocouples (Thermocouple), and digital temperature sensors (DS18B20). These devices can measure the ambient temperature in real time and output the corresponding temperature value. Multiple sensors are integrated, and the data is transmitted to the computer through interfaces (RS-232, USB, I2C) for real-time processing and storage. The humidity sensors include capacitive humidity sensors, impedance humidity sensors, and digital humidity sensors (DHT11, DHT22). These sensors can measure the relative humidity in the environment in real time and transmit data through the interface. The device combining the temperature sensor and the humidity sensor can provide real-time ambient temperature and humidity data for detection.
[0022] Through standardized testing in the laboratory, the microphone is measured using professional acoustic measurement equipment (sound level meter, spectrum analyzer, etc.) to obtain microphone characteristic data, or data is extracted from data provided by the microphone manufacturer stored in the computer.
[0023] Preset sound speed data through the sound speed calculation formula =331.3+0.606× Specifically, combined with the above-mentioned ambient temperature and humidity data T = 20 ° C, substitute it into the formula to calculate the preset sound speed =343.42m / s. A standard audio signal is generated by an electronic signal generator (waveform generator). Test signals include sine waves, square waves, white noise, pink noise, etc. These signals are used to test the frequency response and sensitivity of microphones within a specific frequency range. A digital signal processor (computer audio interface card) is used to generate and condition the test signals.
[0024] Use a calibrated audio source (standard speaker or artificial sound source) to generate a signal. These sound sources will output sounds of specific frequency, volume, and waveform according to predetermined standards. Use a signal generator or computer audio software to generate test signals of different frequencies and volumes.
[0025] It should be noted that the ambient temperature refers to the air temperature in a specific environment (laboratory, test site, etc.). In this embodiment, it is measured in degrees Celsius (°C). Temperature directly affects the propagation speed of sound waves in the air, acoustic characteristics, and the performance of electronic equipment. Humidity refers to the content of water vapor in the air. Humidity is expressed as relative humidity (%), that is, the ratio of the actual water vapor content in the air to the maximum water vapor content. Humidity affects the air density and sound speed, and thus affects the working performance of the microphone. Microphone characteristic data refers to various data describing the performance and working characteristics of the microphone (microphone sensitivity and frequency response). Sensitivity is the ability of the microphone to respond to changes in sound pressure, expressed as the ratio between the input sound pressure and the output electrical signal. It measures the efficiency of the microphone in converting sound waves into electrical signals. Frequency response is the ability of the microphone to respond to sound signals at different frequencies. It describes how the microphone processes sound signals of different frequencies, and is represented by a graph with frequency (Hz) and gain (dB) as coordinates. These data help evaluate the working status of the microphone and its ability to adapt to different environmental conditions. The speed of sound refers to the speed at which sound waves propagate in a medium. The speed of sound in air is affected by temperature, humidity, and air pressure. The input signal refers to the sound signal collected by the microphone. Parameters such as the quality, frequency range, and intensity of the input signal will directly affect the detection results of the microphone. The detection sound source signal is a standard sound source signal used for microphone detection. It is an audio signal with known sound pressure level, frequency, and waveform. These signals are used to simulate the sounds in actual use and help measure the performance of microphones in different environments.
[0026] In step S12, the air density is calculated according to the ambient temperature and humidity data to obtain the actual air density, including: The actual air density is calculated by the following formula: in, is the ambient air pressure, is the gas constant, is the ambient temperature, is the actual air density, is the relative humidity.
[0027] It should be noted that the actual air density is the air density under specific environmental conditions, taking into account temperature, humidity and air pressure, and is expressed in kilograms per cubic meter (kg / m³). Ambient air pressure, in Pascals (Pa). It represents the pressure of the atmosphere on a unit area of the ground at a specific place and time. The gas constant, for dry air, has a value of 287 J / (kg·K). This is a physical constant used in the ideal gas state equation to represent the work done by a unit mass of gas under a unit temperature change. Ambient temperature, in Kelvin (K). Kelvin is an absolute temperature unit, equal to degrees Celsius (°C) plus 273.15. Temperature affects the average kinetic energy of gas molecules, which in turn affects density. Relative humidity, a percentage value, represents the ratio of the actual amount of water vapor in the air to the amount of water vapor that the air can hold at that temperature. Relative humidity has an effect on air density because water vapor is lighter than dry air. When relative humidity increases, air density decreases. is the humidity correction factor used to adjust the calculation of air density. In this case, 0.6 is a weighting factor used to convert relative humidity to its effect on air density. This correction factor takes into account the lower density of water vapor molecules relative to dry air molecules.
[0028] In step S13, the actual air density and the preset sound speed data are subjected to data calculation to obtain a first mapping parameter, including: The first mapping parameter is calculated by the following formula: in, First mapping, is the preset sound speed, is the actual air density, is the standard air density, is the ambient temperature, is the standard temperature.
[0029] In a specific embodiment, The speed of sound in air under standard conditions is about 343 m / s. The actual air density is 1.2 kg / m³, the standard air density is 1.225 kg / m³, the ambient temperature is 298 K (25°C), and the standard temperature is 293.15 K. The first mapping parameter is calculated to be 349.3.
[0030] It should be noted that the speed of sound propagation in the air is affected by air density and temperature. The greater the density, the faster the sound speed; the higher the temperature, the faster the sound speed. Therefore, by comparing the actual air density with the standard air density, as well as the ambient temperature with the standard temperature, the first mapping parameter can be calculated, which is used to adjust the sound speed to adapt to the current environmental conditions.
[0031] In step S14, a characteristic calculation operation is performed on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter, including: The second mapping parameter is obtained by the following formula: in, is the first mapping parameter, is the speed of sound under standard conditions, is the actual sensitivity of the microphone, is the second mapping parameter, is the standard reference sensitivity.
[0032] It should be noted that the actual sensitivity of a microphone is the microphone's ability to respond to sound signals at a specific frequency, measured in decibels (dB). The sensitivity of a microphone can be obtained from the specifications provided by the manufacturer or through laboratory testing. It indicates the ability of the microphone to convert sound signals into electrical signals. The standard reference sensitivity is a benchmark value used to compare the sensitivity of different microphones. It is a decibel (dB) value that represents the sensitivity of a standard microphone under the same conditions. This value helps to standardize the performance comparison of different microphones. The speed of sound under standard conditions means that the speed of sound in air is 343 meters per second at 20°C and 1 atmosphere. The second mapping parameter can correct the input signal of the microphone to compensate for the influence of environmental factors and microphone characteristics, so that the microphone detection method can adapt to different environmental conditions, including temperature, humidity, air pressure, and differences in the sensitivity of the microphone itself.
[0033] In step S15, according to the detected sound source signal, sound source quality detection and correction are performed to obtain a corrected sound source distance and a corrected sound pressure level, including: According to the detection sound source signal, determining whether the frequency in the detection sound source signal is greater than the maximum allowed frequency, if so, not performing a correction operation; if not, performing a correction operation; The corrected sound source distance is calculated by the following formula: The corrected sound pressure level is calculated by the following formula: in, is the reference distance, To detect the frequency of the sound source, is the distance from the sound source, To correct the distance of the sound source, is the initial sound pressure level, To correct the sound pressure level.
[0034] In a specific embodiment, first, it is necessary to determine whether the frequency in the detected sound source signal is greater than the maximum allowable frequency. If the frequency exceeds the maximum allowable value, no correction operation is performed because the signal is distorted or inaccurate. If the frequency is within the allowable range, the correction operation continues. For microphones within the audio range, the frequency response curve is an important basis for judging the quality of microphone characteristics, covering a frequency range of 20Hz to 20kHz. If the frequency in the detected sound source signal is greater than the maximum allowable frequency of the microphone, then the correction operation cannot obtain accurate results. Therefore, the setting of the maximum allowable frequency should be based on the specifications and intended applications of the microphone. For this case, 20kHz is the maximum allowable frequency value. If the application scenario requires the detection of higher frequency sounds, a specially designed microphone is required, and the maximum allowable frequency should be increased accordingly.
[0035] It should be noted that the calibrated sound source distance refers to the distance at which the sound source should be placed under standard conditions in order to produce the same sound pressure level at the microphone. The initial sound pressure level is the sound pressure level measured at the reference distance, in decibels (dB), and is a benchmark value. The calibrated sound pressure level is the sound pressure level after taking into account the influence of the sound source distance and frequency. It represents the sound pressure level at the actual sound source distance after taking into account the sound attenuation with distance and the influence of frequency. The reference distance is a standard distance, in this case 1 meter, used for the benchmark measurement of the sound pressure level. All sound pressure level calculations are performed relative to this distance. The detection source frequency is the frequency of the sound source signal, in Hertz (Hz). Frequency has an effect on the propagation and attenuation of sound, especially in different media. The sound source distance is the actual distance from the sound source to the microphone. When sound propagates in the air, it attenuates as the distance increases. This parameter is used to calculate the attenuation of sound during propagation. This logarithmic term is used to calculate the attenuation of sound as it propagates through the air. It represents the amount by which the intensity of a sound decreases as the distance increases. The 20-fold factor is used to convert the logarithmic term to decibels (dB). In acoustics, the attenuation of sound intensity is expressed as a 20-fold logarithmic value because the human ear's perception of sound intensity increases logarithmically.
[0036] In step S16, a correction calculation is performed according to the input signal of the microphone and the second mapping parameter, the corrected sound source distance and the corrected sound pressure level to obtain a corrected input signal, including: The modified input signal is calculated by the following formula: in, To correct the input signal, is the microphone input signal, is the distance from the sound source, is the second mapping parameter, is the speed of sound under standard conditions, To correct the distance of the sound source.
[0037] It should be noted that the microphone input signal is the sound signal actually received by the microphone without any correction. The corrected input signal is the signal adjusted during the microphone detection process to compensate for the attenuation of sound propagation and the influence of environmental factors. When sound propagates in the air, it will attenuate as the distance increases. This ratio can correct for changes in sound pressure level due to distance. This ratio can correct the effect of changes in environmental conditions (temperature, humidity) and differences in microphone characteristics on the speed of sound. Correcting the input signal makes the microphone's detection results more accurate and less affected by environmental changes and device differences.
[0038] In step S17, the modified input signal and the detected sound source signal are subjected to data analysis to obtain a detection result, including: Perform error calculation on the corrected input signal and the detected sound source signal to obtain a system error; Compare and distinguish the system error with a preset error threshold to obtain a detection result; Determine whether the system error is greater than the preset error threshold. If so, output the normal detection result; if not, output the abnormal detection result; The system error is calculated by the following formula: in, is the system error, To detect the sound source signal, To correct the input signal.
[0039] In a specific embodiment, the calculated system error is first compared with a preset error threshold. ≤ the preset error threshold, then the output detection result is normal. This means that the performance of the microphone meets expectations and the error is within an acceptable range. > If the error threshold is exceeded, the output will detect abnormal results. This indicates that there is a problem with the performance of the microphone and the error is beyond the acceptable range.
[0040] It should be noted that the preset error threshold includes sensitivity error: the deviation of signal sensitivity, which reflects the measurement accuracy of the microphone to the sound pressure level; frequency error: frequency response deviation, which reflects the response accuracy of the microphone to sounds of different frequencies.
[0041] Specifically, the sensitivity error threshold = ±2dB, and the frequency response error threshold = ±3dB. The calculated system frequency response error is -2.5dB, and the system sensitivity error is -1.2dB. The system frequency response error is within the frequency response error threshold, and the detection is normal; the system sensitivity error is within the sensitivity error threshold, and the detection is normal.
[0042] The following describes the working process of the present invention using a common scenario as an example. Figure 2 , which is Figure 1 Schematic diagram of the working scenario of the method.
[0043] As the core place for audio production, the recording studio has extremely high performance requirements for microphones. The microphones in the recording studio need to accurately capture the human voice, the timbre of musical instruments and the ambient sound of the scene, and are required to maintain high sensitivity and consistency under different temperature, humidity and acoustic conditions. The microphone needs to have extremely high sensitivity to clearly capture the detailed sounds of the human voice and musical instruments. For example, the faint vibrato of the singer, the natural overtones of the guitar, and even the subtle granularity of the drum sound all require the microphone to accurately pick up. Different recording scenes have different requirements for the frequency response of the microphone. For example, the human voice is usually concentrated in 100Hz to 12kHz, while the bass needs to be able to pick up sound as low as 20 Hz. High-quality microphones need to maintain a consistent response throughout the entire frequency range. During the recording process, any slight background noise or microphone distortion will reduce the quality of the recording. The studio microphone needs to have extremely low background noise and be able to remain distortion-free under high sound pressure conditions. Therefore, before the microphone is officially used in the recording studio, its performance must be strictly tested and calibrated to ensure that it can meet the high-standard recording requirements. Professional recording studios serve many fields such as music production, film dubbing, broadcasting and sound design. In these areas, the quality of sound directly affects the sensory experience of the final product. Therefore, recording studios must ensure that their audio recording equipment, especially microphones, are in optimal working condition. However, environmental factors such as changes in temperature, humidity and air pressure, as well as differences in the characteristics of the microphones themselves, can affect the quality of recordings.
[0044] Many detection methods fail to take into account environmental parameters such as temperature, humidity, and air density, resulting in inaccurate test results. For example, in a high humidity environment, the frequency response of a condenser microphone will deviate, and these deviations are not captured by the detection system. Traditional detection methods require repeated adjustments to the noise source and microphone gain value, which is cumbersome and time-consuming. Traditional detection methods only provide simple measurement results, and cannot correct the characteristics of the microphone based on the test data, nor can they determine whether the equipment meets the high standards required by the recording studio.
[0045] The detection method of the present invention can perform high-precision detection of the core performance of the microphone, such as sensitivity, frequency response, signal-to-noise ratio, etc., and correct the detection data in combination with the recording studio environmental parameters (temperature, humidity, air density, etc.) to improve the reliability of the detection results.
[0046] First, install high-precision temperature and humidity sensors in the recording studio. The sensors are connected to the recording studio's control system wirelessly or wired to monitor and record the ambient temperature and humidity in real time. Obtain the microphone's characteristic data, such as sensitivity, frequency response, etc., from the microphone's specification sheet or technical manual. Enter this data into the recording studio's computer system for subsequent calculations and analysis. Use physical formulas to calculate the preset sound speed based on the ambient temperature in the recording studio. You can use the formula =331.3+0.606× Calculate the speed of sound. During the recording process, use a high-quality audio interface card to record the input signal from the microphone. Make sure the audio interface card is connected to the computer system so that the audio data can be captured and stored in real time. Use a standard speaker to play a test tone of known frequency and sound pressure level, such as a 1kHz sine wave. Measure and record the sound pressure level of the test tone with an audio analyzer to ensure the stability and accuracy of the test tone.
[0047] Assuming the temperature sensor reading is 22°C and the humidity sensor reading is 45%, the ambient air pressure can be obtained through a barometer. The standard atmospheric pressure at sea level is 101325 Pa. For dry air, the gas constant is approximately 287 J / (kg·K). The actual air density (1.35 kg / m 3 ). Assuming the preset sound speed is 343 m / s and the standard air density is 1.225 kg / m³, the first mapping parameter is calculated to be 346.3 using the first mapping parameter formula. Then the actual sensitivity (−18 dB) and the standard reference sensitivity (−20 dB) of the microphone are read from the computer, and the second mapping parameter is calculated to be 0.9081 using the second mapping parameter formula.
[0048] Use a standard speaker to play a test tone of known frequency and sound pressure level, such as a 1kHz sine wave. Check whether the frequency of the test tone is within the operating frequency range of the microphone. For example, if the frequency exceeds 20kHz, a special microphone is required. It is necessary to determine whether the frequency in the test sound source signal is greater than the maximum allowed frequency. If the frequency exceeds the maximum allowed value, no correction operation is performed because the signal is distorted or inaccurate. If the frequency is within the allowed range, continue with the correction operation. For microphones in the audio range, the frequency response curve is an important basis for judging the quality of the microphone characteristics, covering a frequency range of 20Hz to 20kHz. If the frequency is within the allowed range, use the correction formula to calculate the correction sound source distance.
[0049] During the recording process, the microphone input signal is captured in real time through a high-quality audio interface card, and the corrected input signal is calculated using the correction calculation formula. The calculated corrected input signal is recorded in the control system of the recording studio for subsequent data analysis and quality control.
[0050] According to the industry standard or the quality requirements of the recording studio, a preset error threshold is set. For example, the preset error threshold is set to ±1dB. Compare the calculated system error with the preset error threshold. Secondly, if the system error is ≤ the preset error threshold (±1dB), then the normal detection result is output. This means that the performance of the microphone is as expected and the error is within the acceptable range. If the system error is greater than the preset error threshold (±1dB), then the abnormal detection result is output. This indicates that there is a problem with the performance of the microphone and the error is beyond the acceptable range. If the test result is normal, continue recording. If the test result is abnormal, take appropriate measures according to the specific situation, such as recalibrating the microphone, replacing the microphone, or adjusting the recording settings.
[0051] In summary, the present invention discloses a method for detecting a microphone, including obtaining environmental temperature and humidity data, microphone characteristic data, preset sound speed data, microphone input signal and detection sound source signal; performing air density calculation according to the environmental temperature and humidity data to obtain actual air density; performing data calculation on the actual air density and the preset sound speed data to obtain a first mapping parameter; performing characteristic calculation operation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter; performing sound source quality detection and correction according to the detection sound source signal to obtain a corrected sound source distance and a corrected sound pressure level; performing correction calculation according to the microphone input signal and the second mapping parameter, the corrected sound source distance and the corrected sound pressure level to obtain a corrected input signal; performing data analysis on the corrected input signal and the detection sound source signal to obtain a detection result. The present invention can improve detection accuracy by quantifying environmental factors.
[0052] Reference Figure 2 A second embodiment of the present invention provides a microphone detection system, comprising: A data acquisition module is used to acquire ambient temperature and humidity data, microphone characteristic data, preset sound speed data, microphone input signal and detection sound source signal; A density calculation module, used to calculate the air density according to the ambient temperature and humidity data to obtain the actual air density; A first calculation module, used for performing a data calculation operation on the actual air density and the preset sound speed data to obtain a first mapping parameter; A second calculation module, used for performing characteristic calculation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter; A sound source correction module, used to perform sound source quality detection and correction according to the detected sound source signal, and obtain a corrected sound source distance and a corrected sound pressure level; a correction calculation module, configured to perform correction calculation according to the input signal of the microphone and the second mapping parameter, the correction sound source distance and the correction sound pressure level, so as to obtain a corrected input signal; The result analysis module is used to perform data analysis on the corrected input signal and the detected sound source signal to obtain a detection result.
[0053] Preferably, the density calculation module is specifically used to calculate the air density according to the ambient temperature and humidity data to obtain the actual air density, including: The actual air density is calculated by the following formula: in, is the ambient air pressure, is the gas constant, is the ambient temperature, is the actual air density, is the relative humidity.
[0054] Preferably, the first calculation module is specifically used to perform a data calculation operation on the actual air density and the preset sound speed data to obtain a first mapping parameter, including: The first mapping parameter is calculated by the following formula: in, First mapping, is the preset sound speed, is the actual air density, is the standard air density, is the ambient temperature, is the standard temperature.
[0055] Preferably, the second calculation module is specifically used to perform characteristic calculation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter, including: The second mapping parameter is obtained by the following formula: in, is the first mapping parameter, is the speed of sound under standard conditions, is the actual sensitivity of the microphone, is the second mapping parameter, is the standard reference sensitivity.
[0056] Preferably, the sound source correction module is specifically used to perform sound source quality detection and correction according to the detected sound source signal to obtain a corrected sound source distance and a corrected sound pressure level, including: According to the detection sound source signal, determining whether the frequency in the detection sound source signal is greater than the maximum allowed frequency, if so, not performing a correction operation; if not, performing a correction operation; The corrected sound source distance is calculated by the following formula: The corrected sound pressure level is calculated by the following formula: in, is the reference distance, To detect the frequency of the sound source, is the distance from the sound source, To correct the distance of the sound source, is the initial sound pressure level, To correct the sound pressure level.
[0057] Preferably, the correction calculation module is specifically used to perform correction calculation according to the input signal of the microphone and the second mapping parameter, the correction sound source distance and the correction sound pressure level to obtain the corrected input signal, including: The modified input signal is calculated by the following formula: in, To correct the input signal, is the microphone input signal, is the distance from the sound source, is the second mapping parameter, is the speed of sound under standard conditions, To correct the distance of the sound source.
[0058] Preferably, the result analysis module is specifically used to perform data analysis on the corrected input signal and the detected sound source signal to obtain a detection result, including: Perform error calculation on the corrected input signal and the detected sound source signal to obtain a system error; The system error is compared with a preset error threshold to obtain a detection result.
[0059] Determine whether the system error is greater than the preset error threshold. If so, output the normal detection result; if not, output the abnormal detection result.
[0060] The system error is calculated by the following formula: in, is the system error, To detect the sound source signal, To correct the input signal.
[0061] It should be noted that a microphone detection system provided in an embodiment of the present invention is used to execute all process steps of a microphone detection method in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they will not be described in detail.
[0062] The embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a data acquisition program. When the processor executes the computer program, the steps in the above-mentioned microphone detection method embodiments are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of each module / unit in the above-mentioned system embodiments are realized, such as the data acquisition module.
[0063] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.
[0064] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or may combine certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0065] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.
[0066] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0067] Wherein, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or system capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0068] It should be noted that the system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the system embodiment provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0069] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for detecting a microphone, characterized in that: Executed by a computer, including: Obtaining ambient temperature and humidity data, microphone characteristic data, preset sound velocity data, microphone input signal and detection sound source signal; Calculating air density based on the ambient temperature and humidity data to obtain actual air density; Performing data calculation on the actual air density and the preset sound speed data to obtain a first mapping parameter; Performing a characteristic calculation operation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter; According to the detected sound source signal, sound source quality detection and correction are performed to obtain a corrected sound source distance and a corrected sound pressure level; Performing correction calculation according to the input signal of the microphone and the second mapping parameter, the corrected sound source distance and the corrected sound pressure level to obtain a corrected input signal; The modified input signal and the detected sound source signal are subjected to data analysis to obtain a detection result.
2. The method for detecting a microphone according to claim 1, characterized in that: The step of calculating the air density according to the ambient temperature and humidity data to obtain the actual air density includes: The actual air density is calculated by the following formula: in, is the ambient air pressure, is the gas constant, is the ambient temperature, is the actual air density, is the relative humidity.
3. The method for detecting a microphone according to claim 1, characterized in that: The performing a data calculation operation on the actual air density and the preset sound speed data to obtain a first mapping parameter includes: The first mapping parameter is calculated by the following formula: in, First mapping, is the preset sound speed, is the actual air density, is the standard air density, is the ambient temperature, is the standard temperature.
4. The method for detecting a microphone according to claim 1, characterized in that: The performing characteristic calculation on the first mapping parameter and the microphone characteristic data to obtain the second mapping parameter includes: The second mapping parameter is obtained by the following formula: in, is the first mapping parameter, is the speed of sound under standard conditions, is the actual sensitivity of the microphone, is the second mapping parameter, is the standard reference sensitivity.
5. The method for detecting a microphone according to claim 1, characterized in that: The method of performing sound source quality detection and correction according to the detected sound source signal to obtain a corrected sound source distance and a corrected sound pressure level includes: According to the detection sound source signal, determining whether the frequency in the detection sound source signal is greater than the maximum allowed frequency, if so, not performing a correction operation; if not, performing a correction operation; The corrected sound source distance is calculated by the following formula: The corrected sound pressure level is calculated by the following formula: in, is the reference distance, To detect the frequency of the sound source, is the distance from the sound source, To correct the distance of the sound source, is the initial sound pressure level, To correct the sound pressure level.
6. The method for detecting a microphone according to claim 1, characterized in that: The performing correction calculation according to the input signal of the microphone and the second mapping parameter, the corrected sound source distance and the corrected sound pressure level to obtain the corrected input signal includes: The modified input signal is calculated by the following formula: in, To correct the input signal, is the microphone input signal, is the distance from the sound source, is the second mapping parameter, is the speed of sound under standard conditions, To correct the distance of the sound source.
7. The method for detecting a microphone according to claim 1, characterized in that: The step of performing data analysis on the modified input signal and the detected sound source signal to obtain a detection result includes: Perform error calculation on the corrected input signal and the detected sound source signal to obtain a system error; Compare and distinguish the system error with a preset error threshold to obtain a detection result; Determine whether the system error is greater than the preset error threshold. If so, output the normal detection result; if not, output the abnormal detection result; The system error is calculated by the following formula: in, is the system error, To detect the sound source signal, To correct the input signal.
8. A microphone detection system, characterized in that: include: A data acquisition module is used to acquire ambient temperature and humidity data, microphone characteristic data, preset sound speed data, microphone input signal and detection sound source signal; A density calculation module, used to calculate the air density according to the ambient temperature and humidity data to obtain the actual air density; A first calculation module, used for performing a data calculation operation on the actual air density and the preset sound speed data to obtain a first mapping parameter; A second calculation module, used for performing characteristic calculation on the first mapping parameter and the microphone characteristic data to obtain a second mapping parameter; A sound source correction module, used to perform sound source quality detection and correction according to the detected sound source signal, and obtain a corrected sound source distance and a corrected sound pressure level; a correction calculation module, configured to perform correction calculation according to the input signal of the microphone and the second mapping parameter, the correction sound source distance and the correction sound pressure level, so as to obtain a corrected input signal; The result analysis module is used to perform data analysis on the corrected input signal and the detected sound source signal to obtain a detection result.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the microphone detection method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the microphone detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Microphone test procedure
CN105025427A
Sound velocity correction device
CN105307063A
Microphone high-temperature calibration system based on optical method
CN110290454A
Sound calibrator
JP2014240761A
System for transducer compensation based on ambient conditions
US7092536B1
Cited By
Sound signal generating device frequency response adjusting system and method based on multi-sensing data acquisition
CN120378801A
Frequency response adjustment system and method for acoustic signal generating device based on multi-sensor data acquisition
CN120378801B
Noise deafness occupational disease risk detection system and method
CN120878205A