Earphone anti-howling method, electronic equipment and readable storage medium
Through the combination of multi-sensor system and demagnetization unit, real-time detection and response to the headphone howling and wearing status, the impact of headphone howling phenomenon on user experience and device safety is solved, and more stable headphone operation and higher user satisfaction are achieved. .
Patent Information
- Application Number
- CN202411334542.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-09-24
AI Technical Summary
Existing headphones may have unstable closed-loop systems in certain specific situations, causing headphones to scream, affecting the user experience and possibly causing equipment damage.
It adopts a multi-sensor system, including microphone sensors, infrared sensors or electrosensors, and cooperates with the demagnetization unit to detect the sound and wear status of the headphones in real time, adjust the noise reduction parameters in time or eliminate electromagnetic interference.
It effectively avoids the adverse consequences caused by the whistling of headphones, ensures that users enjoy a high-quality listening experience under correct wear, and protects the headphone equipment.
Smart Images

Figure CN119485091A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of earphone howling prevention technology, and in particular to an earphone howling prevention method, electronic equipment and a readable storage medium. Background Art
[0002] Headphones are widely used in people's daily life due to their convenience. They are often used for listening to music, making calls, etc. With the development of technology, the sound quality of headphones is constantly improving, and users have higher and higher requirements for the sound quality of headphones. The sound quality has become an important factor for a considerable number of users to choose headphones.
[0003] Therefore, most of the headphones on the market currently have active noise reduction function, which can effectively reduce the interference of external noise and give users a better experience. However, since active noise reduction headphones are a closed-loop system, in certain specific situations, this closed-loop system will become unstable. In this case, headphone whistling is very likely to occur.
[0004] The howling phenomenon not only affects the user experience, but also causes problems such as speaker damage, microphone damage, increased power consumption, and even headphone circuit burnout. Therefore, it is necessary to prevent headphone howling as much as possible.
[0005] The earphone howling phenomenon is usually caused by electromagnetic interference or connection problems. The current mainstream method to suppress howling is to set a single sensor in the earphone.
[0006] If the sensor detects that the earphones are howling during use, the ANC (active noise cancellation) function (Active Niose Cancellation) of the earphones will be turned off directly to suppress the howling. This method has a good effect in suppressing howling, but when the user causes howling due to incorrect wearing of the earphones, it is impossible to detect in time whether the wearing state of the earphones has changed, and it is difficult to adjust the noise reduction parameters of the earphones in time. The noise reduction function of the earphones may not even be turned on normally, which greatly reduces the user experience.
[0007] To ensure a good user experience, it is necessary to determine whether the headphone system turns on or off the ANC function when howling occurs, so as to strike a balance between protecting the headphones and ensuring the user experience.
[0008] Therefore, in the patent application of the present invention, the applicant has carefully studied a method for preventing earphones from howling to solve the above-mentioned problem. Summary of the invention
[0009] The present invention aims to overcome the deficiencies in the above-mentioned prior art, and its main purpose is to provide a headphone anti-howling method, an electronic device and a readable storage medium, which ensure that the headphone to be tested has only the ANC function turned on when there is no howling phenomenon and the user wears it correctly, thereby avoiding the adverse consequences caused by the headphone howling; in particular, when the headphone howls, the user is reminded to adjust the wearing angle first, thereby avoiding the headphone howling due to unreasonable wearing; after the headphone is worn correctly, if the headphone to be tested is still detected to howl, the headphone howling is caused by electromagnetic interference, and the headphone howling can be eliminated by a demagnetization unit.
[0010] To achieve the above-mentioned purpose, the present invention adopts the following technical scheme: A method for preventing earphones from howling comprises the following steps: Prepare an earphone to be tested, wherein the earphone to be tested is provided with a first sensor for detecting whether the earphone to be tested generates howling, a second sensor for detecting whether the earphone to be tested is in a correct wearing state, a magnetic field sensor for detecting changes in the magnetic field around the earphone to be tested, and a demagnetization unit for reducing or avoiding howling in the earphone to be tested; If it is detected that the earphone under test is howling, check whether the earphone under test is worn correctly; If it is detected that the earphone to be tested is not worn correctly, the user is prompted to adjust the wearing position of the earphone to be tested; After the user correctly wears the headset to be tested, if no howling is detected in the headset to be tested, the active noise reduction function is activated; If the earphone under test is still detected to be howling, then the magnetic field around the earphone under test is detected to see if it exceeds a predetermined threshold value. If so, the demagnetization unit is operated, otherwise the speaker is turned off or the sound is reduced to check the cause of the howling; After the degaussing unit starts working, it is detected whether the howling sound is greater than a predetermined threshold. If so, the degaussing unit continues to be executed. Otherwise, the degaussing unit and the magnetic field sensor can be stopped.
[0011] As a preferred solution, the method for determining whether the earphone under test generates howling is as follows: The first sensor is a microphone sensor, and a signal sequence collected by the microphone sensor is first obtained. For example, the feedback microphone sequence can be represented by x(n), n=0, 1, ..., N-1, where N represents the length of the signal sequence; Then, the signal is transformed into the frequency domain by Fast Fourier Transform (FFT), where k = 0, 1, ..., N / 2, and the signal power spectrum is calculated. The signal power spectrum is calculated as P(k) = E[X 2 (k)]; The peak-to-average ratio R is calculated as R=10log10(Ppeak / Pmean).
[0012] Wherein, Ppeak and Pmean represent the maximum value and average value in the signal power spectrum respectively. If the peak-to-average ratio R is greater than the preset ratio threshold, it can be determined that the headphone under test is howling.
[0013] As a preferred solution, the method for detecting whether the earphone to be tested is worn correctly is as follows: The second sensor is an infrared sensor, which collects infrared signals to detect the wearing status of the earphones to be tested, and performs the wearing status detection on the earphones to be tested according to the collected signals of the infrared sensor; if the current status of the earphones to be tested can correctly trigger the infrared sensor, the output result of the infrared sensor is "worn correctly"; otherwise, it is "worn incorrectly".
[0014] As a preferred solution, the method for detecting whether the earphone to be tested is worn correctly is as follows: The second sensor is a skin conductivity sensor installed at the part where the earphone to be tested fits the skin. The skin conductivity change value is obtained through the skin conductivity sensor. When the skin conductivity change value reaches a preset threshold, the output result of the skin conductivity sensor is "worn correctly"; otherwise, it is "worn incorrectly".
[0015] As a preferred solution, the method for prompting the user to adjust the wearing position of the earphone to be tested is as follows: A pop-up window is sent out through the mobile device connected to the headset to be tested for prompting, or a voice prompt is sent out through the headset to be tested for prompting.
[0016] As a preferred solution, if howling is still detected in the earphones to be tested, it is necessary to determine whether the number of times the user has adjusted the earphones to be tested exceeds a preset number of times. If so, it is necessary to detect whether the magnetic field around the earphones to be tested exceeds a predetermined threshold. If so, the demagnetization unit is activated, otherwise the speaker is turned off or the sound is reduced to check the cause of the howling.
[0017] As a preferred solution, before the degaussing unit starts working, a prompt will be issued to remind the user of the existence of the degaussing unit, and the user decides whether to turn on the degaussing function to trigger the operation of the degaussing unit; If the degaussing function is turned on, the degaussing unit can work.
[0018] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the earphone anti-howling method described above.
[0019] An electronic device comprises a memory, a processor and program instructions stored in the memory and executable on the processor, wherein the program instructions implement the earphone anti-howling method as described above when executed by the processor.
[0020] Compared with the prior art, the present invention has obvious advantages and beneficial effects. Specifically, it mainly ensures that the ANC function of the headset to be tested is turned on only when there is no howling phenomenon and the user wears it correctly through the cooperation of the first sensor and the second sensor, thereby avoiding the adverse consequences caused by the howling of the headset; in particular, when the headset howls, the user is reminded to adjust the wearing angle first to avoid the howling of the headset due to unreasonable wearing; after the headset is worn correctly, if the howling of the headset to be tested is still detected, it is caused by electromagnetic interference, and the howling of the headset can be eliminated by a demagnetization unit.
[0021] In order to more clearly illustrate the structural features and effects of the present invention, it is described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a general flow chart of an embodiment of the present invention; Figure 2 It is a schematic diagram of a degaussing unit circuit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0024] like Figure 1 and Figure 2 As shown, a method for preventing earphones from howling includes the following steps: Prepare an earphone to be tested, wherein the earphone to be tested is provided with a first sensor for detecting whether the earphone to be tested generates howling, a second sensor for detecting whether the earphone to be tested is in a correct wearing state, a magnetic field sensor for detecting changes in the magnetic field around the earphone to be tested, and a demagnetization unit for reducing or avoiding howling in the earphone to be tested; If it is detected that the earphone under test is howling, then it is detected whether the earphone under test is worn correctly. In this embodiment, the method for determining whether the earphone under test is howling is as follows: The first sensor is a microphone sensor, and a signal sequence collected by the microphone sensor is first obtained. For example, the feedback microphone sequence can be represented by x(n), n=0, 1, ..., N-1, where N represents the length of the signal sequence; Then, the signal is transformed into the frequency domain by Fast Fourier Transform (FFT), where k = 0, 1, ..., N / 2, and the signal power spectrum is calculated. The signal power spectrum is calculated as P(k) = E[X 2 (k)]; The peak-to-average ratio R is calculated as R=10log10(Ppeak / Pmean).
[0025] Wherein, Ppeak and Pmean represent the maximum value and average value in the signal power spectrum respectively. If the peak-to-average ratio R is greater than the preset ratio threshold, it can be determined that the headphone under test is howling.
[0026] The method to detect whether the headphones to be tested are worn correctly is as follows: The first type: the second sensor is an infrared sensor, which collects infrared signals to detect the wearing status of the earphones to be tested, and the wearing status of the earphones to be tested is detected according to the collected signals of the infrared sensor; if the current status of the earphones to be tested can correctly trigger the infrared sensor, the output result of the infrared sensor is "correctly worn", otherwise it is "incorrectly worn".
[0027] The second type: The second sensor is a skin conductivity sensor installed at the part where the earphone to be tested fits the skin. The skin conductivity change value is obtained through the skin conductivity sensor. When the skin conductivity change value reaches the preset threshold, the output result of the skin conductivity sensor is "correct wearing"; otherwise, it is "incorrect wearing".
[0028] If it is detected that the earphone to be tested is not worn correctly, the user is prompted to adjust the wearing position of the earphone to be tested. In this embodiment, the method of prompting the user to adjust the wearing position of the earphone to be tested is as follows: A pop-up window is sent out through the mobile device connected to the headset to be tested for prompting, or a voice prompt is sent out through the headset to be tested for prompting.
[0029] After the user correctly wears the headset to be tested, if no howling is detected in the headset to be tested, the active noise reduction function is activated; If howling is still detected in the headphones to be tested, it is necessary to determine whether the number of times the user has adjusted it exceeds the preset number. If so, it is necessary to detect whether the magnetic field around the headphones to be tested exceeds the predetermined threshold. If so, the demagnetization unit will work, otherwise the speaker will be turned off or the sound will be reduced to check the cause of the howling.
[0030] In this embodiment, the magnetic field sensor may be a Hall sensor or a magnetoresistive sensor, or a magnetic field detection chip may be used to detect the magnetic field.
[0031] The magnetic field sensor measures the total magnetic field distribution information within a preset range, including the strength and direction of the magnetic field. The demagnetization unit generates a magnetic field of corresponding strength and opposite or relatively adaptive strength based on the detected strength and direction of the external magnetic field to offset the headphone howling caused by the external magnetic field.
[0032] In this embodiment, before the degaussing unit works, a prompt will be issued to remind the user of the existence of the degaussing unit, and the user decides whether to turn on the degaussing function to trigger the work of the degaussing unit; If the degaussing function is turned on, the degaussing unit can work.
[0033] After the degaussing unit starts working, it is detected whether the howling sound is greater than a predetermined threshold. If so, the degaussing unit continues to be executed. Otherwise, the degaussing unit and the magnetic field sensor can be stopped.
[0034] Specifically, in this embodiment, after the degaussing unit starts working, it is necessary to monitor the magnetic field signal output by the magnetic field sensor in real time, and then check whether the magnetic field around the earphone to be tested is weakened.
[0035] If yes, it proves that the degaussing unit is working, then continue to monitor the howling sound to see if the howling sound has decreased. If yes, it proves that the howling is caused by electromagnetic interference, and the degaussing unit can continue to work; when the magnetic field is lower than the predetermined threshold, and when the howling sound is less than the predetermined threshold, or is eliminated, it means that the howling has been suppressed or eliminated, and the degaussing unit and the magnetic field sensor can be stopped. The effect of this design is: real-time monitoring of the magnetic field and the howling sound, through the changes in the magnetic field and the changes in the size of the howling sound, determine whether the howling is caused by electromagnetic interference, check the situation in time, and when the howling is determined to be caused by electromagnetic interference, the noise can be accurately reduced.
[0036] If the degaussing unit does not work, you need to restart the degaussing unit or restart the headphones under test; when the degaussing unit works and the magnetic field around the headphones under test begins to weaken; if the howling of the headphones under test is not caused by electromagnetic interference, turn off the headphones under test or speakers, or reduce the volume, and do another inspection.
[0037] In this embodiment, if Figure 2 As shown, the degaussing unit is arranged on the power supply line or the signal line, and includes an inductor and a capacitor, which form a filter circuit. The inductor can suppress high-frequency electromagnetic interference, and the capacitor can bypass the interference signal, thereby reducing the impact of electromagnetic interference on the circuit, thereby reducing or avoiding earphone whistling. Figure 2 In the figure, +Vin is the input end of the power line or signal line, and +Vout is the output after filtering, which is connected to the input end of the headphone to be tested.
[0038] In one embodiment, the earphone referred to in this embodiment is an ear clip earphone, wherein the ear clip earphone is clamped on the ear, and one earphone shell is accommodated in the concha cavity of the ear. At this time, by detecting the fitting area (skin conductivity change value) between the earphone shell located in the concha cavity and the ear cavity, it is determined whether the earphone is worn correctly. The skin conductivity sensor is arranged on a side wall of the earphone shell fitting the concha cavity.
[0039] In one embodiment, the earphone referred to in this embodiment is a semi-in-ear earphone, wherein, after the earphone is worn on the ear, the earphone shell is accommodated in the concha cavity of the ear and fits at the opening of the ear canal, wherein the skin conductivity sensor is arranged on one side wall of the earphone shell that fits the concha cavity, and by detecting the fitting area between the earphone shell and the ear cavity (skin conductivity change value), it is determined whether the earphone is worn correctly.
[0040] The present application also provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the above-mentioned earphone anti-howling method.
[0041] The present application also provides an electronic device, including a memory, a processor, and program instructions stored in the memory and executable on the processor, wherein the program instructions implement the above-mentioned earphone anti-howling method when executed by the processor.
[0042] In one embodiment, the electronic device is a headset.
[0043] In one embodiment, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor is generally used to control the overall operation of the electronic device. In this embodiment, the processor is used to run the program code stored in the readable storage medium or process data.
[0044] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a readable storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0045] The key point of the design of the present invention is that it mainly ensures that the ANC function of the headset to be tested is turned on only when there is no howling phenomenon and the user wears it correctly, mainly through the cooperation of the first sensor and the second sensor, so as to avoid the adverse consequences caused by the howling of the headset; in particular, when the headset howls, the user is reminded to adjust the wearing angle first to avoid the howling of the headset due to unreasonable wearing; after the headset is worn correctly, if the howling of the headset to be tested is still detected, it is caused by electromagnetic interference, and the howling of the headset can be eliminated by the demagnetization unit.
[0046] The above description is only a preferred embodiment of the present invention and does not limit the technical scope of the present invention. Therefore, any slight modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for preventing earphones from howling, characterized in that: The following steps are included: Prepare an earphone to be tested, wherein the earphone to be tested is provided with a first sensor for detecting whether the earphone to be tested generates howling, a second sensor for detecting whether the earphone to be tested is in a correct wearing state, a magnetic field sensor for detecting changes in the magnetic field around the earphone to be tested, and a demagnetization unit for reducing or avoiding howling in the earphone to be tested; If it is detected that the earphone under test is howling, check whether the earphone under test is worn correctly; If it is detected that the earphone to be tested is not worn correctly, the user is prompted to adjust the wearing position of the earphone to be tested; After the user correctly wears the headset to be tested, if no howling is detected in the headset to be tested, the active noise reduction function is activated; If the earphone under test is still detected to be howling, then detecting whether the magnetic field around the earphone under test exceeds a predetermined threshold; If it exceeds, the degaussing unit will work, otherwise turn off the speaker or reduce the sound to check the cause of the howling; After the degaussing unit starts working, it is detected whether the howling sound is greater than a predetermined threshold. If yes, the degaussing unit continues to be executed. Otherwise, the degaussing unit and the magnetic field sensor can be stopped.
2. The earphone howling prevention method according to claim 1, characterized in that: The method to determine whether the earphone under test is howling is as follows: The first sensor is a microphone sensor, and a signal sequence collected by the microphone sensor is first obtained. For example, the feedback microphone sequence can be represented by x(n), n=0, 1, ..., N-1, where N represents the length of the signal sequence; Then, the signal is transformed into the frequency domain by Fast Fourier Transform (FFT), where k = 0, 1, ..., N / 2, and the signal power spectrum is calculated. The signal power spectrum is calculated as P(k) = E[X 2 (k)]; The peak-to-average ratio R is calculated as R=10log10(Ppeak / Pmean). Wherein, Ppeak and Pmean represent the maximum value and average value in the signal power spectrum respectively. If the peak-to-average ratio R is greater than the preset ratio threshold, it can be determined that the headphone under test is howling.
3. The earphone howling prevention method according to claim 1, characterized in that: The method to detect whether the headphones to be tested are worn correctly is as follows: The second sensor is an infrared sensor, which collects infrared signals to detect the wearing status of the earphones to be tested, and performs the wearing status detection on the earphones to be tested according to the collected signals of the infrared sensor; if the current status of the earphones to be tested can correctly trigger the infrared sensor, the output result of the infrared sensor is "worn correctly"; otherwise, it is "worn incorrectly".
4. The earphone howling prevention method according to claim 1, characterized in that: The method to detect whether the headphones to be tested are worn correctly is as follows: The second sensor is a skin galvanic sensor installed at the part where the earphone to be tested fits the skin. The skin galvanic sensor obtains the change value of skin conductivity. When the change value of skin conductivity reaches a preset threshold, the output result of the skin galvanic sensor is "correct wearing". Otherwise it is "worn incorrectly".
5. The earphone howling prevention method according to claim 1, characterized in that: The method of prompting the user to adjust the wearing position of the earphone to be tested is as follows: A pop-up window is sent out through the mobile device connected to the headset to be tested for prompting, or a voice prompt is sent out through the headset to be tested for prompting.
6. The earphone howling prevention method according to claim 1, characterized in that: If howling is still detected in the headphones to be tested, it is necessary to determine whether the number of times the user has adjusted the headphones exceeds the preset number. If so, it is necessary to detect whether the magnetic field around the headphones to be tested exceeds the predetermined threshold. If so, the demagnetization unit will work, otherwise the speaker will be turned off or the sound will be reduced to check the cause of the howling.
7. The earphone howling prevention method according to claim 1, characterized in that: Before the degaussing unit starts working, a prompt will be issued to remind the user of the existence of the degaussing unit, and the user decides whether to turn on the degaussing function to trigger the operation of the degaussing unit; If the degaussing function is turned on, the degaussing unit can work.
8. A computer-readable storage medium, characterized in that: A plurality of instructions are stored, and the instructions are suitable for being loaded by a processor and executing the steps of the earphone anti-howling method according to any one of claims 1 to 7.
9. An electronic device, characterized in that: The method comprises a memory, a processor and program instructions stored in the memory and executable on the processor, wherein the program instructions are executed by the processor to implement the earphone anti-howling method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Earphone whistling suppression control method and device and earphone
CN113973246A
Current sound elimination method and device, earphone and computer readable storage medium
CN114286258A
Earphone control method and device, earphone and medium
CN115243141A
Active noise reduction earphone, howling suppression method and device thereof and storage medium
CN115767347A
Bluetooth earphone and electromagnetic interference simulation analysis method and current sound elimination method thereof
CN115914926A