Earphone detection method and device, earphone, earphone detection system and medium

By forming a closed test cavity in the headphone box, using speakers to play audio and collect it by microphone, the problem of low headphone detection accuracy in the prior art is solved, and efficient self-test of headphone audio devices is achieved, and detection accuracy and efficiency are improved.

CN120358433APending Publication Date: 2025-07-22纳欣科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410088781.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-22
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

In the prior art, the headphone detection method relies on external detection devices, limits the detection scenario and affects the detection accuracy, resulting in frequent misjudgment and is difficult to apply in multiple scenarios.

Method used

By placing the headphones into the headphone box to form a closed test chamber, the headphones' speakers play audio, and the audio is collected by multiple microphones. By comparing multiple audio quality, the loss information of the audio device is obtained, and self-test is achieved.

Benefits of technology

It improves the accuracy of headphone audio device detection, realizes self-test of all audio devices, enhances detection efficiency, and does not require new devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120358433A_ABST
    Figure CN120358433A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an earphone detection method and device, an earphone and a computer readable storage medium, and belongs to the technical field of earphones. The method comprises the following steps: when an earphone is in an earphone box and the earphone box is closed, the earphone box forms a closed test cavity; the earphone comprises an audio device, and the audio device comprises a loudspeaker and a plurality of microphones. Audio is played through a loudspeaker of the earphone; collecting the audio of the loudspeaker through a plurality of microphones; and obtaining loss information of the audio device according to the acquired multiple groups of audio qualities. Therefore, the damage state of the audio device of the earphone is detected based on the multiple groups of audio quality detected in the test cavity through the earphone and the test cavity formed by the earphone without adding a device, and the accuracy of the detected loss information of the audio device is greatly improved through comparison of the multiple groups of audio quality; moreover, the self-inspection of all audio devices of the earphone is realized, and the detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of earphones, and particularly to an earphone detection method, device, earphone, earphone detection system and medium. Background Art

[0002] In the related art, before leaving the factory, audio detection is performed on earphones. An external detection device is used: an external microphone samples the loudness output by the speaker; the external speaker outputs loudness to detect the earphone microphone. The sampled output loudness is compared with a preset threshold to determine whether the speaker and the MIC are faulty. In the prior art, the input through an external sound source device limits the detection scenario and affects the detection accuracy, and it cannot be applied to multiple scenarios such as production, testing, and end users at the same time, and it is easy to make misjudgments, resulting in the problem of relatively low earphone detection accuracy in the prior art. Summary of the Invention

[0003] To solve the above technical problems, embodiments of this application provide an earphone detection method, device, earphone and computer-readable storage medium.

[0004] In a first aspect, embodiments of this application provide an earphone detection method, and the method includes:

[0005] When the earphone is in the earphone case and the earphone case is closed, the earphone case forms a closed test cavity; the earphone includes audio components, and the audio components include a speaker and multiple microphones;

[0006] Play audio through the speaker of the earphone;

[0007] Collect the audio of the speaker through multiple microphones;

[0008] Obtain the loss information of the audio components according to the collected multiple groups of audio qualities.

[0009] In an embodiment, the earphone includes multiple speakers, and the step of playing audio through the speaker of the earphone includes:

[0010] Each speaker plays audio at preset time intervals.

[0011] In an embodiment, the step of obtaining the loss information of the audio components of the earphone according to the collected multiple groups of audio qualities includes:

[0012] Determine the degree of damage of each speaker and / or each microphone according to the multiple groups of audio qualities collected by each microphone and a preset standard value.

[0013] In an embodiment, the step of playing audio through the speaker of the earphone includes:

[0014] Monitor the ambient sound through one or more of the microphones, and when the ambient sound is less than or equal to a preset sound threshold, play audio through the speaker;

[0015] Or,

[0016] When the ambient sound is greater than the preset sound threshold, perform noise reduction processing on multiple groups of collected audio to obtain multiple groups of denoised audio;

[0017] Obtain the loss information of the audio device of the earphone according to the quality of multiple groups of collected audio, including:

[0018] Compare the quality of multiple groups of denoised audio with a preset standard value to obtain the degree of damage of the audio device.

[0019] In one embodiment, the method further includes:

[0020] Determine the earphone damage probability according to user usage data;

[0021] Adjust the earphone detection frequency according to the earphone damage probability. If the earphone damage probability is higher, the corresponding earphone detection frequency is higher.

[0022] In one embodiment, determining the degree of damage of each speaker and / or each microphone according to the quality of multiple groups of audio collected by each microphone and a preset standard value includes:

[0023] Compare the quality of multiple groups of audio to determine the damaged entity;

[0024] If the damaged entity is a microphone, then compare the quality of multiple groups of audio with a preset standard value to determine the degree of damage of one or more microphones;

[0025] If the audio device includes multiple speakers and the damaged entity is a speaker, then compare the quality of multiple groups of audio collected by the same microphone for multiple speakers to determine the degree of damage of one or more speakers.

[0026] In one embodiment, comparing the quality of multiple groups of audio to determine the damaged entity includes:

[0027] If the energy fluctuation range of multiple groups of audio is less than the preset energy fluctuation range and the energy of each group of audio is less than the preset standard energy value, then determine that the damaged entity is a speaker;

[0028] If there is a first audio energy in the multiple groups of audio energy that matches the standard energy value and there is a second audio energy that is less than the standard energy value, then determine that the damaged entity is a microphone.

[0029] In one embodiment, the preset standard value includes: a standard spectral feature;

[0030] The comparing of multiple groups of audio qualities to determine the damaged entity includes:

[0031] Determining the spectral features of the audio collected by each of the microphones for the same speaker;

[0032] Determining the amplitude error between each of the spectral features and the standard spectral feature;

[0033] If each of the amplitude errors is greater than or equal to the first preset amplitude error threshold, then determining the damaged entity as the speaker;

[0034] If there is a first target amplitude error less than the second preset amplitude error threshold among each of the amplitude errors, and there is a second target amplitude error greater than the third preset amplitude error threshold among each of the amplitude errors, then determining the damaged entity as the microphone corresponding to the second target amplitude error, where the second preset amplitude error threshold is less than the third preset amplitude error threshold.

[0035] In one embodiment, the comparing of multiple groups of audio qualities collected by the same microphone for multiple speakers to determine the damage degree of one or more speakers includes:

[0036] Comparing the audio energies of multiple groups collected by each of the microphones for the same speaker with a preset damaged energy threshold to determine the damage degree of one or more microphones; or,

[0037] Comparing the audio energies of multiple groups collected by the microphone for each of the speakers with a preset damaged energy threshold to determine the damage degree of one or more microphones.

[0038] In one embodiment, the comparing of multiple groups of audio qualities collected by the same microphone for multiple speakers to determine the damage degree of one speaker includes:

[0039] From the multiple groups of audio collected by each of the microphones for the same speaker, determining the first target audio corresponding to the minimum audio energy, and determining that the microphone corresponding to the first target audio has the highest damage degree;

[0040] The comparing of multiple groups of audio qualities collected by the same microphone for multiple speakers to determine the damage degree of one speaker includes:

[0041] From the multiple groups of audio collected by the microphone for each of the speakers, determining the second target audio corresponding to the minimum audio energy, and determining that the speaker corresponding to the second target audio has the highest damage degree.

[0042] In one embodiment, the method further includes:

[0043] When there are multiple headphones in the headphone case, activate multiple audio devices of the multiple headphones to detect the degree of damage of the audio devices;

[0044] Determine the audio damage balance degree among the multiple headphones according to the degree of damage of the audio devices of the multiple headphones.

[0045] In one embodiment, obtaining a preset standard value includes:

[0046] Identify the cavity information and / or the number of headphones of the headphone case, and determine the corresponding matching standard value.

[0047] In a second aspect, an embodiment of the present application provides a headphone detection device, which is applied to headphones. When the headphones are in the headphone case and the headphone case is closed, the headphone case forms a closed test cavity; the headphones include audio devices, and the audio devices include speakers and multiple microphones; the device includes:

[0048] A playing module, configured to play audio through the speaker of the headphone;

[0049] An acquisition module, configured to acquire the audio of the speaker through the multiple microphones;

[0050] An obtaining module, configured to obtain the loss information of the audio device according to the acquired multiple groups of audio quality.

[0051] In a third aspect, an embodiment of the present application provides a headphone, including: a speaker, a microphone, a memory, and a processor, where the memory stores a computer program, and the computer program executes the headphone detection method described in the first aspect when running on the processor.

[0052] In a fourth aspect, an embodiment of the present application provides a headphone detection system, including a headphone case and the headphone described in the third aspect

[0053] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program executes the headphone detection method provided in the first aspect when running on a processor.

[0054] The above-mentioned headphone detection method, device, headphone, headphone detection system and medium provided by the present application form a closed test cavity when the headphone is in the headphone case and the headphone case is closed; the headphone includes audio components, and the audio components include a speaker and multiple microphones; an audio is played through the speaker of the headphone; the audio of the speaker is collected through the multiple microphones; and loss information of the audio components is obtained according to the collected multiple sets of audio quality. In this way, without adding new components, through the headphone and the test cavity formed by the headphone and the case, the damaged state of the audio components of the headphone is detected based on multiple sets of audio quality detected in the test cavity. Through the comparison of multiple sets of audio quality, the accuracy rate of the detected loss information of the audio components is greatly improved, and self-checking of all audio components of the headphone is realized, achieving the detection purpose of detecting whether the audio components are effective and abnormal, and improving the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] To more clearly illustrate the technical solutions of the present application, the accompanying drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the protection scope of the present application. In each of the drawings, similar components are numbered similarly.

[0056] Figure 1 FIG. 1 shows a schematic structural diagram of a headphone detection system provided by an embodiment of the present application;

[0057] Figure 2 FIG. 2 shows a schematic three-dimensional structure diagram of a headphone case provided by an embodiment of the present application;

[0058] Figure 3 FIG. 3 shows a schematic diagram of a closed state of a headphone case provided by an embodiment of the present application;

[0059] Figure 4 FIG. 4 shows another schematic diagram of a closed state of a headphone case provided by an embodiment of the present application;

[0060] Figure 5 FIG. 5 shows a schematic flowchart of a headphone detection method provided by an embodiment of the present application;

[0061] Figure 6 FIG. 6 shows another schematic structural diagram of a headphone detection system provided by an embodiment of the present application;

[0062] Figure 7 FIG. 7 shows another schematic flowchart of a headphone detection method provided by an embodiment of the present application;

[0063] Figure 8 FIG. 8 shows a schematic structural diagram of a headphone detection device provided by an embodiment of the present application.

[0064] Icons: 500 - Headphone detection device, 501 - Playback module, 502 - Acquisition module, 503 - Acquisition module. Detailed implementation

[0065] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.

[0066] Generally, the components of the embodiments of the present application described and illustrated herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application to be protected, but only represents the selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.

[0067] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are only intended to represent specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be construed as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0068] In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0069] Unless otherwise limited, all terms (including technical terms and scientific terms) used herein have the same meaning as those commonly understood by those of ordinary skill in the art to which the various embodiments of the present application belong. The terms (such as those defined in a commonly used dictionary) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in the various embodiments of the present application.

[0070] In some embodiments, a headphone detection method is provided. The headphone detection method is applied to a headphone detection system, and the headphone detection system includes a headphone and a headphone case. See Figure 1 , the headphone is placed in the headphone case, and the headphone includes an audio device and a processor, and the audio device includes a speaker and a plurality of microphones. See Figure 2 , two cavities 101 for accommodating the headphone are provided in the headphone case 100. Figure 2 is the state when the headphone case 100 is opened. Figure 3is a closed state when the earphone case 100 is closed, Figure 4 is another closed state when the earphone case 100 is closed.

[0071] The following will combine Figure 5 to describe this earphone detection method.

[0072] Refer to Figure 5 , the earphone detection method includes:

[0073] Step S201, when the earphone is in the earphone case and the earphone case is closed, the earphone case forms a sealed test cavity.

[0074] It should be noted that the audio device of an earphone includes a speaker and multiple microphones, and the multiple microphones include a feedforward microphone and a feedback microphone. One earphone or multiple earphones can be placed in the earphone case. Refer to Figure 6 , when the left earphone and the right earphone are placed in the earphone case, the left earphone includes an audio device and a processor, and the right earphone includes an audio device and a processor. The left earphone includes a speaker and multiple microphones, and the right earphone includes a speaker and multiple microphones.

[0075] Due to the different number of earphones placed, when the earphone case is closed, the shape and volume of the formed cavity are different, resulting in different audio data collected by the microphones in the cavity after the speaker in the earphone case plays audio. Further supplementary explanation is that the earphone can be placed in an earphone case of the same model, and the earphone cover is closed to form a test cavity. Or the earphone can be placed in an earphone case different from it, and the earphone cover is closed to form a test cavity, which is not limited here. This earphone can be a TWS earphone.

[0076] Step S202, play audio through the speaker of the earphone.

[0077] In this embodiment, if one earphone is placed in the earphone case, and this one earphone includes a speaker, audio can be played through the speaker of this one earphone. Please refer to again Figure 3 , if the left earphone and the right earphone are placed in the earphone case, the earphone cover is closed to form a test cavity, the speaker of only the left earphone can be controlled to play audio, or the speaker of only the right earphone can be controlled to play audio, or, in order to avoid sound interference, first control the speaker of the left earphone to play audio, and after a preset time interval, then control the speaker of the right earphone to play audio. Among them, the audio played by the speaker can be audio data with a frequency of 20HZ - 20MHZ.

[0078] In an implementation manner, if the earphone includes multiple speakers, step S202 includes:

[0079] Each of the speakers plays audio at preset time intervals, and the audio played by each of the speakers has different start and end playing times.

[0080] In this way, when each speaker plays audio, multiple microphones can collect the corresponding audio, and the audio played by each speaker does not interfere with each other, ensuring the accuracy of audio collection.

[0081] Step S203: Collect the audio of the speakers through the multiple microphones.

[0082] In this embodiment, if a headset is in a closed headset case and the speaker in the headset plays sound, the audio can be collected through the multiple microphones in the headset, and then the loss information of the speaker and multiple microphones in the headset can be analyzed based on the collected audio.

[0083] If the left headset and the right headset are in a closed headset case, the speaker of the left ear can be controlled to play audio first, and the corresponding audio can be collected through the multiple microphones of the left headset and the multiple microphones of the right headset respectively. After a preset time interval, the speaker of the right ear is controlled to play audio, and the corresponding audio is collected through the multiple microphones of the left headset and the multiple microphones of the right headset respectively. The audio of the speaker of the left headset and the audio of the speaker of the right headset are collected simultaneously by the left and right headsets respectively, and then the loss information of the speaker and multiple microphones of the left headset and the loss information of the speaker and multiple microphones of the right headset can be analyzed based on the collected audio.

[0084] For example, all the microphones of the left and right headsets collect audio at the same time, and each microphone collects 2 groups of audio from different speakers.

[0085] Step S204: Obtain the loss information of the audio device according to the quality of the multiple groups of collected audio.

[0086] In this embodiment, by analyzing the multiple groups of collected audio, the quality of multiple groups of audio can be obtained based on the audio frequency and / or audio energy, and the quality of each group of audio can be compared, or the quality of each group of audio can be compared with a preset standard value, so as to determine the loss information of the audio device of the headset. The loss information includes the damaged subject and / or the degree of damage, etc., which is not limited here.

[0087] In this embodiment, the headphone detection system built based on the headphone and the headphone case does not require adding new devices. Only software upgrade is needed to detect the damaged state of the audio devices of the headphone. Through multiple groups of audio quality comparisons, the accuracy of the loss information of the detected audio devices is greatly improved. After detecting the loss information of the audio devices of the headphone, the headphone out processor delivers the loss information to the terminal device through Bluetooth data transmission to remind and inform the tester of the loss state of the audio devices of the headphone, and the tester can intuitively understand the headphone.

[0088] It should be added that when the headphone case is closed, after a closed test cavity is formed, the detection environment of the test cavity is relatively stable, in a state with less noise or relatively stable noise, which can reduce external noise interference. The space of the closed test cavity is fixed. After the headphone plays audio, the cavity echo of the closed test cavity is fixed, and a better echo effect can be achieved. When performing the operation of damaged audio devices, the operation is easier, and the detection result of the damaged degree is more accurate. Please refer to again Figure 2 and Figure 3 , when the headphone case 100 is in the closed state, a closed test cavity will be formed inside.

[0089] It should be added that step S204 includes:

[0090] Determine the damaged degree of each speaker and / or each microphone according to the multiple groups of audio quality collected by each microphone and the preset standard value.

[0091] Exemplarily, the damaged subject can be determined first based on the multiple groups of audio quality collected by each microphone. For example, in some cases, the damaged subject is the microphone, in another case, the damaged subject is the speaker, and in a more complex case, there may be both the microphone and the speaker damaged.

[0092] Refer to Figure 7 , the determining the damaged degree of each speaker and / or each microphone according to the multiple groups of audio quality collected by each microphone and the preset standard value includes:

[0093] Step S401, compare the multiple groups of audio quality to determine the damaged subject;

[0094] Step S402, if the damaged subject is the microphone, then compare the multiple groups of audio quality with the preset standard value to determine the damaged degree of one or more microphones;

[0095] Step S403, if the audio device includes multiple speakers and the damaged subject is the speaker, then compare the multiple groups of audio quality collected by the same microphone for multiple speakers to determine the damaged degree of one or more speakers.

[0096] It should be noted that multiple groups of audio quality may include multiple groups of audio frequencies and / or multiple groups of audio energies. The multiple groups of audio frequencies and / or multiple groups of audio energies can be compared to determine the damaged entity.

[0097] Furthermore, the preset standard values include a standard frequency value and a standard energy value. In one case, the multiple groups of audio frequencies and / or multiple groups of audio energies are compared with the preset standard frequency value and / or standard energy value to determine the degree of damage of one or more microphones. In another case, the multiple groups of audio frequencies and / or multiple groups of audio energies collected by the same microphone for multiple speakers are compared to determine the degree of damage of one or more speakers.

[0098] In order to improve the audio playback quality, after detecting the degree of damage of the audio device, signal compensation gain is performed to reduce the impact of the damaged audio device on the sound effect.

[0099] In one embodiment, the headphone detection method further includes:

[0100] Performing signal compensation gain on the audio device according to the degree of damage of the audio device.

[0101] Exemplarily, for example, if the speaker is damaged, the audio signal can be amplified to increase the volume.

[0102] In one embodiment, comparing multiple groups of audio quality to determine the damaged entity includes:

[0103] If the energy fluctuation range of multiple groups of audio is less than the preset energy fluctuation range, and the energy of each group of audio is less than the preset standard energy value, then determine that the damaged entity is the speaker;

[0104] If there is a first audio energy in the multiple groups of audio energy that matches the standard energy value and there is a second audio energy that is less than the standard energy value, then determine that the damaged entity is the microphone.

[0105] Among them, the preset energy fluctuation range and the preset standard energy value can be determined according to experience or obtained through experimental tests.

[0106] In one embodiment, the preset standard value includes: standard spectral characteristics;

[0107] The comparing multiple groups of audio quality to determine the damaged entity includes:

[0108] Determining the spectral characteristics of the audio collected by each microphone for the same speaker;

[0109] Determining the amplitude error between each spectral characteristic and the standard spectral characteristic;

[0110] If each of the amplitude errors is greater than or equal to the first preset amplitude error threshold, then determine that the damaged entity is the speaker;

[0111] If there is a first target amplitude error less than the second preset amplitude error threshold among the amplitude errors, and there is a second target amplitude error greater than the third preset amplitude error threshold among the amplitude errors, then determine that the damaged entity is the microphone corresponding to the second target amplitude error, where the second preset amplitude error threshold is less than the third preset amplitude error threshold.

[0112] It should be noted that in this embodiment, the audio can be the audio in the 20 - 20KHz frequency band played by the speaker. The microphone can collect the spectral characteristics of the audio in the closed test cavity. The spectral characteristics can be displayed by a spectral curve. The spectral curve has the frequency as the abscissa and the amplitude as the ordinate. The meaning of the spectral curve represents the amplitude corresponding to the 20 - 20KHz frequency band. The standard spectral characteristics can be obtained through testing in the closed test cavity, and the standard spectral characteristics can be represented by a standard spectral curve. In the actual detection process of the earphone, the spectral curve and the standard spectral curve do not need to be generated. The standard spectral characteristics and the collected spectral characteristics can be in the form of a series of frequency - amplitude data pairs.

[0113] Further supplementary explanation is that the first preset amplitude error threshold is set to a relatively large value. For example, the first preset amplitude error threshold can be 5%, and the first preset amplitude error threshold can also be set to other relatively large values. When each amplitude error is greater than or equal to the first preset amplitude error threshold, it means that the gap between the audio collected by each microphone and the sound played by the speaker is very large. The probability that all microphones are damaged together is extremely small. Then it is very likely that the speaker is damaged, and it can be determined that the damaged entity is the speaker.

[0114] Further, the second preset amplitude error threshold can be a relatively small value. For example, the second preset amplitude error threshold can be 0, 0.1%, etc., or other relatively small values. When there is a first target amplitude error among the amplitude errors that is less than the second preset amplitude error threshold, it indicates that the audio collected by the microphone corresponding to the first target amplitude error is very close to the audio played by the speaker, and this microphone is a normal microphone and the speaker is normal. The third preset amplitude error threshold can be a relatively large value. For example, the third preset amplitude error threshold can be 7%, 8%, etc., or other relatively large values. When there is a second target amplitude error among the amplitude errors that is greater than the third preset amplitude error threshold, it indicates that the audio collected by the microphone corresponding to the second target amplitude error is not close to the audio played by the speaker, that is, the gap between the audio collected by the microphone and the original audio is very large. On the premise that the speaker has been determined to be normal, it indicates that this microphone is a damaged device. The first preset amplitude error threshold, the second preset amplitude error threshold, and the third preset amplitude error threshold can be set according to experience or obtained from test data, and are not limited herein.

[0115] Exemplarily, the energy distribution feature can be represented by an energy curve, and the reference energy distribution feature can be represented by a curve. By comparing the collected multiple sets of energy curve representations with the reference energy curve, the degree of damage of the microphone can be determined.

[0116] In one embodiment, the comparing the audio qualities of multiple sets collected by the same microphone for multiple speakers to determine the degree of damage of one or more speakers includes:

[0117] Comparing the audio energies of multiple sets collected by each of the microphones for the same speaker with a preset damaged energy threshold to determine the degree of damage of one or more microphones;

[0118] The comparing the audio qualities of multiple sets collected by the same microphone for multiple speakers to determine the degree of damage of one or more speakers includes:

[0119] Comparing the audio energies of multiple sets collected by the microphone for each of the speakers with a preset damaged energy threshold to determine the degree of damage of one or more microphones.

[0120] In this embodiment, the preset damaged energy threshold can be obtained based on experience or experimental data, and multiple preset damaged energy thresholds can be set according to the degree of damage. For example, the first preset damaged energy threshold, the second preset damaged energy threshold, and the third preset damaged energy threshold are set for high, medium, and low degrees of damage respectively, so as to determine the degree of damage of one or more microphones and speakers.

[0121] In addition, through detection and analysis, the most severely damaged audio device can be determined.

[0122] In one embodiment, comparing multiple sets of audio qualities collected by the same microphone for multiple speakers to determine the damage degree of one of the speakers includes:

[0123] Determine the minimum audio energy from multiple sets of audio collected by each microphone for the same speaker. When the minimum audio energy is less than a preset audio energy threshold, determine the first target audio corresponding to the minimum audio energy, and determine that the microphone corresponding to the first target audio has the highest damage degree.

[0124] In this embodiment, the preset audio energy threshold can be obtained based on experience or experimental data. For example, the preset audio energy threshold can be 5. When the minimum audio energy is less than the preset audio energy threshold, it indicates that the error between the audio collected by the corresponding microphone and the played audio is the largest, and the damage degree of this microphone is the highest. In this way, the most severely damaged microphone can be detected and replaced or repaired as soon as possible.

[0125] In one embodiment, comparing multiple sets of audio qualities collected by the same microphone for multiple speakers to determine the damage degree of one speaker includes:

[0126] Determine the minimum audio energy from multiple sets of audio collected by the microphone for each of the speakers respectively. When the minimum audio energy is less than the preset audio energy threshold, determine the second target audio corresponding to the minimum audio energy, and determine that the speaker corresponding to the second target audio has the highest damage degree.

[0127] In this embodiment, when the minimum audio energy is less than the preset audio energy threshold, it indicates that the error between the audio played by the corresponding speaker and the audio played by other speakers is the largest, and the damage degree of this speaker is the highest. In this way, the most severely damaged speaker can be detected and replaced or repaired as soon as possible.

[0128] It should be noted that during the process of headphone testing, the noise in the surrounding environment may affect the test results, so noise denoising processing is required. Different denoising methods can be adopted based on the magnitude of the noise value in the surrounding environment.

[0129] In one embodiment, playing audio through the speaker of the headphone includes:

[0130] Monitor the ambient sound through one or more of the microphones, and when the ambient sound is less than or equal to a preset sound threshold, play the audio through the speaker.

[0131] It should be noted that the preset sound threshold is a relatively small value and will not affect the detection result. This preset sound threshold can be obtained based on experience or experimental data. When the ambient sound is greater than the preset sound threshold and affects the detection result, a denoising process is required.

[0132] In one embodiment, the detection method further includes:

[0133] When the ambient sound is greater than the preset sound threshold, perform noise reduction processing on the collected multiple groups of audio to obtain multiple groups of denoised audio.

[0134] This noise reduction processing can use noise reduction software, which is not limited here. By performing comparative analysis on the denoised audio after denoising, the damaged information of the audio device can be obtained more accurately.

[0135] In one embodiment, the obtaining of the loss information of the audio device of the earphone according to the quality of the multiple groups of collected audio includes:

[0136] Compare the quality of multiple groups of denoised audio with a preset standard value to obtain the damaged degree of the audio device.

[0137] In this way, by comparing based on the quality of multiple groups of denoised audio and the preset standard value, the influence of the noise in the surrounding environment can be avoided, and the damaged degree of the frequency device can be obtained more accurately.

[0138] It should be noted that since the earphone detection method provided in this embodiment does not require introducing new detection devices, only the earphone and the earphone case form a test cavity, and a corresponding control algorithm is set in the processor of the earphone, the damaged degree of the audio device of the earphone can be accurately obtained, and it can be simultaneously applied to earphone tests in multiple scenarios such as production, testing, and end-users, improving the test scenarios.

[0139] To improve the service life of the earphone and the earphone case and balance the number of earphone tests in each test scenario, the earphone detection frequency can be set.

[0140] In one embodiment, the method further includes:

[0141] Determine the earphone damage probability according to user usage data;

[0142] Adjust the earphone detection frequency according to the earphone damage probability. If the earphone damage probability is higher, the corresponding earphone detection frequency is higher.

[0143] It should be noted that the user usage data includes data such as user usage frequency, user usage duration, and user wearing preferences. The user wearing preferences can be preferring to wear the left earphone, or preferring to wear the right earphone, preferring a large volume, preferring a small volume, etc. Generally speaking, the higher the headphone usage frequency, the longer the usage time, and the larger the volume, the greater the corresponding damage probability.

[0144] In this way, determining the headphone detection frequency based on the user usage data can adapt to the optimal headphone detection frequency in the user scenario, and can timely detect the damage degree of the audio device of the headphone, and provide a reminder message for the user to replace or repair the audio device.

[0145] In one embodiment, the method further includes:

[0146] Determine the damaged scenario according to the audio device parameters;

[0147] Set the headphone detection frequency according to the damaged scenario.

[0148] It should be noted that the parameters of audio devices of different models and different manufacturers are different, and the corresponding applicable usage scenarios are different. Some audio devices are prone to wear and tear in some usage scenarios. For example, some audio devices are prone to wear and tear in scenarios with too low temperature, and some audio devices are prone to wear and tear in scenarios with too high humidity.

[0149] In this way, determining the scenarios prone to wear and tear based on the audio device parameters, and then the headphone detection frequency in each damaged scenario can be adapted, and the damage degree of the audio device of the headphone can be timely detected, and a reminder message for the user to replace or repair the audio device is provided.

[0150] It should be noted that multiple headphones can be placed in a headphone case at the same time. After detecting the damage degree of each headphone, the damage degrees of multiple headphones can be evaluated to determine whether audio device repair or replacement is required.

[0151] In one embodiment, the headphone detection method further includes:

[0152] When there are multiple headphones in the headphone case, start the multiple audio devices of the multiple headphones to detect the damage degree of the audio device;

[0153] Determine the audio damage balance degree among the multiple headphones according to the damage degrees of the audio devices of the multiple headphones.

[0154] Please refer to again Figure 3, it is possible to start the left earphone and the right earphone and put them into the earphone case to detect the damage degree of the audio device, evaluate the damage balance degree of the audio devices of the left earphone and the right earphone. If the balance degree is relatively high, the device may not need to be replaced or repaired. If the balance degree is relatively low, for example, the left earphone is severely damaged and the right earphone is slightly damaged, in order to improve the audio balance of the user's left and right ears, the severely damaged left earphone can be simply replaced or repaired.

[0155] In this way, different suggestions can be made based on the audio damage balance degree among multiple earphones, improving the user experience of using earphones.

[0156] Please participate again Figure 1 、 Figure 2 and Figure 6 , due to the different numbers of earphones placed, after the earphone case is closed, there are differences in the cavity information corresponding to the formed cavities. And due to the differences in the volume, shape, and material of the earphone accommodation cavities originally possessed by different models of earphone cases, and the differences in the material, volume, and shape of different models of earphones, the earphone model, earphone case model, and number of earphones all affect the cavity information of the test cavity. Furthermore, when the earphone plays audio in the test cavity, the standard values corresponding to the collected audio will also be different. Therefore, different standard values need to be set according to various situations. For example, when the earphone model and the earphone case match and there is one earphone in the earphone case, the pre-determined standard value is the first standard value; when the earphone model and the earphone case match and there are multiple earphones in the earphone case, the pre-determined standard value is the second standard value; when the earphone model and the earphone case do not match and there is one earphone in the earphone case, the pre-determined standard value is the third standard value; when the earphone model and the earphone case do not match and there are multiple earphones in the earphone case, the pre-determined standard value is the fourth standard value. Similarly, in other situations, corresponding other standard values can be pre-set, which are not limited here.

[0157] In one embodiment, obtaining the pre-set standard value includes:

[0158] Identifying the cavity information of the earphone case and / or the number of earphones, and determining the corresponding matching standard value.

[0159] Among them, the cavity information includes information such as cavity model, material, shape, volume, etc. Based on the cavity information of the earphone and / or the number of earphones, fully comprehensively considering the influence of multiple aspects on the test cavity, so as to determine a more accurate and matching standard value. This standard value can include a frequency standard value and / or an energy standard value, preparing for accurately detecting the damage degree of the audio device subsequently.

[0160] The headphone detection method provided in this embodiment is as follows. When the headphone is in the headphone case and the headphone case is closed, the headphone case forms a sealed test cavity. The headphone includes audio components, and the audio components include a speaker and multiple microphones. An audio is played through the speaker of the headphone, and the audio of the speaker is collected by the multiple microphones. Loss information of the audio components is obtained based on the multiple sets of audio quality collected. In this way, without adding new components, by using the headphone and the test cavity formed by the headphone and the case, the damaged state of the audio components of the headphone is detected based on the multiple sets of audio quality detected in the test cavity. Through the comparison of the multiple sets of audio quality, the accuracy of the detected loss information of the audio components is greatly improved, and self-checking of all audio components of the headphone is achieved, reaching the detection purpose of detecting whether the audio components are effective and abnormal, and improving the detection efficiency.

[0161] In some embodiments, an embodiment of the present application provides a headphone detection device. This device is applied to a headphone. When the headphone is in the headphone case and the headphone case is closed, the headphone case forms a sealed test cavity. The headphone includes audio components, and the audio components include a speaker and multiple microphones.

[0162] As Figure 8 shown, the headphone detection device 500 includes:

[0163] A playback module 501, configured to play an audio through the speaker of the headphone;

[0164] A collection module 502, configured to collect the audio of the speaker through the multiple microphones;

[0165] An acquisition module 503, configured to obtain loss information of the audio components according to multiple sets of audio quality collected.

[0166] In one embodiment, the headphone includes multiple speakers. The playback module 501 is configured to play an audio at intervals of a preset time for each speaker, and the audio played by each speaker has different start and end playback times.

[0167] In one embodiment, the acquisition module 503 is configured to determine the degree of damage of each speaker and / or each microphone according to multiple sets of audio quality collected by each microphone and a preset standard value.

[0168] In one embodiment, the playback module 501 is configured to monitor ambient sound through one or more of the microphones. When the ambient sound is less than or equal to a preset sound threshold, an audio is played through the speaker;

[0169] Or,

[0170] When the ambient sound is greater than a preset sound threshold, perform noise reduction processing on multiple groups of collected audio to obtain multiple groups of denoised audio;

[0171] An acquisition module 503, configured to compare the quality of multiple groups of denoised audio with a preset standard value to obtain the damaged degree of the audio device.

[0172] In an embodiment, the headphone detection device 500 further includes:

[0173] A first adjustment module, configured to determine the headphone damage probability according to user usage data;

[0174] Adjust the headphone detection frequency according to the headphone damage probability. If the headphone damage probability is higher, the corresponding headphone detection frequency is higher.

[0175] In an embodiment, the acquisition module 503 is configured to compare the quality of multiple groups of audio to determine the damaged entity;

[0176] If the damaged entity is a microphone, then compare the quality of multiple groups of audio with a preset standard value to determine the damaged degree of one or more microphones;

[0177] If the audio device includes multiple speakers and the damaged entity is a speaker, then compare the quality of multiple groups of audio collected by the same microphone for multiple speakers to determine the damaged degree of one or more speakers.

[0178] In an embodiment, the acquisition module 503 is configured to, if the energy fluctuation range of multiple groups of audio is less than a preset energy fluctuation range and the energy of each group of audio is less than a preset standard energy value, determine that the damaged entity is a speaker;

[0179] If there is a first audio energy in multiple groups of audio energy that matches the standard energy value and there is a second audio energy that is less than the standard energy value, determine that the damaged entity is a microphone.

[0180] In an embodiment, the preset standard value includes: standard spectral characteristics;

[0181] In an embodiment, the acquisition module 503 is configured to determine the spectral characteristics of the audio collected by each microphone for the same speaker;

[0182] Determine the amplitude error between each of the spectral characteristics and the standard spectral characteristics;

[0183] If each of the amplitude errors is greater than or equal to a first preset amplitude error threshold, determine that the damaged entity is a speaker;

[0184] If there is a first target amplitude error smaller than a second preset amplitude error threshold among the amplitude errors, and there is a second target amplitude error greater than a third preset amplitude error threshold among the amplitude errors, then it is determined that the damaged entity is the microphone corresponding to the second target amplitude error, where the second preset amplitude error threshold is smaller than the third preset amplitude error threshold.

[0185] In one embodiment, an acquisition module 503 is configured to determine a first target audio corresponding to the minimum audio energy from multiple groups of audio collected by each of the microphones for the same speaker, and determine that the microphone corresponding to the first target audio has the highest degree of damage.

[0186] Determine a second target audio corresponding to the minimum audio energy from multiple groups of audio collected by the microphone for each of the speakers respectively, and determine that the speaker corresponding to the second target audio has the highest degree of damage.

[0187] In one embodiment, the headphone detection device 500 further includes:

[0188] A first determination module is configured to, when there are multiple headphones in the headphone case, activate multiple audio devices of the multiple headphones to detect the degree of damage of the audio devices.

[0189] Determine the audio damage balance degree among the multiple headphones according to the degrees of damage of the audio devices of the multiple headphones.

[0190] In one embodiment, the headphone detection device 500 further includes:

[0191] A second determination module is configured to identify the cavity information and / or the number of headphones of the headphone case, and determine a corresponding matching standard value.

[0192] In one embodiment, the headphone detection device 500 further includes:

[0193] A compensation module is configured to perform signal compensation gain on the audio device according to the degree of damage of the audio device.

[0194] The headphone detection device 500 provided in this embodiment can implement the headphone detection method provided in Embodiment 1. To avoid repetition, it will not be elaborated here.

[0195] The earphone detection device provided in this embodiment forms a sealed test cavity when the earphone is in the earphone case and the earphone case is closed. The earphone includes audio components, and the audio components include a speaker and multiple microphones. An audio is played through the speaker of the earphone, and the audio of the speaker is collected by multiple microphones. Loss information of the audio components is obtained according to the collected multiple sets of audio quality. In this way, without adding new components, based on the multiple sets of audio quality detected in the test cavity formed by the earphone and the earphone case, the damaged state of the audio components of the earphone is detected. Through the comparison of multiple sets of audio quality, the accuracy of the detected loss information of the audio components is greatly improved, and self-checking of all audio components of the earphone is realized, achieving the detection purpose of detecting whether the audio components are effective and abnormal, and improving the detection efficiency.

[0196] In addition, an embodiment of the present application provides an earphone, including: a speaker, a microphone, a memory, and a processor. The memory stores a computer program, and when the computer program runs on the processor, it executes the earphone detection method provided in Example 1.

[0197] The earphone provided in this embodiment can implement the earphone detection method provided in Example 1. To avoid repetition, it will not be elaborated here.

[0198] In addition, an embodiment of the present application provides an earphone detection system, including an earphone case and the earphone provided in Example 3.

[0199] The earphone detection system provided in this embodiment can implement the earphone detection method provided in Example 1. To avoid repetition, it will not be elaborated here.

[0200] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the earphone detection method provided in Example 1.

[0201] In this embodiment, the computer-readable storage medium can be a read-only memory (ROM for short), a random access memory (RAM for short), a magnetic disk, or an optical disc, etc.

[0202] The computer-readable storage medium provided in this embodiment can implement the earphone detection method provided in Example 1. To avoid repetition, it will not be elaborated here.

[0203] It should be noted that in this text, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or terminal including a series of elements not only includes those elements but also other elements not explicitly listed, or further includes elements inherent to such process, method, article or terminal. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or terminal including such element.

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

[0205] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A headphone detection method, characterized in that, The method includes: When the earphone is in the earphone case and the earphone case is closed, the earphone case forms a sealed test cavity; the earphone includes audio components, and the audio components include a speaker and multiple microphones; Play audio through the speaker of the earphone; Collect the audio of the speaker through multiple microphones; Obtain the loss information of the audio components according to the collected multiple groups of audio quality.

2. The method according to claim 1, wherein The earphone includes multiple speakers, and playing audio through the speaker of the earphone includes: Each speaker plays audio at preset time intervals.

3. The method according to claim 1, wherein The obtaining the damaged information of the audio components of the earphone according to the collected multiple groups of audio quality includes: Determine the damaged degree of each speaker and / or each microphone according to the multiple groups of audio collected by each microphone and the preset standard value.

4. The method according to claim 1, wherein The playing audio through the speaker of the earphone includes: Monitor the ambient sound through one or more microphones, and when the ambient sound is less than or equal to a preset sound threshold, play audio through the speaker; Or, When the ambient sound is greater than the preset sound threshold, perform noise reduction processing on the collected multiple groups of audio to obtain multiple groups of denoised audio; The obtaining the loss information of the audio components of the earphone according to the collected multiple groups of audio quality includes: Compare the quality of multiple groups of denoised audio with the preset standard value to obtain the damaged degree of the audio components.

5. The method according to claim 1, wherein The method further includes: Determine the earphone damage probability according to user usage data; Adjust the earphone detection frequency according to the earphone damage probability. If the earphone damage probability is higher, the corresponding earphone detection frequency is higher.

6. The method according to claim 3, characterized in that The determining the damaged degree of each speaker and / or each microphone according to the multiple groups of audio quality collected by each microphone and the preset standard value includes: Compare the multiple groups of audio quality to determine the damaged entity; If the damaged entity is a microphone, then compare the multiple groups of audio quality with the preset standard value to determine the damaged degree of one or more microphones; Or, If the audio components include multiple speakers and the damaged entity is a speaker, then compare the multiple groups of audio quality collected by the same microphone for multiple speakers to determine the damaged degree of one or more speakers.

7. The method according to claim 6, wherein The comparing the multiple groups of audio quality to determine the damaged entity includes: If the energy fluctuation range of multiple groups of audio is less than the preset energy fluctuation range and the energy of each group of audio is less than the preset standard energy value, then determine that the damaged entity is a speaker; If there is a first audio energy that matches the standard energy value and a second audio energy that is less than the standard energy value among the multiple groups of audio energy, then determine that the damaged entity is a microphone.

8. The method according to claim 6, wherein The preset standard value includes: standard spectral characteristics; The comparing the multiple groups of audio quality to determine the damaged entity includes: Determine the spectral characteristics of the audio collected by each microphone for the same speaker; Determine the amplitude error between each spectral characteristic and the standard spectral characteristic; If each amplitude error is greater than or equal to the first preset amplitude error threshold, then determine that the damaged entity is a speaker; If there is a first target amplitude error smaller than a second preset amplitude error threshold among the amplitude errors, and there is a second target amplitude error greater than a third preset amplitude error threshold among the amplitude errors, then determine that the damaged entity is the microphone corresponding to the second target amplitude error, where the second preset amplitude error threshold is smaller than the third preset amplitude error threshold.

9. The method according to claim 6, characterized in that The comparing the audio qualities of multiple groups collected by the same microphone for multiple speakers to determine the damage degree of one or more speakers includes: comparing the audio energies of multiple groups collected by each microphone for the same speaker with a preset damaged energy threshold to determine the damage degree of one or more microphones; or, comparing the audio energies of multiple groups collected by each microphone for each speaker with a preset damaged energy threshold to determine the damage degree of one or more microphones.

10. The method according to claim 6, wherein The comparing the audio qualities of multiple groups collected by the same microphone for multiple speakers to determine the damage degree of one speaker includes: determining the minimum audio energy from the multiple groups of audio collected by each microphone for the same speaker. When the minimum audio energy is less than a preset audio energy threshold, determining the first target audio corresponding to the minimum audio energy, and determining that the microphone corresponding to the first target audio has the highest damage degree; and / or, The comparing the audio qualities of multiple groups collected by the same microphone for multiple speakers to determine the damage degree of one speaker includes: determining the minimum audio energy from the multiple groups of audio collected by the microphone for each speaker. When the minimum audio energy is less than a preset audio energy threshold, determining the second target audio corresponding to the minimum audio energy, and determining that the speaker corresponding to the second target audio has the highest damage degree.

11. The method according to claim 1, characterized in that, The method further includes: When there are multiple headphones in the headphone case, starting multiple audio devices of the multiple headphones to detect the damage degree of the audio devices; Determining the audio damage balance degree among the multiple headphones according to the damage degrees of the audio devices of the multiple headphones.

12. The method according to claim 3, wherein Obtaining a preset standard value includes: identifying the cavity information of the headphone case and / or the number of headphones, and determining the corresponding matching standard value.

13. An earphone detection device, characterized in that, Applied to a headphone, when the headphone is in the headphone case and the headphone case is closed, the headphone case forms a closed test cavity; the headphone includes an audio device, and the audio device includes a speaker and multiple microphones; the device includes: a playing module for playing audio through the speaker of the headphone; a collecting module for collecting the audio of the speaker through the multiple microphones; an obtaining module for obtaining the audio device loss information according to the audio qualities of multiple groups collected.

14. A headset, characterized in that, including: a speaker, a microphone, a memory, and a processor, where the memory stores a computer program, and the computer program executes the headphone detection method according to any one of claims 1 to 12 when running on the processor.

15. A headphone detection system, characterized in that, including a case and the headphone according to claim 14.

16. A computer-readable storage medium, characterized in that, It stores a computer program which, when running on a processor, executes the headphone detection method according to any one of claims 1 to 12.