Headset defective product detection method and device, computer equipment and storage medium
By calculating the recording signal power spectrum of the headphone prototype in a bad state, determining the target frequency band and dB threshold, the problem of difficulty in determining whether the headphones have noise floor or current sound in the prior art is solved, and accurate detection and distinction of the headphones are achieved.
Patent Information
- Application Number
- CN202411971052.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-06
AI Technical Summary
It is difficult to accurately determine whether the headphones have noise floor or current sound, making it difficult to distinguish between good and bad products.
By obtaining the recording signals of different headphone prototypes in bad states, calculating their power spectrum, and determining the target frequency band and dB threshold based on the power spectrum of good products and bad products headphones, and then comparing the recording signal power spectrum of the headphones to be tested to determine whether it is a bad product.
It realizes an accurate judgment on whether the headphones have noise floor or current sound, which can effectively distinguish between good and bad products, and improve detection accuracy and efficiency.
Smart Images

Figure CN119946537A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone detection technology, and in particular to a method, device, computer equipment and storage medium for detecting defective earphones. Background Art
[0002] With the development of technology, the use of headphones is becoming more and more widespread. However, some headphones may produce noise due to their own abnormalities or hardware, such as background noise or current noise. These noises may affect the user experience. Therefore, during the production process of headphones, it is usually necessary to test whether the headphones have background noise or current noise.
[0003] In the prior art, the recording signal of the earphone is usually converted into an energy graph. However, since the recording signal is very small, it is difficult to determine whether the earphone is good by determining whether there is noise in the earphone. Summary of the invention
[0004] The main purpose of the present application is to provide a method, device, computer equipment and storage medium for detecting defective headphones, which can solve the technical problem in the prior art that it is difficult to determine whether the headphones have noise.
[0005] To achieve the above-mentioned purpose, the present application provides a method for detecting defective earphones in a first aspect, the method comprising:
[0006] Acquire first recording signals of different first earphone prototypes in corresponding bad earphone states, wherein the different first earphone prototypes include good earphone prototypes and bad earphone prototypes, wherein the bad earphone prototype includes at least one of a first bad earphone prototype with background noise and a second bad earphone prototype with current sound, and the bad earphone state is a first earphone state with background noise or a second earphone state with current sound;
[0007] Acquire a first power spectrum of each first recording signal;
[0008] Determine a target frequency band and a dB threshold value that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype;
[0009] Obtain a second recording signal of the headphone under test in a bad headphone state;
[0010] Acquire a second power spectrum of a second recording signal;
[0011] The actual dB value of the second power spectrum in the target frequency band is compared with the dB threshold value. If the actual dB value exceeds the corresponding dB threshold value, it is determined that the ear to be tested is a defective earphone.
[0012] To achieve the above-mentioned purpose, the second aspect of the present application provides a defective headphone detection device, the device comprising:
[0013] A first recording signal acquisition module is used to acquire first recording signals of different first earphone prototypes in corresponding bad earphone states, wherein the different first earphone prototypes include good earphone prototypes and bad earphone prototypes, wherein the bad earphone prototype includes at least one of a first bad earphone prototype with background noise and a second bad earphone prototype with current sound, and the bad earphone state is a first earphone state with background noise or a second earphone state with current sound;
[0014] A power spectrum calculation module, used to obtain a first power spectrum of each first recording signal;
[0015] A threshold determination module, used to determine a target frequency band and a dB threshold that may generate background noise or current sound according to a first power spectrum of a good headphone prototype and a first power spectrum of a defective headphone prototype;
[0016] A second recording signal acquisition module, used to acquire a second recording signal of the headphone to be tested in a bad headphone state;
[0017] The power spectrum calculation module is further used to obtain a second power spectrum of the second recording signal;
[0018] The earphone detection module is used to compare the actual dB value of the second power spectrum in the target frequency band with the dB threshold value. If the actual dB value exceeds the corresponding dB threshold value, it is determined that the ear to be tested is a defective earphone.
[0019] To achieve the above-mentioned purpose, the third aspect of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor performs the following steps:
[0020] Acquire first recording signals of different first earphone prototypes in corresponding bad earphone states, wherein the different first earphone prototypes include good earphone prototypes and bad earphone prototypes, wherein the bad earphone prototype includes at least one of a first bad earphone prototype with background noise and a second bad earphone prototype with current sound, and the bad earphone state is a first earphone state with background noise or a second earphone state with current sound;
[0021] Acquire a first power spectrum of each first recording signal;
[0022] Determine a target frequency band and a dB threshold value that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype;
[0023] Obtain a second recording signal of the headphone under test in a bad headphone state;
[0024] Acquire a second power spectrum of a second recording signal;
[0025] The actual dB value of the second power spectrum in the target frequency band is compared with the dB threshold value. If the actual dB value exceeds the corresponding dB threshold value, it is determined that the ear to be tested is a defective earphone.
[0026] To achieve the above-mentioned purpose, the fourth aspect of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0027] Acquire first recording signals of different first earphone prototypes in corresponding bad earphone states, wherein the different first earphone prototypes include good earphone prototypes and bad earphone prototypes, wherein the bad earphone prototype includes at least one of a first bad earphone prototype with background noise and a second bad earphone prototype with current sound, and the bad earphone state is a first earphone state with background noise or a second earphone state with current sound;
[0028] Acquire a first power spectrum of each first recording signal;
[0029] Determine a target frequency band and a dB threshold value that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype;
[0030] Obtain a second recording signal of the headphone under test in a bad headphone state;
[0031] Acquire a second power spectrum of a second recording signal;
[0032] The actual dB value of the second power spectrum in the target frequency band is compared with the dB threshold value. If the actual dB value exceeds the corresponding dB threshold value, it is determined that the ear to be tested is a defective earphone.
[0033] The embodiments of the present application have the following beneficial effects:
[0034] By comparing the power spectra of good headphones and defective headphones, the present application can obtain the accurate target frequency band and dB threshold that may produce background noise or current sound, and then use the target frequency band and dB threshold to perform product quality detection on the headphones to be tested, so as to accurately distinguish good headphones from defective headphones. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] in:
[0037] Figure 1 This is a flow chart of a method for detecting defective headphones in one embodiment of the present application;
[0038] Figure 2 It is the effect diagram of the energy diagram in the prior art;
[0039] Figure 3 This is a comparison effect diagram of the first power spectrum in one embodiment of the present application;
[0040] Figure 4 This is a comparison effect diagram of the first power spectrum in another embodiment of the present application;
[0041] Figure 5 The following are effect diagrams corresponding to different adverse phenomena in one embodiment of the present application;
[0042] Figure 6 This is a schematic diagram of a parameter setting interface in one embodiment of the present application;
[0043] Figure 7 This is a schematic diagram of a parameter setting interface in another embodiment of the present application;
[0044] Figure 8 This is a schematic diagram of the test results of the non-amplified curve in one embodiment of the present application;
[0045] Fig. 9 This is a schematic diagram of the test results of the amplified curve in one embodiment of the present application;
[0046] Fig.10 A comparison chart of the frequency spectrum when the anti-interference ability of the test equipment is qualified and unqualified in one embodiment of the present application;
[0047] Fig.11 This is a structural block diagram of a defective earphone detection device according to an embodiment of the present application;
[0048] Fig.12 It is a structural block diagram of a computer device in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] In order to determine whether there is background noise or current sound in headphones, in the prior art, a device is used to record a signal, convert the recorded signal into an energy graph, and use the time domain or frequency domain to confirm the index value, such as Figure 2shown.
[0051] The recorded signal is converted into an energy graph. Because the signal is very small, it is difficult to simply draw conclusions from the time domain or frequency domain. From the time domain analysis, it seems that there is almost no difference between the two background noises, which is difficult to define. In addition, the existing technology is difficult to distinguish between noisy headphones and good headphones, or the distinction is not high. It is difficult to define a stable frame line to determine good and bad products, and the FFT results are unstable, which easily leads to a large number of retest rates.
[0052] Based on this, a defective product detection solution for headphones is developed.
[0053] like Figure 1 As shown, in one embodiment, a method for detecting defective earphones is provided. The method can be applied to a terminal or a server. The method for detecting defective earphones specifically includes the following steps:
[0054] S100: Obtain first recording signals of different first headphone prototypes in corresponding bad headphone states, wherein the different first headphone prototypes include good headphone prototypes and bad headphone prototypes, wherein the bad headphone prototype includes at least one of a first bad headphone prototype with background noise and a second bad headphone prototype with electric current sound, and the bad headphone state is a first headphone state that generates background noise or a second headphone state that generates electric current sound.
[0055] Specifically, the method for detecting defective earphones in this embodiment is to make a judgment by testing whether there is current sound or background noise in the earphones.
[0056] The first earphone prototype includes a good earphone prototype and a defective earphone prototype, and the good earphone prototype and the defective earphone prototype can be effectively distinguished by using different labels or logos.
[0057] In addition, in order to ensure reliability, there can be one or more good headphone prototypes and defective headphone prototypes.
[0058] If only detecting whether the earphone has background noise, the defective earphone prototypes include the first defective earphone prototype having background noise.
[0059] A first recording signal of a good headphone prototype in a first headphone state in which background noise is generated is obtained.
[0060] A first recording signal of a first defective earphone prototype with background noise in a first earphone state generating background noise is obtained.
[0061] The first headphone state in which background noise is generated is a state in which the headphone is prone to background noise. For example, the mode in which the headphone has background noise is clearly defined, and in which of the following states will the background noise phenomenon occur:
[0062] Power-on and reconnection status, after connecting to the device, ANC mode, call mode, single ear status, dual ear status, etc.
[0063] Through experimental analysis, we can identify the states in which headphones are prone to background noise, and these states are the first headphone states.
[0064] For example, background noise is likely to occur in the power-on reconnection state, so the power-on reconnection state is the first headphone state.
[0065] The first recording signals of the good earphone prototype and the first defective earphone prototype are respectively obtained when they are powered on and reconnected.
[0066] If background noise is likely to occur in call mode, the call mode is the first earphone state.
[0067] The first recording signals of the good earphone prototype and the first defective earphone prototype in the call mode are obtained respectively.
[0068] The first earphone state may include one or more different states. If the first earphone state includes multiple different states, first recording signals of the good earphone prototype and the first defective earphone prototype in different first earphone states are obtained respectively.
[0069] If only the current sound is detected in the earphone, the defective earphone prototype includes the second defective earphone prototype having the current sound.
[0070] A first recording signal is obtained when the good earphone prototype is in the second earphone state where electric current sound is generated.
[0071] A first recording signal of a second defective earphone prototype with electric current sound is obtained in a second earphone state where the electric current sound is generated.
[0072] The second earphone state in which the current sound is generated is a state in which the earphone is prone to generate the current sound. For example, to clarify the mode in which the earphone generates the current sound, in which of the following states or states will the current sound occur:
[0073] Power-on and reconnection status, after connecting to the device, ANC mode, call mode, single ear status, dual ear status, etc.
[0074] Through experimental analysis, it can be determined in which states the earphones are prone to produce electric current sound, and these states are the second earphone states.
[0075] For example, if electric current sound is likely to occur in the power-on reconnection state, the power-on reconnection state is the second earphone state.
[0076] The first recording signals of the good earphone prototype and the second defective earphone prototype are respectively obtained when they are powered on and reconnected.
[0077] If electric sound is easy to occur after connecting the device, it is the second earphone state after connecting the device.
[0078] The first recording signals of the good earphone prototype and the second defective earphone prototype are obtained respectively after being connected to the device.
[0079] The second earphone state may include one or more different states. If the second earphone state includes multiple different states, first recording signals of a good earphone prototype and a second bad earphone prototype in different second earphone states are obtained respectively.
[0080] If both the background noise and the current sound of the earphone are detected, the defective earphone prototypes include a first defective earphone prototype with background noise and a second defective earphone prototype with current sound.
[0081] A first recording signal of a good headphone prototype in a first headphone state in which background noise is generated is obtained.
[0082] A first recording signal is obtained when the good earphone prototype is in the second earphone state where electric current sound is generated.
[0083] A first recording signal of a first defective earphone prototype with background noise in a first earphone state generating background noise is obtained.
[0084] A first recording signal of a second defective earphone prototype with electric current sound is obtained in a second earphone state where the electric current sound is generated.
[0085] It should be noted that the first recording signal is collected by the testing equipment on the first earphone prototype.
[0086] S200: Acquire a first power spectrum of each first recording signal.
[0087] Specifically, the first power spectrum is the power spectrum of the first recording signal, and its curve (i.e., power spectrum curve) generally has frequency as the horizontal axis and power as the vertical axis. The power spectrum represents the change of signal power with frequency, that is, the distribution of signal power in the frequency domain. The power spectrum represents the change relationship of signal power with frequency.
[0088] In a specific embodiment, the first power spectrum is a power spectrum amplified by the power spectrum curve, which makes it easier to amplify the signal difference between good headphones and defective headphones, and is more conducive to setting limits to control and distinguish good headphones from defective headphones, thereby improving detection precision and accuracy.
[0089] S300: Determine a target frequency band and a dB threshold value that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype.
[0090] Specifically, usually, if there is background noise or current sound in the earphone, a peak will appear at one or some frequencies in its power spectrum, that is, the power will be abnormal or increase sharply.
[0091] Based on this, by comparing the difference between the first power spectra of good headphone prototypes and defective headphone prototypes, the frequency band and dB value of abnormal or sharply increased power in the first power spectrum of the defective headphone prototype can be determined. By analyzing the abnormal frequency bands and dB values of all defective headphone prototypes, the target frequency band and dB threshold that may generate background noise or current sound can be determined.
[0092] If the defective earphone prototypes include a first defective earphone prototype, a first target frequency band that may generate background noise and a dB threshold of background noise are determined according to a first power spectrum of the good earphone prototype and a first power spectrum of the first defective earphone prototype.
[0093] If the defective earphone prototypes include a second defective earphone prototype, a second target frequency band and a dB threshold of the current sound that may be generated are determined according to the first power spectrum of the good earphone prototype and the first power spectrum of the second defective earphone prototype.
[0094] For example, Figure 3 This is a comparison effect diagram of the first power spectrum in one embodiment of the present application; Figure 4 This is a comparison effect diagram of the first power spectrum in another embodiment of the present application; refer to Figure 3 , the peak value at 3.2kHz is about 4.3dB, and no obvious background noise or current sound can be heard in the corresponding first recording signal when manually listening.
[0095] refer to Figure 4 , the peak value at 3.2kHz is about 8.8dB. When listening to the corresponding first recording signal, the human ear can clearly hear the electric current sound.
[0096] The user provides the actual listening result to the computer device, and the computer device Figure 3 and Figure 3 The first power spectrum and the actual listening result are used to determine the target frequency band and dB threshold that may generate current sound. Figure 3 and Figure 4 The target frequency band where current sound may be generated is determined to be 3kHz-3.5kHz, and the current sound dB threshold is 5dB.
[0097] It should be noted that different types of headphones may produce different frequency bands of current sound or background noise due to different hardware components. For example, for the limit value of current sound, 800Hz or its harmonic components (multiples of 800) are mainly selected for segmented control, such as 2.4kHz / 3.2kHz / 4kHz / 4.8kHz / 5.6kHz, etc. Figure 3 and Figure 4It is a frequency band around 3.2kHz. 3.2kHz is the frequency corresponding to the peak. If it is another model of headphones, the peak may be at 4kHz, so the target frequency band may be around 4kHz. The specific target frequency band and current sound dB threshold are determined according to the actual first power spectrum, and this application does not limit this.
[0098] The limit of background noise needs to be set according to the actual adverse conditions, which is mainly reflected in the mid- and low-frequency, such as wind noise of 600-800Hz.
[0099] Among them, decibel is dB, which is a unit of measurement for measuring the ratio of two identical units, mainly used to measure the intensity of sound. Decibel is a unit for describing power gain, indicating a relative value.
[0100] S400: Acquire a second recording signal of the headphone to be tested in a bad headphone state.
[0101] Specifically, the second recording signal of the headphone under test in each different bad headphone state is obtained respectively. All different bad headphone states may include the first headphone state, may include the second headphone state, and may include the first headphone state and the second headphone state at the same time. Furthermore, it may include one or more different first headphone states, and may also include one or more different second headphone states.
[0102] S500: Acquire a second power spectrum of a second recording signal.
[0103] Specifically, the second power spectrum of each second recording signal is obtained; the second power spectrum is the power spectrum of the second recording signal, and its curve (ie, power spectrum curve) generally has the frequency as the abscissa and the power as the ordinate.
[0104] S600: Compare the actual dB value of the second power spectrum in the target frequency band with the dB threshold value. If the actual dB value exceeds the corresponding dB threshold value, determine that the ear to be tested is a defective earphone.
[0105] Specifically, if background noise detection of the headphones is required, the first actual dB value of the second power spectrum corresponding to the first headphone state in the first target frequency band is compared with the background noise dB threshold. If the first actual dB value exceeds the background noise dB threshold, it means that background noise exceeding the tolerance level has been generated, and the headphones to be tested are determined to be defective headphones.
[0106] If it is necessary to perform current sound detection on the earphone, the second actual dB value of the second power spectrum corresponding to the second earphone state in the second target frequency band is compared with the current sound dB threshold. If the second actual dB value exceeds the current sound dB threshold, it means that current sound exceeding the tolerance level is generated, and the earphone to be tested is determined to be a defective earphone.
[0107] If the headphones need to be tested for background noise and current sound at the same time, if the first actual dB value does not exceed the background noise dB threshold, and the second actual dB value does not exceed the current sound dB threshold, it means that no background noise or current sound is generated or the background noise and current sound generated do not exceed the tolerance level (that is, they are inaudible to the human ear), and the headphones to be tested are determined to be good quality headphones.
[0108] Headphones that produce electric current sound or background noise are defective.
[0109] This embodiment compares the power spectra of good headphones and defective headphones to obtain accurate target frequency bands and dB thresholds that may produce background noise or current sound, and then uses the target frequency bands and dB thresholds to perform product quality detection on the headphones to be tested, so as to accurately distinguish good headphones from defective headphones.
[0110] In addition, the existing technology uses transient analysis algorithms to test current sound and background noise, which takes a long time to test and is not conducive to product production. However, the method of the present application can quickly detect whether the headphone product has background noise or current sound, speeding up the headphone detection and production process.
[0111] In one embodiment, before obtaining the first recording signals of different first headphone prototypes in corresponding bad headphone states in step S100, the method further includes:
[0112] Respectively obtain a third recording signal of the second headset prototype in different states, wherein the state includes at least one of a power-on reconnection state, after being connected to a device, an ANC mode, a call mode, a single ear state, a double ear state, after disconnecting Bluetooth, and after leaving the warehouse;
[0113] The third recording signal is analyzed, and the state of the second earphone prototype in which the third recording signal has an abnormal phenomenon is determined as an abnormal earphone state, wherein the abnormal phenomenon is the presence of current sound or background noise in the third recording signal.
[0114] Specifically, before using the first headphone prototype to determine the target frequency band and dB threshold that may generate background noise or current sound, this embodiment first determines in which states the headphone will generate background noise or current sound, that is, determines the first headphone state that generates background noise and / or the second headphone state that generates current sound.
[0115] There are multiple second headphone prototypes, and it is uncertain whether the second headphone prototypes are good or bad. That is, the second headphone prototypes may include good headphones, bad headphones with current sound, or bad headphones with background noise.
[0116] This embodiment collects the third recording signal of each second earphone prototype in different states. For good earphones, there will be no obvious background noise or current sound in the recording signal, or no background noise or current sound audible to human ears.
[0117] For headphones with background noise, obvious or audible background noise will appear in the recording signal.
[0118] For headphones that produce current noise, there will be obvious or audible current noise in the recording signal.
[0119] Based on this, if the third recording signal of the second headphone prototype shows the defective phenomenon of electric current sound regardless of the state of the second headphone prototype, the second headphone prototype is a second defective headphone prototype.
[0120] If the third recording signal of the second headphone prototype shows an undesirable phenomenon of background noise regardless of the state of the second headphone prototype, the second headphone prototype is a first defective headphone prototype.
[0121] If the third recording signal of the second headphone prototype does not contain either current sound or background noise in any state, then the second headphone prototype is a good headphone prototype.
[0122] The third recording signal collected is in at least one of the following states: the second earphone prototype is in the power-on and reconnection state, after being connected to the device, in ANC mode, in call mode, in single-ear state, in dual-ear state, after being disconnected from Bluetooth, and after being out of the warehouse.
[0123] Among them, the ANC mode, namely active noise reduction (ANC, Active Noise Control or Active Noise Cancellation) mode, can effectively reduce the noise (especially low-frequency noise) transmitted into the ears.
[0124] It should be noted that the earphones may produce background noise in one or more states, and may also produce current sound in one or more states, such as in the power-on and reconnection state, after connecting to the device, ANC mode, call mode, single-ear state, dual-ear state, after disconnecting Bluetooth, and after leaving the warehouse.
[0125] By analyzing the third recording signal, the third recording signal with the undesirable phenomenon and the state of the corresponding second headphone prototype can be determined, and then the state of the undesirable headphone can be determined, that is, which headphone or which headphone in which state will generate background noise and which headphone or which headphone in which state will generate current sound. The undesirable phenomenon is the presence of current sound or background noise in the third recording signal.
[0126] In addition, the defective headphone prototypes can also be determined through the third recording signal, that is, it can be determined which second headphone prototypes are first defective headphone prototypes, which second headphone prototypes are second defective headphone prototypes, and which second headphone prototypes are good headphone prototypes.
[0127] More specifically, for example:
[0128] The third recording signals corresponding to the second earphone prototype A in states 1-5 are A1, A2, A3, A4 and A5 respectively.
[0129] The third recording signals corresponding to the second earphone prototype B in states 1-5 are B1, B2, B3, B4 and B5 respectively.
[0130] The third recording signals corresponding to the states 1-5 of the second earphone prototype C are C1, C2, C3, C4 and C5 respectively.
[0131] The third recording signals corresponding to the second earphone prototype D in states 1-5 are D1, D2, D3, D4 and D5 respectively.
[0132] The computer device plays the third recording signal, and the third recording signals A1, A2, A3, A4 and A5, B1, B2, B3, B4 and B5, C1, C2, C3, C4 and C5, D1, D2, D3, D4 and D5 are respectively listened to by a human, and a listening result is given, each of which is a result of the presence of background noise, the presence of current sound, and normal. Alternatively, each listening result may also include, for example, a slight, medium, severe, and other levels in a more fine-grained manner.
[0133] The computer device can determine the good headphone prototype, the first defective headphone prototype, the second defective headphone prototype and the defective headphone status according to the actual listening result. In addition, the computer device identifies and distinguishes each headphone prototype, and can effectively manage different headphone prototypes and corresponding test data.
[0134] In addition, the computer device can also generate a fourth power spectrum or energy map of each third recording signal, and display these fourth power spectra or energy maps to the user. Since the power spectrum corresponding to the earphones with background noise or current sound will show abnormal power or a sharp increase, or the energy map will show obvious abnormality, the user can roughly check whether the actual listening result is accurate based on the fourth power spectrum or energy map.
[0135] Figure 5 The following are the effect diagrams corresponding to different undesirable phenomena in an embodiment; Figure 5 Mode 1 is the effect picture of the 2s current sound after disconnecting Bluetooth, Mode 2 is the effect picture of the current sound continuing to appear after leaving the warehouse, and Mode 3 is the effect picture of the background noise continuing to appear after leaving the warehouse.
[0136] After determining the bad headphone status through a small number of second headphone prototypes, more headphone prototypes can be targeted for recording in the bad headphone status and the first headphone prototype can be screened out. This reduces the work of blindly screening a large number of first headphone prototypes and improves efficiency. In addition, after determining the bad headphone status, irrelevant status can be excluded, and targeted recording can be performed in a specific bad headphone status, reducing the interference of irrelevant recordings, reducing labor costs and time costs, and improving the efficiency of subsequent work.
[0137] In one embodiment, the method further comprises:
[0138] Analyze the third sound signal to determine the undesirable phenomenon data of the third recording signal where the undesirable phenomenon occurs, wherein the undesirable phenomenon data includes at least one of the occurrence duration and the start time of the undesirable phenomenon;
[0139] The step S200 of obtaining the first power spectrum of each first recording signal includes:
[0140] Setting a first target parameter in the power algorithm according to the bad phenomenon data, or setting a first target parameter in the power algorithm according to a first setting instruction of a user, wherein the first target parameter includes at least one of a signal starting time, a signal length, and a length of an analysis frame, and the first setting instruction is issued by the user according to the bad phenomenon data;
[0141] In response to a second setting instruction of the user, setting a second target parameter in the power algorithm, wherein the second target parameter includes an averaging mode, a weighting mode, an averaging number, a window type, an analysis type, an overlap rate, a default minimum amplitude, a dB reference value type, at least one of an extraction start frequency and an octave of a power spectrum curve, and a specified first recording signal;
[0142] The first power spectrum of each designated first recording signal is calculated using the power algorithm after parameter setting.
[0143] Specifically, after determining the bad headphone prototype and the bad headphone status, the fourth power spectrum or energy graph of the third recording signal where the bad phenomenon occurs can be obtained. The bad phenomenon data of the third recording signal where the bad phenomenon occurs can be determined through the fourth power spectrum or energy graph, wherein the bad phenomenon data includes at least one of the duration and start time of the bad phenomenon.
[0144] According to the data of the adverse phenomenon, the recording acquisition time in the subsequent steps and some parameters in the power algorithm can be set, for example, at least one of the signal starting time, signal length, and analysis frame length, wherein the duration of the adverse phenomenon is the signal length.
[0145] In addition, other parameters of the power algorithm can also be manually assigned or set as variables.
[0146] The parameters in the power algorithm can be provided to the computer device by the user issuing instructions, or the computer device can display a parameter setting interface, and the user sets the parameters in the power algorithm in the parameter setting interface through human-computer interaction.
[0147] Figure 6 and Figure 7 This is a schematic diagram of a parameter setting interface in an embodiment of the present application; Figure 6 , in the "Waveform" option, the user can select the specified first recording signal through the drop-down box. In the "Analysis Type" option, the user can select "Power Spectrum" or "Power Spectral Density". In the "Signal Start (s)" option, the user can fill in the signal start point, such as 0.5s or other values in the figure. In the "Signal Length (s)" option, the user can fill in the signal length, such as 3 or other values in the figure. In the "Window" option, the user can specify the window type through the drop-down box, for example, the window type in the figure is Hanning. In the "Average Mode" option, the user can select the average mode through the drop-down box, for example, the "effective value average" is selected in the figure. In the "Weighting Mode" option, the user can select the weighting mode through the drop-down box, for example, the "Exponential" is selected in the figure. In the "Number of Averages" option, the user can fill in the number of averages, such as "50" in the figure. In the "Length of Analysis Frame (s)" option, the user can fill in the length of the analysis frame, such as 0.1 in the figure. In the "Overlap Rate" option, the user can fill in the overlap rate, such as 0% in the figure. In the "Default minimum amplitude" option, users can fill in the default minimum amplitude, such as -1000 in the figure. In the "dB reference value type" option, users can choose one from "Custom", "Sound pressure", and "Vibration". When "Custom" is selected, the reference value can be filled in the "dB reference value".
[0148] After setting the parameters, the user clicks the "Calculate" button to convert the specified first recording signal into the time domain graph below, which is a curve graph of time (Time(s)) and power Pa.
[0149] refer to Figure 7 In the "Curve" option, you can select the curve type, for example, the figure shows the power spectrum - L-PowerSpectrum. In the "Method" option, you can select one from "Band Average", "Frequency Point Extraction", or "Extract Specific Frequency Points". The figure takes "Band Average" as an example.
[0150] You can set the "Start frequency (Hz)" and "Cut-off frequency (Hz)" as needed. For example, in the figure, the start frequency is set to 20Hz and the cut-off frequency is set to 20000Hz.
[0151] In the "Width" selection, users can select the width through the drop-down box. For example, the one selected in the figure is "UserDefined log", which means user-defined, and 1 / N Octave means the 1 / N octave is 500.
[0152] The power algorithm of this embodiment can not only calculate the original power spectrum of the first recording signal, but also amplify the curve of the original power spectrum to obtain the amplified first power spectrum.
[0153] The amplified first power spectrum can increase the signal difference between good products and bad products, thereby improving the accuracy of the test.
[0154] This embodiment can effectively set the parameters of the power algorithm according to the adverse phenomenon data, thereby obtaining a power spectrum that better meets actual needs and reducing interference from useless data.
[0155] In one embodiment, calculating the first power spectrum of each designated first recording signal using the power algorithm after parameter setting includes:
[0156] The power algorithm after parameter setting is used to calculate the first power spectrum of each designated first recording signal curve amplification.
[0157] Specifically, this embodiment uses a discrete signal algorithm to test the current sound and background noise. By designing the definition and weighting mode of the signal source time in the test software, the signal source power spectrum curve of the current sound and background noise is amplified to accurately measure the signal difference between good and bad products and improve the accuracy of the test. Figure 8 This is the test result of the unamplified curve: there is only a 5-7dB difference between good and bad products at 3200Hz, but the error of the test equipment is 2dB, which is not conducive to limit control.
[0158] Fig. 9 The test result of the power algorithm amplification curve of this embodiment is as follows: the difference between good products and bad products at 3200Hz is 12-14dB, which is obvious and convenient for setting limits and controlling.
[0159] refer to Figure 7 In the power spectrum, the power spectrum EC is the Extrated Curve, i.e. the extracted power spectrum curve, and the power spectrum OR is the Raw Curve, i.e. the original power spectrum curve. Figure 7It can be seen that the power spectra before and after the curve amplification basically overlap. Therefore, the curve amplification can still maintain the original characteristics of the power spectrum and will not distort the power spectrum. Therefore, this embodiment retains the original characteristics of the power spectrum through curve amplification, and also increases the signal difference in the power spectrum between good headphones and defective headphones, which is convenient for setting limits and controlling and distinguishing good products from defective products.
[0160] In one embodiment, the first recording signal is obtained by collecting sound signals of a first earphone prototype through a testing device;
[0161] Before obtaining the first recording signals of different first headphone prototypes in corresponding bad headphone states in step S100, the method further includes:
[0162] Verify the hardware performance of the test equipment and obtain the hardware performance verification result;
[0163] If the hardware performance verification result indicates that the anti-interference ability of the test equipment is unqualified, the user is instructed to perform hardware maintenance on the test equipment and then perform hardware performance verification until the hardware performance verification result indicates that the anti-interference ability of the test equipment is qualified.
[0164] Specifically, the test equipment is used to perform operations such as recording signal acquisition on the headphones. Therefore, whether the hardware performance of the test equipment is qualified plays an important role in the accuracy of the test results. Performing hardware performance verification on the test equipment before the test can prevent the noise of the test equipment from having a significant impact and interference on the headphone test results.
[0165] The hardware performance verification of the test equipment can be carried out by collecting the recording signal of the test equipment and analyzing the recording signal to determine whether the test equipment has qualified anti-interference ability or isolation ability.
[0166] If the hardware performance verification result shows that the anti-interference ability of the test equipment is unqualified, the user is instructed to maintain the hardware of the test equipment, and then perform hardware performance verification on the test equipment after maintenance until the hardware of the test equipment has qualified anti-interference ability.
[0167] After confirming that the hardware of the test equipment has qualified anti-interference capabilities, the test equipment is used to collect recording signals from the headphone prototype. The obtained recording signal eliminates the interference of the test equipment itself and can better reflect the function of the headphone itself.
[0168] In one embodiment, the hardware performance of the test device is verified to obtain a hardware performance verification result, including:
[0169] Perform multiple consecutive empty samplings in sequence on the test equipment that is in the off state and does not have the headphone prototype, and obtain the empty sampling data of each empty sampling;
[0170] Convert each time of the air sampling data into a corresponding energy diagram or obtain the third power spectrum of each time of the air sampling data;
[0171] The continuous energy diagrams or the third power spectrum are analyzed to obtain the hardware performance verification result of the test equipment.
[0172] Specifically, place the test device in the shutdown state on the test fixture, perform air sampling on the test device in sequence, and obtain the air sampling data of each air sampling. The present application does not restrict the saving of air sampling data as wav files or .mp3 files, and uses audio processing software such as Adobe Audition software to analyze the air sampling data to determine whether the spectrum or energy spectrum of multiple consecutive samplings is uniform and free of noise signals. If it is determined that the spectrum or energy spectrum of multiple consecutive samplings is uniform and free of noise signals, then the anti-interference ability of the hardware of the test device is qualified. On the contrary, if part of the spectrum or energy diagram indicates that there are noise signals in the spectrum, then it means that the isolation or anti-interference ability of the test device is poor, and the hardware needs to be maintained. Fig.10 The figure shows the comparison of the spectrum when the anti-interference ability of the test equipment is qualified and unqualified. Fig.10 , the spectrum on the left is obviously more uniform and free of noise than the spectrum on the right. The spectrum on the left is uniform and free of noise signals, and the corresponding test equipment has qualified anti-interference ability. The spectrum on the right is uneven and has noise signals, and the corresponding test equipment has unqualified anti-interference ability.
[0173] Alternatively, if the third power spectrum corresponding to the consecutive empty sampling data is stable and does not fluctuate much, for example, within +-1dB, it means that the anti-interference ability of the test equipment hardware is qualified. Conversely, if the third power spectrum corresponding to multiple empty samplings is unstable and fluctuates greatly, for example, fluctuates outside +-1dB, it means that the anti-interference ability of the test equipment hardware is qualified.
[0174] This embodiment can accurately determine whether the test device has qualified anti-interference ability by sampling the test device and analyzing the sampled data, thereby reducing the noise of the headphone recording data.
[0175] In one embodiment, the actual dB value of the second power spectrum in the target frequency band is compared with the dB threshold to obtain a machine test result;
[0176] The method further includes:
[0177] Obtaining manual judgment results of the headphones to be tested;
[0178] If the machine test result of the same earphone to be tested is inconsistent with the manual judgment result, the first recording signal of different first earphone prototypes in the corresponding bad earphone state and subsequent steps are performed according to the reselected first earphone prototype and / or the calibration test equipment to redetermine the target frequency band and dB threshold that may generate background noise or current sound, until the machine test results of all the earphones to be tested are consistent with the manual judgment result, wherein the first recording signal is obtained by collecting the sound signal of the first earphone prototype by the test equipment.
[0179] Specifically, the manual determination result is a real listening result obtained by manually listening to the second recording signal. The manual determination result is used to indicate that the headphone under test is normal, or that there is background noise in the headphone under test, or that there is current sound in the headphone under test.
[0180] If the machine test result of the same headphone under test is inconsistent with the manual judgment result, it means that the target frequency band and / or dB threshold obtained previously are inaccurate, and therefore, the target frequency band and / or dB threshold need to be recalibrated.
[0181] The reason why the obtained target frequency band and / or dB threshold is inaccurate may be that the hardware performance of the test equipment is unqualified, such as unqualified anti-interference ability, or it may be a defect in the first headphone prototype. Therefore, it is necessary to recalibrate the test equipment or reselect a new prototype before executing steps S100-S600 and related steps.
[0182] Through cyclic calibration and testing, the target frequency band and dB threshold that may generate background noise or current sound are finally determined as the final standard.
[0183] Subsequent headphones to be tested will be judged and tested as good or defective according to the final standards.
[0184] This embodiment designs a definition and weighting mode of the signal source time in the software, which widens the signal gap between good headphones and defective headphones, thereby facilitating and quickly distinguishing good headphones from defective headphones. In addition, cross-validation and confirmation of human-machine results can further ensure the accuracy of the target frequency band and dB threshold.
[0185] refer to Fig.11 The present application also provides a defective headphone detection device, the defective headphone detection device comprising:
[0186] The first recording signal acquisition module 100 is used to acquire first recording signals of different first earphone prototypes in corresponding bad earphone states, wherein the different first earphone prototypes include good earphone prototypes and bad earphone prototypes, wherein the bad earphone prototype includes at least one of a first bad earphone prototype with background noise and a second bad earphone prototype with current sound, and the bad earphone state is a first earphone state with background noise or a second earphone state with current sound;
[0187] A power spectrum calculation module 200, used to obtain a first power spectrum of each first recording signal;
[0188] The threshold determination module 300 is used to determine the target frequency band and dB threshold that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype;
[0189] The second recording signal acquisition module 400 is used to acquire a second recording signal of the headphone under test in a bad headphone state;
[0190] The power spectrum calculation module 200 is further used to obtain a second power spectrum of the second recording signal;
[0191] The earphone detection module 500 is used to compare the actual dB value of the second power spectrum in the target frequency band with the dB threshold value, and if the actual dB value exceeds the corresponding dB threshold value, determine that the ear to be tested is a defective earphone.
[0192] The working principle of the defective earphone detection device can be found in the description of the defective earphone detection method mentioned above, which will not be described again here.
[0193] Fig.12 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal or a server. Fig.12 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement each step in the above method embodiment. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement each step in the above method embodiment. Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0194] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0195] Acquire first recording signals of different first earphone prototypes in corresponding bad earphone states, wherein the different first earphone prototypes include good earphone prototypes and bad earphone prototypes, wherein the bad earphone prototype includes at least one of a first bad earphone prototype with background noise and a second bad earphone prototype with current sound, and the bad earphone state is a first earphone state with background noise or a second earphone state with current sound;
[0196] Acquire a first power spectrum of each first recording signal;
[0197] Determine a target frequency band and a dB threshold value that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype;
[0198] Obtain a second recording signal of the headphone under test in a bad headphone state;
[0199] Acquire a second power spectrum of a second recording signal;
[0200] The actual dB value of the second power spectrum in the target frequency band is compared with the dB threshold value. If the actual dB value exceeds the corresponding dB threshold value, it is determined that the ear to be tested is a defective earphone.
[0201] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor performs the following steps:
[0202] Acquire first recording signals of different first earphone prototypes in corresponding bad earphone states, wherein the different first earphone prototypes include good earphone prototypes and bad earphone prototypes, wherein the bad earphone prototype includes at least one of a first bad earphone prototype with background noise and a second bad earphone prototype with current sound, and the bad earphone state is a first earphone state with background noise or a second earphone state with current sound;
[0203] Acquire a first power spectrum of each first recording signal;
[0204] Determine a target frequency band and a dB threshold value that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype;
[0205] Obtain a second recording signal of the headphone under test in a bad headphone state;
[0206] Acquire a second power spectrum of a second recording signal;
[0207] The actual dB value of the second power spectrum in the target frequency band is compared with the dB threshold value. If the actual dB value exceeds the corresponding dB threshold value, it is determined that the ear to be tested is a defective earphone.
[0208] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0209] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0210] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for detecting defective earphones, characterized in that: The method comprises: Acquire first recording signals of different first headphone prototypes in corresponding bad headphone states, wherein the different first headphone prototypes include good headphone prototypes and bad headphone prototypes, wherein the bad headphone prototype includes at least one of a first bad headphone prototype with background noise and a second bad headphone prototype with current sound, and the bad headphone state is a first headphone state with background noise or a second headphone state with current sound; Acquire a first power spectrum of each of the first recording signals; Determine a target frequency band and a dB threshold value that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype; Obtain a second recording signal of the headphone under test in a bad headphone state; Acquire a second power spectrum of the second recorded signal; The actual dB value of the second power spectrum in the target frequency band is compared with the dB threshold, and if the actual dB value exceeds the corresponding dB threshold, it is determined that the ear to be tested is a defective earphone.
2. The method according to claim 1, characterized in that Before obtaining first recording signals of different first headphone prototypes in corresponding bad headphone states, the method further includes: Respectively obtain a third recording signal of the second headset prototype in different states, wherein the state includes at least one of a power-on reconnection state, after connecting to a device, an ANC mode, a call mode, a single ear state, a double ear state, after disconnecting Bluetooth, and after leaving the warehouse; The third recording signal is analyzed, and the state of the second earphone prototype in which the third recording signal has an abnormal phenomenon is determined as an abnormal earphone state, wherein the abnormal phenomenon is the presence of current sound or background noise in the third recording signal.
3. The method according to claim 2, characterized in that The method further comprises: Analyze the third sound signal to determine the undesirable phenomenon data of the third recording signal where the undesirable phenomenon occurs, wherein the undesirable phenomenon data includes at least one of the duration of occurrence and the start time of the undesirable phenomenon; The obtaining of the first power spectrum of each of the first recording signals includes: Setting a first target parameter in a power algorithm according to the bad phenomenon data, or setting a first target parameter in a power algorithm according to a first setting instruction of a user, wherein the first target parameter includes at least one of a signal starting time, a signal length, and a length of an analysis frame, and the first setting instruction is issued by the user according to the bad phenomenon data; In response to a second setting instruction of the user, setting a second target parameter in the power algorithm, wherein the second target parameter includes an averaging mode, a weighting mode, an averaging number, a window type, an analysis type, an overlap rate, a default minimum amplitude, a dB reference value type, at least one of an extraction start frequency and an octave of a power spectrum curve, and a specified first recording signal; The first power spectrum of each designated first recording signal is calculated using the power algorithm after parameter setting.
4. The method according to claim 3, characterized in that The method of calculating the first power spectrum of each designated first recording signal using the power algorithm after parameter setting is completed includes: The power algorithm after parameter setting is used to calculate the first power spectrum of each designated first recording signal curve amplification.
5. The method according to claim 1, characterized in that The first recording signal is obtained by collecting sound signals of the first earphone prototype through a testing device; Before obtaining first recording signals of different first headphone prototypes in corresponding bad headphone states, the method further includes: Verify the hardware performance of the test equipment and obtain the hardware performance verification result; If the hardware performance verification result indicates that the anti-interference capability of the test device is unqualified, the user is instructed to perform hardware maintenance on the test device and then perform hardware performance verification until the hardware performance verification result indicates that the anti-interference capability of the test device is qualified.
6. The method according to claim 5, characterized in that The hardware performance of the test device is verified to obtain the hardware performance verification result, including: Perform multiple consecutive empty samplings in sequence on the test equipment that is in the off state and does not have the headphone prototype, and obtain the empty sampling data of each empty sampling; Convert each time of the air sampling data into a corresponding energy diagram or obtain the third power spectrum of each time of the air sampling data; The multiple consecutive energy graphs or the third power spectrum are analyzed to obtain the hardware performance verification result of the test equipment.
7. The method according to claim 1, characterized in that The machine test result is obtained by comparing the actual dB value of the second power spectrum in the target frequency band with the dB threshold; The method further comprises: Obtaining a manual determination result of the headset to be tested; If the machine test result of the same earphone to be tested is inconsistent with the manual judgment result, the first recording signal of different first earphone prototypes in the corresponding bad earphone state and subsequent steps are performed according to the reselected first earphone prototype and / or the calibration test equipment to redetermine the target frequency band and dB threshold that may generate background noise or current sound, until the machine test results of all the earphones to be tested are consistent with the manual judgment result, wherein the first recording signal is obtained by collecting the sound signal of the first earphone prototype by the test equipment.
8. A defective headphone detection device, characterized in that: The device comprises: A first recording signal acquisition module is used to acquire first recording signals of different first earphone prototypes in corresponding bad earphone states, wherein the different first earphone prototypes include good earphone prototypes and bad earphone prototypes, wherein the bad earphone prototypes include at least one of a first bad earphone prototype with background noise and a second bad earphone prototype with current sound, and the bad earphone state is a first earphone state with background noise or a second earphone state with current sound; A power spectrum calculation module, used for obtaining a first power spectrum of each of the first recording signals; A threshold determination module, used to determine a target frequency band and a dB threshold that may generate background noise or current sound according to the first power spectrum of the good headphone prototype and the first power spectrum of the defective headphone prototype; A second recording signal acquisition module, used to acquire a second recording signal of the headphone to be tested in a bad headphone state; The power spectrum calculation module is further used to obtain a second power spectrum of the second recording signal; The earphone detection module is used to compare the actual dB value of the second power spectrum in the target frequency band with the dB threshold, and if the actual dB value exceeds the corresponding dB threshold, determine that the ear to be tested is a defective earphone.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.