CN-115841823-B - Audio equipment detection method, device, equipment and storage medium
Abstract
The invention belongs to the technical field of audio detection, and discloses an audio equipment detection method, an audio equipment detection device, an audio equipment detection equipment and a storage medium, wherein the method comprises the steps of obtaining a spectrogram of tested equipment; the method comprises the steps of aligning a standard spectrogram template with a frequency sweeping part of a spectrogram of the tested device, cutting off redundant parts left and right to obtain a cut standard spectrogram template and a cut spectrogram of the tested device, comparing and analyzing the cut standard spectrogram template and the cut spectrogram of the tested device, determining that the tested device meets the standard if a comparison analysis result is within an allowable range, and improving the reliability and accuracy of a detection result without manual intervention in the process.
Inventors
- LI LINFENG
- WANG YANGGANG
- XIONG CHEN
Assignees
- 武汉海微科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221117
Claims (7)
- 1. A method of audio device detection, the method comprising the steps of: acquiring a spectrogram of the tested equipment; Aligning the standard spectrogram template with the sweep frequency part of the spectrogram of the tested device, and cutting off redundant parts left and right to obtain a cut standard spectrogram template and a cut spectrogram of the tested device; Comparing and analyzing the standard spectrogram template after cutting with the spectrogram of the tested device after cutting; if the comparison analysis result is within the allowable range, determining that the tested equipment meets the standard; the step of comparing and analyzing the standard spectrogram after cutting and the spectrogram of the tested device after cutting comprises the following steps: subtracting or dividing the trimmed spectrogram of the tested equipment from the trimmed standard spectrogram template to obtain a spectrogram difference matrix; Filtering the spectrogram difference matrix by using a filter to find out a region with larger amplitude difference; when an amplitude point with larger difference exists in the amplitude differences, determining that an analysis result of abnormal sound or amplitude interception exists; After subtracting or dividing the trimmed spectrogram of the tested device from the trimmed standard spectrogram template, the method further comprises: Calculating root mean square values of areas outside a standard frequency sweep signal spectrogram on the cut spectrogram of the tested equipment, wherein the standard frequency sweep signal spectrogram is generated by a standard frequency sweep signal; Comparing the standard spectrogram template after cutting with the root mean square value of the same area of the spectrogram of the tested equipment after cutting; determining the degree of difference of noise by comparing root mean square values of the same areas; Determining whether the tested equipment meets the standard according to the difference degree of the noise; after calculating the root mean square value of the area outside the standard sweep frequency signal spectrogram on the tailored spectrogram of the tested device, the method further comprises the following steps: binarizing the standard sweep frequency signal spectrogram to be used as a first mask template; selecting a fundamental wave part from the trimmed spectrogram of the tested equipment and the trimmed standard spectrogram template through the mask template; determining the degree of difference of the fundamental wave portions by comparing the magnitudes of the fundamental wave portions; And determining whether the tested equipment meets the standard according to the difference degree of the fundamental wave part.
- 2. The method of claim 1, wherein the aligning a standard spectrogram template with a swept portion of a spectrogram of the device under test comprises: Determining a first alignment point of a spectrogram of the tested device and a standard sweep frequency signal spectrogram; Determining a second alignment point of the standard sweep frequency signal spectrogram and the standard spectrogram template; and aligning the standard spectrogram with the tested equipment spectrogram according to the first alignment point and the second alignment point.
- 3. The method of claim 2, wherein prior to determining the first alignment point of the spectrogram of the device under test and the standard frequency sweep signal spectrogram, further comprising: Adopting a sweep frequency signal as a signal source; obtaining a standard sweep frequency signal spectrogram; And obtaining a standard spectrogram template, wherein the standard spectrogram template is a spectrogram generated by audio played by standard equipment recorded by standard equipment or standard detection equipment.
- 4. The method of claim 1, wherein after determining the degree of difference of the fundamental wave portions by comparing the magnitudes of the fundamental wave portions, further comprising: The standard sweep frequency signal spectrogram is inversely binarized and then used as a second mask template; Selecting a harmonic wave and noise part from the trimmed spectrogram of the tested equipment and the trimmed standard spectrogram template through the second mask template; Calculating the root mean square value of the harmonic wave plus noise; obtaining total harmonic distortion plus noise according to the root mean square value of the harmonic plus noise and the root mean square value of the fundamental wave part; And determining the difference of the total harmonic distortion plus noise by comparing the total harmonic distortion plus noise.
- 5. An audio device detection apparatus, characterized in that the audio device detection apparatus comprises: the acquisition module is used for acquiring the spectrogram of the tested equipment; The alignment module is used for aligning the standard spectrogram with the sweep frequency part of the spectrogram of the tested device, and cutting off the redundant part left and right to obtain a cut standard spectrogram and a cut spectrogram of the tested device; The analysis module is used for comparing and analyzing the standard spectrogram after cutting with the spectrogram of the tested equipment after cutting; The judging module is used for judging whether the tested equipment meets the standard or not; the analysis module is also used for subtracting or dividing the trimmed spectrogram of the tested equipment from the trimmed standard spectrogram template to obtain a spectrogram difference matrix, filtering the spectrogram difference matrix by using a filter to find out a region with larger amplitude difference, and determining that an abnormal sound or a truncated analysis result exists when an amplitude point with larger difference exists in the amplitude difference; The analysis module is further used for calculating root mean square values of areas outside the standard frequency sweeping signal spectrogram on the cut spectrogram of the tested device, wherein the standard frequency sweeping signal spectrogram is generated by standard frequency sweeping signals; comparing the root mean square value of the same region of the standard spectrogram template after cutting and the spectrogram of the tested equipment after cutting, and determining the difference degree of noise by comparing the root mean square value of the same region; The analysis module is further used for binarizing the standard sweep frequency signal spectrogram to be used as a first mask template, selecting a fundamental wave part from the clipped spectrogram of the tested device and the clipped standard spectrogram template through the mask template, determining the difference degree of the fundamental wave part through comparing the amplitude of the fundamental wave part, and determining whether the tested device meets the standard according to the difference degree of the fundamental wave part.
- 6. An audio device detection apparatus comprising a memory, a processor and an audio device detection program stored on the memory and executable on the processor, the audio device detection program being configured to implement the steps of the audio device detection method according to any one of claims 1 to 4.
- 7. A storage medium having stored thereon an audio device detection program which, when executed by a processor, implements the steps of the audio device detection method according to any one of claims 1 to 4.
Description
Audio equipment detection method, device, equipment and storage medium Technical Field The present invention relates to the field of audio detection technologies, and in particular, to an audio device detection method, apparatus, device, and storage medium. Background Currently, more and more devices with audio input and output functions face the problem of production line detection of the audio input and output functions during production. The traditional detection method comprises the following steps: 1) The audio recorded or played by the ear hearing device is judged manually; 2) The recorded or played audio waveform is displayed on a display, judged by human eyes, 3) And testing various indexes through professional audio detection equipment so as to judge. The reliability and accuracy of manual judgment are not high, the test time of the professional audio detection equipment is long, the requirement on operators is high, and the operation difficulty is high. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The invention mainly aims to provide an audio equipment detection method, an audio equipment detection device, audio equipment detection equipment and a storage medium, and aims to solve the technical problems of low reliability and accuracy of manual judgment, long test time of professional audio equipment detection equipment, high requirements on operators and high operation difficulty in the prior art. To achieve the above object, the present invention provides an audio device detection method, including the steps of: acquiring a spectrogram of the tested equipment; Aligning the standard spectrogram template with the sweep frequency part of the spectrogram of the tested device, and cutting off redundant parts left and right to obtain a cut standard spectrogram template and a cut spectrogram of the tested device; Comparing and analyzing the standard spectrogram template after cutting with the spectrogram of the tested device after cutting; And if the comparison analysis result is within the allowable range, determining that the tested equipment meets the standard. Optionally, the aligning the standard spectrogram template with the sweep frequency part of the spectrogram of the tested device includes: Determining a first alignment point of a spectrogram of the tested device and a standard sweep frequency signal spectrogram; Determining a second alignment point of the standard sweep frequency signal spectrogram and the standard spectrogram template; and aligning the standard spectrogram with the tested equipment spectrogram according to the first alignment point and the second alignment point. Optionally, before determining the first alignment point of the spectrogram of the device under test and the standard frequency sweep signal spectrogram, the method further includes: Adopting a sweep frequency signal as a signal source; Obtaining a standard sweep frequency signal spectrogram, wherein the standard sweep frequency signal spectrogram is generated by a standard sweep frequency signal; And obtaining a standard spectrogram template, wherein the standard spectrogram template is a spectrogram generated by audio played by standard equipment recorded by standard equipment or standard detection equipment. Optionally, the comparing the standard spectrogram after clipping with the spectrogram of the tested device after clipping includes: subtracting or dividing the trimmed spectrogram of the tested equipment from the trimmed standard spectrogram template to obtain a spectrogram difference matrix; Filtering the spectrogram difference matrix by using a filter to find out a region with larger amplitude difference; And when the amplitude point with larger difference exists in the amplitude differences, determining that an abnormal sound or an analysis result of amplitude interception exists. Optionally, after subtracting or dividing the trimmed spectrogram of the tested device from the trimmed standard spectrogram template, the method further includes: calculating the root mean square value of the area outside the standard sweep frequency signal spectrogram on the trimmed spectrogram of the tested equipment; Comparing the standard spectrogram template after cutting with the root mean square value of the same area of the spectrogram of the tested equipment after cutting; determining the degree of difference of noise by comparing root mean square values of the same areas; And determining whether the tested equipment meets the standard according to the difference degree of the noise. Optionally, after calculating the root mean square value of the area outside the standard sweep frequency signal spectrogram on the clipped spectrogram of the tested device, the method further comprises: binarizing the standard sweep frequency signal sp