Active noise reduction method and device for open earphone, electronic equipment and storage medium
By using an open-back headphone active noise cancellation device, a fast-response noise processing loop is constructed using an input compressor and a multi-stage gain module. This solves the problem of slow response to sudden noise in traditional active noise cancellation technology, and achieves effective suppression of sudden noise and pure audio output.
Patent Information
- Application Number
- CN202511583779.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-02-03
AI Technical Summary
Existing active noise cancellation technologies struggle to respond quickly and effectively eliminate sudden noises, especially in environments with strong low-frequency noise caused by vehicle vibrations. Traditional software systems suffer from significant delays and are unable to process noises in a timely manner.
An open-back headphone active noise cancellation device is adopted. It collects ambient sound signals through a microphone, performs dynamic noise analysis using an input compressor, constructs a fast feedforward gain correction loop, and combines a noise cancellation filter and a multi-stage gain module to achieve rapid response and fine filtering of sudden noise.
It achieves rapid and effective suppression of sudden noise, improves the adaptability and robustness of headphones in complex acoustic environments, ensures the purity of output audio and listening comfort, and avoids signal saturation and distortion.
Smart Images

Figure CN121462932A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of headphone noise cancellation technology, and in particular to an active noise cancellation method, device, electronic device and storage medium for open-back headphones. Background Technology
[0002] Active noise cancellation (ANC) is a noise control technology based on the principle of sound wave inverse cancellation. While ANC can process noise, its software latency is relatively high, preventing it from quickly eliminating sudden noises. These sudden noises often occur in cars; the undulations of the road cause vehicle vibrations, generating very strong low-frequency noise, which is a major source of noise in headphones. Therefore, how to actively cancel sudden noises in headphones has become a pressing technical problem to be solved. Summary of the Invention
[0003] The main objective of this application is to provide an active noise cancellation method, device, electronic device, and storage medium for open-back headphones, which aims to actively cancel sudden noises on headphones.
[0004] To achieve the above objectives, a first aspect of this application provides an active noise cancellation device for open-back headphones, the active noise cancellation device for open-back headphones comprising: Microphones are used to collect ambient sound signals; An input compressor, connected to the microphone, is used to perform noise dynamic analysis on the ambient sound signal to obtain primary gain parameters. A first gain module, connected to the microphone and the input compressor, is used to perform first gain processing on the ambient sound signal based on the primary gain parameters to obtain a primary noise reduction frequency. A noise reduction filter, connected to the first gain module, is used to filter the primary noise reduction frequency to obtain an advanced noise reduction frequency. The second gain module is connected to the noise reduction filter and is used to perform second gain processing on the advanced noise reduction frequency to obtain the target output audio. The sound output module is connected to the second gain module and is used to output the target output audio.
[0005] In some embodiments, the open-back headphone active noise cancellation device further includes: An output compressor is provided, with its input connected to the noise reduction filter and its output connected to the second gain module. The output compressor is used to perform gain dynamic analysis on the advanced noise-reduced frequency to obtain gain correction parameters. The second gain module then performs a second gain processing on the advanced noise-reduced frequency based on the gain correction parameters to obtain the target output audio.
[0006] In some embodiments, the open-back headphone active noise cancellation device further includes: A frequency band filter, the input of which is connected to the noise reduction filter, and the output of which is connected to the output compressor, is used to perform frequency band filtering on the advanced noise reduction frequency, determine the target processing frequency band, so that the output compressor can perform gain dynamic analysis on the target processing frequency band of the advanced noise reduction frequency to obtain the gain correction parameter.
[0007] In some embodiments, the open-back headphone active noise cancellation device further includes: A noise monitoring module, connected to the microphone, is used to analyze the noise status of the ambient sound signal to obtain noise status information. A first parameter register, connected to the input compressor, is used to store the first compressor parameters required by the input compressor; A parameter management module is provided, with its input connected to the noise monitoring module and its output connected to the noise reduction filter and the first parameter register. The parameter management module is used to output filter parameters and the first compressor parameters based on the noise status information. The filter parameters are transmitted to the noise reduction filter for filtering to obtain an advanced noise-reduced frequency.
[0008] In some embodiments, the open-back headphone active noise cancellation device further includes: An output compressor, the input of which is connected to the noise reduction filter, and the output of which is connected to the second gain module, are used to perform gain dynamic analysis on the advanced noise-reduced frequency to obtain gain correction parameters. The second gain module then performs a second gain processing on the advanced noise-reduced frequency based on these parameters to obtain the target output audio. The second parameter register is connected to the output compressor and is used to store the second compressor parameters required by the output compressor; wherein, the output terminal of the parameter management module is connected to the second parameter register, and the parameter management module also outputs the second compressor parameters based on the noise status information.
[0009] To achieve the above objectives, a second aspect of this application proposes an active noise cancellation method for open-back headphones, the method comprising: The microphone collects ambient sound signals; The input compressor monitors the ambient sound signal; In response to a change in the ambient sound signal, the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameter; The first gain module performs a first gain processing on the ambient sound signal based on the primary gain parameters to obtain the primary noise reduction frequency; The noise reduction filter filters the primary noise reduction frequency to obtain the advanced noise reduction frequency; The second gain module performs a second gain processing on the advanced noise-reduced frequency to obtain the target output audio; The sound output module outputs the target audio.
[0010] In some embodiments, the open-back headphone active noise cancellation device further includes a noise monitoring module, a first parameter register, and a parameter management module. After the input compressor performs noise dynamic analysis on the ambient sound signal in response to a change in the ambient sound signal to obtain the primary gain parameter, the device further includes: The noise monitoring module performs noise state analysis on the environmental sound signal to obtain noise state information; In response to the noise state information meeting preset working environment change conditions, the parameter management module determines filter parameters and a first compressor parameter matching the filter parameters based on the noise state information. The noise reduction filter is updated based on the filter parameters; The data stored in the first parameter register is updated based on the first compressor parameters, so that the input compressor updates the primary gain parameter.
[0011] In some embodiments, the open-back headphone active noise cancellation device further includes a second parameter register, and the parameter management module determines filter parameters and first compressor parameters based on the noise state information, including: The parameter management module determines the parameters of the second compressor based on the noise status information; The data stored in the second parameter register is updated based on the second compressor parameters so that the output compressor updates the gain correction parameters.
[0012] In some embodiments, the input compressor is configured with corresponding compression trigger conditions. In response to a change in the ambient sound signal, the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameter, including: In response to the ambient sound signal satisfying the compression trigger condition, the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameter; After updating the data stored in the first parameter register based on the first compressor parameters to update the primary gain parameter of the input compressor, the method further includes: The compression triggering condition is updated based on the first compressor parameters.
[0013] In some embodiments, after the input compressor performs noise dynamic analysis on the ambient sound signal in response to a change in the ambient sound signal to obtain the primary gain parameter, the method further includes: The input compressor continuously provides the primary gain parameter to the first gain module based on a preset hold time; After the hold time, the input compressor gradually reduces the primary gain parameter based on a preset release time.
[0014] To achieve the above objectives, a third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the open-back headphone active noise cancellation method described in the first aspect.
[0015] To achieve the above objectives, a fourth aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the active noise cancellation method for open-back headphones described in the first aspect.
[0016] The active noise cancellation method, device, electronic device, and storage medium for open-back headphones proposed in this application collect ambient sound signals through a microphone and set an input compressor before the first gain module. The input compressor performs noise dynamic analysis on the ambient sound signal to obtain primary gain parameters. The first gain module then performs first gain processing on the ambient sound signal based on the primary gain parameters to obtain a primary noise-canceling frequency. The primary noise-canceling frequency is then filtered by a noise-canceling filter to obtain an advanced noise-canceling frequency. The advanced noise-canceling frequency is then subjected to second gain processing by a second gain module to obtain the target output audio. Finally, the target output audio is output through a sound output module. Therefore, this application constructs a fast, real-time feedforward gain correction loop through the input compressor as the first line of defense against sudden noise. Then, a more refined filtering process based on the principle of sound wave inverse cancellation is performed through the noise-canceling filter, resulting in a cleaner target output audio that effectively suppresses sudden noise. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the structure of the open-back headphone active noise cancellation device provided in the embodiments of this application; Figure 2 This is another structural schematic diagram of the open-back headphone active noise cancellation device provided in the embodiments of this application; Figure 3 This is another structural schematic diagram of the open-back headphone active noise cancellation device provided in the embodiments of this application; Figure 4 This is another structural schematic diagram of the open-back headphone active noise cancellation device provided in the embodiments of this application; Figure 5 This is another structural schematic diagram of the open-back headphone active noise cancellation device provided in the embodiments of this application; Figure 6 This is a flowchart of the active noise cancellation method for open-back headphones provided in the embodiments of this application; Figure 7 yes Figure 6 The flowchart following step S103; Figure 8 yes Figure 7 The flowchart of step S202 in the text; Figure 9 yes Figure 6 Another flowchart following step S103; Figure 10 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0019] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0021] Noise-canceling headphones have wide applications in various scenarios. When traveling on public transportation such as subways and buses, the surrounding environment is often noisy. Noise-canceling headphones can effectively reduce engine noise, track friction noise, and crowd noise, allowing users to quietly enjoy music, listen to audiobooks, or make phone calls, improving travel comfort. Open-plan office and study environments may contain various interfering sounds, such as colleagues talking, keyboard typing, and air conditioning operation. Wearing noise-canceling headphones can help users better focus on work tasks and improve work efficiency. At the same time, the noise-canceling function can reduce the impact of ambient noise on call quality.
[0022] Active noise cancellation (ANC) is a noise control technology based on the principle of sound wave inverse cancellation. While ANC can process noise, its software latency is relatively high, preventing it from quickly eliminating sudden noises. These sudden noises often occur in cars; the undulations of the road cause vehicle vibrations, generating very strong low-frequency noise, which is a major source of noise in headphones. Therefore, how to actively cancel sudden noises in headphones has become a pressing technical problem to be solved.
[0023] Based on this, embodiments of this application provide an active noise cancellation method, device, electronic device, and storage medium for open-back headphones, which aim to actively cancel sudden noise in headphones.
[0024] The active noise cancellation method, device, electronic device and storage medium for open-back headphones provided in this application are specifically described through the following embodiments. First, the active noise cancellation device for open-back headphones in this application embodiment is described.
[0025] Figure 1 This is a schematic diagram of a structure of an open-back headphone active noise cancellation device 100 provided in an embodiment of this application. The open-back headphone active noise cancellation device 100 includes: Microphone 101 is used to collect ambient sound signals; The input compressor 102 is connected to the microphone 101 and is used to perform noise dynamic analysis on the ambient sound signal to obtain the primary gain parameters. The first gain module 103 is connected to the microphone 101 and the input compressor 102, and is used to perform first gain processing on the ambient sound signal based on the primary gain parameters to obtain the primary noise reduction frequency. The noise reduction filter 104 is connected to the first gain module 103 and is used to filter the primary noise reduction frequency to obtain the advanced noise reduction frequency. The second gain module 105 is connected to the noise reduction filter 104 and is used to perform second gain processing on the advanced noise reduction frequency to obtain the target output audio. The sound output module 106 is connected to the second gain module 105 and is used to output the target audio.
[0026] The open-back active noise cancellation device 100 provided in this application embodiment constructs a feedforward fast response loop through an input compressor 102 to optimize the processing capability for dynamic environmental noise. The microphone 101 first collects the ambient sound signal. When sudden noise occurs in the environment, the input compressor 102 can react quickly. This is because the input compressor 102 is a hardware unit that can capture drastic changes in the ambient sound signal in a very short time. Essentially, it is a fast level monitoring and gain calculation process that can quickly generate primary gain parameters. This response speed is much faster than traditional software processing flows that rely on complex algorithms. It does not require high-latency components such as data buffering and processor scheduling in the software system and can react to sudden noise.
[0027] The input compressor 102 can compress the ambient sound signal collected by the microphone 101. When there is sudden noise in the ambient sound signal, or when the volume amplitude of the ambient sound signal is too large, the input compressor 102 can calculate the root mean square or peak amplitude of the ambient sound signal to obtain the primary gain parameter, so as to set the first gain module 103. This allows the first gain module 103 to reduce the input amplitude of the ambient sound signal and prevent excessive audio signals from entering the noise reduction filter 104 and causing signal saturation.
[0028] The first gain module 103 performs first gain processing on the ambient sound signal based on the primary gain parameters, thereby reducing the impact of sudden noise and preventing problems in the filtering process of the noise reduction filter 104. The noise reduction filter 104 can more stably and efficiently execute its complex sound wave inverse cancellation algorithm for deep filtering and generate advanced noise-reduced audio. Finally, this advanced noise-reduced audio undergoes final volume adjustment by the second gain module 105 to form the target output audio, which is then presented to the user through the sound output module 106.
[0029] This application embodiment constructs a two-level processing architecture and uses the input compressor 102 to achieve preemptive, low-latency intervention on sudden noise, thereby improving the adaptability and robustness to complex acoustic environments, and thus enabling active noise cancellation on headphones for sudden noise.
[0030] Reference Figure 2In some embodiments, the open-back headphone active noise cancellation device 100 further includes an output compressor 107. The input of the output compressor 107 is connected to the noise cancellation filter 104, and the output of the output compressor 107 is connected to a second gain module 105 for performing gain dynamic analysis on the advanced noise-canceling frequency to obtain gain correction parameters, so that the second gain module 105 performs second gain processing on the advanced noise-canceling frequency based on the gain correction parameters to obtain the target output audio.
[0031] The output compressor 107 and the second gain module 105 form another set of dynamic control loops, which are used to perform final dynamic range regulation and output volume limitation on the advanced noise reduction frequency after filtering, so as to ensure the listening comfort and safety of the target output audio.
[0032] In some headphone devices, the output compressor 107 is particularly needed to adjust the audio output before the target audio output. For example, open-back headphones, whose sound propagation is not limited by the earcups and typically do not require in-ear wearing, require a higher volume to drive the speakers due to the greater distance between the speakers and the eardrum. This means that the active noise cancellation system uses a higher gain compared to traditional in-ear or over-ear headphones. For high-gain systems, if the microphone receives significant noise, saturation distortion is very likely to occur at the output of the audio module.
[0033] Therefore, the output compressor 107 can analyze the data after the noise reduction filter 104. If the data of the advanced noise reduction frequency output exceeds the set threshold in some frequency bands or across the entire frequency band, the second gain module 105 can perform a second gain processing on the advanced noise reduction frequency based on the gain correction parameter by setting the gain correction parameter, thereby further compressing the advanced noise reduction frequency and preventing saturation distortion when the sound output module outputs the signal.
[0034] Reference Figure 3 In some embodiments, the open-back headphone active noise cancellation device 100 further includes a frequency band filter 108. The input of the frequency band filter 108 is connected to the noise cancellation filter 104, and the output of the frequency band filter is connected to the output compressor 107. It is used to perform frequency band filtering processing on the advanced noise cancellation frequency and determine the target processing frequency band so that the output compressor can perform gain dynamic analysis on the target processing frequency band of the advanced noise cancellation frequency and obtain gain correction parameters.
[0035] After receiving the advanced noise-reduced frequency signal processed by the noise reduction filter, the frequency band filter 108 does not directly process the entire frequency band signal uniformly, but performs key frequency band filtering processing. Its purpose is to accurately identify and separate the target processing frequency band that needs to be dynamically controlled.
[0036] Especially in high-gain headphone devices, distortion can easily occur in certain frequency bands, requiring extra attention and processing. For example, open-back headphones are prone to distortion in frequency bands below 100Hz. Therefore, optionally, a frequency band filter 108 can be set before the output compressor 107 to filter out unwanted frequency bands or enhance the desired frequency bands. By adjusting the processing range of the output compressor 107 and filtering out unwanted frequency bands, the output compressor 107 can be made to only affect the desired frequency bands.
[0037] In some embodiments, the band filter 108 can also act as a trigger, and the output compressor 107 will only operate and provide gain correction parameters to the second gain module 105 when the output advanced noise reduction frequency meets specific band conditions.
[0038] Reference Figure 4 In some embodiments, the open-back headphone active noise cancellation device 100 further includes: The noise monitoring module 201 is connected to the microphone and is used to analyze the noise status of the ambient sound signal to obtain noise status information. The first parameter register 202 is connected to the input compressor and is used to store the first compressor parameters required by the input compressor. The parameter management module 203 has its input end connected to the noise monitoring module and its output end connected to the noise reduction filter and the first parameter register. It is used to output filter parameters and first compressor parameters that match the filter parameters based on the noise state information. The filter parameters will be transmitted to the noise reduction filter for filtering to obtain the advanced noise reduction frequency.
[0039] The noise monitoring module 201 and the parameter management module 203 can be software modules integrated on the same central processing unit, or they can be set on different central processing units, or a specially set processor can be used to implement the functions of the noise monitoring module 201 or the parameter management module 203.
[0040] The noise monitoring module 201 is another sensing front-end of the entire open-back headphone active noise cancellation device. Connected to the microphone 101, it continuously and deeply analyzes the ambient sound signals to extract noise state information that reflects the acoustic characteristics of the surrounding environment of the open-back headphone active noise cancellation device. The noise state information includes multiple dimensions of acoustic information, such as noise volume, noise spectrum, noise frequency, etc.
[0041] The noise monitoring module 201 can analyze the spectral components of noise in the ambient sound signal and the duration of each noise spectrum to determine whether the noise in the current ambient sound signal is continuous noise or sudden noise.
[0042] The parameter management module 203, which is connected to the noise monitoring module 201, can retrieve and output a set of optimal, mutually matched filter parameters and first compressor parameters from a preset parameter library based on noise status information.
[0043] The filter parameters are passed to the noise reduction filter 104 to reconstruct its noise reduction characteristics to accurately match the spectrum of the current ambient noise. Meanwhile, the first compressor parameters are passed to the first parameter register 202 to adjust the input compressor 102 to match the characteristics of the current ambient noise, thereby obtaining primary gain parameters that better match the current ambient noise.
[0044] Different noise environments have different noise characteristics. Different filter parameters can be designed for scenarios such as automobiles and airplanes to ensure that the final output signal is not distorted while minimizing the impact of environmental noise.
[0045] This application employs a combination of hardware and software solutions. When noise appears in the ambient sound signal, the input compressor 102 first performs dynamic noise analysis on the ambient sound signal based on the default compressor parameters to obtain primary gain parameters, thereby quickly reducing the signal gain to avoid noise generation. Then, the noise monitoring module 201 further analyzes the noise in the ambient sound signal to obtain noise status information. Finally, the parameter management module 203 actively updates and adjusts the parameters of the input compressor 102 and the noise reduction filter 104 to better adapt to the noise in the ambient sound signal and perform better filtering.
[0046] The noise reduction effect of a noise reduction filter on the input signal is limited. Therefore, in order to better filter environmental noise, it can be used in conjunction with an input compressor to process the received environmental sound signal, and timely switching of the appropriate filter parameters and the first compressor parameters can achieve better noise reduction results.
[0047] Reference Figure 5 In some embodiments, the open-back headphone active noise cancellation device 100 further includes a corresponding second parameter register 204 configured for the output compressor 107. The second parameter register 204 is connected to the output compressor 107 and is used to store the second compressor parameters required by the output compressor 107. The output of the parameter management module 203 is connected to the second parameter register 204, and the parameter management module 203 also outputs the second compressor parameters based on noise status information.
[0048] The second parameter register 204 receives the second compressor parameters issued by the parameter management module 203 to ensure that the output compressor 107 can perform its gain dynamic analysis according to the characteristics of the current acoustic environment. This limits the signal output of the target output audio and avoids excessive signal strength leading to distortion.
[0049] The output compressor 107 is mainly used to avoid output signal distortion, which is different from the task of the noise reduction filter 104. Therefore, when the parameter management module 203 transmits the second compressor parameters to the second parameter register 204, the second compressor parameters do not need to correspond and match with the filter parameters. The parameters of the output compressor 107 do not need to follow the parameter transformation of the noise reduction filter 104.
[0050] This application also provides an active noise cancellation method for open-back headphones, which is applied to the active noise cancellation device for open-back headphones provided in the above embodiments.
[0051] In some embodiments, the terminal may be a smartphone, tablet computer, laptop computer, desktop computer, etc.; the software may be an application that implements an active noise cancellation method for open-back headphones, etc., but is not limited to the above forms.
[0052] Figure 6 This is an optional flowchart of the active noise cancellation method for open-back headphones provided in the embodiments of this application. Figure 6 The method may include, but is not limited to, steps S101 to S107.
[0053] Step S101: The microphone collects ambient sound signals; Step S102: Input compressor to monitor ambient sound signals; Step S103: In response to changes in the ambient sound signal, the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameters; Step S104: The first gain module performs first gain processing on the ambient sound signal based on the primary gain parameters to obtain the primary noise reduction frequency. Step S105: The noise reduction filter performs filtering on the primary noise reduction frequency to obtain the advanced noise reduction frequency. Step S106: The second gain module performs second gain processing on the advanced noise reduction frequency to obtain the target output audio; Step S107: The sound output module outputs the target audio.
[0054] In the embodiments of this application, steps S101 to S107 involve acquiring ambient sound signals via a microphone and setting an input compressor before the first gain module. The input compressor performs noise dynamic analysis on the ambient sound signals to obtain primary gain parameters. The first gain module then performs first gain processing on the ambient sound signals based on these primary gain parameters to obtain a primary noise-reduced frequency. This primary noise-reduced frequency is then filtered by a noise-reducing filter to obtain an advanced noise-reduced frequency. Finally, the advanced noise-reduced frequency undergoes second gain processing by a second gain module to obtain the target output audio. The target output audio is then output through a sound output module. Thus, this application constructs a fast, real-time feedforward gain correction loop using an input compressor as the first line of defense against sudden noise. Then, a more refined filtering process based on the principle of sound wave inverse cancellation is performed using a noise-reducing filter, resulting in a cleaner target output audio that effectively suppresses sudden noise.
[0055] In step S101 of some embodiments, the ambient sound signal is an electrical analog signal of various noises in the current environment collected by a microphone.
[0056] In steps S102 to S103 of some embodiments, the input compressor is a compression and limiting unit with a level detection window. It compares the ambient sound signal with a preset threshold in real time. Once a sudden pulse or continuous energy jump is detected, the input compressor immediately starts noise dynamic analysis and calculates a gain adjustment control parameter, namely the primary gain parameter, which will be used to guide the subsequent first gain processing.
[0057] In step S104 of some embodiments, the first gain module performs first gain processing on the original ambient sound signal based on the received primary gain parameters to obtain a primary noise-reduced frequency. The first gain module is a processing unit capable of dynamically adjusting the signal amplification or attenuation factor according to external instructions. The primary noise-reduced frequency is a preprocessed audio signal that has undergone dynamic suppression and whose instantaneous peak values are effectively controlled.
[0058] In step S105 of some embodiments, the primary noise-reduced frequency is fed into a noise-reducing filter for deep filtering. The noise-reducing filter is the core functional unit for implementing active noise reduction. It filters out continuous noise in the audio signal through the principle of sound wave phase cancellation, thereby obtaining an advanced noise-reduced frequency with a cleaner spectrum.
[0059] In step S106 of some embodiments, in order to ensure that the final audio volume output to the user is moderate and stable, the second gain module performs second gain processing on the advanced noise reduction frequency to form the final target output audio.
[0060] In step S107 of some embodiments, the sound output module converts the target output audio electrical signal into sound waves that the user can hear. The sound output module typically refers to the speaker or driver unit in headphones and is the endpoint of the entire processing flow.
[0061] Please see Figure 7 In some embodiments, the open-back headphone active noise cancellation device is further provided with a noise monitoring module, a first parameter register, and a parameter management module. After step S103, steps S201 to S204 may be included, but are not limited to: Step S201: The noise monitoring module performs noise state analysis on the ambient sound signal to obtain noise state information; In step S202, in response to the noise state information meeting the preset working environment change conditions, the parameter management module determines the filter parameters and the first compressor parameters that match the filter parameters based on the noise state information. Step S203: Update the noise reduction filter based on the filter parameters; Step S204: Update the data stored in the first parameter register based on the first compressor parameters so that the input compressor updates the primary gain parameters.
[0062] In step S201 of some embodiments, the noise monitoring module performs noise state analysis on the ambient sound signal. The noise monitoring module is a dedicated software analysis unit used to analyze the inherent characteristics of the ambient sound signal, identify and classify the type of current ambient noise, such as its spectral distribution and temporal stability, to obtain noise state information. Noise state information is data that characterizes the current acoustic environment category.
[0063] In step S202 of some embodiments, the preset working environment change condition is a predefined set of logic rules used to determine the significance of the environmental change, that is, to determine whether the working environment of the headphones has changed.
[0064] When the noise status information meets the preset working environment change conditions, the parameter management module will determine and output a set of optimal and mutually matching filter parameters and first compressor parameters from multiple configuration schemes stored in its internal storage, based on the noise status information.
[0065] In step S203 of some embodiments, filter parameters are passed to the noise reduction filter to reconstruct its noise reduction characteristics to match the spectrum of the current ambient noise. Since different noise environments have different noise characteristics, different filter parameters can be designed for scenarios such as automobiles and airplanes to ensure that the final output target reduces the impact of ambient noise as much as possible without signal distortion.
[0066] In step S204 of some embodiments, the first compressor parameters are passed to the first parameter register to adjust the input compressor to match the characteristics of the current ambient noise, thereby obtaining a primary gain parameter that better matches the current ambient noise.
[0067] Through steps S201 to S204, this application adopts a combination of hardware and software solutions. When noise appears in the ambient sound signal, the input compressor first performs dynamic noise analysis on the ambient sound signal based on the default compressor parameters to obtain primary gain parameters, so as to quickly reduce the signal gain and avoid the generation of noise. Then, the noise monitoring module further analyzes the noise in the ambient sound signal to obtain noise status information. Finally, the parameter management module actively updates and adjusts the parameters of the input compressor and the noise reduction filter to better adapt to the noise in the ambient sound signal and achieve a better noise reduction effect.
[0068] In some embodiments, the input compressor is configured with corresponding compression triggering conditions, and step S103 may include, but is not limited to, the following: In response to the ambient sound signal meeting the compression trigger condition, the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameters; The input compressor performs dynamic noise analysis on the ambient sound signal based on the configured compression trigger conditions. The compression trigger conditions are logical rules or physical thresholds used to activate the input compressor. The compression trigger conditions can be a simple threshold, that is, it is only triggered when the energy of the ambient sound signal exceeds a certain decibel value, or it can be a more complex condition, such as the rate of change of audio signal energy per unit time, to more accurately identify sudden noise events.
[0069] More importantly, the compression triggering condition is not static but can be dynamically adjusted. Following step S203, the method further includes updating the compression triggering condition based on the first compressor parameters. The parameter management module provides the first compressor parameters, which include not only parameters defining the operation of the input compressor but also compression triggering conditions corresponding to the operating parameters. Therefore, this embodiment not only changes the primary gain parameter of the input compressor's output but also changes the activation condition of the input compressor.
[0070] Please see Figure 8 In some embodiments, the open-back headphone active noise cancellation device further includes a second parameter register, and step S202 may include, but is not limited to, steps S301 to S302: Step S301: The parameter management module determines the parameters of the second compressor based on the noise status information; Step S302: Update the data stored in the second parameter register based on the second compressor parameters so that the output compressor updates the gain correction parameters; In step S301 of some embodiments, while determining the filter parameters and the first compressor parameters based on the noise state information, the parameter management module also simultaneously determines the second compressor parameters adapted to the current acoustic environment. The second compressor parameters are used to define the operating characteristics of the output compressor, indicating how to perform final adjustments to the advanced noise reduction frequencies.
[0071] In step S302 of some embodiments, the second compressor parameters are used to update the data stored in the second parameter register. The second parameter register is a dedicated hardware storage unit that provides the rule parameters required for the operation of the output compressor. By updating the data in the second parameter register, the operating logic of the output compressor can be changed, enabling the output compressor to update the way it generates gain correction parameters, thereby making a more refined and appropriate adjustment to the final listening experience.
[0072] On some headphone devices that use high gain, such as open-back headphones, distortion is prone to occur in certain frequency bands. In this case, setting an output compressor can better adjust the advanced noise reduction frequencies after filtering, thereby avoiding distortion when outputting audio.
[0073] Please see Figure 9 In some embodiments, step S103 may be followed by steps S401 to S402, including but not limited to: Step S401: The input compressor continuously provides primary gain parameters to the first gain module based on a preset hold time; In step S402, after the hold time, the input compressor gradually reduces the primary gain parameter based on the preset release time. In step S401 of some embodiments, after generating the primary gain parameter to suppress noise spikes, the input compressor continuously provides the primary gain parameter to the first gain module based on a preset hold time. The preset hold time is a pre-configured, fixed time period. The purpose is to prevent the input compressor from producing an unstable response to continuous or rapidly fluctuating noise signals within a short period. By forcibly maintaining the gain processing state of the first gain module for a short period after a noise event is triggered, it can stably cover continuously changing noise, thereby outputting a more dynamically consistent primary noise-canceling frequency.
[0074] In step S402 of some embodiments, the input compressor gradually reduces the suppression strength of the primary gain parameter based on a preset release time. The preset release time is another pre-configured key time parameter that defines the time required for the gain to recover from its maximum suppression state to its normal state. This ensures that the gain recovery is not an instantaneous abrupt process, but rather a smooth and gradual transition within the release time. This increases the user's listening comfort, effectively avoiding perceptible volume jumps caused by sudden gain recovery, making the entire dynamic suppression and recovery process sound more natural and transparent.
[0075] In some embodiments, while the input compressor continuously provides primary gain parameters to the first gain module based on a preset hold time, the aforementioned noise monitoring module can be used to analyze the noise state of the ambient sound signal, obtain noise state information, and then, in response to the noise state information meeting preset working environment change conditions, the parameter management module determines filter parameters and first compressor parameters matching the filter parameters based on the noise state information, and updates the data stored in the first parameter register based on the first compressor parameters, so that the input compressor updates the primary gain parameters and the noise reduction filter updates based on the filter parameters. After updating the data in the first parameter register and the noise reduction filter, the hold time can be stopped, and the primary gain parameters of the first gain module can be gradually stopped by releasing the time, and the ambient sound signal can be monitored by providing the updated primary gain parameters through the input compressor.
[0076] Through steps S401 to S402, the stability and effectiveness of the compression effect are ensured by setting the holding time, while the release time ensures the smoothness and imperceptibility of the recovery process.
[0077] In a comprehensive embodiment, a microphone acquires ambient sound signals, an input compressor monitors these signals, and in response to changes in the ambient sound signals, the input compressor performs noise dynamic analysis to obtain primary gain parameters. A first gain module performs first gain processing on the ambient sound signals based on these primary gain parameters to obtain primary noise-reduced frequencies. A noise reduction filter performs filtering processing on the primary noise-reduced frequencies to obtain advanced noise-reduced frequencies. A frequency band filter performs frequency band filtering processing on the advanced noise-reduced frequencies to determine the target processing frequency band. An output compressor performs gain dynamic analysis on the target processing frequency band of the advanced noise-reduced frequencies to obtain gain correction parameters. A second gain module performs second gain processing on the advanced noise-reduced frequencies based on these gain correction parameters to obtain the target output audio. A sound output module outputs the target output audio.
[0078] After the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameters, it continuously provides the primary gain parameters to the first gain module based on a preset hold time. During this hold time, the noise monitoring module analyzes the noise state of the ambient sound signal to obtain noise state information. In response to the noise state information meeting preset working environment change conditions, the parameter management module determines the filter parameters and the first compressor parameters matching the filter parameters based on the noise state information. It then updates the data stored in the first parameter register based on the first compressor parameters, causing the input compressor to update the primary gain parameters and the noise reduction filter based on the filter parameters. After the input compressor updates the primary gain parameters and the noise reduction filter based on the filter parameters, the hold time can be stopped, and the input compressor gradually reduces the primary gain parameters based on a preset release time.
[0079] This application embodiment collects ambient sound signals via a microphone and sets up an input compressor before the first gain module. The input compressor performs noise dynamic analysis on the ambient sound signal to obtain primary gain parameters. The first gain module then performs first gain processing on the ambient sound signal based on these primary gain parameters to obtain a primary noise-reduced frequency. This primary noise-reduced frequency is then filtered by a noise-reducing filter to obtain an advanced noise-reduced frequency. A second gain module then performs second gain processing on the advanced noise-reduced frequency to obtain the target output audio. Finally, the target output audio is output through a sound output module. Therefore, this application constructs a fast, real-time feedforward gain correction loop through the input compressor as the first line of defense against sudden noise. Then, a more refined filtering process based on the principle of sound wave inverse cancellation is performed through the noise-reducing filter, resulting in a cleaner target output audio that effectively suppresses sudden noise. The system employs a combination of hardware and software solutions. When noise is present in the ambient sound signal, the input compressor first performs dynamic noise analysis on the ambient sound signal based on the default compressor parameters to obtain primary gain parameters, which quickly reduce the signal gain to avoid noise generation. Then, the noise monitoring module further analyzes the noise in the ambient sound signal to obtain noise status information. Finally, the parameter management module actively updates and adjusts the parameters of the input compressor and noise reduction filter to better adapt to the noise in the ambient sound signal and achieve better noise reduction effect.
[0080] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described active noise cancellation method for open-back headphones. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0081] Please see Figure 10 , Figure 10The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 1001 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 1002 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 1002 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1002 and is called and executed by the processor 1001 using the open-back headphone active noise cancellation method of the embodiments of this application. Input / output interface 1003 is used to implement information input and output; The communication interface 1004 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 1005 transmits information between various components of the device (e.g., processor 1001, memory 1002, input / output interface 1003, and communication interface 1004); The processor 1001, memory 1002, input / output interface 1003 and communication interface 1004 are connected to each other within the device via bus 1005.
[0082] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described active noise cancellation method for open-back headphones.
[0083] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0084] The active noise cancellation method, apparatus, electronic device, and storage medium for open-back headphones provided in this application collect ambient sound signals through a microphone. An input compressor is placed before the first gain module. The input compressor performs noise dynamic analysis on the ambient sound signal to obtain primary gain parameters. The first gain module then performs first gain processing on the ambient sound signal based on the primary gain parameters to obtain a primary noise-canceling frequency. The primary noise-canceling frequency is then filtered by a noise-canceling filter to obtain an advanced noise-canceling frequency. The advanced noise-canceling frequency is then subjected to second gain processing by a second gain module to obtain the target output audio. Finally, the target output audio is output through a sound output module. Therefore, this application constructs a fast, real-time feedforward gain correction loop through the input compressor as the first line of defense against sudden noise. Then, a more refined filtering process based on the principle of sound wave inverse cancellation is performed through the noise-canceling filter, thereby obtaining a purer target output audio that effectively suppresses sudden noise.
[0085] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0086] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0087] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0088] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0089] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0090] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0091] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. The coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, or indirect coupling or communication connection between the apparatus or units, and may be electrical, mechanical, or other forms.
[0092] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0093] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0094] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0095] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. An active noise cancellation device for open-back headphones, characterized in that, The active noise cancellation device for the open-back headphones includes: Microphones are used to collect ambient sound signals; An input compressor, connected to the microphone, is used to perform noise dynamic analysis on the ambient sound signal to obtain primary gain parameters. A first gain module, connected to the microphone and the input compressor, is used to perform first gain processing on the ambient sound signal based on the primary gain parameters to obtain a primary noise reduction frequency. A noise reduction filter, connected to the first gain module, is used to filter the primary noise reduction frequency to obtain an advanced noise reduction frequency. The second gain module is connected to the noise reduction filter and is used to perform second gain processing on the advanced noise reduction frequency to obtain the target output audio. The sound output module is connected to the second gain module and is used to output the target output audio.
2. The apparatus according to claim 1, characterized in that, The active noise cancellation device for the open-back headphones also includes: An output compressor is provided, with its input connected to the noise reduction filter and its output connected to the second gain module. The output compressor is used to perform gain dynamic analysis on the advanced noise-reduced frequency to obtain gain correction parameters. The second gain module then performs a second gain processing on the advanced noise-reduced frequency based on the gain correction parameters to obtain the target output audio.
3. The apparatus according to claim 2, characterized in that, The active noise cancellation device for the open-back headphones also includes: A frequency band filter, the input of which is connected to the noise reduction filter, and the output of which is connected to the output compressor, is used to perform frequency band filtering on the advanced noise reduction frequency, determine the target processing frequency band, so that the output compressor can perform gain dynamic analysis on the target processing frequency band of the advanced noise reduction frequency to obtain the gain correction parameter.
4. The apparatus according to claim 1, characterized in that, The active noise cancellation device for the open-back headphones also includes: A noise monitoring module, connected to the microphone, is used to analyze the noise status of the ambient sound signal to obtain noise status information. A first parameter register, connected to the input compressor, is used to store the first compressor parameters required by the input compressor; A parameter management module is provided, with its input connected to the noise monitoring module and its output connected to the noise reduction filter and the first parameter register. The parameter management module is used to output filter parameters and first compressor parameters matching the filter parameters based on the noise state information. The filter parameters are then transmitted to the noise reduction filter for filtering to obtain an advanced noise-reduced frequency.
5. The apparatus according to claim 4, characterized in that, The active noise cancellation device for the open-back headphones also includes: An output compressor, the input of which is connected to the noise reduction filter, and the output of which is connected to the second gain module, are used to perform gain dynamic analysis on the advanced noise-reduced frequency to obtain gain correction parameters. The second gain module then performs a second gain processing on the advanced noise-reduced frequency based on these parameters to obtain the target output audio. The second parameter register is connected to the output compressor and is used to store the second compressor parameters required by the output compressor; wherein, the output terminal of the parameter management module is connected to the second parameter register, and the parameter management module also outputs the second compressor parameters based on the noise status information.
6. A method for active noise cancellation in open-back headphones, characterized in that, The method applied to the open-back headphone active noise cancellation device according to any one of claims 1 to 5, the method comprising: The microphone collects ambient sound signals; The input compressor monitors the ambient sound signal; In response to a change in the ambient sound signal, the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameter; The first gain module performs a first gain processing on the ambient sound signal based on the primary gain parameters to obtain the primary noise reduction frequency; The noise reduction filter filters the primary noise reduction frequency to obtain the advanced noise reduction frequency; The second gain module performs a second gain processing on the advanced noise-reduced frequency to obtain the target output audio; The sound output module outputs the target audio.
7. The method according to claim 6, characterized in that, The open-back headphone active noise cancellation device further includes a noise monitoring module, a first parameter register, and a parameter management module. After the input compressor performs noise dynamic analysis on the ambient sound signal in response to a change in the ambient sound signal to obtain the primary gain parameter, it further includes: The noise monitoring module performs noise state analysis on the environmental sound signal to obtain noise state information; In response to the noise state information meeting preset working environment change conditions, the parameter management module determines filter parameters and a first compressor parameter matching the filter parameters based on the noise state information. The noise reduction filter is updated based on the filter parameters; The data stored in the first parameter register is updated based on the first compressor parameters, so that the input compressor updates the primary gain parameter.
8. The method according to claim 7, characterized in that, The open-back headphone active noise cancellation device further includes a second parameter register. The parameter management module determines filter parameters and first compressor parameters based on the noise state information, including: The parameter management module determines the parameters of the second compressor based on the noise status information; The data stored in the second parameter register is updated based on the second compressor parameters so that the output compressor updates the gain correction parameters.
9. The method according to claim 7, characterized in that, The input compressor is configured with corresponding compression trigger conditions. In response to changes in the ambient sound signal, the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameters, including: In response to the ambient sound signal satisfying the compression trigger condition, the input compressor performs noise dynamic analysis on the ambient sound signal to obtain the primary gain parameter; After updating the data stored in the first parameter register based on the first compressor parameters to update the primary gain parameter of the input compressor, the method further includes: The compression triggering condition is updated based on the first compressor parameters.
10. The method according to claim 6, characterized in that, After the input compressor performs noise dynamic analysis on the ambient sound signal in response to a change in the ambient sound signal to obtain the primary gain parameter, it further includes: The input compressor continuously provides the primary gain parameter to the first gain module based on a preset hold time; After the hold time, the input compressor gradually reduces the primary gain parameter based on a preset release time.
11. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the active noise cancellation method for open-back headphones according to any one of claims 6 to 10.
12. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the active noise cancellation method for open-back headphones as described in any one of claims 6 to 10.
