Hole blocking detection method and device, electronic equipment and storage medium
By collecting and analyzing the audio parameter values of the earphones when playing preset audio signals, it is determined whether the pressure relief holes of the earphones are blocked, which solves the problem of users having difficulty identifying the blocked holes of the earphones, and improves the sound quality of the earphones and the user experience.
Patent Information
- Application Number
- CN202410558084.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The pressure relief holes in existing earphones are blocked due to the accumulation of dust, dander and other substances, making it difficult for users to identify them and affecting the sound quality. This is especially difficult for people with less sensitive ears to detect, affecting the user experience.
By collecting the target audio signal of the earphone under test when playing the preset audio signal, the audio parameter value in the mid-low frequency band is obtained, and the relationship with the reference audio parameter value is compared to determine whether the pressure relief hole is blocked, and the hole detection method and Device to objectively identify and solve plugging problems.
It effectively identifies and solves the problem of headphone pressure relief holes being blocked, improves the user's headphone experience, simplifies the detection process, is suitable for different headphone types, and provides a convenient solution especially for people with insensitive ears.
Smart Images

Figure CN118540647A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of earphone technology, and are related to but not limited to a hole blockage detection method and device, an electronic device, and a storage medium. Background Art
[0002] Most existing earphones are provided with a pressure relief hole on the earphone shell to adjust the sound quality, but the pressure relief hole is often blocked due to the accumulation of dust, dander, grease and other substances, resulting in poor sound quality of the earphone.
[0003] Currently, users can only rely on their subjective auditory perception to identify whether the pressure relief hole is blocked. For people with less sensitive ears, it is difficult to identify whether the pressure relief hole is blocked, which affects the use effect of the earphones. Summary of the invention
[0004] In view of this, the hole blockage detection method and device, electronic device, and storage medium provided in the embodiments of the present application can perform hole blockage detection based on the target audio signal collected by the headphones to be tested, and objectively identify whether the pressure relief hole of the headphones to be tested is blocked, thereby facilitating users to discover and solve the problem of pressure relief hole blockage, thereby improving the user's headphone usage experience.
[0005] In a first aspect, the hole blocking detection method provided in the embodiment of the present application includes:
[0006] Acquire a target audio signal, where the target audio signal is obtained by collecting audio through a microphone of the headset under test when the headset under test plays a preset audio signal, where the preset audio signal includes an audio signal in a medium and low frequency band, and the headset under test includes a pressure relief hole;
[0007] Acquire a target audio parameter value of the target audio signal in the mid- and low-frequency band;
[0008] Whether the pressure relief hole of the earphone to be tested is blocked is determined according to the magnitude relationship between the target audio parameter value and the reference audio parameter value.
[0009] In a second aspect, the hole blocking detection device provided in the embodiment of the present application includes:
[0010] A signal acquisition module, used to acquire a target audio signal, wherein the target audio signal is obtained by collecting audio through a microphone of the headset under test when the headset under test plays a preset audio signal, wherein the preset audio signal includes an audio signal in a medium and low frequency band, and the headset under test includes a pressure relief hole;
[0011] A parameter acquisition module, used to acquire a target audio parameter value of the target audio signal in the mid- and low-frequency band;
[0012] The hole blocking determination module is used to determine whether the pressure relief hole of the earphone to be tested is blocked according to the magnitude relationship between the target audio parameter value and the reference audio parameter value.
[0013] In a third aspect, an electronic device provided in an embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps of the hole blockage detection method provided in the first aspect of the embodiment of the present application are implemented.
[0014] In a fourth aspect, a computer-readable storage medium provided in an embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the steps of the hole blockage detection method provided in the first aspect of the embodiment of the present application are implemented.
[0015] In a fifth aspect, a computer program product provided in an embodiment of the present application includes a computer program, which, when executed by a processor, implements the steps of the hole blockage detection method provided in the first aspect of the embodiment of the present application.
[0016] The hole blockage detection method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application can perform hole blockage detection based on the target audio signal collected by the earphone to be tested, and objectively identify whether the pressure relief hole of the earphone to be tested is blocked, thereby facilitating users to discover and solve the problem of pressure relief hole blockage, thereby improving the user's earphone usage experience, and thus solving the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0018] Figure 1 A schematic diagram of an application scenario of a hole blockage detection system provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of a flow chart of a hole blocking detection method provided in an embodiment of the present application;
[0020] Figure 3 A schematic flow chart of a method for determining the plugging of a pressure relief hole provided in an embodiment of the present application;
[0021] Figure 4 A flowchart of a method for obtaining a target audio parameter value provided in an embodiment of the present application;
[0022] Figure 5 A flow chart of a method for determining whether a pressure relief hole is blocked provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of a flow chart of another hole blockage detection method provided in an embodiment of the present application;
[0024] Figure 7 A link diagram of hole plugging adjustment parameters provided in an embodiment of the present application;
[0025] Figure 8 A schematic diagram of the overall process of a hole blockage detection method provided in an embodiment of the present application;
[0026] Fig. 9 A schematic diagram of the structure of a hole blockage detection device provided in an embodiment of the present application;
[0027] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0030] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0031] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0032] Most existing headphones have pressure relief holes on the headphone shell to adjust the sound quality. However, the pressure relief holes are often blocked due to the accumulation of dust, dandruff, grease and other substances, resulting in poor sound quality. Currently, users can only identify whether the pressure relief holes are blocked by subjective hearing. For people with less sensitive ears, it is difficult to identify the problem of pressure relief hole blockage, which affects the use of the headphones.
[0033] In view of this, an embodiment of the present application provides a hole blockage detection method, by acquiring a target audio signal, wherein the target audio signal is obtained by collecting audio through the microphone of the headphone to be tested when the headphone to be tested plays a preset audio signal, the preset audio signal includes an audio signal in the medium and low frequency band, and the headphone to be tested includes a pressure relief hole; acquiring a target audio parameter value of the target audio signal in the medium and low frequency band; and determining whether the pressure relief hole of the headphone to be tested is blocked based on the relationship between the target audio parameter value and the reference audio parameter value. This method can perform hole blockage detection based on the target audio signal collected by the headphone to be tested, and objectively identify whether the pressure relief hole of the headphone to be tested is blocked, thereby facilitating users to discover and solve the problem of pressure relief hole blockage, so as to enhance the user's headphone experience.
[0034] Figure 1 A schematic diagram of an application scenario of a hole blocking detection system is provided for an embodiment of the present application. Figure 1 As shown, the hole blocking detection system includes an earphone to be tested 10 and a terminal device 20, and the earphone to be tested 10 and the terminal device 20 are wirelessly connected. The earphone to be tested 10 is provided with a sound outlet 11 and a microphone 12. The speaker of the earphone to be tested 10 is generally arranged at a position where the sound outlet faces the sound outlet 11 of the earphone to be tested (not shown in the figure), and the microphone 12 is arranged near the sound outlet 11. The earphone to be tested 10 is also provided with a pressure relief hole, and the pressure relief hole includes a rear pressure relief hole 13 and a front pressure relief hole 14. Among them, the rear pressure relief hole 13 is arranged on the rear cavity of the speaker of the earphone to be tested 10, and the front pressure relief hole 14 is arranged on the front cavity of the speaker of the earphone to be tested 10. The function of the rear pressure relief hole 13 and the front pressure relief hole 14 is to balance the air pressure inside the earphone to be tested, to ensure that the sound can be transmitted smoothly, and to reduce the distortion of the sound quality.
[0035] When performing hole blocking detection, the earphone 10 to be tested can play a preset audio signal, at which time the sound outlet 11 of the earphone 10 to be tested will transmit audio, and the microphone 12 can collect audio at the same time to obtain a target audio signal. After the earphone 10 to be tested collects the target audio signal, the target audio signal can be transmitted to the terminal device 20, and the terminal device 20 performs hole blocking detection, that is, the terminal device 20 executes the hole blocking detection method provided in the embodiment of the present application.
[0036] In another embodiment, after the earphone 10 under test collects the target audio signal, the earphone 10 under test may perform hole blockage detection, that is, the earphone 10 under test executes the hole blockage detection method provided in the embodiment of the present application.
[0037] It can be understood that the electronic device that performs the hole blocking detection method can be the headset 10 to be tested, or the terminal device 20, or other electronic device that establishes a wireless connection with the headset 10 to be tested. The embodiment of the present application does not limit the type of electronic device that performs the hole blocking detection method.
[0038] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0039] Figure 2 A schematic diagram of the implementation flow of a hole blockage detection method provided in an embodiment of the present application. The hole blockage detection method can be applied to electronic devices, which can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include a personal computer, a laptop computer, a PDA, or a server, etc., which can establish a wireless connection with the headset to be tested; the electronic device can also be the headset to be tested, for example, the headset to be tested can include an earbud-type headset to be tested or a true wireless headset to be tested, etc.; the electronic device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer, or a projector, etc. Figure 2 As shown, the method may include the following steps 101 to 103:
[0040] Step 101: Obtain a target audio signal, wherein the target audio signal is obtained by collecting audio through a microphone of the headset under test when the headset under test plays a preset audio signal, wherein the preset audio signal includes an audio signal in a medium and low frequency band, and the headset under test includes a pressure relief hole.
[0041] In some embodiments, there are multiple ways to obtain the target audio signal, such as receiving the target audio signal transmitted by other devices, or collecting the target audio signal by oneself. The embodiments of the present application do not limit the way to obtain the target audio signal.
[0042] Exemplarily, when the electronic device is a headset under test, the target audio signal may be obtained by collecting audio through a microphone of the headset under test when the headset under test plays a preset audio signal, that is, the target audio signal is obtained by the headset under test itself.
[0043] When the electronic device is a terminal device, the target audio signal is also obtained by collecting audio through the microphone of the headset under test when a preset audio signal is played by the headset under test. However, after the headset under test obtains the target audio signal, it also needs to be transmitted to the terminal device so that the terminal device obtains the target audio signal.
[0044] In some embodiments, the preset audio signal includes an audio signal in a mid-low frequency band, and the audio signal in the mid-low frequency band may include an audio signal in a frequency band of 20 Hz to 500 Hz. More preferably, the audio signal in the mid-low frequency band may include an audio signal in a frequency band of 20 Hz to 200 Hz.
[0045] It is understandable that since the blockage of the pressure relief hole has the most obvious impact on the audio signal in the mid-low frequency band, using an audio signal containing the mid-low frequency band for hole blockage detection can improve the accuracy of hole blockage detection. If an audio signal in the frequency band of 20Hz to 200Hz is used for detection, the detection speed can be further accelerated because the frequency band range of the detection audio signal is narrowed.
[0046] In some embodiments, the microphone may be disposed near a sound outlet of the earphone to be tested to improve detection accuracy.
[0047] It is understandable that the closer the microphone is to the sound outlet, the better the target audio signal collected, and the more accurate the detection of hole blockage will be. If the headset to be tested is an active noise reduction headset with a feed-back FB microphone, the microphone used to collect audio can directly use the feed-back FB microphone used for active noise reduction.
[0048] Step 102: Obtain a target audio parameter value of the target audio signal in the mid- and low-frequency band.
[0049] It should be noted that there are many ways to obtain the target audio parameter values of the target audio signal in the mid- and low-frequency bands. For example, the electronic device can perform signal processing and calculation by itself, or the target audio signal can be sent to other devices for processing and calculation to obtain the result and then transmitted to the electronic device. The embodiment of the present application does not limit the method for obtaining the target audio parameter values of the target audio signal in the mid- and low-frequency bands.
[0050] Among them, the target audio parameter value can be at least one of the loudness value, sound pressure level and capacity value corresponding to the audio signal. The audio parameter value can be used to indicate the sound strength of the audio signal, etc. The embodiment of the present application does not limit the parameter type of the target audio parameter value.
[0051] Step 103: Determine whether the pressure relief hole of the earphone to be tested is blocked according to the magnitude relationship between the target audio parameter value and the reference audio parameter value.
[0052] It should be noted that the reference audio parameter value can be the audio parameter value or audio parameter value range that the collected audio signal should correspond to when the preset audio signal is played when the pressure relief hole is not blocked. When the pressure relief hole is blocked, the audio parameter value corresponding to the target audio signal in the mid-low frequency band will become larger or smaller (larger when the front pressure relief hole is blocked, and smaller when the rear pressure relief hole is blocked). Therefore, by comparing the size relationship between the target audio parameter value and the reference audio parameter value, it can be determined whether the hole is blocked.
[0053] Among them, there are many ways to determine whether the pressure relief hole is blocked according to the size relationship between the target audio parameter value and the preset reference audio parameter value. For example, if the target audio parameter value is greater than the preset reference audio parameter value, it can be determined that the pressure relief hole is blocked, or if the target audio parameter value is less than the preset reference audio parameter value, it can be determined that the pressure relief hole is blocked. In actual application scenarios, the conditions for judging whether the pressure relief hole is blocked can be determined according to the type of pressure relief hole and the setting of the reference audio parameter value. The embodiment of the present application does not limit the method of determining whether the pressure relief hole of the headphone to be tested is blocked according to the size relationship between the target audio parameter value and the reference audio parameter value.
[0054] Exemplarily, if the pressure relief hole includes a front pressure relief hole, it can be set that when the target audio parameter value is greater than the preset reference audio parameter value, the front pressure relief hole is blocked; if the pressure relief hole includes a rear pressure relief hole, it can be set that when the target audio parameter value is less than the preset reference audio parameter value, the rear pressure relief hole is blocked.
[0055] The embodiment of the present application provides a method for identifying whether the pressure relief hole of the earphone under test is blocked. A preset audio signal is played by the earphone under test, and the microphone picks up the sound and analyzes it to determine whether the audio parameter values corresponding to the medium and low frequency signals are abnormal, and then determine whether the pressure relief hole is blocked. This can facilitate users to promptly discover and solve the blockage problem, and provide a better user experience.
[0056] In some embodiments, whether the pressure relief hole is blocked can be determined based on the magnitude relationship between the difference between the target audio parameter value and the reference audio parameter value and a preset threshold.
[0057] Figure 3 A flow chart of a method for determining whether a pressure relief hole is blocked is provided in accordance with an embodiment of the present application. Figure 3 As shown, determining whether the pressure relief hole of the earphone to be tested is blocked according to the magnitude relationship between the target audio parameter value and the reference audio parameter value may include:
[0058] Step 1031: Obtain a difference between the target audio parameter value and the reference audio parameter value.
[0059] Step 1032: Determine whether the pressure relief hole is blocked based on the magnitude relationship between the absolute value of the difference and a preset threshold; wherein, if the absolute value of the difference is greater than or equal to the preset threshold, determine that the pressure relief hole is blocked.
[0060] It should be noted that when the pressure relief hole is blocked, the audio parameter value of the target audio signal in the mid- and low-frequency bands will increase or decrease. Since the detection itself will also have a certain error, in order to reduce misjudgment, a threshold can be set. When the absolute value of the difference is greater than or equal to the preset threshold, it is determined that the pressure relief hole is blocked. The threshold of the difference is taken here because if the rear pressure relief hole is blocked, the difference between the target audio parameter value and the reference audio parameter value is a negative value. Since we only compare whether the difference reaches the preset threshold, the absolute value of the difference is taken for comparison.
[0061] Furthermore, the pressure relief hole includes a front pressure relief hole and a rear pressure relief hole, and it can be further distinguished whether the front pressure relief hole is blocked or the rear pressure relief hole is blocked. The method may also include: when the absolute value of the difference is greater than or equal to the preset threshold, determining whether the pressure relief hole is blocked as the front pressure relief hole or the rear pressure relief hole according to whether the difference is greater than zero; wherein, if the difference is greater than zero, it is determined that the front pressure relief hole is blocked, and if the difference is less than zero, it is determined that the rear pressure relief hole is blocked.
[0062] It should be noted that due to the blockage of the front pressure relief hole, the audio parameter values of the target audio signal in the mid- and low-frequency bands will become larger, while when the rear pressure relief hole is blocked, the audio parameter values of the target audio signal in the mid- and low-frequency bands will become smaller. Therefore, based on whether the difference is greater than zero, when it is determined that the pressure relief hole is blocked, it can be further determined whether it is the front pressure relief hole or the rear pressure relief hole that is blocked.
[0063] It is understandable that the above method can more accurately determine which hole is blocked when the earphone includes both front and rear pressure relief holes. Among them, there is a situation where if both holes are blocked at the same time, since the front pressure relief hole will cause the target audio parameter value to become larger, and the rear pressure relief hole will cause the target audio parameter value to become smaller, the changes in the target audio parameter value will offset each other, and no processing is required in this case. In the case where the degree of blockage of the current pressure relief hole and the rear pressure relief hole is different, the above method can also be used to first determine that one of the pressure relief holes is blocked. After the user cleans that pressure relief hole, it can be tested again to determine that the other pressure relief hole is blocked, and finally the effect of determining whether all the pressure relief holes are blocked is achieved.
[0064] The method for detecting hole blockage provided in the embodiment of the present application can perform hole blockage detection based on the target audio signal collected by the headphone to be tested, without the need for complicated operations or detection with the aid of other equipment. The detection method is simple and convenient to operate, and can enhance the user's headphone usage experience.
[0065] In some embodiments, the preset audio signal includes audio signals of multiple preset detection frequencies, and the acquired target audio parameter value may also include multiple values.
[0066] Figure 4A flowchart of a method for obtaining a target audio parameter value provided by an embodiment of the present application is shown in FIG. Figure 4 As shown, obtaining the target audio parameter value of the target audio signal in the mid-low frequency band may include:
[0067] Step 201: Acquire a plurality of initial audio parameter values of the target audio signal corresponding to the plurality of preset detection frequency points respectively.
[0068] Step 202: Determine that the target audio parameter value includes a plurality of initial audio parameter values corresponding to the plurality of preset detection frequency points.
[0069] It is understandable that in order to improve the accuracy of detection, multiple audio signals of detection frequencies can be set in the preset audio signal for detection to avoid the situation where the hole is misjudged to be blocked due to too few detection frequencies. When the preset audio signal includes audio signals of multiple preset detection frequencies, it is also necessary to obtain multiple initial audio parameter values corresponding to the multiple preset detection frequencies in the target audio signal, and determine the multiple initial audio parameter values corresponding to the multiple preset detection frequencies as the target audio parameter values.
[0070] Exemplarily, the earphone to be tested plays a preset audio signal, which is an audio signal preset inside the earphone. The frequency characteristics of this preset audio signal meet the frequency requirements of the detection. For example, the detection frequency can be 100Hz, 150Hz, 200Hz, 250Hz, etc., then the preset audio signal needs to have a sound pressure of not less than other frequencies at 100Hz, 150Hz, 200Hz, 250Hz, etc., which is more conducive to detection accuracy. For example, in this example, the preset audio signal can include audio signals at the above four frequency points, and the sound of the four detection frequency points in the preset audio signal will be louder than the sound of other frequency points, thereby improving the accuracy of hole blockage detection.
[0071] In step 201, there are many methods for obtaining multiple initial audio parameter values of the target audio signal corresponding to the multiple preset detection frequency points, which can be calculated by algorithm, or by model calculation, or by signal extraction method, etc. The embodiment of the present application does not limit the method for obtaining multiple initial audio parameter values of the target audio signal corresponding to the multiple preset detection frequency points.
[0072] In some embodiments, obtaining multiple initial audio parameter values of the target audio signal corresponding to the multiple preset detection frequency points may include: performing analog-to-digital conversion on the target audio signal to obtain a digital audio signal; converting the digital audio signal into a frequency domain signal to obtain a correspondence between frequency and audio parameter value; and obtaining the target audio parameter value corresponding to the preset detection frequency point based on the preset detection frequency point and the correspondence between frequency and audio parameter value.
[0073] Exemplarily, taking the audio parameter value as the loudness value, the sound emitted by the speaker picked up by the microphone can be converted into a digital signal through the analog-to-digital converter DAC, and then sent to the digital signal processor DSP for processing, including converting the time domain signal into a frequency domain signal (frequency response curve) through Fourier transform, so as to obtain the loudness value of the signal in the low frequency band (such as 100Hz, 150Hz, 200Hz, 250Hz and other frequency points).
[0074] Furthermore, the reference audio parameter value includes reference audio parameter values corresponding to a plurality of preset detection frequency points, and whether the pressure relief hole is blocked can be determined based on a magnitude relationship between the plurality of reference audio parameter values and the plurality of initial audio parameter values.
[0075] Figure 5 A flow chart of a method for determining whether a pressure relief hole is blocked provided in an embodiment of the present application. Figure 5 As shown, determining whether the pressure relief hole of the earphone to be tested is blocked according to the magnitude relationship between the target audio parameter value and the reference audio parameter value may include:
[0076] Step 301: Calculate the difference between the initial audio parameter value corresponding to each preset detection frequency point in the plurality of preset detection frequency points and the reference audio parameter value to obtain a plurality of difference values.
[0077] Step 302: Determine whether the pressure relief hole is blocked based on the relationship between the absolute value of each difference in the multiple differences and a preset threshold; wherein, if the proportion of the number of differences in the multiple differences that are greater than the preset threshold is greater than the preset proportion, it is determined that the pressure relief hole of the earphone to be tested is blocked.
[0078] Exemplarily, taking the audio parameter value as the loudness value as an example, the multiple signal loudness values obtained by calculation can be subtracted from the multiple signal loudness values of the preset low-frequency band signal. If the absolute value of the difference is greater than a certain threshold (for example, the threshold is set to 3dB), it is judged to be greater than the preset threshold. If the preset proportion is 80%, and the proportion of the number of differences greater than the preset threshold is 90%, it is determined that the pressure relief hole is blocked, otherwise it is not blocked.
[0079] The preset multiple reference audio parameter values can be obtained by the same method as the target audio parameter value, or by investigating big data. For example, the loudness value range of the signal in the low frequency band when the hole is not blocked can be obtained by big data, and the minimum value of the loudness of each frequency can be used as the loudness value of the signal corresponding to each preset detection frequency point.
[0080] In some embodiments, the preset audio signal includes audio signals of multiple preset detection frequencies, and the target audio parameter value may also be obtained by weight calculation.
[0081] In an embodiment of the present application, the preset audio signal includes audio signals of multiple preset detection frequencies, and obtaining the target audio parameter value of the target audio signal in the mid- and low-frequency bands may include: obtaining multiple initial audio parameter values of the target audio signal corresponding to the multiple preset detection frequencies respectively; determining the target audio parameter value based on the multiple initial audio parameter values corresponding to the multiple preset detection frequencies respectively, and the multiple weight values corresponding to the multiple preset detection frequencies respectively.
[0082] Exemplarily, determining the target audio parameter value based on a plurality of initial audio parameter values corresponding to the plurality of preset detection frequency points, and a plurality of weight values corresponding to the plurality of preset detection frequency points, may include: multiplying the initial audio parameter value corresponding to each detection frequency point in the plurality of preset detection frequency points by the corresponding weight value to obtain a plurality of multiplication results; and adding the plurality of multiplication results to obtain the target audio parameter value.
[0083] It can be understood that different weight values are assigned to different detection frequency points. When calculating the target audio parameter value, the target audio parameter value calculated based on the audio parameter value and the weight value can more specifically reflect the problem of parameter values appearing in a certain frequency band, thereby more accurately finding the abnormal situation of a certain frequency band, and thus more accurately determining the hole blocking problem.
[0084] In some detection scenarios, a higher weight can be set for the detection frequency points of a certain frequency segment. In other detection scenarios, the same weight can also be set for each frequency point. The embodiment of the present application does not limit the setting method of the weight, and it can be set according to actual needs.
[0085] In some embodiments, after determining that the pressure relief hole of the earphone is blocked, the pressure relief hole can be cleaned. However, even if the pressure relief hole is cleaned and used for a period of time, the hole will still be blocked, resulting in repeated cleaning and failure to eliminate the problem. At the same time, the cleaning process is also likely to cause certain damage to the earphone. Therefore, the embodiment of the present application provides a method for solving the hole blocking problem by adjusting the parameter value after the hole is blocked.
[0086] Figure 6 A flow chart of another hole blocking detection method provided in an embodiment of the present application, in Figure 2 Based on the illustrated embodiment, the method may further include:
[0087] Step 104: when it is determined that the pressure relief hole of the earphone to be tested is blocked, determine a current hole blocking adjustment parameter value according to a difference between the target audio parameter value and the reference audio parameter value.
[0088] There are many methods for determining the current hole blocking adjustment parameter value according to the difference between the target audio parameter value and the reference audio parameter value, for example, if the difference between the target audio parameter value and the reference audio parameter value is a positive value, then it is determined to reduce the difference, if the difference between the target audio parameter value and the reference audio parameter value is a negative value, then it is determined to compensate the difference, etc. The embodiment of the present application does not limit the method for determining the current hole blocking adjustment parameter value according to the difference between the target audio parameter value and the reference audio parameter value.
[0089] Step 105: adjusting the output audio of the headset to be tested according to the current jack blocking adjustment parameter value.
[0090] Among them, there are many ways to adjust the output audio of the headset to be tested according to the current pore blocking adjustment parameter value, for example, the output audio of the headset can be adjusted by a sound quality equalizer, a noise reduction filter, etc. The embodiment of the present application does not limit the way to adjust the output audio of the headset to be tested according to the current pore blocking adjustment parameter value.
[0091] It can be understood that the embodiment of the present application provides a method for repairing acoustic effects based on the difference in audio parameter values, which can adjust the parameters corresponding to the audio signal according to the blockage situation, such as compensation or reduction, and can provide a better user experience.
[0092] In some embodiments, the hole blocking adjustment parameter value is an acoustic effect repair parameter, and a sound quality hole blocking compensation equalizer EQ and / or a noise reduction hole blocking compensation filter may be used. When the earphone to be tested is an ordinary earphone, only the sound quality parameter needs to be adjusted. When the earphone to be tested is a noise reduction earphone, the sound quality parameter and / or the noise reduction parameter may be adjusted.
[0093] In an embodiment of the present application, the current hole blocking adjustment parameter value includes a sound quality adjustment parameter value, the reference audio parameter value includes a reference audio parameter value corresponding to at least one preset detection frequency point, the target audio parameter value includes an initial audio parameter value corresponding to at least one preset detection frequency point, and determining the current hole blocking adjustment parameter value according to the difference between the target audio parameter value and the reference audio parameter value may include: subtracting the corresponding initial audio parameter value from the reference audio parameter value corresponding to each predicted detection frequency point in the at least one preset detection frequency point to obtain an audio adjustment value corresponding to each preset detection frequency point, and the audio adjustment value corresponding to each preset detection frequency point is the sound quality adjustment parameter value;
[0094] The adjusting the output audio of the headphone to be tested according to the current hole blocking adjustment parameter value may include: generating a sound quality adjustment equalizer, wherein the sound quality adjustment equalizer is used to adjust the audio parameter values of each preset detection frequency point of the output audio according to the audio adjustment value.
[0095] Exemplarily, taking the audio parameter as loudness and the blockage of the rear pressure relief hole as an example, the method of sound quality blockage compensation adopted in this embodiment can obtain the loudness value to be compensated for each frequency by subtracting the calculated loudness value of each frequency from the preset loudness value of each frequency signal (the blockage mainly affects the low frequency band, and it can be set to compensate only the low frequency band), so that the corresponding blockage compensation EQ filter can be set.
[0096] Furthermore, in the case that the earphone to be tested is a noise reduction earphone, the earphone to be tested can also perform noise reduction hole blocking compensation.
[0097] In an embodiment of the present application, the current hole blocking adjustment parameter value includes a noise reduction adjustment parameter value, the reference audio parameter value includes a reference audio parameter value corresponding to at least one preset detection frequency point, the target audio parameter value includes an initial audio parameter value corresponding to at least one preset detection frequency point, and determining the current hole blocking adjustment parameter value according to the difference between the target audio parameter value and the reference audio parameter value may include: subtracting the corresponding initial audio parameter value from the reference audio parameter value corresponding to each preset detection frequency point in the at least one preset detection frequency point, to obtain an audio adjustment value corresponding to each preset detection frequency point; determining the noise reduction adjustment value corresponding to each preset detection frequency point according to the audio adjustment value corresponding to each preset detection frequency point, the noise reduction adjustment value corresponding to each preset detection frequency point being the noise reduction adjustment parameter value;
[0098] The adjusting the output audio of the headset to be tested according to the current hole blocking adjustment parameter value may include: generating a noise reduction adjustment filter, wherein the noise reduction adjustment filter is used to adjust the noise reduction amplitude value of each preset detection frequency point of the output audio according to the noise reduction adjustment parameter value when the headset to be tested is in a noise reduction mode.
[0099] For example, taking the audio parameter as loudness and the rear pressure relief hole blocking as an example, the noise reduction hole blocking compensation method adopted in this embodiment is based on the principle that the microphone picks up the ambient noise, generates a noise reduction signal with the same amplitude and opposite phase as the ambient sound through the chip, and plays it through the speaker to achieve noise reduction. After the hole is blocked, the low-frequency output amplitude of the speaker is reduced (the compensation difference of each frequency obtained in the above sound quality compensation), then the output amplitude of the corresponding frequency band (low frequency) of the noise reduction path is increased by the corresponding difference.
[0100] It can be understood that the sound quality and noise reduction repair method after hole blocking provided in the embodiment of the present application can conveniently help users solve the problem of pressure relief hole blocking and improve the user's headphone usage experience.
[0101] In some embodiments, the sound quality adjustment equalizer can be connected in series with the original sound quality equalizer of the headset, and the noise reduction adjustment filter can be connected in series with the original active ANC filter of the headset.
[0102] Figure 7 A link diagram of a hole plugging adjustment parameter provided in an embodiment of the present application. Figure 7 As shown, the sound quality adjustment equalizer EQ is connected in series after the original sound quality equalizer EQ. The noise reduction adjustment filter is connected in series after the original ANC active noise reduction filter. Among them, the sound quality adjustment equalizer and the noise reduction adjustment filter bottom layer can be implemented by software or hardware circuits. Exemplarily, the way of connecting the sound quality filter in series means that the signal is first processed by the original equalizer EQ, and then processed by the adjustment equalizer EQ. The equalizer and the filter are both representative adjustment parameters.
[0103] The embodiment of the present application provides a method for repairing acoustic effects according to the difference in audio parameter values, which can adjust the sound quality and noise reduction parameters according to the hole blockage situation, and provides a better user experience.
[0104] In some embodiments, performing hole blockage detection when the user is wearing headphones can avoid collecting large ambient noise and improve the accuracy of hole blockage detection.
[0105] In an embodiment of the present application, before acquiring the target audio signal, the method further includes: determining whether the headset to be tested is in a wearing state; acquiring the target audio signal includes: acquiring the target audio signal when it is determined that the headset to be tested is in a wearing state. The method further includes, when it is determined that the headset to be tested is not in a wearing state, issuing a prompt message to remind the user to wear the headset to be tested. Exemplarily, the user can be reminded to wear the headset by sending a prompt message to a terminal device to which the headset is connected.
[0106] Among them, the wearing detection method can be implemented through a variety of mature existing technical solutions, such as light-sensing wearing detection, capacitive wearing detection, etc. The embodiment of the present application does not limit the wearing detection method.
[0107] In some embodiments, the headset to be tested may currently store the hole blocking adjustment parameter value set after the last hole blocking detection, and after wearing it for a period of time, the hole blocking problem changes and needs to be adjusted. In order to avoid measurement errors, the previously set hole blocking adjustment parameter value can be canceled. If the headset is a noise reduction headset, in order to improve the detection accuracy, the noise reduction mode can be turned on to reduce the impact of environmental noise on hole blocking detection.
[0108] In an embodiment of the present application, before obtaining the target audio signal, the method may further include: if the earphone to be tested is set with an initial hole blocking adjustment parameter value, canceling the use of the initial hole blocking adjustment parameter value; and / or, if the earphone to be tested is a noise reduction earphone, controlling the earphone to be tested to enter a noise reduction mode.
[0109] It should be noted that the original hole blocking compensation parameters (sound quality EQ and noise reduction filter) can be bypassed and the hole blocking situation can be re-detected. That is, the previous hole blocking compensation parameters are removed to avoid detection errors. In addition, for active noise reduction ANC headphones, the noise reduction mode is automatically entered to reduce the impact of environmental noise.
[0110] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.
[0111] Figure 8 The overall flow chart of a hole blocking detection method provided in an embodiment of the present application is as follows. Figure 8 As shown, taking the detection of whether the rear pressure relief hole is blocked and the compensation as an example, the method includes the following steps 401 to 407:
[0112] Step 401: Detect the wearing process to identify whether the user is wearing the earphone to be tested. If the user is not wearing the earphone to be tested, remind the user to wear the earphone to be tested and start again. If the user is wearing the earphone to be tested, proceed to the next step. The wearing detection method can be implemented through a variety of mature existing technical solutions, such as light sensing wearing detection, capacitive wearing detection, etc.
[0113] Step 402: Cancel the bypass of the original hole blocking compensation parameters (sound quality EQ and noise reduction filter) and re-detect the hole blocking situation. That is, remove the previous hole blocking compensation parameters to avoid detection errors. In addition, for active noise reduction ANC headphones, automatically enter the noise reduction mode to reduce the impact of environmental noise.
[0114] Step 403: The speaker plays a prompt tone (preset audio signal). This prompt tone is an audio signal preset in the headset to be tested. The frequency characteristics of this audio signal meet the frequency requirements of the detection. For example, if the detection frequency is 100Hz, 150Hz, 200Hz, 250Hz, etc., the audio signal needs to have a sound pressure of not less than other frequencies at 100Hz, 150Hz, 200Hz, 250Hz, etc., which is more conducive to detection accuracy.
[0115] Step 404: The microphone picks up the sound emitted by the speaker, converts it into a digital signal through a DAC analog-to-digital converter, and then sends it to a DSP digital signal processor for processing.
[0116] Step 405: The sound signal picked up by the microphone is converted into a frequency domain signal (frequency response curve) through Fourier transformation, thereby obtaining the signal loudness of the low frequency band (for example, 100 Hz, 150 Hz, 200 Hz, 250 Hz, etc.). If the difference between the preset low frequency band signal loudness and the calculated corresponding signal loudness is greater than a certain threshold (for example, the threshold is set to 3 dB), it is determined that the rear pressure relief hole is blocked, otherwise it is not blocked.
[0117] Among them, the preset low-frequency band signal loudness can be obtained by investigating big data through the same signal collection method to obtain the signal loudness range of the low-frequency band when the hole is not blocked, and the minimum value of the loudness of each frequency is used as the preset loudness of each frequency signal.
[0118] Step 406: The user selects effect repair or cleanup. If the user selects cleanup, the process ends and the user performs the cleanup. Otherwise, the process proceeds to the next step of compensation.
[0119] Step 407: hole blocking compensation is performed through sound quality and noise reduction, compensation parameters are generated, and the hole blocking compensation parameters are applied to take effect, i.e., Enable.
[0120] Among them, the method of compensating for hole blocking in sound quality is to subtract the loudness value of each frequency calculated in the above steps from the preset loudness value of each frequency signal to obtain the value that needs to be compensated for each frequency (the hole blocking effect is mainly in the low frequency band, and it can be set to only compensate the low frequency band), thereby setting the corresponding hole blocking compensation EQ filter.
[0121] The noise reduction and hole blocking compensation method is based on the principle that the microphone picks up the ambient noise, generates a noise reduction signal with the same amplitude and opposite phase as the ambient sound through the chip, and plays it through the speaker to achieve noise reduction. After the hole is blocked, the low-frequency output amplitude of the speaker is reduced (the compensation difference of each frequency obtained in the above sound quality compensation), then the output amplitude of the corresponding frequency band (low frequency) of the noise reduction path is increased by the corresponding difference.
[0122] Among them, noise reduction hole blocking compensation and sound quality hole blocking compensation are independent and unrelated, and can be compensated separately or together.
[0123] The method for hole blockage detection and hole blockage compensation provided in the above embodiment can objectively detect the blockage of the rear pressure relief hole of the headphone to be tested. With the user's consent, after sound quality and noise reduction compensation, the headphone can continue to be used better after the hole is blocked.
[0124] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0125] Based on the foregoing embodiments, the embodiments of the present application provide a hole blockage detection device, and the modules included in the device and the units included in each module can be implemented by a processor; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0126] Fig. 9 This is a schematic diagram of the structure of a hole blocking detection device provided in an embodiment of the present application. Fig. 9 As shown, the device 500 includes a signal acquisition module 501, a parameter acquisition module 502 and a hole blocking determination module 503, wherein:
[0127] A signal acquisition module 501 is used to acquire a target audio signal, wherein the target audio signal is obtained by collecting audio through a microphone of the headset under test when the headset under test plays a preset audio signal, wherein the preset audio signal includes an audio signal in a medium and low frequency band, and the headset under test includes a pressure relief hole;
[0128] A parameter acquisition module 502, used to acquire a target audio parameter value of the target audio signal in the mid-low frequency band;
[0129] The hole blocking determination module 503 is used to determine whether the pressure relief hole of the earphone to be tested is blocked according to the magnitude relationship between the target audio parameter value and the reference audio parameter value.
[0130] In some embodiments, the hole blocking determination module 503 includes a difference acquisition unit and a hole blocking determination unit, wherein:
[0131] The difference obtaining unit is used to obtain the difference between the target audio parameter value and the reference audio parameter value;
[0132] The hole blocking determination unit is used to determine whether the pressure relief hole is blocked according to the size relationship between the absolute value of the difference and a preset threshold; wherein, if the absolute value of the difference is greater than or equal to the preset threshold, it is determined that the pressure relief hole is blocked.
[0133] In some embodiments, the pressure relief hole includes a front pressure relief hole and a rear pressure relief hole, and the hole blocking determination unit is further used to determine whether the pressure relief hole is blocked as the front pressure relief hole or the rear pressure relief hole according to whether the difference is greater than zero when the absolute value of the difference is greater than or equal to the preset threshold; wherein, if the difference is greater than zero, it is determined that the front pressure relief hole is blocked, and if the difference is less than zero, it is determined that the rear pressure relief hole is blocked.
[0134] In some embodiments, the preset audio signal includes audio signals of multiple preset detection frequencies, and the parameter acquisition module 502 includes a parameter detection unit and a parameter acquisition unit, wherein:
[0135] The parameter detection unit is used to obtain a plurality of initial audio parameter values of the target audio signal corresponding to the plurality of preset detection frequency points respectively;
[0136] The parameter acquisition unit is used to determine that the target audio parameter value includes a plurality of initial audio parameter values corresponding to the plurality of preset detection frequency points respectively.
[0137] In some embodiments, the reference audio parameter value includes reference audio parameter values corresponding to multiple preset detection frequency points, and the blocked hole determination module 503 is also used to: respectively calculate the difference between the initial audio parameter value corresponding to each preset detection frequency point in the multiple preset detection frequency points and the reference audio parameter value to obtain multiple difference values; determine whether the pressure relief hole is blocked according to the relationship between the absolute value of each difference in the multiple difference values and a preset threshold value; wherein, if the proportion of the number of differences in the multiple difference values that are greater than the preset threshold value is greater than the preset proportion, it is determined that the pressure relief hole of the earphone to be tested is blocked.
[0138] In some embodiments, the preset audio signal includes audio signals of multiple preset detection frequencies, and the parameter acquisition module 502 is also used to: obtain multiple initial audio parameter values of the target audio signal corresponding to the multiple preset detection frequencies; determine the target audio parameter value based on the multiple initial audio parameter values corresponding to the multiple preset detection frequencies, and the multiple weight values corresponding to the multiple preset detection frequencies.
[0139] In some embodiments, the device also includes an adjustment acquisition module and a hole blocking adjustment module. The adjustment acquisition module is used to determine a current hole blocking adjustment parameter value according to a difference between the target audio parameter value and the reference audio parameter value when it is determined that the pressure relief hole of the earphone to be tested is blocked; and the hole blocking adjustment module is used to adjust the output audio of the earphone to be tested according to the current hole blocking adjustment parameter value.
[0140] In some embodiments, the current hole blocking adjustment parameter value includes a sound quality adjustment parameter value, the reference audio parameter value includes a reference audio parameter value corresponding to at least one preset detection frequency point, the target audio parameter value includes an initial audio parameter value corresponding to at least one preset detection frequency point, and the adjustment acquisition module is specifically used to: subtract the corresponding initial audio parameter value from the reference audio parameter value corresponding to each predicted detection frequency point in the at least one preset detection frequency point to obtain the audio adjustment value corresponding to each preset detection frequency point, and the audio adjustment value corresponding to each preset detection frequency point is the sound quality adjustment parameter value; the hole blocking adjustment module is specifically used to: generate a sound quality adjustment equalizer, and the sound quality adjustment equalizer is used to adjust the audio parameter values of each preset detection frequency point of the output audio according to the audio adjustment value.
[0141] In some embodiments, the current hole blocking adjustment parameter value includes a noise reduction adjustment parameter value, the reference audio parameter value includes a reference audio parameter value corresponding to at least one preset detection frequency point, the target audio parameter value includes an initial audio parameter value corresponding to at least one preset detection frequency point, and the adjustment acquisition module is specifically used to: subtract the corresponding initial audio parameter value from the reference audio parameter value corresponding to each preset detection frequency point in the at least one preset detection frequency point to obtain the audio adjustment value corresponding to each preset detection frequency point; determine the noise reduction adjustment value corresponding to each preset detection frequency point according to the audio adjustment value corresponding to each preset detection frequency point, and the noise reduction adjustment value corresponding to each preset detection frequency point is the noise reduction adjustment parameter value; the hole blocking adjustment module is specifically used to: generate a noise reduction adjustment filter, and the noise reduction adjustment filter is used to adjust the noise reduction amplitude value of each preset detection frequency point of the output audio according to the noise reduction adjustment parameter value when the headphone to be tested is in noise reduction mode.
[0142] In some embodiments, the device further includes a wearing detection module, which is used to determine whether the headset to be tested is in a wearing state; the signal acquisition module is specifically used to: when it is determined that the headset to be tested is in a wearing state, acquire the target audio signal.
[0143] In some embodiments, the device also includes a detection preparation module, which is used to: if the earphone to be tested is set with an initial hole blocking adjustment parameter, cancel the use of the initial hole blocking adjustment parameter; and / or, if the earphone to be tested is a noise reduction earphone to be tested, control the earphone to be tested to enter a noise reduction mode.
[0144] In some embodiments, the microphone is disposed near a sound outlet of the earphone to be tested.
[0145] In an embodiment of the present application, hole blockage detection can be performed based on the target audio signal collected by the earphone to be tested, and whether the pressure relief hole of the earphone to be tested is blocked can be objectively identified, which is helpful for users to discover and solve the problem of pressure relief hole blockage, thereby improving the user's headphone usage experience.
[0146] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0147] It should be noted that in the embodiments of this application Fig. 9 The division of modules in the hole blocking detection device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0148] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0149] Fig.10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.10As shown, the electronic device 100 may include a processor 110, a memory 120, a wireless communication module 130, an audio module 140, a camera 150, and the like.
[0150] The processor 110 may include one or more processing units. For example, the processor 110 is a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs). Different processing units may be independent devices or integrated into one or more processors.
[0151] The memory 120 can be used to store computer executable program codes, which include instructions. The internal memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, video data, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.
[0152] The wireless communication module 130 can provide solutions for wireless communication including WLAN, such as Wi-Fi network, Bluetooth, NFC, IR, etc., applied to the electronic device 100. The wireless communication module 130 can be one or more devices integrating at least one communication processing module. In some embodiments of the present application, the electronic device 100 can establish a wireless communication connection with other electronic devices through the wireless communication module 130.
[0153] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 140, speakers, receivers, microphones, headphone interfaces, and application processors.
[0154] The audio module 140 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 140 can also be used to encode and decode audio signals. In some embodiments, the audio module 140 can be arranged in the processor 110, or some functional modules of the audio module 140 can be arranged in the processor 110.
[0155] The camera 150 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 150, where N is a positive integer greater than 1.
[0156] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0157] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the hole blockage detection method provided in the above embodiment are implemented.
[0158] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0159] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0160] The program code embodied on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0161] Computer program code for performing the operations of the present specification may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0162] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the hole blockage detection method provided in the above method embodiment.
[0163] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0164] It should be noted here that the description of the above storage medium, program product and device embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiment of this application for understanding.
[0165] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0166] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0167] 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 device 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 device. 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 device including the element.
[0168] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0169] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0170] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0171] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0172] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0173] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain a new method embodiment. The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain a new product embodiment. The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain a new method embodiment or device embodiment.
[0174] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A hole blocking detection method, characterized in that: Used in electronic equipment, including: Acquire a target audio signal, where the target audio signal is obtained by collecting audio through a microphone of the headset under test when the headset under test plays a preset audio signal, where the preset audio signal includes an audio signal in a medium and low frequency band, and the headset under test includes a pressure relief hole; Acquire a target audio parameter value of the target audio signal in the mid- and low-frequency band; Whether the pressure relief hole of the earphone to be tested is blocked is determined according to the magnitude relationship between the target audio parameter value and the reference audio parameter value.
2. The method according to claim 1, characterized in that The determining whether the pressure relief hole of the earphone to be tested is blocked according to the magnitude relationship between the target audio parameter value and the reference audio parameter value includes: Obtaining a difference between the target audio parameter value and the reference audio parameter value; Whether the pressure relief hole is blocked is determined based on the magnitude relationship between the absolute value of the difference and a preset threshold; wherein, if the absolute value of the difference is greater than or equal to the preset threshold, it is determined that the pressure relief hole is blocked.
3. The method according to claim 2, characterized in that The pressure relief hole comprises a front pressure relief hole and a rear pressure relief hole, and the method further comprises: When the absolute value of the difference is greater than or equal to the preset threshold, the pressure relief hole blockage is determined to be the front pressure relief hole blockage or the rear pressure relief hole blockage according to whether the difference is greater than zero; wherein, if the difference is greater than zero, it is determined to be the front pressure relief hole blockage, and if the difference is less than zero, it is determined to be the rear pressure relief hole blockage.
4. The method according to claim 1, characterized in that: The preset audio signal includes audio signals of a plurality of preset detection frequencies, and obtaining the target audio parameter value of the target audio signal in the mid- and low-frequency band includes: Acquire a plurality of initial audio parameter values of the target audio signal corresponding to the plurality of preset detection frequency points respectively; Determining the target audio parameter value includes a plurality of initial audio parameter values corresponding to the plurality of preset detection frequency points respectively.
5. The method according to claim 4, characterized in that The reference audio parameter value includes reference audio parameter values corresponding to a plurality of preset detection frequency points respectively, and determining whether the pressure relief hole of the earphone to be tested is blocked according to the magnitude relationship between the target audio parameter value and the reference audio parameter value includes: Calculating the difference between the initial audio parameter value corresponding to each preset detection frequency point in the plurality of preset detection frequency points and the reference audio parameter value to obtain a plurality of difference values; Whether the pressure relief hole is blocked is determined based on the relationship between the absolute value of each difference among the multiple differences and a preset threshold; wherein, if the proportion of the number of differences among the multiple differences that are greater than the preset threshold is greater than the preset proportion, it is determined that the pressure relief hole of the earphone to be tested is blocked.
6. The method according to claim 1, characterized in that The preset audio signal includes audio signals of a plurality of preset detection frequencies, and obtaining the target audio parameter value of the target audio signal in the mid- and low-frequency band includes: Acquire a plurality of initial audio parameter values of the target audio signal corresponding to the plurality of preset detection frequency points respectively; The target audio parameter value is determined according to a plurality of initial audio parameter values respectively corresponding to the plurality of preset detection frequency points and a plurality of weight values respectively corresponding to the plurality of preset detection frequency points.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: In the case where it is determined that the pressure relief hole of the earphone to be tested is blocked, determining a current hole blocking adjustment parameter value according to a difference between the target audio parameter value and the reference audio parameter value; The output audio of the headset to be tested is adjusted according to the current hole blocking adjustment parameter value.
8. The method according to claim 7, characterized in that The current hole blocking adjustment parameter value includes a sound quality adjustment parameter value, the reference audio parameter value includes a reference audio parameter value corresponding to at least one preset detection frequency point, the target audio parameter value includes an initial audio parameter value corresponding to at least one preset detection frequency point, and determining the current hole blocking adjustment parameter value according to a difference between the target audio parameter value and the reference audio parameter value includes: Subtracting the corresponding initial audio parameter value from the reference audio parameter value corresponding to each predicted detection frequency point in the at least one preset detection frequency point to obtain an audio adjustment value corresponding to each preset detection frequency point, wherein the audio adjustment value corresponding to each preset detection frequency point is the sound quality adjustment parameter value; The adjusting the output audio of the headset to be tested according to the current hole blocking adjustment parameter value includes: A sound quality adjustment equalizer is generated, wherein the sound quality adjustment equalizer is used to adjust the audio parameter values of each preset detection frequency point of the output audio according to the audio adjustment value.
9. The method according to claim 7, characterized in that: The current hole blocking adjustment parameter value includes a noise reduction adjustment parameter value, the reference audio parameter value includes a reference audio parameter value corresponding to at least one preset detection frequency point, the target audio parameter value includes an initial audio parameter value corresponding to at least one preset detection frequency point, and determining the current hole blocking adjustment parameter value according to a difference between the target audio parameter value and the reference audio parameter value includes: Subtracting the corresponding initial audio parameter value from the reference audio parameter value corresponding to each preset detection frequency point in the at least one preset detection frequency point to obtain an audio adjustment value corresponding to each preset detection frequency point; Determine the noise reduction adjustment value corresponding to each preset detection frequency point according to the audio adjustment value corresponding to each preset detection frequency point, wherein the noise reduction adjustment value corresponding to each preset detection frequency point is the noise reduction adjustment parameter value; The adjusting the output audio of the headset to be tested according to the current hole blocking adjustment parameter value includes: A noise reduction adjustment filter is generated, where the noise reduction adjustment filter is used to adjust the noise reduction amplitude value of each preset detection frequency point of the output audio according to the noise reduction adjustment parameter value when the headphone to be tested is in a noise reduction mode.
10. The method according to claim 1, characterized in that Before acquiring the target audio signal, the method further includes: Determine whether the headset to be tested is in a wearing state; The step of obtaining the target audio signal comprises: When it is determined that the earphone to be tested is in a wearing state, a target audio signal is acquired.
11. The method according to claim 1, characterized in that: Before acquiring the target audio signal, the method further includes: If the headset to be tested is set with an initial hole blocking adjustment parameter, canceling the use of the initial hole blocking adjustment parameter; and / or, If the earphone to be tested is a noise reduction earphone to be tested, the earphone to be tested is controlled to enter a noise reduction mode.
12. The method according to claim 1, characterized in that The microphone is arranged at a position close to the sound outlet of the earphone to be tested.
13. A hole blocking detection device, characterized in that: Used in electronic equipment, including: A signal acquisition module, used to acquire a target audio signal, wherein the target audio signal is obtained by collecting audio through a microphone of the headset under test when the headset under test plays a preset audio signal, wherein the preset audio signal includes an audio signal in a medium and low frequency band, and the headset under test includes a pressure relief hole; A parameter acquisition module, used to acquire a target audio parameter value of the target audio signal in the mid- and low-frequency band; The hole blocking determination module is used to determine whether the pressure relief hole of the earphone to be tested is blocked according to the magnitude relationship between the target audio parameter value and the reference audio parameter value.
14. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the hole blockage detection method according to any one of claims 1 to 12 are implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the hole blockage detection method according to any one of claims 1 to 12 are implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the hole blockage detection method according to any one of claims 1 to 12 are implemented.
Citation Information
Cited By
Voice equipment hole blockage detection method and device, computer equipment and storage medium
CN119364275A
