CN-122002185-A - Audio device frequency response calibration method and device, storage medium and electronic equipment
Abstract
The application provides a method and a device for calibrating frequency response of an audio device, a storage medium and electronic equipment, which are applied to the technical field of audio signal processing. The method comprises the steps of obtaining a first frequency response difference curve of an audio device to be measured, after the fact that the audio device to be measured meets frequency response calibration conditions is determined according to the first frequency response difference curve, identifying a first extreme point in the first frequency response difference curve, wherein the first extreme point represents a frequency response difference value to be calibrated after screening, determining filter parameters corresponding to the audio device to be measured according to frequency response difference values and frequencies corresponding to the first extreme point based on preset frequency band division and frequency bandwidth calculation rules, wherein the frequency band division and frequency bandwidth calculation rules are preset based on human ear hearing characteristics and production line production deviation distribution rules, designing a filter based on the filter parameters, and calibrating the frequency response of the audio device to be measured. The application realizes quick calibration and ensures the calibration precision.
Inventors
- GONG YUNMEI
Assignees
- 华勤技术股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260410
Claims (10)
- 1. A method for calibrating the frequency response of an audio device, comprising: Acquiring a first frequency response difference curve of an audio device to be tested, wherein the first frequency response difference curve reflects the frequency response difference of the audio device to be tested relative to a target frequency response curve at each frequency point; After the fact that the audio device to be tested meets the frequency response calibration condition is determined according to the first frequency response difference curve, a first extreme point in the first frequency response difference curve is identified, and the first extreme point represents the frequency response difference value to be calibrated after screening; Determining filter parameters corresponding to the audio device to be tested according to the frequency response difference value and the frequency corresponding to the first extreme point based on preset frequency band division and frequency bandwidth calculation rules, wherein the frequency band division and frequency bandwidth calculation rules are preset based on human ear auditory characteristics and production line production deviation distribution rules; And designing a filter based on the filter parameters, and calibrating the frequency response of the audio device to be tested.
- 2. The method for calibrating the frequency response of the audio device according to claim 1, wherein the filter parameters include a gain, a quality factor and a center frequency, the determining the filter parameters corresponding to the audio device to be tested according to the frequency response difference value and the frequency corresponding to the first extreme point based on a preset frequency band division and bandwidth calculation rule includes: Taking the frequency of the first extreme point as the center frequency of the filter; taking the frequency response difference value of the first extreme point as the gain of the filter; Matching a corresponding target frequency band from the frequency band division and frequency band calculation rules according to the center frequency, and acquiring a frequency band calculation rule corresponding to the target frequency band; Determining the bandwidth of the filter according to the bandwidth calculation rule and the center frequency; and determining the quality factor of the filter according to the center frequency, the bandwidth and the gain.
- 3. The method of claim 1, wherein the identifying a first extreme point in the first frequency response difference curve comprises: extracting at least one second polar value point with the absolute value of the frequency response difference value being greater than or equal to the frequency response tolerance threshold value from the first frequency response difference value curve; Sequencing the at least one second pole point according to the absolute value of the frequency response difference value from large to small; and determining N second extreme points which are ranked at the front as first extreme points, wherein N is smaller than or equal to the number of available filters in the audio device to be tested.
- 4. A method of calibrating a frequency response of an audio device according to any of claims 1 to 3, wherein the frequency response calibration conditions comprise: The absolute value of the frequency response difference value corresponding to each frequency point on the first frequency response difference value curve is smaller than or equal to a calibration threshold value, and the absolute value of the frequency response difference value corresponding to at least one frequency point on the first frequency response difference value curve is larger than or equal to a frequency response tolerance threshold value; wherein the calibration threshold is greater than the frequency response tolerance threshold.
- 5. A method of calibrating the frequency response of an audio device according to any of claims 1 to 3, further comprising: The following operations are repeatedly executed until the iterative calibration stop condition is satisfied: Acquiring a calibrated frequency response curve; Determining a second frequency response difference curve according to the target frequency response curve and the calibrated frequency response curve; when the absolute value of the frequency response difference value corresponding to at least one frequency point on the second frequency response difference value curve is larger than or equal to a frequency response tolerance threshold value and the number of used filters in the audio device to be detected is smaller than the number of available filters, a third electrode point in the second frequency response difference value curve is identified; based on the frequency band division and the frequency bandwidth calculation rule, determining a filter parameter corresponding to the third extreme point according to the frequency response difference value and the frequency corresponding to the third extreme point; Designing a filter based on the filter parameters corresponding to the third pole point, performing frequency response calibration again on the calibrated audio device to be tested, and updating the calibrated frequency response curve; The iterative calibration stopping condition comprises that the number of the used filters is equal to the number of the available filters, and/or the absolute value of the frequency response difference value corresponding to each frequency point on the second frequency response difference value curve is smaller than the frequency response tolerance threshold value.
- 6. The method of audio device frequency response calibration of claim 5, further comprising: And when the iteration calibration stopping condition is met, writing the filter parameters determined in the iteration process into a hardware filter bank of the audio device to be tested.
- 7. An audio device frequency response calibration apparatus, comprising: The acquisition module is used for acquiring a first frequency response difference curve of the audio device to be detected, wherein the first frequency response difference curve reflects the frequency response difference of the audio device to be detected relative to a target frequency response curve at each frequency point; The identification module is used for identifying a first extreme point in the first frequency response difference curve after determining that the audio device to be tested meets the frequency response calibration condition according to the first frequency response difference curve, wherein the first extreme point represents the frequency response difference value to be calibrated after screening; The determining module is used for determining filter parameters corresponding to the audio device to be detected according to the frequency response difference value and the frequency corresponding to the first extreme point based on preset frequency band division and frequency width calculation rules, wherein the frequency band division and frequency width calculation rules are preset based on human ear auditory characteristics and production line production deviation distribution rules; and the calibration module is used for designing a filter based on the filter parameters and calibrating the frequency response of the audio device to be tested.
- 8. An electronic device is characterized by comprising a memory and a processor; The memory stores computer-executable instructions; The processor executing computer-executable instructions stored in the memory, causing the processor to perform the audio device frequency response calibration method of any one of claims 1 to 6.
- 9. A computer readable storage medium having stored therein computer executable instructions which when executed are adapted to implement the audio device frequency response calibration method of any of claims 1 to 6.
- 10. A computer program product comprising a computer program which when executed implements the audio device frequency response calibration method of any one of claims 1 to 6.
Description
Audio device frequency response calibration method and device, storage medium and electronic equipment Technical Field The present application relates to the field of audio signal processing technologies, and in particular, to a method and apparatus for calibrating frequency response of an audio device, a storage medium, and an electronic device. Background With the popularity of consumer electronics, users have increasingly stringent requirements for standardization and consistency of sound quality of audio devices. In the mass production process of audio devices such as a true wireless stereo (True Wireless Stereo, TWS) earphone, a smart watch, a neck hanging type sound box and the like, the stability of the frequency response curve of the audio device directly determines the tone quality performance of the product. However, due to factors such as process precision difference and material fluctuation of parts in the production and manufacturing process, the audio devices produced in the same batch often have frequency response deviation of different degrees, so that problems such as insufficient low-frequency diving, intermediate-frequency distortion or high-frequency attenuation of partial products are caused, and standardized sound quality requirements are difficult to meet. Therefore, the production line is required to calibrate the frequency response of each audio device so as to correct individual deviation, ensure the consistency of the tone quality of the product and improve the yield of the product. In the related art, the frequency response calibration of the audio device mainly adopts an intelligent optimization algorithm to realize the automatic matching of equalizer parameters. The method comprises the steps of firstly, obtaining an actual frequency response curve and a preset target frequency response curve of an audio device, constructing an objective function taking equalizer parameters as variables based on the difference of the actual frequency response curve and the target frequency response curve at each frequency point, then solving an optimal equalizer parameter combination which minimizes the objective function through an intelligent optimization algorithm, writing the equalizer parameters into an equalizer module of the audio device, and completing frequency response calibration, wherein the intelligent optimization algorithm comprises a global search algorithm represented by a genetic algorithm and a local iterative optimization algorithm represented by a gradient descent method. However, the frequency response calibration by adopting the method has the problem that the calibration efficiency and the calibration precision cannot be considered, and the method is difficult to adapt to the high-speed mass production scene of the audio device. Disclosure of Invention The application provides a method and a device for calibrating frequency response of an audio device, a storage medium and electronic equipment, which are used for realizing quick calibration, improving calibration precision and meeting the requirement of high-speed mass production scenes of the audio device. In a first aspect, the present application provides a method for calibrating a frequency response of an audio device, including: Acquiring a first frequency response difference curve of the audio device to be tested, wherein the first frequency response difference curve reflects the frequency response difference of the audio device to be tested relative to a target frequency response curve at each frequency point; after the fact that the audio device to be tested meets the frequency response calibration condition is determined according to the first frequency response difference curve, a first extreme point in the first frequency response difference curve is identified, and the first extreme point represents the frequency response difference value to be calibrated after screening; Determining filter parameters corresponding to an audio device to be tested according to a frequency response difference value and frequency corresponding to a first extreme point based on preset frequency band division and frequency width calculation rules, wherein the frequency band division and frequency width calculation rules are preset based on human ear hearing characteristics and production line production deviation distribution rules; and designing a filter based on the filter parameters, and calibrating the frequency response of the audio device to be tested. In one possible implementation manner, the filter parameters include gain, quality factor and center frequency, and the determining the filter parameters corresponding to the audio device to be tested according to the frequency response difference value and frequency corresponding to the first extreme point based on the preset frequency band division and bandwidth calculation rule includes: taking the frequency of the first extreme point as the center frequency of the filter;