Audio equipment correction method and device, equipment and storage medium
By collecting and analyzing the sweeping signal in the audio device, eliminating abnormal signals, and performing audio parameter correction, the problem of inaccurate correction results in the prior art is solved, and the performance of the audio device is improved.
Patent Information
- Application Number
- CN202411056985.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-06
AI Technical Summary
During the room correction process of existing audio equipment, there is a lack of special abnormality detection methods, resulting in noise pollution, abnormal volume or incomplete sweeping signals, reducing the accuracy of the correction results, and thus affecting the audio performance of smart audio equipment.
By collecting multiple sweeping signals in the room, calculating the signal-to-noise ratio, volume and effective signal duration, judging and eliminating abnormal sweeping signals, obtaining the target sweeping signal data, and using the target sweeping signal data to the audio equipment's audio equipment The parameters are corrected.
Improve the correction accuracy of audio equipment, optimize the performance of audio equipment, and ensure the accuracy and consistency of audio signals.
Smart Images

Figure CN119094967A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio equipment calibration, and in particular to a calibration method, device, equipment and storage medium for audio equipment. Background Art
[0002] The existing correction technology for audio equipment mainly targets ordinary voice or music signals. There is a lack of special anomaly detection methods for the sweeping frequency signals used for room correction in smart audio equipment. As a result, during the room correction process, sweeping frequency signals that are contaminated by noise, have abnormal volume or are incomplete may be used, resulting in low accuracy of the correction results, thereby reducing the audio performance of the smart audio equipment. Summary of the invention
[0003] The present invention provides a correction method, device, equipment and storage medium for an audio device, so as to solve the problem of low accuracy of correction results in the prior art.
[0004] A first aspect of the present invention provides a correction method for an audio device, comprising: collecting multiple sweep frequency signals in a room, wherein the multiple sweep frequency signals are recorded test signals played by the audio device; calculating the signal-to-noise ratio, volume and effective signal duration of each sweep frequency signal; judging whether there is an abnormal sweep frequency signal based on the signal-to-noise ratio, the volume and the effective signal duration; if the abnormal sweep frequency signal exists, removing the abnormal sweep frequency signal from the multiple sweep frequency signals to obtain target sweep frequency signal data; and correcting the audio parameters of the audio device using the target sweep frequency signal data.
[0005] In a feasible implementation manner, the calculation of the signal-to-noise ratio, volume and effective signal duration of each swept frequency signal includes: calculating the signal energy and noise energy of each swept frequency signal, and calculating the signal-to-noise ratio of each swept frequency signal based on the signal energy and the noise energy; calculating the average amplitude within a specific frequency range of each swept frequency signal, and determining the volume of each swept frequency signal based on the average amplitude; calculating the effective frame signal in each swept frequency signal, and determining the effective signal duration based on the effective frame signal.
[0006] In a feasible implementation manner, the signal energy and noise energy of each swept frequency signal are calculated, and the signal-to-noise ratio of each swept frequency signal is calculated based on the signal energy and the noise energy, including: calculating the energy of each frame signal in each swept frequency signal, and calculating the sum of all energies to obtain the signal energy of each swept frequency signal; selecting a preset number of frame signals from each swept frequency signal in chronological order to calculate the corresponding energy to obtain the noise energy of each swept frequency signal; and calculating the signal-to-noise ratio of each swept frequency signal based on the signal energy and the noise energy.
[0007] In a feasible implementation manner, the step of calculating the average amplitude within a specific frequency range in each swept-frequency signal and determining the volume of each swept-frequency signal based on the average amplitude includes: determining a frequency range of interest; extracting corresponding signal components from each swept-frequency signal based on the frequency range; calculating the average amplitude of the signal components, and determining the volume of each swept-frequency signal based on the average amplitude.
[0008] In a feasible implementation manner, the method of calculating the valid frame signal in each frequency sweeping signal and determining the valid signal duration based on the valid frame signal includes: calculating the short-time energy and energy threshold of each frame signal in each frequency sweeping signal; determining the valid frame signal in each frequency sweeping signal based on the comparison of the short-time energy and the energy threshold; calculating the total time of the valid frame signal in each frequency sweeping signal to obtain the valid signal duration in each frequency sweeping signal.
[0009] In a feasible implementation manner, judging whether there is an abnormal sweep frequency signal based on the signal-to-noise ratio, the volume and the effective signal duration includes: comparing the signal-to-noise ratio, the volume and the effective signal duration with corresponding thresholds; if the comparison result does not meet the corresponding preset requirements, determining that an abnormal sweep frequency signal exists.
[0010] In a feasible implementation manner, after determining whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, the volume, and the signal integrity, the method further includes: if the abnormal frequency sweep signal exists, clustering analysis is performed on the abnormal frequency sweep signal to obtain the abnormal type of the abnormal frequency sweep signal. In a feasible implementation manner, the correction processing of the audio parameters of the audio device using the target frequency sweep signal data includes: calculating the adjustment parameters of the audio device using the target frequency sweep signal data and a preset target room acoustic model; and correcting the audio parameters of the audio device based on the adjustment parameters.
[0011] In a feasible implementation manner, the step of calculating the adjustment parameters of the audio device using the target frequency sweep signal data and a preset target room acoustic model includes: obtaining an expected target frequency response curve of the audio device; performing frequency domain analysis on the target frequency sweep signal data to obtain an actual frequency response curve; and calculating the adjustment parameters of the audio device based on the target frequency response curve, the actual frequency response curve, and a preset target room acoustic model.
[0012] In a feasible implementation manner, calculating the adjustment parameters of the audio device based on the target frequency response curve, the actual frequency response curve and a preset target room acoustic model includes: inputting the actual frequency response curve and the target frequency response curve into a preset target room acoustic model; extracting a first key point of the actual frequency response curve and a second key point on the target frequency response curve corresponding to the first key point through the target room acoustic model; calculating a gain difference and a phase difference between the first key point and the second key point; and determining the adjustment parameters of the audio device based on the gain difference and the phase difference through a lookup table or a mapping relationship.
[0013] In a feasible implementation manner, before calculating the adjustment parameters of the audio device through the target frequency sweep signal data and the preset target room acoustic model, it also includes: searching through the number of the audio device to obtain the target room to which the audio device belongs; and matching the corresponding target room acoustic model from the model database based on the target room.
[0014] In a feasible implementation manner, the matching the corresponding room acoustic model based on the target room includes: determining a target room type corresponding to the target room; and selecting a corresponding target room acoustic model according to the target room type.
[0015] A second aspect of the present invention provides a correction device for an audio device, comprising: a collection module, used to collect multiple sweep frequency signals in a room, wherein the multiple sweep frequency signals are recorded test signals played by the audio device; a calculation module, used to calculate the signal-to-noise ratio, volume and effective signal duration of each sweep frequency signal; a judgment module, used to judge whether there is an abnormal sweep frequency signal based on the signal-to-noise ratio, the volume and the effective signal duration; a removal module, used to remove the abnormal sweep frequency signal from the multiple sweep frequency signals if the abnormal sweep frequency signal exists, and obtain target sweep frequency signal data; and a correction module, used to perform correction processing on the audio parameters of the audio device through the target sweep frequency signal data.
[0016] In a feasible implementation, the calculation module includes: a first calculation unit, used to calculate the signal energy and noise energy of each swept frequency signal, and calculate the signal-to-noise ratio of each swept frequency signal based on the signal energy and the noise energy; a second calculation unit, used to calculate the average amplitude within a specific frequency range in each swept frequency signal, and determine the volume of each swept frequency signal based on the average amplitude; a third calculation unit, used to calculate the valid frame signal in each swept frequency signal, and determine the valid signal duration based on the valid frame signal.
[0017] In a feasible implementation manner, the first calculation unit is specifically used to: calculate the energy of each frame signal in each swept frequency signal, and calculate the sum of all energies to obtain the signal energy of each swept frequency signal; select a preset number of frame signals from each swept frequency signal in chronological order to calculate the corresponding energy to obtain the noise energy of each swept frequency signal; calculate the signal-to-noise ratio of each swept frequency signal based on the signal energy and the noise energy.
[0018] In a feasible implementation, the second calculation unit is specifically used to: determine a frequency range of interest; extract corresponding signal components from each swept frequency signal based on the frequency range; calculate the average amplitude of the signal components, and determine the volume of each swept frequency signal based on the average amplitude.
[0019] In a feasible implementation, the third calculation unit is specifically used to: calculate the short-time energy and energy threshold of each frame signal in each swept frequency signal; determine the valid frame signal in each swept frequency signal based on the comparison between the short-time energy and the energy threshold; calculate the total time of the valid frame signal in each swept frequency signal to obtain the valid signal duration in each swept frequency signal.
[0020] In a feasible implementation manner, the judgment module is specifically used to: compare the signal-to-noise ratio, the volume and the effective signal duration with corresponding thresholds; if a comparison result does not meet the corresponding preset requirements, determine that an abnormal frequency sweep signal exists.
[0021] In a feasible implementation manner, the correction device for the audio device further includes: a cluster analysis module, configured to perform cluster analysis on the abnormal sweep frequency signal if the abnormal sweep frequency signal exists, so as to obtain the abnormal type of the abnormal sweep frequency signal.
[0022] In a feasible implementation manner, the correction module includes: a fourth calculation unit, used to calculate the adjustment parameters of the audio device through the target sweep signal data and a preset target room acoustic model; and a correction unit, used to correct the audio parameters of the audio device based on the adjustment parameters.
[0023] In a feasible implementation, the fourth calculation unit includes: an acquisition subunit, used to obtain the expected target frequency response curve of the audio device; an analysis subunit, used to perform frequency domain analysis through the target swept frequency signal data to obtain an actual frequency response curve; and a calculation subunit, used to calculate the adjustment parameters of the audio device based on the target frequency response curve, the actual frequency response curve and a preset target room acoustic model.
[0024] In a feasible implementation manner, the calculation subunit is specifically used to: input the actual frequency response curve and the target frequency response curve into a preset target room acoustic model; extract a first key point of the actual frequency response curve and a second key point on the target frequency response curve corresponding to the first key point through the target room acoustic model; calculate a gain difference and a phase difference between the first key point and the second key point; and based on the gain difference and the phase difference, determine an adjustment parameter of the audio device through a lookup table or a mapping relationship.
[0025] In a feasible implementation manner, the correction device for the audio device further includes: a retrieval module, used to retrieve by the serial number of the audio device to obtain the target room to which the audio device belongs; and a matching module, used to match the corresponding target room acoustic model from the model database based on the target room.
[0026] In a feasible implementation manner, the matching module is specifically used to: determine a target room type corresponding to the target room; and select a corresponding target room acoustic model according to the target room type.
[0027] A third aspect of the present invention provides an electronic device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the electronic device executes the above-mentioned audio device correction method.
[0028] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for calibrating an audio device.
[0029] The technical solution provided by the present invention collects multiple sweep frequency signals in a room, wherein the multiple sweep frequency signals are recorded test signals played by an audio device; calculates the signal-to-noise ratio, volume, and effective signal duration of each sweep frequency signal; determines whether there is an abnormal sweep frequency signal based on the signal-to-noise ratio, the volume, and the effective signal duration; if the abnormal sweep frequency signal exists, removes the abnormal sweep frequency signal from the multiple sweep frequency signals to obtain target sweep frequency signal data; and corrects the audio parameters of the audio device using the target sweep frequency signal data. In an embodiment of the present invention, by collecting multiple sweep frequency signals in a room, calculating the signal-to-noise ratio, volume, and effective signal duration, and removing the abnormal sweep frequency signal based on these parameters, the audio parameters of the audio device are corrected, thereby improving the accuracy of the correction of the audio device and optimizing the performance of the audio device. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1A schematic diagram of an embodiment of a calibration method for an audio device according to an embodiment of the present invention;
[0031] Figure 2 A schematic diagram of another embodiment of a calibration method for an audio device according to an embodiment of the present invention;
[0032] Figure 3 A schematic diagram of another embodiment of a calibration method for an audio device according to an embodiment of the present invention;
[0033] Figure 4 A schematic diagram of an embodiment of a calibration device for an audio device according to an embodiment of the present invention;
[0034] Figure 5 A schematic diagram of another embodiment of a calibration device for an audio device according to an embodiment of the present invention;
[0035] Figure 6 FIG. 1 is a schematic diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] Embodiments of the present invention provide a correction method, apparatus, device and storage medium for an audio device, which are used to improve the accuracy of correction of the audio device by eliminating abnormal sweep frequency signals from multiple sweep frequency signals and then performing correction processing on the audio device, thereby optimizing the performance of the audio device.
[0037] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0038] It is understandable that the execution subject of the present invention may be a calibration device for an audio device, or may be a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.
[0039] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the calibration method of the audio device in the embodiment of the present invention includes:
[0040] 101. Collect multiple sweep frequency signals in the room, where the multiple sweep frequency signals are recorded test signals played by an audio device;
[0041] First, multiple sweep frequency signals are recorded in the audio device as test signals. The test signals cover a wide range from low frequency to high frequency to ensure that the performance of the audio device can be tested within the entire working frequency band. When the audio device needs to be calibrated, the recorded multiple sweep frequency signals are played through the speakers of the audio device.
[0042] During the playback process, in order to ensure that every detail of the audio device output can be accurately captured, we need to arrange suitable microphones or other high-precision audio acquisition equipment in the room. These acquisition devices should have good frequency response characteristics and low noise levels so that they can record the original characteristics of the swept frequency signal while minimizing the interference of environmental noise.
[0043] As the frequency sweep signal plays, the audio acquisition device will capture the corresponding sound signal in real time and convert the sound signal into a digital format. This process usually uses analog-to-digital conversion (ADC) technology to convert analog audio signals into digital signals that can be processed by computers. The converted digital audio data will be accurately recorded and saved for subsequent signal processing and analysis. Through this step, the output samples of the audio device under specific conditions are collected, and the necessary data support is prepared for subsequent performance evaluation and parameter correction.
[0044] 102. Calculate the signal-to-noise ratio, volume, and effective signal duration of each frequency sweep signal;
[0045] The frequency spectrum of each swept frequency signal is identified by the fast Fourier transform method, and the effective power and noise power of each swept frequency signal are calculated based on the frequency spectrum of each swept frequency signal, and the ratio of the effective power to the noise power is calculated to obtain the signal-to-noise ratio; the volume can be approximately expressed by calculating the root mean square value of the signal, because the root mean square value reflects the average power level of the signal; the effective signal duration refers to the time length of the effective (i.e. non-noise or interference) part of the signal. Usually a threshold is set according to the characteristics of the signal (such as amplitude, frequency, etc.), and then the part of the signal that exceeds the threshold is detected, and finally the total time length of these parts is calculated.
[0046] 103. Determine whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, volume and effective signal duration;
[0047] A signal-to-noise ratio threshold, a normal range of volume, and a normal range of effective signal duration are pre-set, the signal-to-noise ratio of each sweep frequency signal is compared with the signal-to-noise ratio threshold to determine whether the signal-to-noise ratio is less than the signal-to-noise ratio threshold, the volume of each sweep frequency signal is compared with the normal range of volume to determine whether the volume falls within the normal range of volume, the effective signal duration of each sweep frequency signal is compared with the normal range of effective signal duration to determine whether the effective signal duration falls within the normal range of effective signal duration, and when at least one of the following conditions exists: the signal-to-noise ratio is less than the signal-to-noise ratio threshold, the volume does not fall within the normal range of volume, and the effective signal duration does not fall within the range of effective signal duration, it is determined that an abnormal sweep frequency signal exists.
[0048] 104. If an abnormal frequency sweep signal exists, remove the abnormal frequency sweep signal from the multiple frequency sweep signals to obtain target frequency sweep signal data;
[0049] If an abnormal sweep frequency signal exists, the abnormal sweep frequency signal is marked, multiple sweep frequency signals are traversed, the marked sweep frequency signal is deleted from the multiple sweep frequency signals, and the remaining normal sweep frequency signals are determined as target sweep frequency signal data.
[0050] 105. Correct the audio parameters of the audio device using the target frequency sweep signal data.
[0051] After obtaining the target frequency sweep signal data, the data is used to accurately calibrate the audio parameters of the audio device. This process involves using the target frequency sweep signal as a reference standard, and by comparing the difference between the actual output signal of the audio device and the target signal, identifying and adjusting various parameters in the audio device, such as frequency response, gain, phase, etc. The correction process is mainly to eliminate the deviation or distortion that may exist in the device itself, and ensure that the audio signal can maintain a high degree of accuracy and consistency during transmission and reproduction. Through this step, the audio device can more accurately restore the original characteristics of the audio signal, improve the audio quality, and provide users with a clearer, more realistic, and natural listening experience.
[0052] In an embodiment of the present invention, multiple sweep frequency signals in a room are collected, the signal-to-noise ratio, volume and effective signal duration of each sweep frequency signal are calculated, and based on the signal-to-noise ratio, volume and effective signal duration, it is determined whether an abnormal sweep frequency signal exists; if an abnormal sweep frequency signal exists, the abnormal sweep frequency signal is removed from the multiple sweep frequency signals to obtain target sweep frequency signal data, and the audio parameters of the audio device are corrected using the target sweep frequency signal data, thereby improving the accuracy of the correction of the audio device and optimizing the performance of the audio device.
[0053] See also Figure 2 Another embodiment of the calibration method of the audio device in the embodiment of the present invention includes:
[0054] 201. Collect multiple sweep frequency signals in the room, where the multiple sweep frequency signals are recorded test signals played by an audio device;
[0055] 202. Calculate the signal energy and noise energy of each frequency sweep signal, and calculate the signal-to-noise ratio of each frequency sweep signal based on the signal energy and the noise energy;
[0056] Calculate the energy of each frame signal in each sweep signal, and calculate the sum of all energies to obtain the signal energy of each sweep signal; select a preset number of frame signals from each sweep signal in chronological order to calculate the corresponding energy to obtain the noise energy of each sweep signal; calculate the signal-to-noise ratio of each sweep signal based on the signal energy and the noise energy.
[0057] Each frequency sweep signal is framed and processed by a predefined time window, which is generally 10-30ms. Each frame signal can also be pre-emphasized. The pre-emphasis process is as follows: a pre-emphasis coefficient is selected, which is generally 0.95-0.97, and is calculated using a pre-emphasis filter. The pre-emphasis filter is a first-order high-pass filter, and its differential equation is: y[n]=x[n]-αx[n-1], wherein x[n] is the input signal (the signal of the current frame), y[n] is the output signal (the signal after pre-emphasis), and α is the pre-emphasis coefficient. For the first sample, since x[n-1] does not exist, it is usually regarded as 0 or processed. For the signal frame processing, each frame needs to be pre-emphasized separately, which means that for each frame divided by the original signal, the above-mentioned first-order high-pass filter is applied. Pre-emphasis processing of the signal improves the quality and processability of the audio signal by enhancing high-frequency components, reducing the impact of noise, improving signal recognizability and adapting to the auditory characteristics of the human ear.
[0058] For each frame signal, it can be obtained by calculating the square sum of all sample values in the frame. For example, the frame contains a first sample value a, a second sample value b, a third sample value c, a fourth sample value d and a fifth sample value e, then the energy of the frame signal is: E=a2+b2+c2+d2+e2, and the signal energy of each frequency sweep signal is the sum of the energies of all frame signals. For example, the frequency sweep signal includes a first frame signal, a second frame signal, a third frame signal, a fourth frame signal, a fifth frame signal, a sixth frame signal, a seventh frame signal, an eighth frame signal, a ninth frame signal and a tenth frame signal arranged in chronological order, wherein the energy of the first frame signal is E1, the energy of the second frame signal is E2, the energy of the third frame signal is E3, the energy of the fourth frame signal is E4, and the energy of the fifth frame signal is E5. The energy of the frame signal is E4, the energy of the fifth frame signal is E5, the energy of the sixth frame signal is E6, the energy of the seventh frame signal is E7, the energy of the eighth frame signal is E8, the energy of the ninth frame signal is E9 and the energy of the tenth frame signal is E10, then the signal energy Es of the swept frequency signal is E1+E2+E3+E4+E5+E6+E7+E8+E9+E10; if the preset number is 3, the energy of the three frame signals obtained in time sequence is the energy E1 of the first frame signal, the energy E2 of the second frame signal and the energy E3 of the third frame signal, then the noise energy of the swept frequency signal is: En=E1+E2+E3; therefore, the signal-to-noise ratio of the swept frequency signal is: SNR=10*log10(Es / En).
[0059] 203. Calculate the average amplitude of each swept frequency signal within a specific frequency range, and determine the volume of each swept frequency signal based on the average amplitude;
[0060] Determine a frequency range of interest; extract corresponding signal components from each frequency sweep signal based on the frequency range; calculate an average amplitude of the signal components, and determine the volume of each frequency sweep signal based on the average amplitude.
[0061] First, it is necessary to clarify the frequency range of interest. For example, suppose that the frequency range of sound that the human ear can hear is about 20 Hz to 20 kHz. In this embodiment, assuming that the frequency range of interest is 500 Hz to 1500 Hz, a bandpass filter can be pre-set, and its bandpass covers 500 Hz to 1500 Hz. The swept frequency signal passes through the bandpass filter to obtain a signal component in the frequency range of 500 Hz to 1500 Hz. The signal component is sampled and processed to obtain multiple data points. The amplitude of each data point is calculated, and the amplitude of all data is added and divided by the total number of data points to obtain the average amplitude. The volume is usually proportional to the amplitude or power of the signal. The average amplitude can be used as a measure of the volume. However, in order to be more consistent with the human ear's perception of volume, the amplitude can also be logarithmically transformed (such as using decibels dB as the unit). The specific transformation formula is: dB = 20log 10(Average Amplitude / Reference Amplitude), where the reference amplitude is a preset value used to convert the amplitude into decibel units.
[0062] 204. Calculate the valid frame signal in each frequency sweep signal, and determine the valid signal duration based on the valid frame signal;
[0063] Calculate the short-time energy and energy threshold of each frame signal in each frequency sweep signal; determine the effective frame signal in each frequency sweep signal based on the comparison between the short-time energy and the energy threshold; calculate the total time of the effective frame signal in each frequency sweep signal to obtain the effective signal duration in each frequency sweep signal.
[0064] For each frame signal, calculate the sum of the squares of all samples of each frame signal to obtain the short-time energy of the frame. Assuming that the first 10 frames of signal are considered to be noise frames, calculate the average energy of the first 10 frames of signal, set k to a constant greater than 1, and the energy threshold is the average energy of the first 10 frames of signal multiplied by the constant k. Compare the short-time energy of each frame signal with the energy threshold. If the short-time energy is greater than the energy threshold, the frame signal is determined to be a valid frame signal, otherwise, the frame signal is determined to be an invalid frame signal. Count the number of frames marked as valid frame signals, multiply the number of frames by the frame length, and obtain the effective signal duration of the swept signal.
[0065] 205. Determine whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, volume, and effective signal duration;
[0066] The signal-to-noise ratio, volume and effective signal duration are compared with corresponding thresholds; if a comparison result does not meet corresponding preset requirements, it is determined that an abnormal frequency sweep signal exists.
[0067] The signal-to-noise ratio is compared with the signal-to-noise ratio threshold to obtain a first comparison result, the volume is compared with the normal volume range to obtain a second comparison result, and the effective signal duration is compared with the normal range of the effective signal duration to obtain a third comparison result. If the first comparison result is that the signal-to-noise ratio is not less than the signal-to-noise ratio threshold, then it is determined that the first comparison result meets the first preset requirement, otherwise, it is determined that the first comparison result does not meet the first preset requirement; if the second comparison result is that the volume belongs to the normal volume range, then it is determined that the second comparison result meets the second preset requirement, otherwise, it is determined that the second comparison result does not meet the second preset requirement; if the third comparison result is that the effective signal duration belongs to the normal range of the effective signal duration, then it is determined that the third comparison result meets the third preset requirement, otherwise, it is determined that the third comparison result does not meet the third preset requirement; if the first comparison result, the second comparison result or the third comparison result does not meet the corresponding preset requirement, then it is determined that an abnormal sweep frequency signal exists.
[0068] 206. If an abnormal frequency sweep signal exists, cluster analysis is performed on the abnormal frequency sweep signal to obtain an abnormal type of the abnormal frequency sweep signal;
[0069] Extract the abnormal frequency sweep signal; extract key features of the abnormal frequency sweep signal; perform cluster analysis based on the key features to obtain the abnormal type.
[0070] After determining that there is an abnormal sweep frequency signal, the abnormal sweep frequency signal is marked, and the marked abnormal sweep frequency signal is extracted from multiple sweep frequency signals to form a new data set. The key features of the abnormal sweep frequency signal in the new data set are extracted. The key features include but are not limited to key indicators such as spectrum flatness, spectrum center, and zero-crossing rate. These features not only reflect the energy distribution characteristics of the signal in the frequency domain, but also reveal the dynamic behavior of the signal in the time domain. Clustering analysis algorithms, such as K-means or hierarchical clustering, can be used to automatically classify abnormal sweep frequency signals under unsupervised learning based on these key features. During the clustering process, the algorithm automatically identifies the similarity between signals and classifies abnormal signals with similar feature patterns into the same category. The abnormal type can be used to indicate mechanical failures inside the equipment, or to indicate electromagnetic interference from the external environment. The abnormal type obtained by the clustering result is sent to the terminal so that the personnel receiving the terminal information can make corresponding adjustments.
[0071] 207. If an abnormal frequency sweep signal exists, remove the abnormal frequency sweep signal from the multiple frequency sweep signals to obtain target frequency sweep signal data;
[0072] 208. Correct the audio parameters of the audio device using the target frequency sweep signal data.
[0073] In an embodiment of the present invention, multiple sweep frequency signals in a room are collected, signal energy and noise energy of each sweep frequency signal are calculated, the signal-to-noise ratio of each sweep frequency signal is calculated based on the signal energy and the noise energy, the average amplitude within a specific frequency range of each sweep frequency signal is calculated, the volume of each sweep frequency signal is determined based on the average amplitude, the valid frame signal in each sweep frequency signal is calculated, the valid signal duration is determined based on the valid frame signal, and whether there is an abnormal sweep frequency signal is determined based on the signal-to-noise ratio, the volume, and the valid signal duration. If there is an abnormal sweep frequency signal, a cluster analysis is performed on the abnormal sweep frequency signal to obtain the abnormal type of the abnormal sweep frequency signal. If there is an abnormal sweep frequency signal, the abnormal sweep frequency signal is removed from the multiple sweep frequency signals to obtain target sweep frequency signal data, and the audio parameters of the audio device are corrected and processed based on the target sweep frequency signal data, thereby improving the accuracy of the correction of the audio device and optimizing the performance of the audio device.
[0074] See also Figure 2 Another embodiment of the calibration method of the audio device in the embodiment of the present invention includes:
[0075] 301. Collect multiple sweep frequency signals in the room, where the multiple sweep frequency signals are recorded test signals played by an audio device;
[0076] 302. Calculate the signal-to-noise ratio, volume, and effective signal duration of each frequency sweep signal;
[0077] 303. Determine whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, volume, and effective signal duration;
[0078] 304. If an abnormal frequency sweep signal exists, remove the abnormal frequency sweep signal from the multiple frequency sweep signals to obtain target frequency sweep signal data;
[0079] 305. Searching by the number of the audio device to obtain the target room to which the audio device belongs;
[0080] Before searching by the number of the audio device to obtain the target room to which the audio device belongs, it is necessary to construct room acoustic models corresponding to different rooms, including: obtaining actual frequency response curves of the audio devices in different rooms and corresponding target frequency response curves; analyzing the difference between the actual frequency response curve and the corresponding target frequency response curve; using a deep learning algorithm to establish a lookup table and a corresponding mapping relationship of the relationship between the adjustment parameters of the audio device and the frequency response difference, and obtain room acoustic models corresponding to different rooms.
[0081] The number of the audio device is obtained, each audio device number is a unique number, the number of the audio device is input into a search database, the search database is used to search and output the corresponding room information, the room information includes the target room to which the audio device belongs.
[0082] 306. Matching a corresponding target room acoustic model from a model database based on the target room;
[0083] Determine a target room type corresponding to the target room; and select a corresponding target room acoustic model according to the target room type.
[0084] Each room has its corresponding room type, which is usually classified based on its purpose, size, shape, decorative materials and furniture layout, such as conference room, concert hall, home theater, recording studio, etc.; each room type has a corresponding room acoustic model. After determining the target room type based on the target room, the corresponding target room acoustic model is queried in the model database through the target room type.
[0085] 307. Calculate adjustment parameters of the audio device using the target frequency sweep signal data and the target room acoustic model;
[0086] Obtain the expected target frequency response curve of the audio device; perform frequency domain analysis on the target frequency sweep signal data to obtain the actual frequency response curve; calculate the adjustment parameters of the audio device based on the target frequency response curve, the actual frequency response curve and the preset target room acoustic model.
[0087] The adjustment parameters of the audio device are calculated according to the target frequency response curve, the actual frequency response curve and the preset target room acoustic model, including: inputting the actual frequency response curve and the target frequency response curve into the preset target room acoustic model; extracting the first key point of the actual frequency response curve and the second key point corresponding to the first key point on the target frequency response curve through the target room acoustic model; calculating the gain difference and the phase difference between the first key point and the second key point; and determining the adjustment parameters of the audio device based on the gain difference and the phase difference through a lookup table or a mapping relationship.
[0088] 308. Correct audio parameters of the audio device based on the adjustment parameters.
[0089] Based on the gain difference, the settings of the built-in or external equalizer of the audio device are adjusted to compensate for the gain deviation at different frequencies, which helps to balance the frequency spectrum of the audio signal and make it closer to the target frequency response curve; for the phase difference, phase correction technology or algorithm is used to adjust the phase of the audio signal to reduce sound quality problems caused by phase shift, such as fuzzy sound or inaccurate positioning; in some cases, in order to optimize the synchronization and spatial sense of the sound, the delay of the audio signal also needs to be adjusted, which helps to ensure that the sound is correctly synchronized between multiple speakers or audio channels; if the target frequency response curve includes specific requirements regarding dynamic range (such as compression or limiting), the adjustment parameters may also involve the settings of the dynamic range processor to control the dynamic characteristics of the audio signal.
[0090] In an embodiment of the present invention, multiple sweep frequency signals in a room are collected, the signal-to-noise ratio, volume and effective signal duration of each sweep frequency signal are calculated, and based on the signal-to-noise ratio, volume and effective signal duration, it is determined whether there is an abnormal sweep frequency signal; if there is an abnormal sweep frequency signal, the abnormal sweep frequency signal is removed from the multiple sweep frequency signals to obtain target sweep frequency signal data, which is retrieved by the serial number of the audio device to obtain the target room to which the audio device belongs, and based on the target room, the corresponding target room acoustic model is matched from a model database, and the adjustment parameters of the audio device are calculated by the target sweep frequency signal data and the target room acoustic model, and the audio parameters of the audio device are corrected based on the adjustment parameters, thereby improving the accuracy of the correction of the audio device and optimizing the performance of the audio device.
[0091] The above describes the calibration method of the audio device in the embodiment of the present invention. The following describes the calibration device of the audio device in the embodiment of the present invention. Figure 4, an embodiment of the correction device of the audio device in the embodiment of the present invention includes:
[0092] A collecting module 401 is used to collect multiple sweep frequency signals in the room, where the multiple sweep frequency signals are recorded test signals played by an audio device;
[0093] A calculation module 402, used to calculate the signal-to-noise ratio, volume and effective signal duration of each frequency sweep signal;
[0094] A judgment module 403, used to judge whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, volume and effective signal duration;
[0095] The elimination module 404 is used to eliminate the abnormal sweep frequency signal from the multiple sweep frequency signals if there is an abnormal sweep frequency signal, so as to obtain target sweep frequency signal data;
[0096] The correction module 405 is used to perform correction processing on the audio parameters of the audio device through the target frequency sweep signal data.
[0097] In an embodiment of the present invention, multiple sweep frequency signals in a room are collected, the signal-to-noise ratio, volume and effective signal duration of each sweep frequency signal are calculated, and based on the signal-to-noise ratio, volume and effective signal duration, it is determined whether an abnormal sweep frequency signal exists; if an abnormal sweep frequency signal exists, the abnormal sweep frequency signal is removed from the multiple sweep frequency signals to obtain target sweep frequency signal data, and the audio parameters of the audio device are corrected using the target sweep frequency signal data, thereby improving the accuracy of the correction of the audio device and optimizing the performance of the audio device.
[0098] See also Figure 5 Another embodiment of the correction device for an audio device in the embodiment of the present invention includes:
[0099] A collecting module 401 is used to collect multiple sweep frequency signals in the room, where the multiple sweep frequency signals are recorded test signals played by an audio device;
[0100] A calculation module 402, used to calculate the signal-to-noise ratio, volume and effective signal duration of each frequency sweep signal;
[0101] A judgment module 403, used to judge whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, volume and effective signal duration;
[0102] The elimination module 404 is used to eliminate the abnormal sweep frequency signal from the multiple sweep frequency signals if there is an abnormal sweep frequency signal, so as to obtain target sweep frequency signal data;
[0103] The correction module 405 is used to perform correction processing on the audio parameters of the audio device through the target frequency sweep signal data.
[0104] Optionally, the calculation module 402 includes:
[0105] The first calculation unit 4021 is used to calculate the signal energy and the noise energy of each frequency sweep signal, and calculate the signal-to-noise ratio of each frequency sweep signal based on the signal energy and the noise energy;
[0106] A second calculation unit 4022, configured to calculate an average amplitude within a specific frequency range of each swept frequency signal, and determine a volume of each swept frequency signal based on the average amplitude;
[0107] The third calculation unit 4023 is used to calculate the valid frame signal in each frequency sweep signal, and determine the valid signal duration based on the valid frame signal.
[0108] The first calculation unit 4021 may be specifically configured to:
[0109] Calculate the energy of each frame signal in each sweep signal, and calculate the sum of all energies to obtain the signal energy of each sweep signal; select a preset number of frame signals from each sweep signal in chronological order to calculate the corresponding energy to obtain the noise energy of each sweep signal; calculate the signal-to-noise ratio of each sweep signal based on the signal energy and the noise energy.
[0110] Optionally, the second calculation unit 4022 may be specifically configured to:
[0111] Determine a frequency range of interest; extract corresponding signal components from each frequency sweep signal based on the frequency range; calculate an average amplitude of the signal components, and determine the volume of each frequency sweep signal based on the average amplitude.
[0112] Optionally, the third calculation unit 4023 may be specifically configured to:
[0113] Calculate the short-time energy and energy threshold of each frame signal in each frequency sweep signal; determine the effective frame signal in each frequency sweep signal based on the comparison between the short-time energy and the energy threshold; calculate the total time of the effective frame signal in each frequency sweep signal to obtain the effective signal duration in each frequency sweep signal.
[0114] Optionally, the determination module 403 may be specifically used for:
[0115] The signal-to-noise ratio, volume and effective signal duration are compared with corresponding thresholds; if a comparison result does not meet corresponding preset requirements, it is determined that an abnormal frequency sweep signal exists.
[0116] Optionally, the calibration device for the audio device further includes:
[0117] The cluster analysis module 406 is used to perform cluster analysis on the abnormal frequency sweep signal if there is an abnormal frequency sweep signal, so as to obtain the abnormal type of the abnormal frequency sweep signal.
[0118] Optionally, the correction module 405 includes:
[0119] The fourth calculation unit 4051 is used to calculate the adjustment parameters of the audio device through the target frequency sweep signal data and the preset target room acoustic model;
[0120] The correction unit 4052 is used to correct the audio parameters of the audio device based on the adjustment parameters.
[0121] Optionally, the fourth calculation unit 4051 includes:
[0122] The acquisition subunit 40511 is used to acquire the target frequency response curve expected by the audio device;
[0123] The analysis subunit 40512 is used to perform frequency domain analysis on the target frequency sweep signal data to obtain an actual frequency response curve;
[0124] The calculation subunit 40513 is used to calculate the adjustment parameters of the audio device according to the target frequency response curve, the actual frequency response curve and the preset target room acoustic model.
[0125] Optionally, the computing subunit 40513 may be specifically used for:
[0126] The actual frequency response curve and the target frequency response curve are input into a preset target room acoustic model; a first key point of the actual frequency response curve and a second key point on the target frequency response curve corresponding to the first key point are extracted through the target room acoustic model; a gain difference and a phase difference between the first key point and the second key point are calculated; and based on the gain difference and the phase difference, an adjustment parameter of the audio device is determined through a lookup table or a mapping relationship.
[0127] Optionally, the calibration device for the audio device further includes:
[0128] A search module 407 is used to search by the serial number of the audio device to obtain the target room to which the audio device belongs;
[0129] The matching module 408 is used to match the corresponding target room acoustic model from the model database based on the target room.
[0130] Optionally, the matching module 408 may be specifically configured to:
[0131] Determine a target room type corresponding to the target room; and select a corresponding target room acoustic model according to the target room type.
[0132] In an embodiment of the present invention, multiple sweep frequency signals in a room are collected, signal energy and noise energy of each sweep frequency signal are calculated, the signal-to-noise ratio of each sweep frequency signal is calculated based on the signal energy and the noise energy, the average amplitude within a specific frequency range of each sweep frequency signal is calculated, the volume of each sweep frequency signal is determined based on the average amplitude, the valid frame signal in each sweep frequency signal is calculated, the valid signal duration is determined based on the valid frame signal, and whether there is an abnormal sweep frequency signal is determined based on the signal-to-noise ratio, the volume, and the valid signal duration. If there is an abnormal sweep frequency signal, a cluster analysis is performed on the abnormal sweep frequency signal to obtain the abnormal type of the abnormal sweep frequency signal. If there is an abnormal sweep frequency signal, the abnormal sweep frequency signal is removed from the multiple sweep frequency signals to obtain target sweep frequency signal data, and the audio parameters of the audio device are corrected and processed based on the target sweep frequency signal data, thereby improving the accuracy of the correction of the audio device and optimizing the performance of the audio device.
[0133] above Figure 4 and Figure 5 The correction device of the audio device in the embodiment of the present invention is described in detail from the perspective of modular functional entities, and the electronic device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0134] See also Figure 6 As shown, the electronic device includes a processor 600 and a memory 601 , wherein the memory 601 stores machine executable instructions that can be executed by the processor 600 , and the processor 600 executes the machine executable instructions to implement the above-mentioned audio device correction method.
[0135] Further, Figure 6 The electronic device shown further includes a bus 602 and a communication interface 603 , and the processor 600 , the communication interface 603 and the memory 601 are connected via the bus 602 .
[0136] The memory 601 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), for example, at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 603 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 602 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0137] The processor 600 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 600. The above processor 600 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a corrector (Digital Signal Processor, DSP) of a digital audio device, an application-specific integrated circuit (ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 601, and the processor 600 reads the information in the memory 601 and completes the method steps of the above-mentioned embodiment in combination with its hardware.
[0138] The present invention also provides an electronic device, wherein the computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the audio device correction method in the above-mentioned embodiments.
[0139] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the correction method for the audio device.
[0140] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0141] If the integrated unit 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 this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0142] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for calibrating an audio device, characterized in that: The calibration method of the audio device comprises: Collecting multiple sweep frequency signals in the room, where the multiple sweep frequency signals are recorded test signals played by an audio device; Calculate the signal-to-noise ratio, volume and effective signal duration of each frequency sweep signal; Determining whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, the volume, and the effective signal duration; If the abnormal frequency sweep signal exists, the abnormal frequency sweep signal is removed from the multiple frequency sweep signals to obtain target frequency sweep signal data; The audio parameters of the audio device are corrected using the target frequency sweep signal data.
2. The method for calibrating an audio device according to claim 1, characterized in that: The calculating of the signal-to-noise ratio, volume and effective signal duration of each frequency sweep signal comprises: Calculating the signal energy and the noise energy of each frequency sweep signal, and calculating the signal-to-noise ratio of each frequency sweep signal based on the signal energy and the noise energy; Calculating an average amplitude within a specific frequency range of each swept frequency signal, and determining a volume of each swept frequency signal based on the average amplitude; Calculate the effective frame signal in each frequency sweep signal, and determine the effective signal duration based on the effective frame signal.
3. The method for calibrating an audio device according to claim 2, characterized in that: The calculating the signal energy and the noise energy of each frequency sweep signal, and calculating the signal-to-noise ratio of each frequency sweep signal based on the signal energy and the noise energy, comprises: Calculate the energy of each frame signal in each frequency sweep signal, and calculate the sum of all energies to obtain the signal energy of each frequency sweep signal; Selecting a preset number of frame signals from each frequency sweep signal in time sequence to calculate the corresponding energy, thereby obtaining the noise energy of each frequency sweep signal; The signal-to-noise ratio of each frequency sweep signal is calculated based on the signal energy and the noise energy.
4. The method for calibrating an audio device according to claim 2, characterized in that: The step of calculating the average amplitude of each frequency sweep signal within a specific frequency range and determining the volume of each frequency sweep signal based on the average amplitude comprises: Determine the frequency range of interest; extracting corresponding signal components from each swept frequency signal based on the frequency range; The average amplitude of the signal components is calculated, and the volume of each frequency sweep signal is determined based on the average amplitude.
5. The method for calibrating an audio device according to claim 2, characterized in that: The calculating of the valid frame signal in each frequency sweep signal and determining the valid signal duration based on the valid frame signal comprises: Calculating the short-time energy and energy threshold of each frame signal in each frequency sweep signal; Determining a valid frame signal in each frequency sweep signal based on a comparison between the short-time energy and the energy threshold; The total time of the effective frame signal in each sweep frequency signal is calculated to obtain the effective signal duration in each sweep frequency signal.
6. The method for calibrating an audio device according to claim 1, characterized in that: The determining whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, the volume, and the effective signal duration includes: comparing the signal-to-noise ratio, the volume, and the effective signal duration with corresponding thresholds; If there is a comparison result that does not meet the corresponding preset requirement, it is determined that there is an abnormal sweep frequency signal.
7. The method for calibrating an audio device according to claim 1, characterized in that: After determining whether there is an abnormal frequency sweep signal based on the signal-to-noise ratio, the volume, and the signal integrity, the method further includes: If the abnormal frequency sweep signal exists, cluster analysis is performed on the abnormal frequency sweep signal to obtain the abnormal type of the abnormal frequency sweep signal.
8. The method for calibrating an audio device according to claim 1, characterized in that: The correcting the audio parameters of the audio device by using the target frequency sweep signal data includes: Calculating adjustment parameters of the audio device using the target frequency sweep signal data and a preset target room acoustic model; The audio parameters of the audio device are corrected based on the adjustment parameters.
9. The method for calibrating an audio device according to claim 8, characterized in that: The step of calculating the adjustment parameters of the audio device using the target frequency sweep signal data and a preset target room acoustic model includes: Obtaining an expected target frequency response curve of the audio device; Performing frequency domain analysis on the target frequency sweep signal data to obtain an actual frequency response curve; The adjustment parameters of the audio device are calculated according to the target frequency response curve, the actual frequency response curve and a preset target room acoustic model.
10. The method for calibrating an audio device according to claim 9, characterized in that: The step of calculating the adjustment parameters of the audio device according to the target frequency response curve, the actual frequency response curve and a preset target room acoustic model includes: Inputting the actual frequency response curve and the target frequency response curve into a preset target room acoustic model; Extracting a first key point of the actual frequency response curve and a second key point on the target frequency response curve corresponding to the first key point by using the target room acoustic model; Calculating a gain difference and a phase difference between the first key point and the second key point; Based on the gain difference and the phase difference, an adjustment parameter of the audio device is determined through a lookup table or a mapping relationship.
11. The method for calibrating an audio device according to claim 8, characterized in that: Before calculating the adjustment parameters of the audio device using the target frequency sweep signal data and the preset target room acoustic model, the method further includes: Retrieve the target room to which the audio device belongs by searching through the number of the audio device; A corresponding target room acoustic model is matched from the model database based on the target room.
12. The method for calibrating an audio device according to claim 11, characterized in that: The matching of the corresponding room acoustic model based on the target room includes: Determining a target room type corresponding to the target room; A corresponding target room acoustic model is selected according to the target room type.
13. A calibration device for an audio device, characterized in that: The correction device of the audio equipment comprises: A collecting module, used to collect multiple sweep frequency signals in the room, wherein the multiple sweep frequency signals are recorded test signals played by an audio device; A calculation module, used for calculating the signal-to-noise ratio, volume and effective signal duration of each frequency sweep signal; A judging module, configured to judge whether there is an abnormal frequency sweeping signal based on the signal-to-noise ratio, the volume and the effective signal duration; a removing module, configured to remove the abnormal frequency sweep signal from the multiple frequency sweep signals if the abnormal frequency sweep signal exists, so as to obtain target frequency sweep signal data; The correction module is used to perform correction processing on the audio parameters of the audio device through the target frequency sweep signal data.
14. An electronic device, characterized in that: The electronic device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the electronic device to execute the correction method of the audio device as described in any one of claims 1-12.
15. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, a correction method for an audio device as described in any one of claims 1 to 12 is implemented.
