Headphone detection method, device, equipment and computer-readable storage medium

By playing the preset testing data in the headset and collecting acoustic signals for comparison analysis, the existing headset detection method affects production efficiency and increases production costs, and achieves high -efficiency and low -cost headset detection.

CN115175081BActive Publication Date: 2025-01-28SHENZHEN GOERTEK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210763620.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2025-01-28
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

Existing headphone detection methods require the use of professional audio detection equipment, resulting in low production efficiency and excessive production costs.

Method used

Play preset test data through the sound of the headset, collect acoustic signals with the microphone of the headset, and perform a comparison analysis to generate the test results.

Benefits of technology

No additional analysis equipment is required to reduce production costs, achieve multiple or more synchronous detection of earphones to improve detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115175081B_ABST
    Figure CN115175081B_ABST
Patent Text Reader

Abstract

The present invention discloses a headphone detection method, device, equipment and computer-readable storage medium, wherein the headphone detection method comprises: playing preset test data through the sound-generating device of the headphone to output an acoustic signal; collecting the acoustic signal through the microphone of the headphone to obtain the audio data to be detected of the headphone; comparing and analyzing the audio data to be detected with the preset test data to generate the detection result of the headphone. That is, the headphone aging system uses the built-in microphone of the headphone to collect the audio data generated by the headphone sound-generating device playing a specific signal, and uses the collected audio data for the analysis and detection of the headphone playback quality. Compared with the current use of professional audio analysis equipment to detect the headphone, this embodiment does not require additional analysis equipment, reduces production costs, and does not need to wait for the professional audio analysis equipment to be idle, so as to achieve synchronous detection of multiple or multiple pairs of headphones.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of earphone detection technology, and in particular to an earphone detection method, device, equipment and computer-readable storage medium. Background Art

[0002] With the increasing popularity of TWS (True Wireless Stereo) headphones, people have higher and higher requirements for the stability and sound quality reliability of TWS headphones. Headphone "burn-in" is a measure to quickly age and stabilize the headphones. It is a process of artificially accelerating the device into the mature stage through abnormal use. Therefore, the aging process is a very common production process for audio products. For TWS headphone products, it is generally achieved by software driving the hardware to output a certain power signal to make the speaker diaphragm vibrate continuously.

[0003] However, since the aging process is often long, the system load is also large, and the process is relatively complicated, some machines with unstable performance may have some abnormalities in structural assembly, electronic devices, and acoustic devices during the aging process (the manifestation may be some short-term and slight noises). In order to prevent these probabilistic, short-term, and slightly defective machines from flowing into the market and ensure the high quality of the headphones, we usually test the aged headphones. The conventional practice requires professional audio testing equipment (such as audio analyzers) to measure the acoustic signals output by the headphones to achieve this. However, for a time-consuming and cumbersome process such as aging, it is obviously unrealistic to use professional equipment to monitor the real-time status of each device, which will greatly affect the production efficiency and increase the production cost. Therefore, there is an urgent need for an efficient detection method to reduce production costs.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide an earphone detection method, device, equipment and computer-readable storage medium, aiming to solve the current technical problems that earphone detection has a great impact on production efficiency and has too high production costs.

[0006] To achieve the above object, the present invention provides an earphone detection method, which comprises the following steps:

[0007] Playing preset test data through a sound generating device of the earphone to output an acoustic signal;

[0008] Collecting the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset;

[0009] The audio data to be detected is compared and analyzed with the preset test data to generate a detection result of the earphone.

[0010] Furthermore, before the step of playing the preset test data through the sound generating device of the earphone to output the acoustic signal, the method further includes:

[0011] Pink noise data is played through the sound generating device to accelerate the aging stabilization of the earphone component.

[0012] Furthermore, before the step of playing the preset test data through the sound generating device of the earphone to output the acoustic signal, the method further includes:

[0013] Silent data is inserted between the pink noise data and the preset test data, so that the sound generating device plays the pink noise data, the silent data and the preset test data in the order of one another.

[0014] Furthermore, the step of collecting the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset includes:

[0015] When the silent data is played through the sound-generating device, the acoustic signal output by the sound-generating device is started and collected through the microphone to generate audio data;

[0016] The audio data collected and generated within a preset time period is used as the audio data to be detected.

[0017] Furthermore, the step of comparing and analyzing the audio data to be detected with preset test data to generate the detection result of the headset includes:

[0018] Filtering the audio data to be detected based on the preset test data to generate a distortion accumulation amount;

[0019] A detection result of the earphone is generated according to the distortion accumulation amount.

[0020] Further, the step of generating the detection result of the earphone according to the distortion accumulation includes:

[0021] When the accumulated distortion is greater than a preset distortion threshold, determining that the test result of the headset is defective;

[0022] When the accumulated distortion is less than or equal to the preset distortion threshold, it is determined that the test result of the earphone is good.

[0023] Further, after the step of generating the detection result of the earphone, the method includes:

[0024] When the detection result of the earphone is defective, the sound-generating device is stopped from playing the pink noise data, and a prompt message indicating that the earphone is defective is output.

[0025] In addition, to achieve the above object, the present invention further provides an earphone detection device, the earphone detection device comprising:

[0026] An aging signal output module, used for playing preset test data through a sound generating device of the earphone to output an acoustic signal;

[0027] The signal analysis module is used to collect the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset; compare and analyze the audio data to be detected with the preset test data to generate the detection result of the headset.

[0028] In addition, to achieve the above-mentioned purpose, the present invention also provides an earphone detection device, which includes: a memory, a processor, and an earphone detection program stored in the memory and executable on the processor, wherein the earphone detection program implements the steps of the above-mentioned earphone detection method when executed by the processor.

[0029] In addition, to achieve the above-mentioned purpose, the present invention further provides a computer-readable storage medium, on which a headset detection program is stored, and when the headset detection program is executed by a processor, the steps of the above-mentioned headset detection method are implemented.

[0030] An embodiment of the present invention proposes a method for detecting headphones, which plays preset test data through the sound-generating device of the headphones to output an acoustic signal; collects the acoustic signal through the microphone of the headphones to obtain the audio data to be detected of the headphones; compares and analyzes the audio data to be detected with the preset test data to generate the detection result of the headphones. That is, the headphone aging system uses the built-in microphone of the headphones to collect the audio data generated by the headphone sound-generating device playing a specific signal, and uses the collected audio data for the analysis and detection of the headphone playback quality. Compared with the current use of professional audio analysis equipment to detect headphones, this embodiment does not require additional analysis equipment, reduces production costs, and does not need to wait for the professional audio analysis equipment to be idle, so as to achieve synchronous detection of multiple or multiple pairs of headphones. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;

[0032] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the earphone detection method of the present invention;

[0033] Figure 3is a flow chart of a second embodiment of the earphone detection method of the present invention;

[0034] Figure 4 A signal spectrum diagram of audio data to be detected in the earphone detection method of the present invention;

[0035] Figure 5 It is a signal spectrum diagram of the audio data to be detected after filtering in the earphone detection method of the present invention;

[0036] Figure 6 A schematic diagram of the data playback sequence in the headphone detection method of the present invention;

[0037] Figure 7 The figure is a schematic structural diagram of a preferred structure of an earphone detection device in the earphone detection method of the present invention.

[0038] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0040] The main solution of the embodiment of the present invention is: playing preset test data through the sound-generating device of the earphone to output an acoustic signal; collecting the acoustic signal through the microphone of the earphone to obtain the audio data to be detected of the earphone; comparing and analyzing the audio data to be detected with the preset test data to generate the detection result of the earphone.

[0041] At present, professional audio testing equipment is used to perform quality testing on headphones that have undergone aging treatment, which has the problem of affecting production efficiency and increasing production costs.

[0042] The present invention provides a solution. The headphone aging system uses a microphone built into the headphone to collect audio data generated by a headphone sound-generating device, and uses the collected audio data for analyzing and detecting the headphone playback quality. Compared with the current use of professional audio analysis equipment to detect the headphone, the solution of this embodiment does not require additional analysis equipment, reduces production costs, and does not need to wait for the professional audio analysis equipment to be idle, thereby realizing synchronous detection of multiple or multiple pairs of headphones.

[0043] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0044] The device in the embodiment of the present invention may be a PC, or may be an electronic terminal device with a data processing function, such as a smart phone, a tablet computer, or a portable computer.

[0045] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0046] Optionally, the device may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile device is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0047] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0048] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a headset detection program.

[0049] exist Figure 1In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the earphone detection program stored in the memory 1005 and perform the following operations:

[0050] Playing preset test data through a sound generating device of the earphone to output an acoustic signal;

[0051] Collecting the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset;

[0052] The audio data to be detected is compared and analyzed with the preset test data to generate a detection result of the earphone.

[0053] Further, the processor 1001 may call the earphone detection program stored in the memory 1005, and further perform the following operations:

[0054] Before the step of playing the preset test data through the sound generating device of the earphone to output the acoustic signal, the method further includes:

[0055] Pink noise data is played through the sound generating device to accelerate the aging stabilization of the earphone component.

[0056] Further, the processor 1001 may call the earphone detection program stored in the memory 1005, and further perform the following operations:

[0057] Before the step of playing the preset test data through the sound generating device of the earphone to output the acoustic signal, the method further includes:

[0058] Silent data is inserted between the pink noise data and the preset test data, so that the sound generating device plays the pink noise data, the silent data and the preset test data in the order of one another.

[0059] Further, the processor 1001 may call the earphone detection program stored in the memory 1005, and further perform the following operations:

[0060] The step of collecting the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset comprises:

[0061] When the silent data is played through the sound-generating device, the acoustic signal output by the sound-generating device is started and collected through the microphone to generate audio data;

[0062] The audio data collected and generated within a preset time period is used as the audio data to be detected.

[0063] Further, the processor 1001 may call the earphone detection program stored in the memory 1005, and further perform the following operations:

[0064] The step of comparing and analyzing the audio data to be detected with preset test data to generate the detection result of the headset includes:

[0065] Filtering the audio data to be detected based on the preset test data to generate a distortion accumulation amount;

[0066] A detection result of the earphone is generated according to the distortion accumulation amount.

[0067] Further, the processor 1001 may call the earphone detection program stored in the memory 1005, and further perform the following operations:

[0068] The step of generating the detection result of the earphone according to the distortion accumulation comprises:

[0069] When the accumulated distortion is greater than a preset distortion threshold, determining that the test result of the headset is defective;

[0070] When the accumulated distortion is less than or equal to the preset distortion threshold, it is determined that the test result of the earphone is good.

[0071] Further, the processor 1001 may call the earphone detection program stored in the memory 1005, and further perform the following operations:

[0072] After the step of generating the detection result of the earphone, the method comprises:

[0073] When the detection result of the earphone is defective, the sound-generating device is stopped from playing the pink noise data, and a prompt message indicating that the earphone is defective is output.

[0074] Reference Figure 2 , a first embodiment of the earphone detection method of the present invention, the earphone detection method comprises:

[0075] Step S10, playing preset test data through the sound generating device of the earphone to output an acoustic signal;

[0076] In this embodiment, the implementation subject is an earphone aging system (or an earphone aging management module, etc.), which refers to a system that accelerates the aging and stabilization of the earphone by controlling the earphone to play specific audio data, thereby allowing the device to quickly enter the mature stage. After the earphone aging system ages the earphone, the earphone aging system plays preset test data through the sound-generating device of the earphone (such as a speaker, a loudspeaker, etc.), so that the sound-generating device outputs an acoustic signal (causing air vibration).

[0077] Step S20, collecting the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset;

[0078] Specifically, the above-mentioned earphones refer to earphones with a built-in microphone, such as active noise reduction earphones. Active noise reduction earphones are usually composed of a main microphone for calls, a feedforward microphone for detecting the external environment, a feedback microphone for detecting residual noise, and a speaker. The above-mentioned sound-generating device is the speaker of the active noise reduction earphones. It can be understood that the main microphone, feedforward microphone and feedback microphone of the active noise reduction earphones can all collect the acoustic signal output by the sound-generating device, wherein the feedback microphone is close to the sound-generating device (speaker) (or is located in the sound-generating direction of the sound-generating device), and can receive the acoustic signal output by the sound-generating device more clearly. Therefore, in this embodiment, the feedback microphone is preferentially used to collect the acoustic signal. The earphone microphone can collect the sound emitted by the earphone sound-generating device based on preset test data, and convert the collected sound into an electrical signal, which is the audio data to be detected.

[0079] Furthermore, before the step of playing preset test data through the sound-generating device of the earphone to output an acoustic signal, the method further includes: playing pink noise data through the sound-generating device to accelerate the aging stabilization of the earphone component.

[0080] Specifically, the earphone aging system will also input pink noise data to the earphone, and the earphone will make a sound based on the received pink noise data. When the pink noise data is played by the earphone, the aging of the earphone can be accelerated, so that the earphone components are stable. This process is also called "burn-in". Therefore, the actual playback content of the earphone can be a section of pink noise data followed by a section of test data to be played in a loop, or, when the earphone aging process is about to end, the preset test data is played, and before that, it is all pink noise data. The preset test data is used to check whether the earphone is abnormal, and the preset test data usually selects a more regular audio signal, such as a 1KHz single-frequency signal. It can be understood that a more regular audio signal can facilitate subsequent earphone abnormality analysis. The earphone aging system will play the pink noise data and the preset test data through the sound-generating device of the earphone, and also collect the audio data generated by the sound-generating device actually playing the pink noise data and the preset test data through the microphone of the earphone. At this time, the audio data collected by the microphone includes the pink noise data and the preset test data, and the part of the collected audio data that plays the preset test data will be used as the audio data to be detected.

[0081] It can be understood that in this embodiment, the headphone aging system uses the built-in microphone of the headphone to collect audio data generated by the headphone sound-generating device, and uses the collected audio data for analysis and detection of the headphone playback quality. Compared with the current use of professional audio analysis equipment to detect the headphone, this embodiment does not require additional analysis equipment, which reduces production costs, and does not need to wait for the professional audio analysis equipment to be idle, so as to achieve simultaneous detection of multiple or multiple pairs of headphones. In addition, the preset detection data will be input into the headphone playback together with the pink noise data, so that the headphones involved in the aging can be simultaneously tested for playback quality, and also realizes simultaneous quality detection when the headphones are aging, which improves the headphone detection efficiency and factory efficiency.

[0082] Step S30, comparing and analyzing the audio data to be detected with the preset test data to generate a detection result of the earphone.

[0083] Specifically, when the earphone only plays the preset test data, the audio data collected by the earphone microphone at this time are all generated based on the preset test data, so the audio data can be directly used as the audio data to be detected and compared with the preset test data. When the earphone aging system outputs the preset comprehensive data (including pink noise data and preset test data) to the earphone, the audio data collected by the earphone microphone at this time will be generated based on the pink noise data and the preset test data. Therefore, when the earphone aging system outputs the preset test data to the earphone, the earphone aging system can turn on the earphone microphone to collect the acoustic signal generated by the earphone playback device. The audio data collected at this time is used as the audio data to be detected, and the audio data to be detected is compared and analyzed. It can be understood that the audio data to be detected is the audio data of the earphone microphone playing the preset test data, and the preset test data used for comparison and analysis is the original preset test data. The original preset test data is compared and analyzed with the audio data to be detected, and based on the difference or difference between the two, the playback quality of the earphone can be judged (the greater the difference, the worse the playback quality, and vice versa, the smaller the difference, the better the playback quality), and the detection result of the earphone is generated according to the earphone playback quality.

[0084] Furthermore, the audio data to be detected is filtered based on the preset test data to generate a distortion accumulation amount; and a detection result of the earphone is generated according to the distortion accumulation amount.

[0085] Specifically, Figure 4As shown, it is the signal spectrum of the audio data to be detected, and the horizontal axis of the signal spectrum is the amplitude, and the vertical axis is the frequency. The audio data to be detected includes the fundamental wave, the second harmonic, the third harmonic, and the fourth harmonic, wherein the fundamental wave corresponds to the frequency F, the second harmonic corresponds to the frequency 2F, the third harmonic corresponds to the frequency 3F, and the fourth harmonic corresponds to the frequency 4F. In addition, it will also include noise (the frequency of the noise is usually random). During the detection process, the fundamental wave is the preset test data mentioned above, such as the 1KHz fundamental wave signal. The second harmonic, the third harmonic, the fourth harmonic and noise are all factors that affect the quality of headphone playback, and are also the basis for measuring the degree of ear distortion. The audio data to be detected will be filtered based on the preset test data (1KHz fundamental wave signal), that is, the fundamental wave in the audio data to be detected will be filtered out, leaving the second harmonic, the third harmonic, the fourth harmonic and noise, as shown in FIG. Figure 5 As shown, it is the signal spectrum of the audio data to be detected after filtering. The horizontal axis of the signal spectrum is the amplitude and the vertical axis is the frequency. Calculate the cumulative energy of the second harmonic, third harmonic, fourth harmonic and noise to obtain the cumulative distortion. According to the cumulative distortion, judge whether the earphone is abnormal and generate the corresponding detection result. Alternatively, perform THD+N (Total Hormonic Distortion + Noise) calculation and analysis on the audio data to be detected to generate the distortion degree of the earphone, and generate the corresponding detection result based on the distortion degree.

[0086] Furthermore, when the accumulated distortion amount is greater than a preset distortion threshold, the test result of the earphone is defective; when the accumulated distortion amount is less than or equal to the preset distortion threshold, the test result of the earphone is good.

[0087] Specifically, the distortion accumulation is compared with a preset distortion threshold. If the distortion accumulation is greater than the preset distortion threshold, the earphone is determined to be defective and the corresponding earphone detection result is defective. If the distortion accumulation is less than or equal to the preset distortion threshold, the earphone is determined to be good. The specific preset distortion threshold can be set by a technician according to the actual factory standard of the earphone.

[0088] In this embodiment, the preset test data is played through the sound-generating device of the headset to output an acoustic signal; the acoustic signal is collected through the microphone of the headset to obtain the audio data to be detected of the headset; the audio data to be detected is compared and analyzed with the preset test data to generate the detection result of the headset. That is, the headset aging system uses the built-in microphone of the headset to collect the audio data generated by the headset sound-generating device, and uses the collected audio data for analysis and detection of the headset playback quality. Compared with the current use of professional audio analysis equipment to detect the headset, this embodiment does not require additional analysis equipment, reduces production costs, and does not need to wait for the professional audio analysis equipment to be idle, so as to achieve synchronous detection of multiple or multiple pairs of headsets.

[0089] Reference Figure 3 , a second embodiment of the earphone detection method of the present invention, the earphone detection method comprises:

[0090] Step S100, playing pink noise data through the sound generating device to accelerate the aging stabilization of the earphone component;

[0091] Specifically, the earphone aging system will play pink noise data through the earphone's sound-generating device, so that the earphone's vibration device can quickly run-in when playing the pink noise data, thereby accelerating the aging of the vibration device and making it tend to be stable, thereby ensuring the earphone's playback effect.

[0092] Step S200, playing preset test data through the sound generating device of the earphone to output an acoustic signal;

[0093] Furthermore, before the step of playing the preset test data through the sound-generating device of the earphone to output an acoustic signal, the method also includes: inserting silent data between the pink noise data and the preset test data so that the sound-generating device plays the pink noise data, silent data and preset test data in the order of the first and second noise data.

[0094] Specifically, in this embodiment, silent data will be inserted between the pink noise data and the preset test data, that is, the earphone aging system will play the pink noise data, the preset test data and the silent data in sequence through the sound generating device of the earphone. Figure 6 The above-mentioned audio data sequence diagram, and the proportion of each type of data can be set by the technician according to the actual situation. Usually, the proportion of pink noise data is large, and the proportion of silent data is small. It is understandable that the aging of the earphones takes a long time. The earphone aging system can play the pink noise data, preset test data and silent data in a loop to increase the length of time the earphones play the pink noise data, and the earphones will be tested every time they are aged.

[0095] Step S300, collecting the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset;

[0096] Specifically, the acoustic signal generated by the sound-generating device of the earphone at this time will include the acoustic signal generated by playing the pink noise data, the silent data and the preset test data, and the acoustic signal used for earphone detection is the acoustic signal of the preset test data part.

[0097] Furthermore, when the silent data is played through the sound-generating device, the acoustic signal output by the sound-generating device is started and collected through the microphone to generate audio data; and the audio data collected and generated within a preset time period is used as the audio data to be detected.

[0098] Specifically, when the earphone aging system controls the current sound device of the earphone to play silent data, the earphone aging system starts the collection of audio data from the earphone microphone, and uses the data collected within the preset time period as the audio data to be detected. The preset time period can be the same as the playback time of each preset test data to ensure that the acquired audio data to be detected is generated when the sound device plays the preset test data. That is, the silent data is used for the transition between pink noise data and preset test data, and prompts to start collecting audio data to be detected.

[0099] Step S400, comparing and analyzing the audio data to be detected with the preset test data to generate a detection result of the earphone.

[0100] Furthermore, the audio data to be detected is filtered based on the preset test data to generate a distortion accumulation amount; and a detection result of the earphone is generated according to the distortion accumulation amount.

[0101] Furthermore, when the accumulated distortion is greater than a preset distortion threshold, the test result of the earphone is determined to be defective; when the accumulated distortion is less than or equal to the preset distortion threshold, the test result of the earphone is determined to be good.

[0102] Furthermore, after the step of generating the detection result of the earphone, the method includes: when the detection result of the earphone is defective, stopping the sound-generating device from playing the pink noise data, and outputting a prompt message that the earphone is defective.

[0103] Specifically, when the earphone is determined to be defective, the earphone aging system will stop sending pink noise data to the earphone, that is, stop aging processing of the earphone, and correspondingly output prompt information that the earphone is defective.

[0104] In addition, it should be noted that the detailed process of the steps in this embodiment that are the same as those in the first embodiment can refer to the first embodiment and will not be repeated here.

[0105] In this embodiment, the earphone aging system can play pink noise data, silent data and preset test data in a loop. The earphone aging system will detect the playback quality of the earphone after each aging process, thereby realizing real-time detection of all earphones involved in the aging process. Moreover, compared with the current method of testing the earphones with professional audio analysis equipment after the earphones are aged, the earphone aging system in this embodiment can detect the playback quality of the earphones during the aging process. Therefore, when the earphones are judged to be defective in the middle of aging, the aging of the earphones can be stopped, thereby avoiding unnecessary aging of defective earphones and increasing overall production efficiency.

[0106] In addition, an embodiment of the present invention further provides an earphone detection device, the earphone detection device comprising:

[0107] An aging signal output module, used for playing preset test data through a sound generating device of the earphone to output an acoustic signal;

[0108] The signal analysis module is used to collect the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset; compare and analyze the audio data to be detected with the preset test data to generate the detection result of the headset.

[0109] Optionally, the aging signal output module is used to:

[0110] Pink noise data is played through the sound generating device to accelerate the aging stabilization of the earphone component.

[0111] Optionally, the aging signal output module is further used for:

[0112] Silent data is inserted between the pink noise data and the preset test data, so that the sound generating device plays the pink noise data, the silent data and the preset test data in the order of one another.

[0113] Optionally, the signal analysis module is further used for:

[0114] When the silent data is played through the sound-generating device, the microphone starts to collect the acoustic signal output by the sound-generating device to generate audio data;

[0115] The audio data collected and generated within a preset time period is used as the audio data to be detected.

[0116] Optionally, the signal analysis module is further used for:

[0117] Filtering the audio data to be detected based on the preset test data to generate a distortion accumulation amount;

[0118] A detection result of the earphone is generated according to the distortion accumulation amount.

[0119] Optionally, the signal analysis module is further used for:

[0120] When the accumulated distortion is greater than a preset distortion threshold, determining that the test result of the headset is defective;

[0121] When the accumulated distortion is less than or equal to the preset distortion threshold, it is determined that the test result of the earphone is good.

[0122] Optionally, the earphone detection device further includes aging management, and the aging module is used to:

[0123] When the detection result of the earphone is defective, the sound-generating device is stopped from playing the pink noise data, and a prompt message indicating that the earphone is defective is output.

[0124] The headphone detection device provided by the present invention adopts the headphone detection method in the above embodiment to solve the problem that the current method of using professional audio detection equipment to measure the acoustic signal output by the headphone to achieve headphone detection will affect production efficiency and increase production costs. Compared with the prior art, the beneficial effects of the headphone detection device provided by the embodiment of the present invention are the same as the beneficial effects of the headphone detection method provided by the above embodiment, and other technical features in the headphone detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0125] Reference Figure 7, a preferred embodiment of the earphone detection device of the present invention, the earphone detection device comprises: an aging management module 1, a message distribution module 2, an aging signal output module 3 and a signal analysis module 4, wherein the aging management module 1 comprises an aging process control 1-1 and an aging result management 1-2. The aging management module 1 communicates data with the aging signal output module 3 and the signal analysis module 4 respectively through the message distribution module 2. During the aging process of the earphone, the aging process control 1-1 sends an output-on instruction (which may include the number of cycles) to the aging signal output module 3 through the message distribution module 2. After receiving the output-on instruction, the aging signal output module 3 starts to output audio data to the earphone that needs to be aged (including the playback sequence). The audio data consists of pink noise data, mute data and preset test data (1KHz single-frequency signal), and the earphone plays pink noise, mute and 1KHz single-frequency in the above sequence. After playing, the output will stop and wait for the next output-on instruction. If the aging signal output module 3 receives the output-off instruction sent by the aging process control 1-1 through the message distribution module 2, the audio output path to the earphone is directly closed. When the earphone is playing silent data, the aging process control 1-1 sends an instruction to turn on analysis to the signal analysis module 4 through the message distribution module 2. After receiving the instruction to turn on analysis, the signal analysis module 4 turns on the feedback MIC (Microphone) for recording. The signal analysis module 4 performs THD real-time calculation (Total Hormonic Distortion) on the audio data collected by the microphone within the preset time period, and the THD real-time calculation can calculate the distortion degree of the earphone. When the feedback MIC (microphone) is turned on for a preset time period, the aging process control 1-1 sends a shutdown instruction to the signal analysis module 4 through the message distribution module 2. After receiving the shutdown instruction, the signal analysis module 4 turns off the feedback MIC recording and generates the THD real-time calculation result. The signal analysis module 4 reports the THD result to the message distribution module 2, and the message distribution module 2 sends the THD result to the aging management module 1. The aging management module 1 then determines whether the earphone is defective or good based on the THD result (distortion degree of the earphone).

[0126] In addition, an embodiment of the present invention further proposes an earphone detection device, which includes: a memory, a processor, and an earphone detection program stored in the memory and executable on the processor, wherein the earphone detection program implements the steps of the above-mentioned earphone detection method when executed by the processor.

[0127] The specific implementation of the earphone detection device of the present invention is basically the same as the embodiments of the earphone detection method described above, and will not be described in detail here.

[0128] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a headset detection program is stored. When the headset detection program is executed by a processor, the steps of the above-mentioned headset detection method are implemented.

[0129] The specific implementation of the medium of the present invention is basically the same as the above-mentioned embodiments of the headphone detection method, and will not be repeated here.

[0130] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0133] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A headphone detection method, characterized in that: The earphone detection method comprises the following steps: Play pink noise data through the sound generating device of the earphone to accelerate the aging stabilization of the earphone components; Playing the preset test data through the sound-generating device of the earphone to output an acoustic signal, before the step of playing the preset test data through the sound-generating device of the earphone to output an acoustic signal, inserting silent data between the pink noise data and the preset test data, so that the sound-generating device plays the pink noise data, the silent data and the preset test data in the order of the first and second noises; Collecting the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset; The audio data to be detected is compared and analyzed with the preset test data to generate a detection result of the earphone.

2. The earphone detection method according to claim 1, characterized in that: The step of collecting the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset comprises: When the silent data is played through the sound-generating device, the acoustic signal output by the sound-generating device is started and collected through the microphone to generate audio data; The audio data collected and generated within a preset time period is used as the audio data to be detected.

3. The earphone detection method according to claim 1, characterized in that: The step of comparing and analyzing the audio data to be detected with the preset test data to generate the detection result of the headset includes: Filtering the audio data to be detected based on the preset test data to generate a distortion accumulation amount; A detection result of the earphone is generated according to the distortion accumulation amount.

4. The earphone detection method according to claim 3, characterized in that: The step of generating the detection result of the earphone according to the distortion accumulation comprises: When the accumulated distortion is greater than a preset distortion threshold, determining that the test result of the headset is defective; When the accumulated distortion is less than or equal to the preset distortion threshold, it is determined that the test result of the earphone is good.

5. The earphone detection method according to claim 4, characterized in that: After the step of generating the detection result of the earphone, the method comprises: When the detection result of the earphone is defective, the sound-generating device is stopped from playing the pink noise data, and a prompt message indicating that the earphone is defective is output.

6. An earphone detection device, characterized in that: The earphone detection device comprises: An aging signal output module, used for playing pink noise data through a sound-generating device of the earphone to accelerate the aging stabilization of the earphone device, playing preset test data through the sound-generating device of the earphone to output an acoustic signal, and inserting silent data between the pink noise data and the preset test data before the step of playing the preset test data through the sound-generating device of the earphone to output an acoustic signal, so that the sound-generating device plays the pink noise data, silent data and preset test data in the order of the sequence; The signal analysis module is used to collect the acoustic signal through the microphone of the headset to obtain the audio data to be detected of the headset; compare and analyze the audio data to be detected with the preset test data to generate the detection result of the headset.

7. An earphone detection device, characterized in that: The earphone detection device comprises: a memory, a processor, and an earphone detection program stored in the memory and executable on the processor. When the earphone detection program is executed by the processor, the steps of the earphone detection method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an earphone detection program, and when the earphone detection program is executed by the processor, the steps of the earphone detection method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Intelligent earphone support

    CN114554341A

  • Methods and apparatus for headset diagnostics

    US20210136503A1