Microphone-based temperature drift processing method, system and device, medium and product
By monitoring the microphone ambient temperature in real time and selecting the appropriate calibration curve for compensation, the problem of microphone frequency drifting due to temperature changes is solved, and the accuracy and consistency of the test results are achieved.
Patent Information
- Application Number
- CN202510011934.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-05-02
AI Technical Summary
In an audio test system, the frequency response of the microphone is prone to drift due to changes in ambient temperature, resulting in inaccurate test results.
By monitoring the temperature of the microphone environment in real time, selecting a suitable calibration curve for temperature drift compensation for frequency response test results. The calibration curve characterizes the input voltage required by the pronunciation device to generate a constant sound pressure at different frequency points.
The temperature drift compensation for the microphone frequency response test results is achieved to ensure the consistency and accuracy of the test results at different ambient temperatures.
Smart Images

Figure CN119922441A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of microphone technology, and in particular to a method, system, device, medium and product for processing temperature drift based on a microphone. Background Art
[0002] In audio test systems, especially in microphone test environments for speakers and virtual reality (VR) devices, there are strict technical requirements for sound sources that can provide stable and high sound pressure excitation signals. The ideal test sound source should be able to generate a sufficiently strong and stable sound pressure level over the entire frequency response range, maintain signal consistency, and not be affected by environmental changes such as temperature.
[0003] At present, homemade speakers are used instead of artificial mouths for microphone testing of audio test system products. However, this method has certain defects. In actual use, due to the large pronunciation excitation surface, this type of speaker is prone to more mutual interference with products with large receiving areas. In addition, the microphone test frequency response signal (such as high-frequency signal) is prone to drift with temperature changes (i.e. temperature drift), resulting in inaccurate test results for the microphone test.
[0004] Therefore, the problem is how to avoid the frequency response of the microphone from drifting due to changes in ambient temperature.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of this application is to provide a microphone-based temperature drift processing method, system, device, medium and product, aiming to solve the technical problem of how to avoid the drift of the frequency response of the microphone due to temperature changes in the ambient temperature.
[0007] To achieve the above object, the present application proposes a method for processing temperature drift based on a microphone, and the method for processing temperature drift based on a microphone comprises the following steps:
[0008] Real-time monitoring of the actual ambient temperature of the environment where the microphone to be tested is located;
[0009] Selecting a target calibration curve from a plurality of preset calibration curves according to the actual ambient temperature, wherein the calibration curve is used to characterize the input voltage required for the sound generating device to generate a constant sound pressure at different frequencies;
[0010] A temperature drift compensation process is performed on the frequency response test result of the microphone according to the target calibration curve.
[0011] Optionally, the step of selecting a target calibration curve from a plurality of preset calibration curves according to the actual ambient temperature includes:
[0012] Matching the actual ambient temperature with at least one preset temperature level to determine a matching temperature level that matches the actual ambient temperature, wherein different temperature levels correspond to different temperature ranges;
[0013] According to the mapping relationship between the preset temperature level and the calibration curve, a calibration curve corresponding to the matching temperature level is determined as a target calibration curve from among the preset multiple calibration curves.
[0014] Optionally, the step of performing temperature drift compensation processing on the frequency response test result of the microphone according to the target calibration curve includes:
[0015] Determining the input voltage required to produce a constant sound pressure at different frequency points in the target calibration curve;
[0016] Controlling the sound producing device to output a sound signal with a constant sound pressure according to the input voltage;
[0017] Determine an audio file recorded after the microphone is excited by a sound signal with a constant sound pressure, and analyze the frequency response test results of the audio file to determine whether it meets the expected requirements;
[0018] If the expected requirements are met, it is determined that the temperature drift compensation of the frequency response test result of the microphone has been completed.
[0019] Optionally, the microphone-based temperature drift processing method further includes:
[0020] The sound generating device is calibrated using a standard sound source in a preset standard environment, and the input voltage of the sound signal that produces a constant sound pressure at different frequencies is recorded to form a calibration curve;
[0021] Determine a temperature to be measured in at least one preset temperature level, and update the temperature in the standard environment according to the temperature to be measured. According to the updated standard environment, perform the step of calibrating the sound device using a standard sound source in the preset standard environment to obtain a calibration curve corresponding to each temperature level.
[0022] In addition, to achieve the above-mentioned purpose, the present application also proposes a temperature drift processing system based on a microphone, the temperature drift processing system based on a microphone comprises a microphone to be tested, an industrial computer connected to the microphone, and a temperature sensor connected to the industrial computer;
[0023] The microphone and the temperature sensor are in the same product environment;
[0024] The temperature sensor is used to monitor the actual ambient temperature of the environment where the microphone is located in real time;
[0025] The industrial computer is used to select a target calibration curve from a plurality of preset calibration curves according to the actual ambient temperature, and perform temperature drift compensation processing on the frequency response test result of the microphone according to the target calibration curve, wherein the calibration curve is used to characterize the input voltage required for the sound producing device to generate a constant sound pressure at different frequency points.
[0026] Optionally, the temperature sensor is a platinum resistance temperature sensor.
[0027] Optionally, the microphone-based temperature drift processing system further includes a sound card connected to the industrial computer, and a sound producing device connected to the sound card;
[0028] The industrial computer is used to determine the input voltage required to generate a constant sound pressure at different frequency points in the target calibration curve, and control the sound card to output a frequency sweep signal according to the input voltage, and control the sound generating device to convert the frequency sweep signal into a sound signal with a constant sound pressure for output;
[0029] The microphone is used to collect the sound signal to obtain an audio file recorded after the microphone is stimulated by the sound signal with constant sound pressure;
[0030] The industrial computer is used to analyze the frequency response test result of the audio file to determine whether it meets the expected requirements. If it meets the expected requirements, it is determined that the temperature drift compensation of the frequency response test result of the microphone has been completed.
[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic device, which includes: a microphone-based temperature drift processing system as described above, a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is configured to implement the steps of the microphone-based temperature drift processing method as described above.
[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the microphone-based temperature drift processing method as described above are implemented.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the microphone-based temperature drift processing method as described above are implemented.
[0034] In the present application, the actual ambient temperature of the environment in which the microphone to be tested is located is monitored in real time, and a target calibration curve is selected from a plurality of preset calibration curves according to the actual ambient temperature, and then the temperature drift compensation processing of the frequency response test result of the microphone is performed according to the target calibration curve. And since the calibration curve is used to characterize the input voltage required for the sound device to produce a constant sound pressure at different frequency points. Therefore, when the temperature drift compensation processing of the frequency response test result of the microphone is performed through the target calibration curve, the corresponding input voltage can be determined by the target calibration curve to control the sound of the sound device to perform the temperature drift compensation processing of the frequency response test result of the microphone, so that the temperature drift of the frequency response test result of the microphone can be controlled. And since the determination of the target calibration curve is closely related to the actual ambient temperature of the environment in which the microphone is located, when the actual ambient temperature changes, the target calibration curve will also change accordingly, so that it can be realized that different calibration curves are used to perform temperature drift compensation processing of the frequency response test result of the microphone at different ambient temperatures, so that the phenomenon of the frequency response of the microphone drifting due to the temperature change of the ambient temperature can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 A schematic flow chart of a first embodiment of a method for processing temperature drift of a microphone according to the present application;
[0038] Figure 2 This is a schematic diagram of a scenario in which a temperature sensor is set in the first embodiment of the microphone-based temperature drift processing method of the present application;
[0039] Figure 3 This is a schematic diagram of a scene of real-time ambient temperature collected by a temperature sensor in the first embodiment of the microphone-based temperature drift processing method of the present application;
[0040] Figure 4 A schematic diagram of a calibration curve in the first embodiment of the microphone-based temperature drift processing method of the present application;
[0041] Figure 5 A schematic diagram of the system architecture of the microphone-based temperature drift processing system of the present application;
[0042] Figure 6 It is another system architecture schematic diagram of the microphone-based temperature drift processing system of the present application;
[0043] Figure 7 Schematic diagram of the device structure of the hardware operating environment involved in the microphone-based temperature drift processing method in the embodiment of the present application.
[0044] Description of Figure Numbers:
[0045] 100, microphone; 200, industrial computer; 300, temperature sensor; 400, sound card; 500, pronunciation device.
[0046] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0048] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0049] Optionally, in speaker and VR projects, homemade speakers can be used instead of artificial mouths for microphone testing of audio test system products. They can generate higher and more stable sound pressure excitation signals at the low frequency end, and the price is only one-tenth of that of artificial mouths. However, in actual use, it is found that speakers with larger pronunciation excitation surfaces are prone to more mutual interference with products with large receiving areas, and the high-frequency end of the microphone test frequency response is prone to drift with changes in test temperature. Solutions include fine temperature control of the test system and "reference microphone monitoring compensation". In the context of limited workshop temperature control accuracy, the reference microphone monitoring solution is expensive, not easy to import and use, and greatly increases the difficulty of designing audio test tooling. That is, for factory environments, the defect of the microphone's frequency response drifting due to changes in ambient temperature occurs.
[0050] That is, the workshop temperature precision control solution and the healthy standard microphone correction solution can be used for processing. However, these two solutions have certain defects. The workshop temperature precision control solution has a slow response speed and high continuous investment, while the monitoring standard microphone correction solution has a high cost, a large one-time investment, and increases the complexity of tooling.
[0051] Based on this, the embodiment of the present application provides a temperature drift processing method based on a microphone to avoid the phenomenon that the frequency response of the microphone is offset due to the temperature change of the ambient temperature. That is, the temperature offset phenomenon of the frequency response of the factory audio test microphone can be solved. Compared with the method of fine control and monitoring compensation of the overall temperature of the workshop, the one-time investment cost is low, there is no high continuous investment, and the flexibility is high, and the control accuracy can be determined according to the actual needs of different project scenarios. And relative to the precise temperature control solution of the workshop, the temperature drift processing method based on the microphone in this embodiment has a low one-time investment, and the scope of influence is limited to the current workstation, and there is no subsequent continuous investment. Compared with the monitoring standard microphone correction solution, the temperature drift processing method based on the microphone in this embodiment not only has a low investment, but also almost no additional tooling design costs.
[0052] Based on this, the embodiment of the present application provides a method for processing temperature drift based on a microphone, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a method for processing temperature drift of a microphone according to the present application.
[0053] In this embodiment, the microphone-based temperature drift processing method includes steps S10 to S30.
[0054] Step S10, real-time monitoring of the actual ambient temperature of the environment in which the microphone to be tested is located;
[0055] Optionally, the temperature drift processing method based on a microphone in this embodiment can be applied to a temperature drift processing system based on a microphone. Optionally, the temperature drift processing system based on a microphone can be arranged in an electronic device.
[0056] Optionally, a product to be tested including the microphone to be tested may be determined. A temperature sensor may be used to monitor the temperature of the environment in which the microphone of the product to be tested is located in real time, and the temperature is used as the real-time ambient temperature. For example, when the microphone to be tested is inside a soundproof box, the ambient temperature inside the soundproof box is collected by a temperature sensor (such as a platinum resistance temperature sensor) to obtain the actual ambient temperature.
[0057] Optionally, the temperature sensor and the microphone may be arranged in the same device environment. When the microphone is tested, the ambient temperature of the environment in which the microphone is located may be monitored in real time through the temperature sensor.
[0058] Optionally, when testing a product to be tested that includes a microphone to be tested, different scene environments may be simulated, and the microphone to be tested in the product to be tested may be tested in different scene environments to determine a microphone that meets the requirements. Optionally, when simulating different scene environments, environmental parameters may be adjusted for different scene environments, such as adjusting the ambient temperature and light intensity in the scene environment. The scene environment may include a factory environment, a home environment, a supermarket environment, etc.
[0059] Optionally, when testing the microphone to be tested, the temperature of the environment in which the microphone is located can be adjusted, such as to 5 degrees, 15 degrees, 25 degrees, etc. At this time, the actual ambient temperature detected by the temperature sensor will also be updated in real time, such as to 5 degrees, 15 degrees, 25 degrees, etc.
[0060] For example, Figure 2 As shown, the temperature sensor in this embodiment can be flexibly set according to user needs, and the actual ambient temperature of the environment where the microphone is located can be collected by the set temperature sensor, and the actual ambient temperature of the environment where the microphone is located can be collected by Figure 3 The display instrument shown displays, for example, the actual ambient temperature displayed is 23.9 degrees.
[0061] Step S20, selecting a target calibration curve from a plurality of preset calibration curves according to the actual ambient temperature;
[0062] It should be noted that the calibration curve is used to characterize the input voltage required for the sound-generating device to produce a constant sound pressure at different frequencies.
[0063] Optionally, the calibration curve refers to the correspondence between the sound pressure (output) and voltage (input) of the electroacoustic conversion element used in the test equipment at different operating frequencies. The calibration curve corresponds to the voltage value required for the sound-generating device to produce the same sound compression at different frequencies (i.e., frequency points). The calibration process involves characterizing the application of the sound source and microphone, and through standard transmission, making the sound level of the test equipment meet industry standards. For example, Figure 4 The calibration curve shown. Optionally, the test device can be a sound device in a temperature drift processing system based on a microphone. Optionally, the sound device can be a speaker, or other device or terminal with a sound function.
[0064] Optionally, the calibration curve is obtained by conducting a simulation experiment test in advance under a standard environment, and different calibration curves correspond to different temperatures.
[0065] Optionally, after the actual ambient temperature of the environment where the microphone is located is collected by the temperature sensor, the actual ambient temperature collected by the temperature sensor can be sent to the industrial computer through the temperature controller.
[0066] Optionally, in the industrial computer, a calibration curve corresponding to the actual ambient temperature may be selected from a plurality of calibration curves stored in advance according to the actual ambient temperature, and the selected calibration curve may be used as the target calibration curve.
[0067] Optionally, by calling the calibration curve at the corresponding temperature according to the actual ambient temperature, it can be ensured that the sound pressure curve of the sound-producing device at the calibration position remains basically unchanged, thereby ensuring that the FR drift of the microphone of the tested product can be controlled.
[0068] Step S30 , performing temperature drift compensation processing on the frequency response test result of the microphone according to the target calibration curve.
[0069] Optionally, after obtaining the target calibration curve corresponding to the current actual ambient temperature, the temperature drift compensation processing of the microphone frequency response test results can be performed using the target calibration curve to achieve controllable temperature drift of the product microphone frequency response test results in the entire frequency band.
[0070] Optionally, the target calibration curve can be read by computer software (or software in an industrial computer) to determine the input voltage for controlling the sound card to play, and the sound card and the sound device connected to the output end of the sound card can be controlled according to the input voltage to perform sound processing, so that the sound device generates a sound signal with constant sound pressure, and the microphone can be excited by the swept frequency signal with constant sound pressure to excite the corresponding audio file, and the microphone sound collection is determined to be qualified by analyzing the volume of the audio file. If qualified, it is determined that the temperature drift compensation processing of the frequency response test result of the microphone has been completed. If unqualified, the test experiment is repeated. For example, the ambient temperature is changed, or the positional relationship between the sound device and the microphone is changed. Then the above steps S10-S30 are re-executed until the temperature drift compensation processing of the frequency response test result of the microphone is realized.
[0071] Optionally, in one scenario, a platinum resistance temperature sensor can be used to precisely monitor the actual ambient temperature of the environment where the microphone to be tested is located, and different calibration curves can be retrieved in conjunction with the corresponding software in the industrial computer, that is, the actual ambient temperature is different, and the retrieved calibration curve can be different. This allows the microphone frequency response test to have a controllable drift over a wide range of temperature changes.
[0072] Optionally, for the temperature drift of the microphone of a speaker or VR product, a temperature sensor can be used to monitor the internal ambient temperature of the soundproof box where the product microphone (i.e., the microphone to be tested) is tested in real time. And according to the actual accuracy requirements, the ambient temperature of the microphone test is divided into gears with controllable temperature drift (i.e., temperature gears) for use in the test program deployment. The software in the industrial computer retrieves the actual ambient temperature data from the temperature sensor in real time. And according to the number of actual ambient temperatures, the corresponding target calibration curve is called, and the temperature drift compensation processing of the frequency response test results of the microphone is performed according to the target calibration curve. Thereby achieving controllable temperature drift of the product microphone frequency response test results in the full frequency band.
[0073] In this embodiment, the actual ambient temperature of the environment in which the microphone to be tested is located is monitored in real time, and a target calibration curve is selected from a plurality of preset calibration curves according to the actual ambient temperature, and then the temperature drift compensation processing of the frequency response test result of the microphone is performed according to the target calibration curve. And since the calibration curve is used to characterize the input voltage required for the sound device to generate a constant sound pressure at different frequency points. Therefore, when the temperature drift compensation processing of the frequency response test result of the microphone is performed by the target calibration curve, the corresponding input voltage can be determined by the target calibration curve to control the sound device to make a sound, so as to perform the temperature drift compensation processing of the frequency response test result of the microphone, and then the temperature drift of the frequency response test result of the microphone can be controlled. And since the determination of the target calibration curve is closely related to the actual ambient temperature of the environment in which the microphone is located, when the actual ambient temperature changes, the target calibration curve will also change accordingly, and then it can be realized that different calibration curves are used to perform the temperature drift compensation processing of the frequency response test result of the microphone at different ambient temperatures, and then it can be realized that the phenomenon of the frequency response of the microphone drifting due to the temperature change of the ambient temperature can be avoided.
[0074] Based on the first embodiment of the present application, a second embodiment of the present application is proposed. In the second embodiment of the present application, the same or similar contents as those in the above embodiment can be referred to the above description and will not be described in detail later. On this basis, in step S10, the step of selecting a target calibration curve from a plurality of preset calibration curves according to the actual ambient temperature includes steps a10-a30.
[0075] Step a10, matching the actual ambient temperature with at least one preset temperature level, and determining a matching temperature level that matches the actual ambient temperature;
[0076] It should be noted that different temperature levels correspond to different temperature ranges.
[0077] Optionally, different temperature levels may be set in advance, and the temperature intervals corresponding to each temperature level are different.
[0078] Optionally, if the test is conducted in a factory environment, and the actual ambient temperature is acquired by a temperature sensor in the factory environment, different temperature ranges can be determined based on the extreme temperature (including extreme high temperature and extreme low temperature) of the workshop where the product to be tested (such as the machine to be tested) is located, and the temperature response sensitivity of the test machine. For example, if the acceptable test variation range of the machine to be tested is half of the extreme temperature. The temperature range can be determined based on half of the extreme high temperature and half of the extreme low temperature, and the temperature range can be divided to obtain various temperature ranges. And set each temperature range to correspond to a temperature gear. For example, set the temperature gear corresponding to the temperature range that includes half of the extreme low temperature as the first temperature gear, and set the temperature gear corresponding to the temperature range that includes half of the extreme high temperature as the last temperature gear.
[0079] Optionally, different temperature levels can be tested in a standard environment to determine the calibration curve corresponding to each temperature level, and a mapping relationship between the temperature level and the calibration curve can be set and stored in a preset file to obtain a calibration file. For example, it can be a High_Oppy_20240704071417 file and a Low_Oppy_2024070808110459 file.
[0080] Optionally, the actual ambient temperature can be matched with at least one temperature level, that is, the relationship between the actual ambient temperature and the temperature range of at least one temperature level is detected, the temperature range in which the actual ambient temperature is located is determined, and the temperature level corresponding to the temperature range containing the actual ambient temperature is used as a matching temperature level that matches the actual ambient temperature.
[0081] Step a20, according to the mapping relationship between the preset temperature level and the calibration curve, determining the calibration curve corresponding to the matching temperature level from the preset multiple calibration curves as the target calibration curve.
[0082] Optionally, in a calibration file storing a mapping relationship between temperature levels and calibration curves and calibration curves, a calibration curve corresponding to the matching temperature level can be determined and selected and used as a target calibration curve. Then, the temperature drift compensation process of the frequency response test result of the microphone can be performed according to the target calibration curve.
[0083] In this embodiment, the actual ambient temperature is matched with at least one temperature level to determine the matching temperature level, and then the target calibration curve is determined from the preset multiple calibration curves according to the mapping relationship between the preset temperature level and the calibration curve. In addition, different calibration curves can be selected as the target calibration curve according to different accuracy requirements, thereby ensuring the validity of the obtained target calibration curve.
[0084] Furthermore, in a feasible embodiment, the step of performing temperature drift compensation processing on the frequency response test result of the microphone according to the target calibration curve includes steps b10-b40.
[0085] Step b10, determining the input voltage required to produce a constant sound pressure at different frequency points in the target calibration curve;
[0086] Step b20, controlling the sound producing device to output a sound signal with a constant sound pressure according to the input voltage;
[0087] Step b30, determining an audio file recorded after the microphone is excited by a sound signal with a constant sound pressure, and analyzing the frequency response test results of the audio file to determine whether it meets the expected requirements;
[0088] Step b40: If the expected requirements are met, it is determined that the temperature drift compensation of the microphone frequency response test result has been completed.
[0089] Optionally, after the target calibration curve is retrieved, the input voltage required to generate a constant sound pressure at different frequency points (ie, frequency points) in the target calibration curve can be determined. Optionally, the number of input voltages can be multiple.
[0090] Optionally, voltage instructions corresponding to each input voltage can be sent to the sound card through software so that the electrical signal output by the sound card can drive the sound device, so that the sound device outputs a sound signal with a constant sound pressure, that is, outputs a swept frequency signal in the entire frequency range.
[0091] Optionally, the audio file recorded after the microphone is excited by a swept frequency signal of constant sound pressure can be detected in real time. That is, the microphone receives the sound signal emitted by the sound producing device and converts it into an electrical signal for storage for subsequent analysis. Optionally, the frequency response test results of the audio file can be analyzed to determine whether the expected requirements (any frequency response requirements set in advance by the user) are met. If so, it is determined that the temperature drift compensation of the frequency response test results of the microphone has been completed. If not, the test experiment is repeated. For example, the ambient temperature is changed, or the positional relationship between the sound producing device and the microphone is changed. Then re-execute the above steps S10-S30 until the temperature drift compensation processing of the frequency response test results of the microphone is achieved.
[0092] Optionally, the frequency sweep signal with constant sound pressure can be a sound signal of different frequencies generated and output by the sound producing device according to the calibration curve, and these sound signals maintain a constant sound pressure level in the entire frequency range. The frequency sweep signal can be a continuous change from low frequency to high frequency, which is used to comprehensively test the response characteristics of the microphone at different frequencies.
[0093] In this embodiment, by determining the input voltage required to generate a constant sound pressure at different frequency points in the target calibration curve, and controlling the sound producing device to output a sound signal with a constant sound pressure according to the input voltage, and determining an audio file excited after the microphone is excited by the sound signal with a constant sound pressure, the frequency response test results of the audio file are analyzed, and when it is determined that the expected requirements are met, it is determined that the temperature drift compensation of the frequency response test results of the microphone has been completed, thereby avoiding the drift of the frequency response of the microphone due to temperature changes in ambient temperature.
[0094] Furthermore, in a feasible embodiment, the microphone-based temperature drift processing method further includes steps c10 - c20 .
[0095] Step c10, calibrating the sound generating device using a standard sound source in a preset standard environment, recording the input voltage of the sound signal generating a constant sound pressure at different frequencies, and forming a calibration curve;
[0096] Step c20, determine the temperature to be measured in at least one preset temperature level, and update the temperature in the standard environment based on the temperature to be measured. Based on the updated standard environment, perform the step of calibrating the sound device using a standard sound source in the preset standard environment to obtain a calibration curve corresponding to each temperature level.
[0097] Optionally, in this embodiment, a standard experimental environment can be set in advance, such as an environment with a temperature of 25 degrees, and in this standard environment, the sound producing device can be calibrated using a pre-set standard sound source and high-precision measuring equipment to stimulate multiple input voltages with constant sound pressure at different frequencies to form a calibration curve.
[0098] Optionally, at least one temperature level set in advance may be determined, and a temperature interval including the temperature in the standard environment may be determined, and the formed calibration curve may be used as the calibration curve corresponding to the temperature level in the temperature interval.
[0099] For any other temperature interval, the temperature to be measured in the temperature interval can be determined, and the temperature of the standard ambient temperature can be updated according to the temperature to be measured. For example, the temperature is updated from 25 degrees to 15 degrees or 30 degrees, etc. Then re-execute the step of calibrating the sound device using a standard sound source in a preset standard environment to obtain the calibration curve corresponding to the temperature interval, that is, the calibration curve corresponding to the temperature level of the temperature interval. Optionally, the temperature value of the temperature to be measured can be the middle value in the temperature interval, or it can be any temperature value in the temperature interval set according to user needs.
[0100] In this embodiment, the sound producing device is calibrated by using a characterizing sound source in a standard environment, and the input voltage of the sound signal producing a constant sound pressure at different frequencies is recorded to form a calibration curve. The same method is used for each temperature level to determine the calibration curve corresponding to each temperature level, thereby ensuring the validity of the calibration curve corresponding to each temperature level.
[0101] In addition, the embodiment of the present application provides a temperature drift processing system based on a microphone, referring to Figure 5 The temperature drift processing system based on microphone includes a microphone 100 to be tested, an industrial computer 200 connected to the microphone, and a temperature sensor 300 connected to the industrial computer.
[0102] The microphone 100 and the temperature sensor 300 are in the same product environment;
[0103] The temperature sensor 300 is used to monitor the actual ambient temperature of the environment where the microphone is located in real time;
[0104] The industrial computer 200 is used to select a target calibration curve from multiple preset calibration curves according to the actual ambient temperature, and perform temperature drift compensation processing on the frequency response test results of the microphone according to the target calibration curve, wherein the calibration curve is used to characterize the input voltage required for the sound-generating device to generate a constant sound pressure at different frequency points.
[0105] Optionally, the microphone-based temperature drift processing system in this embodiment can be used to execute the microphone-based temperature drift processing method in any of the above embodiments.
[0106] Optionally, the microphone 100 and the temperature sensor 300 may be disposed in the anechoic box. The temperature sensor 300 detects the temperature in the anechoic box in real time, and uses it as the actual ambient temperature, which is then sent to the industrial computer 200 through the temperature controller.
[0107] Optionally, corresponding test software may be set in the industrial computer 200, and the test software may adjust the calibration curve corresponding to the actual ambient temperature from among the multiple calibration curves stored in advance according to the actual ambient temperature, and use it as the target calibration curve. Optionally, the ambient temperature corresponding to each calibration curve is different from each other.
[0108] Optionally, the test software in the industrial computer 200 may be used to perform temperature drift compensation processing on the frequency response test result of the microphone according to the retrieved target calibration curve.
[0109] Furthermore, in a feasible embodiment, the temperature sensor 300 is a platinum resistance temperature sensor.
[0110] Further, refer to Figure 6The microphone-based temperature drift processing system further includes a sound card 400 connected to the industrial computer 200 and a sound producing device 500 connected to the sound card 400.
[0111] The industrial computer 200 is used to determine the input voltage required to generate a constant sound pressure at different frequency points in the target calibration curve, and control the sound card 400 to output a frequency sweep signal according to the input voltage, and control the sound device 500 to convert the frequency sweep signal into a sound signal with a constant sound pressure for output;
[0112] Microphone 100, used to collect sound signals and obtain an audio file recorded after the microphone is stimulated by the sound signal with constant sound pressure;
[0113] The industrial computer 200 is used to analyze the frequency response test results of the audio file to determine whether the expected requirements are met. If the expected requirements are met, it is determined that the temperature drift compensation of the frequency response test results of the microphone has been completed.
[0114] The temperature drift processing system based on microphone provided by the present application adopts the temperature drift processing method based on microphone in the above embodiment, which can solve the technical problem of how to avoid the frequency response of microphone from drifting due to the temperature change of ambient temperature. Compared with the prior art, the beneficial effects of the temperature drift processing device based on microphone provided by the present application are the same as the beneficial effects of the temperature drift processing method based on microphone provided by the above embodiment, and other technical features in the temperature drift processing device based on microphone are the same as the features disclosed in the above embodiment method, which will not be described in detail here.
[0115] The present application provides an electronic device, which includes: a microphone-based temperature drift processing system as described above; at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the microphone-based temperature drift processing method in the above-mentioned embodiment 1.
[0116] Reference below Figure 7, which shows a schematic diagram of the structure of an electronic device suitable for implementing an embodiment of the present application. The electronic device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0117] The electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM) 1004. In RAM 1004, various programs and data required for device operation are also stored. The processing device 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0118] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0119] The electronic device provided by the present application adopts the temperature drift processing method based on the microphone in the above embodiment, which can solve the technical problem of how to avoid the frequency response of the microphone from drifting due to the temperature change of the ambient temperature. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the temperature drift processing method based on the microphone provided in the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0120] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0121] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0122] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the microphone-based temperature drift processing method in the above-mentioned embodiment.
[0123] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0124] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0125] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device can execute the steps in the microphone-based temperature drift processing method.
[0126] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0128] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0129] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned microphone-based temperature drift processing method, and can solve the technical problem of how to avoid the frequency response of the microphone from drifting due to temperature changes in the ambient temperature. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the microphone-based temperature drift processing method provided by the above-mentioned embodiment, and will not be repeated here.
[0130] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned microphone-based temperature drift processing method when the computer program is executed by a processor.
[0131] The computer program product provided by the present application can solve the technical problem of how to avoid the frequency response of the microphone from drifting due to the temperature change of the ambient temperature. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the temperature drift processing method based on the microphone provided by the above embodiment, and will not be repeated here.
[0132] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for processing temperature drift based on a microphone, characterized in that: The temperature drift processing method based on a microphone comprises the following steps: Real-time monitoring of the actual ambient temperature of the environment where the microphone to be tested is located; Selecting a target calibration curve from a plurality of preset calibration curves according to the actual ambient temperature, wherein the calibration curve is used to characterize the input voltage required for the sound generating device to generate a constant sound pressure at different frequencies; A temperature drift compensation process is performed on the frequency response test result of the microphone according to the target calibration curve.
2. The method for processing temperature drift based on a microphone according to claim 1, characterized in that: The step of selecting a target calibration curve from a plurality of preset calibration curves according to the actual ambient temperature comprises: Matching the actual ambient temperature with at least one preset temperature level to determine a matching temperature level that matches the actual ambient temperature, wherein different temperature levels correspond to different temperature ranges; According to the mapping relationship between the preset temperature level and the calibration curve, a calibration curve corresponding to the matching temperature level is determined as a target calibration curve from among the preset multiple calibration curves.
3. The method for processing temperature drift based on a microphone according to claim 1, characterized in that: The step of performing temperature drift compensation processing on the frequency response test result of the microphone according to the target calibration curve comprises: Determining the input voltage required to produce a constant sound pressure at different frequency points in the target calibration curve; Controlling the sound producing device to output a sound signal with a constant sound pressure according to the input voltage; Determine an audio file recorded after the microphone is excited by a sound signal with a constant sound pressure, and analyze the frequency response test results of the audio file to determine whether it meets the expected requirements; If the expected requirements are met, it is determined that the temperature drift compensation of the frequency response test result of the microphone has been completed.
4. The method for processing temperature drift based on a microphone according to claim 1, characterized in that: The microphone-based temperature drift processing method further includes: The sound generating device is calibrated using a standard sound source in a preset standard environment, and the input voltage of the sound signal that produces a constant sound pressure at different frequencies is recorded to form a calibration curve; Determine a temperature to be measured in at least one preset temperature level, and update the temperature in the standard environment according to the temperature to be measured. According to the updated standard environment, perform the step of calibrating the sound device using a standard sound source in the preset standard environment to obtain a calibration curve corresponding to each temperature level.
5. A temperature drift processing system based on a microphone, characterized in that: The microphone-based temperature drift processing system includes a microphone to be tested, an industrial computer connected to the microphone, and a temperature sensor connected to the industrial computer; The microphone and the temperature sensor are in the same product environment; The temperature sensor is used to monitor the actual ambient temperature of the environment where the microphone is located in real time; The industrial computer is used to select a target calibration curve from a plurality of preset calibration curves according to the actual ambient temperature, and perform temperature drift compensation processing on the frequency response test result of the microphone according to the target calibration curve, wherein the calibration curve is used to characterize the input voltage required for the sound producing device to generate a constant sound pressure at different frequency points.
6. The microphone-based temperature drift processing system as claimed in claim 5, characterized in that: The temperature sensor is a platinum resistance temperature sensor.
7. The microphone-based temperature drift processing system according to claim 5, characterized in that: The microphone-based temperature drift processing system also includes a sound card connected to the industrial computer and a sound producing device connected to the sound card; The industrial computer is used to determine the input voltage required to generate a constant sound pressure at different frequency points in the target calibration curve, and control the sound card to output a frequency sweep signal according to the input voltage, and control the sound generating device to convert the frequency sweep signal into a sound signal with a constant sound pressure for output; The microphone is used to collect the sound signal to obtain an audio file recorded after the microphone is stimulated by the sound signal with constant sound pressure; The industrial computer is used to analyze the frequency response test result of the audio file to determine whether it meets the expected requirements. If it meets the expected requirements, it is determined that the temperature drift compensation of the frequency response test result of the microphone has been completed.
8. An electronic device, characterized in that: The electronic device comprises: a microphone-based temperature drift processing system as described in any one of claims 5 to 7, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the microphone-based temperature drift processing method as described in any one of claims 1 to 4.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the microphone-based temperature drift processing method according to any one of claims 1 to 4 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the microphone-based temperature drift processing method according to any one of claims 1 to 4 are implemented.
Citation Information
Cited By
Acoustic performance compensation method and device, microphone, electronic equipment and storage medium
CN121486730A