A method and system for detecting sound quality of electroacoustic device

By converting the acoustic signal into a power spectrum signal and extracting the pixel area of ​​a specific area, the problem of low detection accuracy of electroacoustic devices in the prior art is solved, and the rapid and accurate identification and detection of electroacoustic device quality is achieved.

CN115334438BActive Publication Date: 2024-11-01XIAMEN TUNESS ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210916594.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-01
Publication Date
2024-11-01
Estimated Expiration
2042-08-01

AI Technical Summary

Technical Problem

The sound quality detection of existing electroacoustic devices relies on manual operation, has low accuracy and is susceptible to external interference, making it difficult to accurately determine noise and strange sounds.

Method used

By obtaining the acoustic signal, converting it into a power spectrum signal and extracting the pixel area of ​​the sound and the anodic region, the sound quality of the electroacoustic device is judged using the threshold interval, and the electroacoustic device is driven by a signal with a high frequency first and then low frequency to reduce abnormal occurrence.

Benefits of technology

The intelligent and programmatic detection of electroacoustic devices is realized, the accuracy and efficiency of detection are improved, manual misjudgment is reduced, and it is suitable for parameter determination of different electroacoustic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115334438B_ABST
    Figure CN115334438B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and system for detecting the sound quality of an electroacoustic device, comprising the following steps: obtaining a sound signal emitted or obtained by an electroacoustic device to be tested; converting the sound signal into a power spectrum signal to obtain a power spectrum image showing the power spectrum signal; extracting a sound emission area in the power spectrum image, calculating a first pixel area in the sound emission area that satisfies a first threshold interval, if the first pixel area satisfies a normal sound emission threshold interval, proceeding to the next step, if not, determining that the electroacoustic device to be tested is abnormal; extracting an abnormal sound area in the power spectrum image, calculating a second pixel area in the abnormal sound area that satisfies a second threshold interval, if the second pixel area is less than a no abnormal sound threshold, determining that the electroacoustic device to be tested is qualified, if not, determining that the electroacoustic device to be tested is abnormal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of sound quality detection, and in particular to a method and system for detecting the sound quality of an electroacoustic device. Background Art

[0002] Electroacoustic devices refer to devices that convert electricity and sound into each other. They use electromagnetic induction, electrostatic induction or piezoelectric effect to complete the electroacoustic conversion, including speakers, headphones, microphones, cartridges, etc. Electroacoustic devices are generally composed of a vibration system and a magnetic circuit system. By introducing electrical signals into the vibration system, the vibration system and the magnetic circuit system generate magnetic fields that repel or attract each other, thereby driving the diaphragm to vibrate and produce sound.

[0003] The structure of electroacoustic devices is precise, and after the electroacoustic device is prepared, it needs to be tested for sound quality to detect whether the sound it emits has noise or abnormal sound. The existing testing process relies on manual work, which requires manual connection of the speaker to the corresponding drive circuit, and the drive circuit drives the speaker to emit a certain regular sound, and then the human ear is used to test it. If there is noise or abnormal sound, it is judged as unqualified. The disadvantages of this are that, on the one hand, workers need to be trained to identify how to judge the sound emitted by the electroacoustic device as noise or abnormal sound, and on the other hand, the accuracy of human ear testing is low, which is easily affected by external interference, and some frequencies or loudness are difficult for the human ear to hear.

[0004] The purpose of the present invention is to design a method and system for detecting the sound quality of an electroacoustic device in view of the above-mentioned problems in the prior art. Summary of the invention

[0005] In view of the problems existing in the above-mentioned prior art, the present invention provides a method and system for detecting the sound quality of an electroacoustic device, which can effectively solve the problems existing in the above-mentioned prior art.

[0006] The technical solution of the present invention is:

[0007] A method for detecting the sound quality of an electroacoustic device comprises the following steps:

[0008] Obtaining the acoustic signal emitted or obtained by the electroacoustic device to be tested;

[0009] Converting the acoustic signal into a power spectrum signal to obtain a power spectrum image showing the power spectrum signal;

[0010] Extracting a sounding area from the power spectrum image, calculating a first pixel area in the sounding area that satisfies a first threshold interval, and if the first pixel area satisfies a normal sounding threshold interval, proceeding to the next step, and if not, determining that the electroacoustic device to be tested is abnormal;

[0011] An abnormal sound region is extracted from the power spectrum image, and a second pixel area within the abnormal sound region that satisfies a second threshold interval is calculated. If the second pixel area is less than a no abnormal sound threshold, the electroacoustic device to be tested is determined to be qualified; if not, the electroacoustic device to be tested is determined to be abnormal.

[0012] Furthermore, the acoustic signal is a single or multiple acoustic signals whose frequencies gradually increase and then gradually decrease.

[0013] Furthermore, before extracting the sounding area in the power spectrum image, the method includes: finding the highest frequency line corresponding to the sound signal in the power spectrum image;

[0014] The extracting of the sound emission area in the power spectrum image comprises: selecting the area where energy is mainly distributed in the power spectrum image with the highest frequency line as the center line, and extracting the frequency response area sensitive to human ears in the area where energy is mainly distributed as the sound emission area;

[0015] Extracting the unusual sound region in the power spectrum image includes: extracting regions on the left and right sides of the region where the energy is mainly distributed in the power spectrum image as the unusual sound region.

[0016] Further, the step of finding the highest frequency line corresponding to the acoustic signal in the power spectrum image includes:

[0017] Find the highest frequency point corresponding to the area with the highest energy in the power spectrum image, and use the vertical line where the highest frequency point is located as the highest frequency line; or

[0018] The highest frequency point corresponding to the acoustic signal in the power spectrum image is found through template matching, and the vertical line where the highest frequency point is located is used as the highest frequency line.

[0019] Further, the method of selecting the area where energy is mainly distributed in the power spectrum image with the highest frequency line as the center line, and extracting the frequency response area sensitive to the human ear as the sound emission area in the area where energy is mainly distributed includes: extracting power spectrum images of multiple qualified electroacoustic devices, counting the areas where energy is mainly distributed in the power spectrum images of the qualified electroacoustic devices, obtaining the energy main distribution graph corresponding to the area where energy is mainly distributed in the power spectrum images of the qualified electroacoustic devices, and selecting the energy main distribution graph with the highest frequency line as the center line in the power spectrum image of the electroacoustic device to be tested as the area where energy is mainly distributed in the electroacoustic device to be tested;

[0020] The step of extracting the areas on the left and right sides of the area where the energy is mainly distributed in the power spectrum image as the abnormal sound area includes: extracting power spectrum images of a plurality of qualified electroacoustic devices, counting the energy non-distributed areas corresponding to the areas on both sides of the energy mainly distributed in the power spectrum images of the qualified electroacoustic devices, obtaining an energy non-distributed graph corresponding to the energy non-distributed areas in the power spectrum images of the qualified electroacoustic devices, and in the power spectrum image of the electroacoustic device to be tested, selecting the energy non-distributed graph with the highest frequency line as the center line as the abnormal sound area of ​​the electroacoustic device to be tested.

[0021] Further, after obtaining the power spectrum image showing the power spectrum signal and before extracting the sounding area in the power spectrum image, performing: grayscale processing on the power spectrum image to obtain a grayscale power spectrum image and a relationship between energy and grayscale;

[0022] The calculating the first pixel area within the sound emission area that satisfies the first threshold interval comprises: extracting a plurality of first pixel areas within the first threshold interval according to the relationship between the energy and the grayscale, and calculating the sum of the areas of the plurality of first pixel areas to obtain the first pixel area;

[0023] The calculating of the second pixel area in the abnormal sound area that satisfies the second threshold interval includes: extracting a plurality of second pixel areas that satisfy the second threshold interval according to the relationship between the energy and the grayscale, and calculating the sum of the areas of the plurality of second pixel areas to obtain the second pixel area.

[0024] Further, the first threshold interval is a frequency of 5kHz to 8kHz and a loudness of -60dB to -75dB, and the second threshold interval is a loudness greater than -65dB.

[0025] Furthermore, the no abnormal sound threshold is 10% of the area of ​​the abnormal sound region.

[0026] Furthermore, the normal sounding threshold interval is a main energy pixel area ratio interval obtained by counting the area where energy is mainly distributed in the power spectrum image of the qualified electroacoustic device.

[0027] A sound quality detection system for an electroacoustic device is further provided, comprising the following modules:

[0028] An acquisition module, used to acquire the acoustic signal emitted or received by the electroacoustic device to be tested;

[0029] A conversion module, used for converting the acoustic signal into a power spectrum signal to obtain a power spectrum image showing the power spectrum signal;

[0030] A noise calculation module, used for extracting a sound emission area in the power spectrum image, calculating a first pixel area in the sound emission area that satisfies a first threshold interval, and if the first pixel area satisfies a normal sound emission threshold interval, proceeding to the next step; if not, determining that the electroacoustic device to be tested is abnormal;

[0031] The abnormal sound calculation module is used to extract the abnormal sound area in the power spectrum image, calculate the second pixel area in the abnormal sound area that meets the second threshold interval, and if the second pixel area is less than the no abnormal sound threshold, it is determined that the electroacoustic device to be tested is qualified; if not, it is determined that the electroacoustic device to be tested is abnormal.

[0032] Therefore, the present invention provides the following effects and / or advantages:

[0033] The present invention converts the acoustic signal into a power spectrum signal, and then extracts each area in the power spectrum signal, the meaning represented by the corresponding pixels in each area, and the area of ​​the pixels that should appear in each area as the sound quality of the electroacoustic device, so that it can be simply and quickly identified. The present invention makes the entire process of manual detection intelligent and programmed, and the quality of the electroacoustic device can be judged by recording and signal analysis through corresponding equipment.

[0034] The present invention uses a signal with a high frequency first and a low frequency later to drive the electroacoustic device to obtain a corresponding sound signal, which facilitates the method to find each area and can also drive and obtain multiple sound signals, thereby reducing the possibility of irregular abnormalities in the electroacoustic device.

[0035] The present invention obtains the coordinate area corresponding to each area and the area of ​​the pixels that should exist in each area in a statistical manner, which can be applied to different electroacoustic devices to determine their required parameters and used in each step of the present invention.

[0036] It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a schematic diagram of the method flow of the present invention.

[0038] Figure 2 The figure is a logical schematic diagram of the method of the present invention.

[0039] Figure 3 A schematic diagram of the power spectrum of a loudspeaker.

[0040] Figure 4 Schematic diagram of the abnormal sound area and the sound production area.

[0041] Figure 5A schematic diagram of the power spectrum of a loudspeaker without noise.

[0042] Figure 6 for Figure 5 A partial enlarged schematic diagram of .

[0043] Figure 7 for Figure 6 or Figure 5 Plot of calculated area data.

[0044] Figure 8 A schematic diagram of the power spectrum of a loudspeaker with noise.

[0045] Fig. 9 for Figure 8 A partial enlarged view of .

[0046] Fig.10 for Figure 8 or Fig. 9 Plot of calculated area data.

[0047] Fig.11 Schematic diagram of the power spectrum of a speaker with abnormal sound.

[0048] Fig.12 The contour map used for template matching.

[0049] Figure 13-17 This is an experimental data diagram of the present invention. DETAILED DESCRIPTION

[0050] To facilitate understanding by those skilled in the art, the present invention will now be further described in detail with reference to the embodiments and accompanying drawings. It should be understood that the steps mentioned in this embodiment, unless otherwise specified in their order, can be adjusted in order according to actual needs, and can even be executed simultaneously or partially simultaneously.

[0051] refer to Figure 1-2 , a method for detecting the sound quality of an electroacoustic device, comprising the following steps:

[0052] S1, obtaining an acoustic signal emitted or obtained by the electroacoustic device to be tested, and saving the acoustic signal.

[0053] In this step, the electroacoustic device can be a device that converts an electrical signal into an acoustic signal, such as a speaker or a horn. In this case, the acoustic signal emitted by the electroacoustic device needs to be obtained. The electroacoustic device can also be a device that converts an acoustic signal into an electrical signal, such as a microphone. In this case, the acoustic signal obtained by the electroacoustic device needs to be obtained. The type of electroacoustic device is not limited here. The working principle of the electroacoustic device is a prior art and will not be elaborated here.

[0054] Install the electroacoustic device to be tested on the test instrument, electrically connect the corresponding circuit of the test instrument to the electroacoustic device, and then save the acoustic signal of the electroacoustic device to be tested by inputting the corresponding electrical signal to drive the electroacoustic device to send an acoustic signal or receiving the acoustic signal obtained by the electroacoustic device. The saving method can be recording. If the electroacoustic device is a device that converts electrical signals into acoustic signals, the test instrument can be a cavity, and sound-absorbing cotton is set on the inner wall of the cavity to prevent external noise. The electroacoustic device emits sound into the cavity, and then the microphone set in the cavity records the sound to obtain an acoustic signal, and then the acoustic signal is processed by corresponding software. If the electroacoustic device is a device that converts acoustic signals into electrical signals, the test instrument can be a cavity, and the speaker set in the cavity emits sound to the electroacoustic device, and then the electroacoustic device records the sound to obtain an acoustic signal, and then the acoustic signal is processed by corresponding software.

[0055] The electroacoustic device of this embodiment is taken as an example of a loudspeaker.

[0056] S2, converting the acoustic signal into a power spectrum signal to obtain a power spectrum image showing the power spectrum signal.

[0057] In this step, the acoustic signal can be converted into a frequency domain signal by Fourier transform, and then the frequency domain signal can be converted into a power spectrum signal by calculating the energy density of the frequency domain signal. This conversion method is a prior art. The horizontal axis represents time, the vertical axis represents frequency, and the color of the power spectrum represents the corresponding loudness power spectrum signal. Figure 3 Color pictures shown.

[0058] Furthermore, the acoustic signal is a single or multiple acoustic signals whose frequencies gradually increase and then gradually decrease. Figure 3 The acoustic signal shown is an acoustic signal whose frequency rises and then falls within 0.5 seconds. In order to facilitate observation and expand the inspection range, the acoustic signal can be repeated multiple times. A sweep frequency meter can generate a driving signal with a frequency of 100-2kHz and a constant voltage range. Through the sound resonance in the speaker, the speaker can emit a higher frequency acoustic signal. Different impedance matching voltage ranges are required for different speakers, such as 3.2V-3.4V.

[0059] S3, extracting the sound emission area in the power spectrum image, calculating the first pixel area within the sound emission area that satisfies the first threshold interval, and if the first pixel area satisfies the normal sound emission threshold interval, proceeding to the next step, if not, determining that the electroacoustic device to be tested is abnormal.

[0060] In this step, first, the sound emission area is extracted from the power spectrum image. The sound emission area refers to the area that the human ear can perceive. For example, the sound range that the human ear can hear is 20Hz-20kHz, and the frequency range of the sound emission area should also be 20Hz-20kHz. At the same time, since the speaker used in this embodiment is a device for small electronic products such as mobile phones, its volume is also small, and the vibration generated by the speaker is also small, so it is difficult for the low-frequency part to be perceived by the human ear. Therefore, this step does not limit the specific frequency range of the sound emission area, and it only needs to be appropriately selected according to the type and volume of the speaker. At the same time, since the human ear can easily perceive the sound signal within a certain loudness range, the sound signal outside the loudness range is not easy to be perceived or even cannot be perceived by the human ear. Therefore, only the area within a certain frequency range in the sound signal and most of the loudness is greater than a certain threshold is selected as the occurrence area. For example, this embodiment uses a frequency range of 5kHz-8kHz and a range of 0.23 seconds centered on the highest frequency as the sound emission area. In other embodiments, it is only necessary to select the range according to the characteristics of the sound signal and the speaker.

[0061] Then, the first pixel that satisfies the first threshold interval is searched in the sound emission area. The pixel that satisfies the first threshold interval indicates that the speaker emits a sound of corresponding frequency and loudness in the occurrence area. For a qualified speaker, the sound signals emitted according to the same driving signal should be roughly the same, and the power spectra obtained by conversion should also be roughly the same. Then, the total area of ​​the first pixel that satisfies the first threshold interval is obtained to obtain the first pixel area, which represents the corresponding sound emitted by the speaker in the occurrence area. In this embodiment, the first threshold interval is 0 to -75dB. Figure 5 As shown, this step obtains Figure 5 The results shown, Figure 6 for Figure 5 A partial enlarged view of . Figure 6 The framed portion represents the region where the first pixel identified in this step is located, and the area of ​​the first pixel can be obtained by calculating the framed area.

[0062] Finally, if the first pixel area meets the normal sound threshold interval, the next step is entered; if not, the electroacoustic device to be tested is determined to be abnormal. If the corresponding sound emitted by the speaker in the occurrence area meets the requirements, then its first pixel area meets the normal sound threshold interval, indicating that the corresponding sound is emitted in the corresponding sound interval. If the corresponding sound emitted by the speaker in the occurrence area does not meet the requirements, then its first pixel area does not meet the normal sound threshold interval, indicating that the sound emitted in the corresponding sound interval lacks certain sounds or contains certain noises.

[0063] S4, extracting an abnormal sound region from the power spectrum image, calculating a second pixel area within the abnormal sound region that satisfies a second threshold interval, and if the second pixel area is greater than a no abnormal sound threshold, determining that the electroacoustic device to be tested is qualified; if not, determining that the electroacoustic device to be tested is abnormal.

[0064] In this step, the abnormal sound area refers to the area outside the sound area where the normal speaker does not make any sound, for example Figure 4 There are two completely black areas on the left and right of the sound-generating area. Since the sweep frequency meter generates a driving signal with a frequency of 0-2kHz, the speaker will also emit a sound signal with a high frequency first and then a low frequency. The power spectrum image shows that the energy is concentrated in a number of peak-shaped curves with a frequency that is first high and then low. Therefore, the left and right sides of the occurrence area should be low-energy areas, that is, normal speakers do not make sounds here.

[0065] Then, the second pixel area that satisfies the second threshold interval in the abnormal sound area is calculated. In this embodiment, the second threshold interval is set to a loudness greater than -65dB. The setting principle is the same as above. By calculating the total area of ​​the second pixel, it is possible to intuitively observe whether the speaker makes a sound in the abnormal sound area and how much sound it makes.

[0066] Finally, if the second pixel area is less than the no abnormal sound threshold, the electroacoustic device to be tested is determined to be qualified, and if not, the electroacoustic device to be tested is determined to be abnormal. For example, in this embodiment, the no abnormal sound threshold can be set to 10% of the abnormal sound area. If it is greater than 10% of the abnormal sound area, it means that the speaker emits too much abnormal sound and needs to be determined to be unqualified.

[0067] The sound within the first threshold interval is prone to noise, with various frequencies of sound superimposed and resonating. The sound within the second threshold interval is not easily detected by the human ear. Therefore, in this embodiment, the first threshold interval and the second threshold interval are limited to the range of the above parameters.

[0068] The present invention converts the sound signal into a power spectrum signal, and then extracts each area in the power spectrum signal, the meaning represented by the corresponding pixels in each area, and the area of ​​the pixels that should appear in each area as the sound quality of the electroacoustic device, which can be simply and quickly identified.

[0069] The following are some directions in which this application can be optimized.

[0070] Specifically, before extracting the sound emission area in the power spectrum image, the process includes: finding the highest frequency line corresponding to the sound signal in the power spectrum image; the highest frequency line represents the position of the highest frequency of the signal used for driving. Since the present embodiment adopts a driving signal that first increases and then decreases the frequency, the symmetry line within a sound cycle can be found by finding the highest frequency line, and then the line is used as the center line to expand and find subsequent areas.

[0071] The extracting of the sound emission area in the power spectrum image comprises: selecting the area where energy is mainly distributed in the power spectrum image with the highest frequency line as the center line, and extracting the frequency response area sensitive to human ears in the area where energy is mainly distributed as the sound emission area;

[0072] Extracting the unusual sound region in the power spectrum image includes: extracting regions on the left and right sides of the region where the energy is mainly distributed in the power spectrum image as the unusual sound region.

[0073] Due to the symmetry of the driving sound signal, the distribution of energy in the power spectrum on the highest frequency line is also roughly symmetrical. Using the highest frequency line as the center line to select the area where the energy is mainly distributed in the power spectrum image can better find the appropriate area and prevent missing, multiple selection, and wrong selection. At the same time, if the highest frequency line cannot be found, it can also be judged as unqualified.

[0074] Specifically, the step of searching for the highest frequency line corresponding to the acoustic signal in the power spectrum image includes:

[0075] The first method is to find the highest frequency point corresponding to the area with the highest energy in the power spectrum image, and use the vertical line where the highest frequency point is located as the highest frequency line; as mentioned above, the power spectrum image is represented by a number of peak-shaped curves with energy concentrated in the frequency that is first high and then low, so finding the highest point in the peak-shaped curve may be used to connect to form the highest frequency line.

[0076] Alternatively, the second method is to find the highest frequency point corresponding to the acoustic signal in the power spectrum image by template matching, and use the vertical line where the highest frequency point is located as the highest frequency line. Fig.12 , Fig.12 A contour template with higher loudness and the highest frequency in the power spectrum image is stored. Fig.12 The highest frequency line can be obtained by performing template matching, and the template matching technology is adopted in the existing technology.

[0077] Specifically, the method of selecting an area where energy is mainly distributed in the power spectrum image with the highest frequency line as the center line, and extracting a frequency response area that is sensitive to the human ear as a sound emission area in the area where energy is mainly distributed includes: extracting power spectrum images of a plurality of qualified electroacoustic devices, counting the areas where energy is mainly distributed in the power spectrum images of the qualified electroacoustic devices, obtaining an energy main distribution graph corresponding to the area where energy is mainly distributed in the power spectrum images of the qualified electroacoustic devices, and selecting the energy main distribution graph with the highest frequency line as the center line in the power spectrum image of the electroacoustic device to be tested as the area where energy is mainly distributed in the electroacoustic device to be tested;

[0078] The step of extracting the areas on the left and right sides of the area where the energy is mainly distributed in the power spectrum image as the abnormal sound area includes: extracting power spectrum images of a plurality of qualified electroacoustic devices, counting the energy non-distributed areas corresponding to the areas on both sides of the energy mainly distributed in the power spectrum images of the qualified electroacoustic devices, obtaining an energy non-distributed graph corresponding to the energy non-distributed areas in the power spectrum images of the qualified electroacoustic devices, and in the power spectrum image of the electroacoustic device to be tested, selecting the energy non-distributed graph with the highest frequency line as the center line as the abnormal sound area of ​​the electroacoustic device to be tested.

[0079] This step is carried out based on the data obtained by statistically analyzing the power spectrum images of multiple qualified electroacoustic devices. First, extract the power spectrum images of multiple qualified electroacoustic devices, and count the areas where energy is mainly distributed in the power spectrum images of the qualified electroacoustic devices and the areas where energy is not distributed on both sides of the areas where energy is mainly distributed. At this time, graphs can be obtained respectively, which represent the graphic features of energy distribution or non-distribution of the power spectrum of the speaker in the area. By recording the graph and drawing the corresponding graph with the highest frequency line of the graph as the center in the subsequent steps, the corresponding area can be extracted.

[0080] Specifically, after obtaining the power spectrum image showing the power spectrum signal and before extracting the sounding area in the power spectrum image, performing:

[0081] The power spectrum image is grayed to obtain a gray power spectrum image and the relationship between energy and gray. In this step, the power spectrum image is grayed to obtain a black and white power spectrum image for the convenience of subsequent calculations. Figure 3 The relationship between color and power in the black and white image shown on the right. This relationship can be used to determine the loudness corresponding to each pixel in the black and white power spectrum.

[0082] The calculation of the first pixel area in the sound emission area that satisfies the first threshold interval includes: extracting a number of first pixel areas that meet the first threshold interval according to the relationship between the energy and the grayscale, and calculating the sum of the areas of the first pixel areas to obtain the first pixel area; in this step, the first threshold interval mentioned above is 0 to -75dB, and the relationship between energy and grayscale is used to obtain what kind of grayscale pixels can fall into the first threshold interval. For example, in the relationship between energy and grayscale obtained in this embodiment, pixels with a grayscale value less than 40 represent 0 to -75dB.

[0083] The calculation of the second pixel area in the abnormal sound area that satisfies the second threshold interval includes: extracting a number of second pixel areas that meet the second threshold interval according to the relationship between the energy and the grayscale, and calculating the sum of the areas of the second pixel areas to obtain the second pixel area. In this step, the second threshold interval mentioned above is greater than -65dB, and the relationship between energy and grayscale is used to determine what kind of grayscale pixels can fall into the second threshold interval. For example, in the relationship between energy and grayscale obtained in this embodiment, a pixel with a grayscale value less than 30 indicates that it is greater than -65dB.

[0084] Specifically, the first threshold interval is a frequency of 5 kHz to 8 kHz and a loudness of -60 dB to -75 dB, and the second threshold interval is a frequency of 2 kHz to 8 kHz and a loudness greater than -65 dB.

[0085] Specifically, the no abnormal sound threshold is 10% of the area of ​​the abnormal sound region.

[0086] Specifically, the normal sound threshold interval is the main energy pixel area ratio interval obtained by counting the area where the energy is mainly distributed in the power spectrum image of the qualified electroacoustic device. This step is to statistically count the area where the energy is mainly distributed in the power spectrum image of the qualified electroacoustic device. In the power spectrum obtained after the electroacoustic device correctly pronounces, its energy distribution and energy intensity should be in a reasonable interval, and the main energy pixel area ratio interval is obtained by counting the interval.

[0087] A computer-readable storage medium is further provided, storing a computer program, wherein the computer program, when executed by a processor, implements the method for detecting the sound quality of an electroacoustic device.

[0088] A sound quality detection system for an electroacoustic device is further provided, characterized in that it comprises the following modules:

[0089] An acquisition module, used to acquire the acoustic signal emitted or received by the electroacoustic device to be tested;

[0090] A conversion module, used for converting the acoustic signal into a power spectrum signal to obtain a power spectrum image showing the power spectrum signal;

[0091] A noise calculation module, used for extracting a sound emission area in the power spectrum image, calculating a first pixel area in the sound emission area that satisfies a first threshold interval, and if the first pixel area satisfies a normal sound emission threshold interval, proceeding to the next step; if not, determining that the electroacoustic device to be tested is abnormal;

[0092] The abnormal sound calculation module is used to extract the abnormal sound area in the power spectrum image, calculate the second pixel area in the abnormal sound area that meets the second threshold interval, and if the second pixel area is less than the no abnormal sound threshold, it is determined that the electroacoustic device to be tested is qualified; if not, it is determined that the electroacoustic device to be tested is abnormal.

[0093] Experimental data

[0094] refer to Figure 5-7 , Figure 7 According to Figure 5 The coordinates and areas of each region occupied by the calculated first pixel area can be obtained by calculating the sum of the areas of each region. Figure 5 The first pixel area shown meets the normal voice threshold range and is determined to be normal. Figure 8-10 , Fig.10 The first pixel area calculated by the loudspeaker shown is smaller than the normal sound threshold interval, indicating that the loudspeaker lacks some sound and is determined to be abnormal.

[0095] refer to Fig.11 , Fig.11 A large number of abnormal sounds appeared in the abnormal sound area, exceeding the threshold of no abnormal sound. It was judged as unqualified.

[0096] refer to Figure 13-17 , Fig.13 This is the power spectrum image of another speaker. Fig.14 In the power spectrum image, there are extra sounds in the abnormal sound area, which are perceived by human ears as collision sounds and noises from the speaker. This method judges it as unqualified. Fig.15 , 16 In 17, a large number of abnormal sounds appear in the abnormal sound area of ​​the power spectrum image. The human ear perceives that the sound emitted by the speaker is impure and is judged as unqualified by this method.

[0097] The method provided by this application is compared with the manual detection method. The results of three batches of manual detection are shown in Table 1. There is a false positive rate in manual detection. However, the detection results of the same three batches of speakers by this application are exactly the same as the real results, and there is no false positive rate. At the same time, the detection is fast. The use of this method greatly reduces the detection time, including the time to play the sound through the speaker, which is about 2 seconds in total.

[0098]

[0099] Table 1

[0100] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0101] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0102] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0104] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0105] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0106] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0107] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0108] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms should not be understood as necessarily being directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

Claims

1. A method for detecting the sound quality of an electroacoustic device, characterized in that: The following steps are involved: Obtaining the acoustic signal emitted or obtained by the electroacoustic device to be tested; Converting the acoustic signal into a power spectrum signal to obtain a power spectrum image showing the power spectrum signal; Extracting a sounding area from the power spectrum image, calculating a first pixel area in the sounding area that satisfies a first threshold interval, and if the first pixel area satisfies a normal sounding threshold interval, proceeding to the next step, and if not, determining that the electroacoustic device to be tested is abnormal; Extracting an abnormal sound region from the power spectrum image, calculating a second pixel area in the abnormal sound region that satisfies a second threshold interval, and if the second pixel area is less than a threshold value for no abnormal sound, determining that the electroacoustic device to be tested is qualified; if not, determining that the electroacoustic device to be tested is abnormal; The acoustic signal is a single or multiple acoustic signals whose frequencies gradually increase and then gradually decrease; Before extracting the sounding area in the power spectrum image, the method includes: finding the highest frequency line corresponding to the sound signal in the power spectrum image; The extracting of the sound emission area in the power spectrum image comprises: selecting the area where energy is mainly distributed in the power spectrum image with the highest frequency line as the center line, and extracting the frequency response area sensitive to human ears in the area where energy is mainly distributed as the sound emission area; Extracting the abnormal sound region in the power spectrum image includes: extracting the regions on the left and right sides of the region where the energy is mainly distributed in the power spectrum image as the abnormal sound region; The step of finding the highest frequency line corresponding to the acoustic signal in the power spectrum image comprises: Find the highest frequency point corresponding to the area with the highest energy in the power spectrum image, and use the vertical line where the highest frequency point is located as the highest frequency line; or find the highest frequency point corresponding to the acoustic signal in the power spectrum image by template matching, and use the vertical line where the highest frequency point is located as the highest frequency line; The method of selecting the area where energy is mainly distributed in the power spectrum image with the highest frequency line as the center line, and extracting the frequency response area sensitive to the human ear as the sound emission area in the area where energy is mainly distributed includes: extracting power spectrum images of multiple qualified electroacoustic devices, counting the areas where energy is mainly distributed in the power spectrum images of the qualified electroacoustic devices, obtaining the energy main distribution graph corresponding to the area where energy is mainly distributed in the power spectrum images of the qualified electroacoustic devices, and selecting the energy main distribution graph with the highest frequency line as the center line in the power spectrum image of the electroacoustic device to be tested as the area where energy is mainly distributed in the electroacoustic device to be tested; The extracting of the areas on the left and right sides of the area where the energy is mainly distributed in the power spectrum image as the abnormal sound area comprises: extracting power spectrum images of a plurality of qualified electroacoustic devices, counting the areas where energy is not distributed on both sides of the area where energy is mainly distributed in the power spectrum image of the qualified electroacoustic device, obtaining an energy non-distribution graph corresponding to the area where energy is not distributed in the power spectrum image of the qualified electroacoustic device, and in the power spectrum image of the electroacoustic device to be tested, selecting the energy non-distribution graph with the highest frequency line as the center line as the abnormal sound area of ​​the electroacoustic device to be tested; After obtaining the power spectrum image showing the power spectrum signal and before extracting the sounding area in the power spectrum image, performing: grayscale processing on the power spectrum image to obtain a grayscale power spectrum image and a relationship between energy and grayscale; The calculating the first pixel area within the sound emission area that satisfies the first threshold interval comprises: extracting a plurality of first pixel areas within the first threshold interval according to the relationship between the energy and the grayscale, and calculating the sum of the areas of the plurality of first pixel areas to obtain the first pixel area; The calculating of the second pixel area in the abnormal sound area that satisfies the second threshold interval includes: extracting a plurality of second pixel areas that satisfy the second threshold interval according to the relationship between the energy and the grayscale, and calculating the sum of the areas of the plurality of second pixel areas to obtain the second pixel area.

2. The method for detecting the sound quality of an electroacoustic device according to claim 1, characterized in that: The first threshold interval is a frequency of 5kHz to 8kHz and a loudness of -60dB to -75dB, and the second threshold interval is a loudness greater than -65dB.

3. The method for detecting the sound quality of an electroacoustic device according to claim 1, characterized in that: The no abnormal sound threshold is 10% of the area of ​​the abnormal sound region.

4. The method for detecting the sound quality of an electroacoustic device according to claim 1, characterized in that: The normal sounding threshold interval is a main energy pixel area ratio interval obtained by counting the area where energy is mainly distributed in the power spectrum image of the qualified electroacoustic device.

5. A detection system for executing the method for detecting the sound quality of an electroacoustic device according to claim 1, characterized in that: Contains the following modules: An acquisition module, used to acquire the acoustic signal emitted or received by the electroacoustic device to be tested; A conversion module, used for converting the acoustic signal into a power spectrum signal to obtain a power spectrum image showing the power spectrum signal; A noise calculation module, used for extracting a sound emission area in the power spectrum image, calculating a first pixel area in the sound emission area that satisfies a first threshold interval, and if the first pixel area satisfies a normal sound emission threshold interval, proceeding to the next step; if not, determining that the electroacoustic device to be tested is abnormal; The abnormal sound calculation module is used to extract the abnormal sound area in the power spectrum image, calculate the second pixel area in the abnormal sound area that meets the second threshold interval, and if the second pixel area is less than the no abnormal sound threshold, it is determined that the electroacoustic device to be tested is qualified; if not, it is determined that the electroacoustic device to be tested is abnormal.