Earphone anti-howling method, electronic device and readable storage medium

CN119485091BActive Publication Date: 2026-09-22RISUNTEK INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411334542.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2026-09-22
Estimated Expiration
2044-09-24

AI Technical Summary

Benefits of technology

[0020]本发明与现有技术相比具有明显的优点和有益效果,具体而言:其主要是通过第一传感器和第二传感器的配合,保证待测耳机仅在无啸叫现象出现且用户正确佩戴时只有ANC功能开启,避免耳机啸叫引发的不良后果;尤其是,在耳机发生啸叫现象时,优先提醒使用者调整佩戴角度,避免由于佩戴不合理导致耳机啸叫;在耳机佩戴正确后,仍然检测到待测耳机发生啸叫,则为电磁干扰而导致耳机啸叫,可通过消磁单元来消除耳机啸叫。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485091B_ABST
    Figure CN119485091B_ABST
Patent Text Reader

Abstract

The application relates to an earphone anti-howling method, electronic equipment and a readable storage medium, which comprises the following steps: if it is detected that howling occurs in a to-be-tested earphone, it is detected whether the to-be-tested earphone is correctly worn; if it is detected that the to-be-tested earphone is not correctly worn, a user is prompted to adjust the wearing position of the to-be-tested earphone; after the user correctly wears the to-be-tested earphone, if it is still detected that howling occurs in the to-be-tested earphone, it is detected whether the magnetic field around the to-be-tested earphone exceeds a predetermined threshold; if yes, a demagnetization unit works, otherwise a loudspeaker is turned off or the sound is reduced to check the howling cause; when howling occurs in the earphone, the user is preferentially prompted to adjust the wearing angle, so that the earphone howling caused by unreasonable wearing is avoided; after the earphone is correctly worn, if it is still detected that howling occurs in the to-be-tested earphone, the earphone howling is caused by electromagnetic interference, and the earphone howling can be eliminated through the demagnetization unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of headphone anti-feedback technology, and in particular to a headphone anti-feedback method, electronic device, and readable storage medium. Background Technology

[0002] Headphones have become widely used in people's daily lives due to their convenience, and are commonly used for listening to music and making calls. With the development of technology, the sound quality of headphones has been continuously improving, and users' requirements for headphone sound quality are also getting higher and higher. Sound quality has become an important factor for a considerable number of users when choosing headphones.

[0003] Therefore, most headphones on the market nowadays have active noise cancellation, which can effectively reduce external noise interference and provide users with a better experience. However, because active noise cancellation headphones are a closed-loop system, this closed-loop system can become unstable in certain situations, making it prone to feedback.

[0004] Feedback not only affects user experience, but can also cause problems such as speaker damage, microphone damage, increased power consumption, and even burnout of headphone circuitry. Therefore, it is necessary to prevent headphone feedback as much as possible.

[0005] Headphone feedback is usually caused by electromagnetic interference or connection problems. The current mainstream method to suppress feedback is to install a single sensor inside the headphones.

[0006] If the sensor detects feedback during headphone use, the headphone's ANC (Active Noise Cancellation) function will be turned off to suppress feedback. This method is effective in suppressing feedback. However, when feedback is caused by incorrect headphone wearing, it is difficult to detect changes in the wearing status of the headphones in time, making it difficult to adjust the headphone's noise cancellation parameters. The headphone's noise cancellation function may even fail to turn on properly, greatly reducing the user experience.

[0007] To ensure a good user experience, it is necessary to determine whether the headphone system should enable or disable the ANC function when feedback occurs, so as to strike a balance between protecting the headphones and ensuring the user experience.

[0008] Therefore, in this patent application, the applicant has carefully researched a method for preventing headphone feedback to solve the above-mentioned problems. Summary of the Invention

[0009] The present invention addresses the shortcomings of the prior art by providing a headphone anti-feedback method, electronic device, and readable storage medium. This ensures that the ANC function is only activated when there is no feedback and the user is wearing the headphones correctly, thus avoiding adverse consequences caused by headphone feedback. Specifically, when feedback occurs, the user is first reminded to adjust the wearing angle to prevent feedback due to improper wearing. If feedback is still detected after the headphones are worn correctly, it is due to electromagnetic interference, which can be eliminated by a demagnetizing unit.

[0010] To achieve the above objectives, the present invention adopts the following technical solution: A method for preventing feedback in headphones includes the following steps: Prepare the earphone to be tested. The earphone to be tested is equipped with a first sensor for detecting whether the earphone to be tested is whistling, a second sensor for detecting whether the earphone to be tested is in the correct wearing state, a magnetic field sensor for detecting changes in the magnetic field around the earphone to be tested, and a demagnetizing unit for reducing or avoiding whistling of the earphone to be tested. If feedback is detected in the earphone under test, check whether the earphone is worn correctly. If the test earphone is detected to be worn incorrectly, the user will be prompted to adjust the wearing position of the test earphone. If no feedback is detected from the test headphones after the user wears them correctly, the active noise cancellation function will be activated. If the test headphone still emits a whistling sound, the magnetic field around the test headphone is checked to see if it exceeds a predetermined threshold. If it does, the demagnetizing unit is activated; otherwise, the speaker is turned off or the sound is reduced to check the cause of the whistling sound. After the demagnetizing unit has finished working, it checks whether the whistling sound is greater than a predetermined threshold. If it is, the demagnetizing unit continues to run; otherwise, the demagnetizing unit and the magnetic field sensor can be stopped.

[0011] As a preferred method, the following method is used to determine if the earphone under test is experiencing feedback: The first sensor is a microphone sensor. First, the signal sequence collected by the microphone sensor is acquired. 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 to the frequency domain using a Fast Fourier Transform (FFT) to obtain X(k), 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] Where Ppeak and Pmean represent the maximum and average values ​​in the signal power spectrum, respectively. If the peak-to-average power ratio R is greater than a preset threshold, it can be determined that the earphone under test is experiencing feedback.

[0013] As a preferred method, the following is a procedure for detecting whether the headphones under test are worn correctly: The second sensor is an infrared sensor, which collects infrared signals to detect the wearing status of the earphone under test. The wearing status of the earphone under test is detected based on the collected signals of the infrared sensor. If the current state of the earphone under test can correctly trigger the infrared sensor, the output result of the infrared sensor is "wearing correctly"; otherwise, it is "wearing incorrectly".

[0014] As a preferred method, the following is a procedure for detecting whether the headphones under test are worn correctly: The second sensor is a skin conductance sensor located at the point where the earphone is in contact with the skin. The skin conductance sensor acquires the change value of skin conductivity. When the change value of skin conductivity reaches a preset threshold, the output result of the skin conductance sensor is "wearing correctly"; otherwise, it is "wearing incorrectly".

[0015] As a preferred approach, the method for prompting the user to adjust the wearing position of the earphone under test is as follows: The prompt can be sent via a pop-up window from the mobile device connected to the earphone under test, or via voice prompt from the earphone under test.

[0016] As a preferred solution, if feedback is still detected in the earphone under test, it is also necessary to determine whether the number of times the user has adjusted the settings exceeds the preset number. If so, it is necessary to check whether the magnetic field around the earphone under test exceeds the predetermined threshold. If it does, the demagnetizing unit will work; otherwise, the speaker will be turned off or the sound will be reduced to check the cause of the feedback.

[0017] As a preferred option, a prompt will be issued to the user before the demagnetizing unit starts working, allowing the user to decide whether to activate the demagnetizing function to trigger the demagnetizing unit to work. The demagnetizing unit can only operate if the demagnetizing function is enabled.

[0018] A computer-readable storage medium storing a plurality of instructions adapted for loading by a processor and executing the steps of the headphone anti-feedback method described above.

[0019] An electronic device includes a memory, a processor, and program instructions stored in the memory and executable on the processor, wherein the program instructions, when executed by the processor, implement the headphone anti-feedback method as described above.

[0020] Compared with the prior art, the present invention has obvious advantages and beneficial effects. Specifically, it mainly uses the cooperation of the first and second sensors to ensure that the ANC function is only activated when there is no howling and the user is wearing the headphones correctly, thus avoiding the adverse consequences caused by howling. In particular, when howling occurs, the user is first reminded to adjust the wearing angle to avoid howling caused by improper wearing. If howling is still detected after the headphones are worn correctly, it is caused by electromagnetic interference, which can be eliminated by the demagnetizing unit.

[0021] To more clearly illustrate the structural features and effects of the present invention, a detailed description is provided below in conjunction with the accompanying drawings and specific embodiments. Attached Figure Description

[0022] Figure 1 This is a general flowchart of an embodiment of the present invention; Figure 2 This is a schematic diagram of the demagnetizing unit circuit according to an embodiment of the present invention. Detailed Implementation

[0023] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0024] like Figure 1 and Figure 2 As shown, a method for preventing feedback in headphones includes the following steps: Prepare the earphone to be tested. The earphone to be tested is equipped with a first sensor for detecting whether the earphone to be tested is whistling, a second sensor for detecting whether the earphone to be tested is in the correct wearing state, a magnetic field sensor for detecting changes in the magnetic field around the earphone to be tested, and a demagnetizing unit for reducing or avoiding whistling of the earphone to be tested. If feedback is detected in the earphone under test, the system checks whether the earphone is being worn correctly. In this embodiment, the method for determining whether feedback is occurring in the earphone under test is as follows: The first sensor is a microphone sensor. First, the signal sequence collected by the microphone sensor is acquired. 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 to the frequency domain using a Fast Fourier Transform (FFT) to obtain X(k), 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] Where Ppeak and Pmean represent the maximum and average values ​​in the signal power spectrum, respectively. If the peak-to-average power ratio R is greater than a preset threshold, it can be determined that the earphone under test is experiencing feedback.

[0026] The method for checking whether the headphones under test are worn correctly is as follows: The first method uses an infrared sensor as the second sensor to collect infrared signals and detect the wearing status of the earphones under test. The wearing status of the earphones under test is detected based on the signals collected by the infrared sensor. If the current state of the earphones under test can correctly trigger the infrared sensor, the output result of the infrared sensor is "wearing correctly"; otherwise, it is "wearing incorrectly".

[0027] The second type: The second sensor is a skin conductance sensor placed at the point where the earphone is in contact with the skin. The skin conductance 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 conductance sensor is "wearing correctly"; otherwise, it is "wearing incorrectly".

[0028] If the earphone under test is detected to be worn incorrectly, the user is prompted to adjust its wearing position. In this embodiment, the method for prompting the user to adjust the wearing position of the earphone under test is as follows: The prompt can be sent via a pop-up window from the mobile device connected to the earphone under test, or via voice prompt from the earphone under test.

[0029] If no feedback is detected from the test headphones after the user wears them correctly, the active noise cancellation function will be activated. If feedback is still detected in the earphone under test, it is necessary to determine whether the number of times the user has adjusted the settings exceeds the preset number. If so, it is necessary to check whether the magnetic field around the earphone under test exceeds the preset threshold. If it does, the demagnetizing unit will work; otherwise, the speaker will be turned off or the sound will be reduced to check the cause of the feedback.

[0030] In this embodiment, the magnetic field sensor can be a Hall sensor or a magnetoresistive sensor, or a magnetic field detection chip can 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. Based on the detected strength and direction of the external magnetic field, the demagnetizing unit generates a magnetic field of corresponding strength and opposite or relatively adapted strength to counteract the headphone feedback caused by the external magnetic field.

[0032] In this embodiment, before the demagnetizing unit starts working, a prompt will be issued to inform the user of the existence of the demagnetizing unit, and the user can decide whether to activate the demagnetizing function to trigger the demagnetizing unit to work. The demagnetizing unit can only operate if the demagnetizing function is enabled.

[0033] After the demagnetizing unit has started working, it checks whether the howling sound is greater than a predetermined threshold. If it is, the demagnetizing unit continues to run; otherwise, the demagnetizing unit and the magnetic field sensor can be stopped.

[0034] Specifically, in this embodiment, after the demagnetizing unit operates, 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 under test has weakened.

[0035] If so, it proves that the demagnetizing unit is working. Continue monitoring the howling sound to see if it decreases. If it does, it proves the howling is caused by electromagnetic interference, and the demagnetizing unit can continue operating. When the magnetic field is below a predetermined threshold, and the howling sound is less than the predetermined threshold or eliminated, it indicates that the howling has been suppressed or eliminated, and the demagnetizing unit and magnetic field sensor can be stopped. The effect of this design is: real-time monitoring of the magnetic field and howling sound; by observing changes in the magnetic field and howling sound volume, it can determine whether the howling is caused by electromagnetic interference, promptly investigate the situation, and accurately reduce noise when it is determined to be caused by electromagnetic interference.

[0036] If the demagnetizing unit is not working, you need to restart the demagnetizing unit or restart the earphone under test. If the howling of the earphone under test is not caused by electromagnetic interference, turn off the earphone or speaker, or reduce the volume, and perform other checks.

[0037] In this embodiment, as Figure 2 As shown, the demagnetizing unit is installed on the power line or signal line, and includes an inductor and a capacitor, which together form a filter circuit. The inductor can suppress high-frequency electromagnetic interference, and the capacitor can bypass interference signals, thereby reducing the impact of electromagnetic interference on the circuit and thus mitigating or preventing headphone feedback. Figure 2 In this diagram, +Vin is the input terminal of the power line or signal line, and +Vout is the filtered output terminal, which is connected to the input terminal of the headphone under test.

[0038] In one embodiment, the earphone referred to in this embodiment is an ear-clip earphone, wherein the ear-clip earphone is clipped behind the ear, and one of its earphone shells is housed within the concha of the ear. At this time, the correct wearing status of the earphone is determined by detecting the contact area (change in skin conductivity) between the earphone shell located within the concha and the ear cavity. The skin conductivity sensor is disposed on one side wall of the earphone shell that contacts the concha.

[0039] In one embodiment, the earphone referred to in this embodiment is a semi-in-ear earphone, wherein after the earphone is worn in the ear, the earphone shell is housed in the concha cavity of the ear and fits against the ear canal opening. The skin conductance sensor is set on the side wall of the earphone shell that fits against the concha cavity. By detecting the contact area between the earphone shell and the ear cavity (the change value of skin conductance), the correctness of the earphone is determined.

[0040] This application also provides a readable storage medium storing a plurality of instructions adapted for loading by a processor and executing the steps of the headphone anti-feedback method described above.

[0041] This 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, when executed by the processor, implement the aforementioned headphone anti-feedback method.

[0042] In one embodiment, the electronic device is an earphone.

[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 typically used to control the overall operation of an electronic device. In this embodiment, the processor is used to run program code stored in a readable storage medium or to process data.

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

[0045] The key design feature of this invention is that it ensures that the ANC function is only activated when there is no feedback and the user is wearing the headphones correctly, through the cooperation of the first and second sensors, thus avoiding adverse consequences caused by feedback. In particular, when feedback occurs, the user is first reminded to adjust the wearing angle to avoid feedback caused by improper wearing. If feedback is still detected in the headphones after they are worn correctly, it is caused by electromagnetic interference, which can be eliminated by the demagnetizing unit.

[0046] The above description is merely a preferred embodiment of the present invention and does not constitute any limitation on the technical scope of the present invention. Therefore, any minor modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention shall still fall within the scope of the technical solution of the present invention.

Claims

1. A method for preventing feedback in headphones, characterized in that: It includes the following steps: Prepare the earphone to be tested. The earphone to be tested is equipped with a first sensor for detecting whether the earphone to be tested is whistling, a second sensor for detecting whether the earphone to be tested is in the correct wearing state, a magnetic field sensor for detecting changes in the magnetic field around the earphone to be tested, and a demagnetizing unit for reducing or avoiding whistling of the earphone to be tested. The method for determining whether the earphone under test is experiencing feedback is as follows: The first sensor is a microphone sensor. First, the signal sequence collected by the microphone sensor is acquired, and the feedback microphone sequence is represented by x(n), n = 0, 1, ..., N-1, where N represents the length of the signal sequence. Then, the signal is transformed to the frequency domain using a Fast Fourier Transform (FFT) to obtain X(k), 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). Where Ppeak and Pmean represent the maximum and average values ​​in the signal power spectrum, respectively; if the peak-to-average power ratio R is greater than the preset ratio threshold, it can be determined that the earphone under test is experiencing feedback. If feedback is detected in the earphone under test, check whether the earphone is worn correctly. The method for checking whether the headphones under test are worn correctly is as follows: The second sensor is a skin conductance sensor located at the point where the earphone is in contact with the skin. The skin conductance sensor is located on one side wall of the earphone shell that is in contact with the concha cavity. The skin conductance sensor acquires the change value of skin conductivity. When the change value of skin conductivity reaches a preset threshold, the output result of the skin conductance sensor is "correctly worn"; otherwise, it is "incorrectly worn". If the test earphone is detected to be worn incorrectly, the user will be prompted to adjust the wearing position of the test earphone. The method for prompting the user to adjust the wearing position of the earphone under test is as follows: The prompt can be sent via a pop-up window from the mobile device connected to the earphone under test, or via voice prompt from the earphone under test. If no feedback is detected from the test headphones after the user wears them correctly, the active noise cancellation function will be activated. If the test headphone still emits a whistling sound, it is necessary to determine whether the number of times the user has adjusted the headphone exceeds the preset number. If so, it is necessary to check whether the magnetic field around the headphone exceeds the preset threshold. If it does, the demagnetizing unit will work. Otherwise, the speaker will be turned off or the sound will be reduced to check the cause of the whistling sound. Before the demagnetizing unit starts working, a prompt will be issued to inform the user of its existence, and the user can decide whether to activate the demagnetizing function to trigger the demagnetizing unit to work. If the demagnetizing function is enabled, the demagnetizing unit can work; the demagnetizing unit is installed on the power line or signal line, and includes an inductor and a capacitor, which together form a filter circuit. After the demagnetizing unit has been working, it is detected whether the howling sound is greater than a predetermined threshold. If so, the demagnetizing unit continues to be executed; otherwise, the demagnetizing unit and the magnetic field sensor stop working. After detecting that the whistling sound is greater than the predetermined threshold, it is also 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 under test has weakened. If so, it proves that the demagnetizing unit has worked. Then continue to monitor the howling sound and see if the howling sound has decreased. If so, it proves that the howling is caused by electromagnetic interference, and the demagnetizing unit can continue to work. When the magnetic field is lower than the predetermined threshold, and when the howling sound is lower than the predetermined threshold or is eliminated, it means that the howling has been suppressed or eliminated, and the demagnetizing unit and magnetic field sensor can be stopped. If the demagnetizing unit is not working, you need to restart the demagnetizing unit or restart the earphone under test. If the howling of the earphone under test is not caused by electromagnetic interference, turn off the earphone or speaker, or reduce the volume, and perform other checks.

2. A readable storage medium, characterized in that, The device stores multiple instructions adapted for loading by a processor and executing the steps of the headphone anti-feedback method of claim 1.

3. An electronic device, characterized in that, It includes a memory, a processor, and program instructions stored in the memory and executable on the processor, wherein the program instructions, when executed by the processor, implement the headphone anti-feedback method as described in claim 1.

Citation Information

Patent Citations

  • Earphone whistling suppression control method and device and earphone

    CN113973246A

  • Method and device for controlling earphone

    CN117528313A