Headphone howling suppression control method, device and headphone
By detecting the headphones' howling and wearing status and controlling the howling suppression module, the problem of headphones' howling in extreme cases is solved, ensuring the recovery of noise reduction function and the improvement of user experience.
Patent Information
- Application Number
- CN202010723396.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-24
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-07-24
AI Technical Summary
Existing headphones may whistle in extreme cases, resulting in reduced user experience, equipment damage and power consumption, and the inability to effectively restore noise reduction function.
By detecting whether the headphones are whistling and changing their wearing state, the whistling suppression module is controlled to ensure that the noise reduction function is restored during normal wear.
Effectively suppress whistling, avoid equipment damage, ensure that the headset provides sufficient noise reduction when worn, and improve user experience.
Smart Images

Figure CN113973246B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of earphone equipment, and in particular to a control method, device and earphone for suppressing earphone howling. Background Art
[0002] Headphones are increasingly used in people's daily lives because of their small size and portability, especially for listening to music and radio, so the listening effect of headphones is very important to users. Active noise reduction headphones can effectively reduce the interference of external noise and give users a better experience. However, in some extreme cases, such as when wireless headphones are taken off and held in the hands of users, or when the headphones are not worn correctly by users (for example, when wearing headphones, the silicone earplugs are squeezed by external forces and are in an undesirable deformation state), the silicone earplugs of the headphones are squeezed and deformed, and the sound wave reflection characteristics in the headphone sound cavity change accordingly, and the sound wave transfer function changes dramatically. The closed-loop feedback system of the sound signal is prone to instability, which may cause howling. The generation of howling affects the user experience, and is likely to cause damage to the speaker and microphone, increase power consumption, and may even cause the circuit to burn out, so howling needs to be suppressed.
[0003] There are many methods for detecting whether earphones generate howling in the prior art, but usually the ANC (Active Noise Control) module is turned off after howling is detected. For example, if howling is detected, howling suppression may be activated at this time, such as turning off ANC noise reduction, adjusting noise reduction gain, etc., to avoid continuous howling. However, the prior art cannot control when to actively turn on ANC noise reduction to ensure that ANC can resume normal operation after howling disappears, which leads to the problem of no noise reduction or insufficient noise reduction when the earphones are worn on the ears. Summary of the invention
[0004] The present application provides a control method, device and earphone for earphone howling suppression to solve or partially solve the above-mentioned problems.
[0005] According to a first aspect of the present application, a method for controlling earphone howling suppression is provided, comprising:
[0006] Performing earphone howling detection according to the collected signal of the first sensor to obtain an earphone howling detection result;
[0007] Performing headphone wearing state detection according to the collected signal of the second sensor to obtain the current headphone wearing state, and determining whether the headphone wearing state has changed according to the headphone wearing state previously detected;
[0008] The turning on and off of the earphone howling suppression is controlled according to the earphone howling detection result and whether the earphone wearing state changes.
[0009] According to a second aspect of the present application, a control device for suppressing howling of an earphone is provided, comprising:
[0010] A first detection unit, configured to perform earphone howling detection according to the collected signal of the first sensor, and obtain an earphone howling detection result;
[0011] A second detection unit is used to detect the wearing state of the earphone according to the collected signal of the second sensor, obtain the current wearing state of the earphone, and determine whether the wearing state of the earphone has changed according to the wearing state of the earphone detected previously;
[0012] A control unit is used to control the turning on and off of earphone howling suppression according to the earphone howling detection result and whether the earphone wearing state changes.
[0013] According to a third aspect of the present application, there is provided a headset, comprising: a first sensor, a second sensor, a memory storing computer executable instructions, and a processor,
[0014] When the executable instructions are executed by the processor, the aforementioned headphone howling suppression control method is implemented.
[0015] According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the aforementioned control method for suppressing howling of an earphone is implemented.
[0016] The beneficial effect of the present application is that the technical solution of the embodiment of the present application detects whether the earphone generates howling and whether the wearing state of the earphone changes, and then controls the opening and closing of the howling suppression module according to the earphone howling detection result and whether the wearing state changes. The solution of the embodiment of the present application ensures that the howling can be effectively suppressed after it is generated, and that the wearing state will not generate howling after the wearing state changes, and ensures that the noise reduction function of the earphone is restored during normal use after the howling suppression is generated, so as to ensure the noise reduction amount of the earphone, thereby providing a better user experience for the earphone users. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0018] Figure 1 This is a flow chart of a method for controlling earphone howling suppression according to an embodiment of the present application;
[0019] Figure 2 This is an algorithm block diagram of earphone howling detection according to one embodiment of the present application;
[0020] Figure 3 This is an algorithm block diagram of earphone wearing status detection according to one embodiment of the present application;
[0021] Figure 4 This is a control logic block diagram of earphone howling suppression according to an embodiment of the present application;
[0022] Figure 5 A block diagram of a control device for suppressing earphone howling according to an embodiment of the present application;
[0023] Figure 6 This is a schematic diagram of the structure of the earphone in one embodiment of the present application. DETAILED DESCRIPTION
[0024] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0025] Based on this, Figure 1 FIG. 1 is a flow chart showing a method for controlling earphone howling suppression according to an embodiment of the present application, see Figure 1 The headphone howling suppression control method of the embodiment of the present application includes the following steps S110 to S130:
[0026] Step S110: Perform earphone howling detection according to the collected signal of the first sensor to obtain an earphone howling detection result.
[0027] In specific implementation, firstly, a first sensor such as a feedback microphone can be used to collect sound signals. Specifically, a microphone for detecting howling can be set at the acoustic front end of the speaker, and then the headphone howling is detected according to the signal collected by the feedback microphone to obtain the headphone howling detection result. The headphone howling detection result here includes two situations: the headphone generates howling and the headphone does not generate howling. If the headphone generates howling, the headphone howling suppression can be started, such as turning off ANC noise reduction or adjusting the noise reduction gain, etc. If no howling is generated, there is no need to start the headphone howling suppression.
[0028] Step S120, performing headphone wearing state detection according to the collected signal of the second sensor to obtain the current headphone wearing state, and determining whether the headphone wearing state has changed according to the headphone wearing state previously detected.
[0029] The wearing state of the headset in the embodiment of the present application can be divided into a wearing state and a non-wearing state. The "wearing state" here includes all states that can trigger the capacitive sensor or the light sensor, such as the headset is worn on the ear, the headset is held in the hand, etc., while the "non-wearing state" refers to the state where the capacitive sensor or the light sensor is not triggered. That is, the embodiment of the present application distinguishes the wearing state of the headset based on whether the capacitive sensor or the light sensor is triggered.
[0030] The capacitive sensor or light sensor can be regarded as a second sensor for detecting the wearing state of the headset. This step also compares the current headset wearing state detected by the second sensor with the headset wearing state detected last time to determine whether the headset wearing state has changed. For example, if the current headset wearing state detected is a wearing state, and the headset wearing state detected last time was a non-wearing state, it is determined that the headset wearing state has changed.
[0031] Step S130 , controlling the turning on and off of the earphone howling suppression according to the earphone howling detection result and whether the earphone wearing state changes.
[0032] The purpose of adjusting the headphone howling suppression based on whether the wearing state has changed is to ensure the normal operation of the noise reduction function of the headphone under normal wearing conditions, and to avoid the abnormality of the noise reduction function during normal wearing due to turning off the noise reduction function or adjusting the noise reduction gain after the howling occurs. Therefore, after obtaining the above-mentioned headphone howling suppression detection results and the result of whether the headphone wearing state has changed, the embodiment of the present application combines these two dimensions to control the turning on and off of the headphone howling suppression. Specifically, as long as the headphone howling is detected, the headphone howling suppression will be activated to avoid the harm of the headphone howling to the human ear. When the headphone howling suppression is in the activated state, as long as the headphone wearing state changes, the headphone howling suppression will be turned off. At this time, the noise reduction function of the headphone is restored to ensure sufficient noise reduction of the headphone and improve the user experience.
[0033] It should be noted that step S110 and step S120 of the embodiment of the present application may be executed sequentially or simultaneously, which is not limited here.
[0034] In one embodiment of the present application, the first sensor is a microphone sensor, and headphone howling detection is performed based on the collected signal of the first sensor, and obtaining the headphone howling detection result includes: acquiring a signal sequence collected by the microphone sensor; performing a fast Fourier transform on the signal sequence to obtain a frequency domain signal; calculating a signal power spectrum based on the frequency domain signal, and determining a peak-to-average ratio (peak-to-mean ratio) based on the maximum value and average value in the signal power spectrum; comparing the peak-to-average ratio with a first preset threshold, if the peak-to-average ratio is greater than the first preset threshold, determining that the headphone generates howling, and if the peak-to-average ratio is not greater than the first preset threshold, determining that the headphone does not generate howling.
[0035] Specifically, the characteristic of earphone howling is usually that howling occurs at a certain frequency point, while background noise, voice, music, etc. are broadband signals. Therefore, a method of detecting a single-frequency signal can be used to detect howling. A simple way is to consider using the size of the frequency domain peak-to-average ratio to detect whether there is howling. Of course, those skilled in the art can also use other earphone howling detection methods according to actual needs, which are not specifically limited here.
[0036] like Figure 2 As shown in the figure, an algorithm block diagram of earphone howling detection is given. First, the signal sequence collected by the microphone sensor is obtained. For example, the feedback microphone sequence can be represented by x(n), n = 0, 1, 2..., N-1, where N represents the length of the signal sequence. Then, the signal is transformed into the frequency domain through Fast Fourier Transform (FFT), k = 0, 1,... N / 2, and the signal power spectrum is calculated, where,
[0037] The signal power spectrum is calculated as follows:
[0038] P(k)=E[X 2 (k)] (1)
[0039] The peak-to-average ratio R is calculated as follows:
[0040]
[0041] Among them, P peak ,P mean Respectively represent the maximum value and average value in the signal power spectrum. If the peak-to-average ratio R is greater than a certain preset ratio threshold, it can be said that the earphone generates howling at this time, otherwise no howling is generated. The size of the preset ratio threshold can be flexibly set by those skilled in the art according to actual conditions, and is not specifically limited here.
[0042] In one embodiment of the present application, the second sensor is a capacitive sensor and / or a light sensor, and the headphone wearing state is detected according to the collected signal of the second sensor, and obtaining the current headphone wearing state includes: smoothing the signal value collected by the capacitive sensor and / or the light sensor; comparing the smoothed signal value with a second preset threshold value, if the smoothed signal value is greater than the second preset threshold value, determining that the current headphone wearing state is a wearing state, if the smoothed signal value is not greater than the second preset threshold value, determining that the current headphone wearing state is a non-wearing state.
[0043] As mentioned above, the second sensor of the embodiment of the present application can be a capacitive sensor or a light sensor, and the light sensor can be, for example, an infrared sensor or a visible light sensor. Specifically, these sensors can be set at a suitable position according to the actual use of the headset, such as a position close to or close to the human ear when worn.
[0044] like Figure 3 As shown, an algorithm block diagram for detecting the wearing status of headphones based on a capacitive sensor is provided. First, the capacitance value currently collected by the capacitive sensor is obtained, and the currently collected capacitance value is smoothed. For example, if the current capacitance value is y, y is smoothed to obtain a smoothed signal ySth, and the specific calculation method is:
[0045] ySth=α*ySthOld+(1-α)*y (3)
[0046] Wherein, ySthOld represents the capacitance value obtained after the last smoothing process, and α is the smoothing coefficient, for example, the value is 0.8.
[0047] Then, it is determined whether the smoothed capacitance value is greater than a preset capacitance threshold value. If so, it indicates that the headset is currently in a wearing state, otherwise it is in a non-wearing state. If it is currently in a wearing state, and the previous state, for example, the last detected state, is a non-wearing state, it indicates that the state of the headset has changed, and a wearing state change flag 1 is output, otherwise a wearing state unchanged flag 0 is output; if it is currently in a non-wearing state, and the last detected state is a wearing state, it indicates that the state of the headset has changed, and a wearing state change flag 1 is output, otherwise a wearing state unchanged flag 0 is output.
[0048] In one embodiment of the present application, controlling the turning on and off of headphone howling suppression according to the headphone howling detection result and whether the headphone wearing state has changed includes: when it is determined according to the headphone howling detection result that the headphone generates howling, starting the headphone howling suppression; when it is determined according to the headphone howling detection result that the headphone does not generate howling, maintaining the headphone howling suppression in the started state or the turned off state.
[0049] In specific implementation, the initialization state of the earphone howling suppression can be set to the off state. If the earphone is detected to generate howling, the earphone howling suppression is turned on to ensure that the howling does not continue to occur. If the earphone is not detected to generate howling, the earphone howling suppression is maintained in the off state.
[0050] In one embodiment of the present application, controlling the turning on and off of the headphone howling suppression according to the headphone howling detection result and whether the headphone wearing state has changed also includes: when the headphone wearing state changes, if the headphone howling suppression is in the started state, turning off the headphone howling suppression; if the headphone howling suppression is in the turned off state, maintaining the turned off state of the headphone howling suppression; when the headphone wearing state has not changed, maintaining the started state or turned off state of the headphone howling suppression.
[0051] In a specific implementation, when the earphone howling suppression is controlled to be turned off according to the earphone wearing state, if the wearing state changes, it is determined whether the earphone howling suppression is in the activated state at this time, and if so, the earphone howling suppression is turned off, and if the earphone howling suppression is in the OFF state, the earphone howling suppression is maintained in the OFF state. If the wearing state does not change, the state of the earphone howling suppression is maintained unchanged, that is, if the earphone howling suppression is in the OFF state at this time, the earphone howling suppression is maintained in the OFF state, and if the earphone howling suppression is in the activated state at this time, the earphone howling suppression is maintained in the activated state.
[0052] In simple terms, whether the earphone howling suppression needs to be turned on again is controlled by the earphone howling detection result, and whether the earphone howling suppression needs to be turned off again is controlled by the detection result of whether the wearing state has changed. Specifically, the applicant found that once the earphone is restored from the state of being held in the user's hand to the normal wearing state, or from the state of never being properly worn by the user (for example, the earplug part of the earphone is deformed by external force when worn) to the normal wearing state, the process of re-wearing the earphone is usually accompanied by a change in the detected wearing state, for example, there will be a change from a wearing state to a non-wearing state and then to a wearing state. That is, the applicant recognizes that the process of the user re-wearing the earphone is usually accompanied by a change in the wearing state. Once the system detects that the wearing state has changed, and the howling suppression is in the activated state at this time, the howling suppression can be turned off, so that the ANC active noise reduction function can resume normal operation and achieve a perfect and ideal listening effect.
[0053] like Figure 4As shown, a logic block diagram of earphone howling suppression control is provided, which is mainly divided into two parts. The first part is earphone howling detection. It is determined whether the earphone generates howling according to the earphone howling detection result. If howling is generated, the earphone howling suppression is activated. If howling is not generated, the state of earphone howling suppression is maintained unchanged. That is to say, if the earphone howling suppression is in the off state at this time, the earphone howling suppression is maintained in the off state. If the earphone howling suppression is in the activated state at this time, the earphone howling suppression is maintained in the activated state. The second part is earphone wearing state detection. It is determined whether the earphone wearing state has changed according to the earphone wearing state detection result. If the earphone wearing state has changed, it is determined whether the earphone howling suppression is in the on state. If so, the earphone howling suppression is turned off. If the earphone howling suppression is in the off state, the earphone howling suppression is maintained in the off state. If the wearing state has not changed, the earphone howling suppression state is maintained unchanged.
[0054] The present application can control the start and stop of earphone howling suppression according to the howling detection result and the detection result of whether the wearing status has changed, thereby realizing the start of howling suppression when the earphone produces howling to avoid damage to the human ear, and realizing the active noise reduction function when the user wears the earphone, thereby meeting the different usage needs of users.
[0055] The implementation principle of the control method for earphone howling suppression of the present application can be roughly described as follows: The present application considers adjusting the opening and closing of earphone howling suppression according to the wearing state of the earphone. For example, when the earphone is tightly held in the hand, howling may occur, and the state of the earphone will be detected as the wearing state at this time. After that, the earphone is worn on the ear, and there will be a change from the wearing state to the non-wearing state and then to the wearing state. After the wearing state changes, the earphone howling suppression is turned off, so that the ANC noise reduction is turned on when the earphone is worn on the ear, avoiding the situation where there is no noise reduction when the earphone is used normally due to the previous turning off of the ANC noise reduction. In addition, the earphone may also generate howling in the non-wearing state, for example, the earplug is squeezed by hand, but the sensor for wearing state detection is not triggered, and then the earphone is worn on the ear, and there will also be a state change from the non-wearing state to the wearing state. At this time, the earphone howling suppression is turned off, that is, the ANC noise reduction is turned on, so as to ensure the normal operation of the ANC noise reduction when the earphone is worn on the ear.
[0056] The embodiment of the present application also provides a control device for suppressing howling of headphones, which is based on the same technical concept as the control method for suppressing howling of headphones mentioned above. Figure 5 A block diagram of a control device for suppressing earphone howling according to an embodiment of the present application is shown. Figure 5 The headphone howling suppression control device 500 includes: a first detection unit 510, a second detection unit 520 and a control unit 530.
[0057] The first detection unit 510 is used to perform earphone howling detection according to the collected signal of the first sensor to obtain an earphone howling detection result;
[0058] The second detection unit 520 is used to detect the headphone wearing state according to the collected signal of the second sensor, obtain the current headphone wearing state, and determine whether the headphone wearing state has changed according to the headphone wearing state previously detected;
[0059] The control unit 530 is used to control the turning on and off of the earphone howling suppression according to the earphone howling detection result and whether the earphone wearing state changes.
[0060] In one embodiment of the present application, the first sensor is a microphone sensor, and the first detection unit 510 is specifically used to: obtain a signal sequence collected by the microphone sensor; perform a fast Fourier transform on the signal sequence to obtain a frequency domain signal; calculate the signal power spectrum based on the frequency domain signal, and determine the peak-to-average ratio based on the maximum value and average value in the signal power spectrum; compare the peak-to-average ratio with a first preset threshold, if the peak-to-average ratio is greater than the first preset threshold, it is determined that the earphone produces howling, if the peak-to-average ratio is not greater than the first preset threshold, it is determined that the earphone does not produce howling.
[0061] In one embodiment of the present application, the second sensor is a capacitive sensor and / or a light sensor, and the second detection unit 520 is specifically used to: smooth the signal value collected by the capacitive sensor and / or the light sensor; compare the smoothed signal value with a second preset threshold, if the smoothed signal value is greater than the second preset threshold, determine that the current headphone wearing state is a wearing state, if the smoothed signal value is not greater than the second preset threshold, determine that the current headphone wearing state is a non-wearing state.
[0062] In one embodiment of the present application, the control unit 530 is specifically used to:
[0063] According to the earphone howling detection result of the first detection unit 510, when it is determined that the earphone generates howling, the earphone howling suppression is started, and when it is determined that the earphone does not generate howling, the earphone howling suppression is maintained in the started state or the turned off state;
[0064] According to the headphone wearing state detection result of the second detection unit 520, when it is determined that the headphone wearing state has changed, if the headphone howling suppression is in the activated state, the headphone howling suppression is turned off; if the headphone howling suppression is in the disabled state, the headphone howling suppression is maintained in the disabled state; when it is determined that the headphone wearing state has not changed, the headphone howling suppression is maintained in the activated state or the disabled state.
[0065] It should be noted that the above-mentioned headphone howling suppression control device can implement each step of the above-mentioned headphone howling suppression control method. The relevant explanations on the headphone howling suppression control method are applicable to this device and will not be repeated here.
[0066] In summary, the technical solution of the embodiment of the present application detects whether the earphone generates howling and whether the wearing state of the earphone changes, and then controls the opening and closing of the howling suppression module according to the earphone howling detection result and whether the wearing state changes. The solution of the embodiment of the present application ensures that howling can be effectively suppressed after it is generated, and that a wearing state that does not generate howling will be generated after the wearing state changes. It also ensures that after howling suppression is generated, the noise reduction function of the earphone can be automatically restored during normal use to ensure the noise reduction amount of the earphone, thereby providing a better user experience for the earphone user.
[0067] It should be noted that:
[0068] Figure 6 The schematic diagram of the headset is shown in Figure 1. Figure 6 At the hardware level, the headset includes a first sensor, a second sensor, a memory and a processor, and optionally also includes an interface module, a communication module, etc. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the headset may also include hardware required for other services.
[0069] The processor, interface module, communication module and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0070] The memory is used to store computer executable instructions. The memory provides computer executable instructions to the processor through an internal bus.
[0071] The processor executes the computer executable instructions stored in the memory and is specifically used to implement the following operations:
[0072] Performing earphone howling detection according to the collected signal of the first sensor to obtain an earphone howling detection result;
[0073] Performing headphone wearing state detection according to the collected signal of the second sensor to obtain the current headphone wearing state, and determining whether the headphone wearing state has changed according to the headphone wearing state previously detected;
[0074] The earphone howling suppression is turned on and off according to the earphone howling detection result and whether the earphone wearing state changes.
[0075] The above application Figure 5 The functions performed by the control device for earphone howling suppression disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0076] The headset can also perform Figure 1 The steps of executing the control method for suppressing earphone howling in the embodiment of the present invention are implemented, and the control method for suppressing earphone howling is implemented in the embodiment of the present invention. Figure 1 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.
[0077] The embodiment of the present application further proposes a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the control method for suppressing earphone howling is implemented as described above, and is specifically used to execute:
[0078] Performing earphone howling detection according to the collected signal of the first sensor to obtain an earphone howling detection result;
[0079] Performing headphone wearing state detection according to the collected signal of the second sensor to obtain the current headphone wearing state, and determining whether the headphone wearing state has changed according to the headphone wearing state previously detected;
[0080] The earphone howling suppression is turned on and off according to the earphone howling detection result and whether the earphone wearing state changes.
[0081] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0082] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0083] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0084] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0085] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0086] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0087] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0088] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0089] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) characterized in that it contains computer-usable program code.
[0090] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A control method for suppressing earphone howling. It is characterized in that include: Performing earphone howling detection according to the collected signal of the first sensor to obtain an earphone howling detection result; Performing headphone wearing state detection according to the collected signal of the second sensor to obtain the current headphone wearing state, and determining whether the headphone wearing state has changed according to the headphone wearing state previously detected; Controlling turning on and off of earphone howling suppression according to the earphone howling detection result and whether the earphone wearing state changes; The controlling the turning on and off of the earphone howling suppression according to the earphone howling detection result and whether the earphone wearing state changes further includes: When the wearing state of the earphone changes, if the earphone howling suppression is in the activated state, the earphone howling suppression is turned off; if the earphone howling suppression is in the disabled state, the earphone howling suppression is maintained in the disabled state; When the earphone wearing state does not change, the earphone howling suppression is maintained in an activated state or an inactivated state.
2. The method according to claim 1, It is characterized in that The first sensor is a microphone sensor, and performing headphone howling detection according to the collected signal of the first sensor to obtain the headphone howling detection result includes: Acquire a signal sequence collected by the microphone sensor; Performing fast Fourier transform on the signal sequence to obtain a frequency domain signal; Calculating a signal power spectrum according to the frequency domain signal, and determining a peak-to-average ratio according to a maximum value and an average value in the signal power spectrum; The peak-to-average ratio is compared with a first preset threshold value. If the peak-to-average ratio is greater than the first preset threshold value, it is determined that the earphone generates howling. If the peak-to-average ratio is not greater than the first preset threshold value, it is determined that the earphone does not generate howling.
3. The method according to claim 1, It is characterized in that The second sensor is a capacitive sensor and / or a light sensor, and the detecting the wearing state of the earphone according to the collected signal of the second sensor to obtain the current wearing state of the earphone includes: Smoothing the signal values collected by the capacitive sensor and / or the optical sensor; The smoothed signal value is compared with a second preset threshold value. If the smoothed signal value is greater than the second preset threshold value, the current headphone wearing state is determined to be a wearing state. If the smoothed signal value is not greater than the second preset threshold value, the current headphone wearing state is determined to be a non-wearing state.
4. The method according to claim 1, It is characterized in that The controlling the turning on and off of the earphone howling suppression according to the earphone howling detection result and whether the earphone wearing state changes comprises: When it is determined according to the earphone howling detection result that the earphone generates howling, starting the earphone howling suppression; When it is determined according to the headphone howling detection result that the headphone does not generate howling, the headphone howling suppression is maintained in an activated state or an inactivated state.
5. A control device for suppressing howling in headphones, It is characterized in that include: A first detection unit, configured to perform earphone howling detection according to the collected signal of the first sensor, and obtain an earphone howling detection result; A second detection unit is used to detect the wearing state of the earphone according to the collected signal of the second sensor, obtain the current wearing state of the earphone, and determine whether the wearing state of the earphone has changed according to the wearing state of the earphone detected previously; A control unit, configured to control turning on and off the earphone howling suppression according to the earphone howling detection result and whether the earphone wearing state changes; The control unit is specifically used for: According to the headphone wearing state detection result of the second detection unit, when it is determined that the headphone wearing state has changed, if the headphone howling suppression is in the activated state, the headphone howling suppression is turned off; if the headphone howling suppression is in the disabled state, the headphone howling suppression is maintained in the disabled state; when it is determined that the headphone wearing state has not changed, the headphone howling suppression is maintained in the activated state or the disabled state.
6. The device according to claim 5, It is characterized in that The first sensor is a microphone sensor, and the first detection unit is specifically used for: Acquire a signal sequence collected by the microphone sensor; Performing fast Fourier transform on the signal sequence to obtain a frequency domain signal; Calculating a signal power spectrum according to the frequency domain signal, and determining a peak-to-average ratio according to a maximum value and an average value in the signal power spectrum; The peak-to-average ratio is compared with a first preset threshold value. If the peak-to-average ratio is greater than the first preset threshold value, it is determined that the earphone generates howling. If the peak-to-average ratio is not greater than the first preset threshold value, it is determined that the earphone does not generate howling.
7. The device according to claim 5, It is characterized in that The second sensor is a capacitive sensor and / or a light sensor, and the second detection unit is specifically used for: Smoothing the signal values collected by the capacitive sensor and / or the optical sensor; The smoothed signal value is compared with a second preset threshold value. If the smoothed signal value is greater than the second preset threshold value, the current headphone wearing state is determined to be a wearing state. If the smoothed signal value is not greater than the second preset threshold value, the current headphone wearing state is determined to be a non-wearing state.
8. The device according to claim 5, It is characterized in that The control unit is specifically used for: According to the earphone howling detection result of the first detection unit, when it is determined that the earphone generates howling, the earphone howling suppression is started, and when it is determined that the earphone does not generate howling, the earphone howling suppression is maintained in a started state or a closed state.
9. A headset, It is characterized in that include: a first sensor, a second sensor, a memory storing computer executable instructions, and a processor, When the executable instructions are executed by the processor, the control method for suppressing earphone howling according to any one of claims 1 to 4 is implemented.
Citation Information
Cited By
Active noise reduction method, system and device
CN120032619A
