Noise reduction method and device of earphone device, earphone device and computer medium
By generating the target sound signal through the feedforward microphone and filtering device in the headphone device, the problem of high-frequency noise in existing headphone devices cannot be reduced is solved, and volume control that is consistent with the ambient sound in the mid-high frequency domain is achieved, thus improving the wearer's listening experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GOERTEK INC
- Filing Date
- 2023-01-04
- Publication Date
- 2026-08-04
AI Technical Summary
Current headphone devices, in their adaptive noise cancellation function, can only reduce noise in the low-frequency range of the noise signal, while the mid- and high-frequency ranges remain unchanged. This means that wearers cannot freely control the volume of external sounds in different noise environments.
The external sound signal is acquired by the feedforward microphone in the headphone device, and the target sound signal is generated by the filtering device. The amplitude of the target sound signal is higher than the theoretical amplitude of the external sound signal, and it is close to being in phase with the external sound in the frequency range of 1000Hz or higher, and close to being out of phase with the external sound in the frequency range of less than 1000Hz. The target sound signal is output through the sound output device to cancel the external sound signal.
It achieves a sound signal that maintains the same spectral distribution as ambient sound in the mid-to-high frequency domain, with only a difference in volume. Wearers can freely control the volume of external sounds, resulting in a more natural auditory experience.
Smart Images

Figure CN116132868B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of headphone technology, and more particularly to a noise reduction method, apparatus, headphone device, and computer-readable storage medium for headphone devices. Background Technology
[0002] With the development of the Bluetooth headset industry, in order to enable headsets to cancel out low-frequency noise in noisy environments and provide wearers with a quiet environment and comfortable experience, more and more technicians are beginning to add active noise cancellation to headsets. However, currently, the active noise cancellation function built into headsets generally only has two levels: noise cancellation and pass-through. In noise cancellation mode, the headset mainly cancels out low-frequency noise in the environment, while in pass-through mode, the headset compensates for the passive sound insulation of the mid-to-high frequencies, allowing wearers to hear external sounds clearly. In addition, to meet the increasing needs of wearers, technicians have begun to add adaptive noise cancellation to headsets based on active noise cancellation.
[0003] Current adaptive noise cancellation functions are mainly based on the magnitude or distribution of external ambient noise, and switch the internal parameters of the headphone device to enable the headphone device to switch between different levels of noise cancellation based on different environments. However, with this approach, the different levels of adaptive noise cancellation can only reduce the low-frequency part of the noise signal, while the mid-to-high frequency range of the noise remains unchanged. Summary of the Invention
[0004] The present invention provides a noise reduction method, device, headphone device, and computer-readable storage medium for headphone devices, aiming to enable headphone devices to output sound signals that maintain a consistent spectral distribution with ambient sound in the mid-to-high frequency range, with only a difference in volume. This allows wearers to freely control the volume of external sounds and hear more natural sounds in low-to-medium noise environments.
[0005] To achieve the above objectives, the present invention provides a noise reduction method for a headphone device, the noise reduction method comprising the following steps:
[0006] The external sound signal is acquired through the feedforward microphone configured in the headphone device, and the external sound signal is input to the filtering device configured in the headphone device.
[0007] The filtering device is controlled to generate a target sound signal corresponding to the external sound signal, wherein the target amplitude of the target sound signal is higher than the theoretical amplitude of the theoretical sound signal corresponding to the external sound signal, the target phase of the target sound signal within a first frequency range is approximately in phase with the external sound phase within the first frequency range corresponding to the external sound signal, and the target phase of the target sound signal within a second frequency range is approximately out of phase with the external sound phase within the second frequency range corresponding to the external sound signal.
[0008] The target sound signal is output through the sound output device configured in the headphone device, thereby correcting the external sound signal through the target sound signal.
[0009] Further, the step of controlling the filtering device to generate a target sound signal corresponding to the external sound signal includes:
[0010] Obtain the first set of device parameters corresponding to the filtering device; wherein, the first set of device parameters includes the sampling frequency value, the center frequency value, the quality factor, and the gain value;
[0011] Based on the first set of device parameters, a second set of device parameters corresponding to the filtering device is determined, and a target sound signal corresponding to the external sound signal is generated according to the second set of device parameters.
[0012] Further, the step of determining the second set of equipment parameters corresponding to the filtering device based on the first set of equipment parameters includes:
[0013] Obtain the preset calculation formulas for each parameter;
[0014] The second set of equipment parameters corresponding to the filtering device is obtained by calculating the first set of equipment parameters based on the calculation formulas of each parameter.
[0015] Further, the step of generating a target sound signal corresponding to the external sound signal based on the second device parameter set includes:
[0016] The filtering device is controlled to calculate the second device parameter group according to a preset digital filtering function formula to generate a target sound signal corresponding to the external sound signal.
[0017] Furthermore, after the step of obtaining the first set of device parameters corresponding to the filtering device, the method further includes:
[0018] Adjust the sampling frequency value to match the chip sampling frequency corresponding to the data processing chip configured in the filtering device;
[0019] The center frequency value is adjusted to the first frequency range, wherein the minimum frequency value within the first frequency range is greater than or equal to 1000Hz.
[0020] Furthermore, after the step of outputting the target sound signal through the sound output device configured within the headphone device, the method further includes:
[0021] Modify the quality factor and the center frequency contained in the first device parameter group;
[0022] The filter device generates the target sound signal based on the modified quality factor and center frequency.
[0023] Furthermore, the step of controlling the filtering device to generate the target sound signal based on the modified quality factor and center frequency includes:
[0024] The modified first set of equipment parameters is determined based on the modified quality factor and center frequency, and the second set of equipment parameters is obtained by calculating the modified first set of equipment parameters according to the calculation formula of each parameter.
[0025] The filtering device is controlled to generate the target sound signal according to the obtained second set of equipment parameters.
[0026] Furthermore, to achieve the above objectives, the present invention also provides a noise reduction device for an earphone device, the device comprising:
[0027] The signal transmission module is used to acquire external sound signals through the feedforward microphone configured in the headphone device and input the external sound signals to the filtering device configured in the headphone device.
[0028] The signal generation module is used to control the filtering device to generate a target sound signal corresponding to the external sound signal, wherein the target amplitude of the target sound signal is higher than the theoretical amplitude of the theoretical sound signal corresponding to the external sound signal, the target phase of the target sound signal within a first frequency range is approximately in phase with the external sound phase within the first frequency range corresponding to the external sound signal, and the target phase of the target sound signal within a second frequency range is approximately out of phase with the external sound phase within the second frequency range corresponding to the external sound signal.
[0029] The signal output module is used to output the target sound signal through the sound output device configured in the headphone device, thereby correcting the external sound signal through the target sound signal.
[0030] In addition, to achieve the above objectives, the present invention also provides an earphone device, the earphone device comprising: a memory, a processor, and a noise reduction program of the earphone device stored in the memory and executable on the processor, wherein when the noise reduction program of the earphone device is executed by the processor, it implements the steps of the noise reduction method of the earphone device as described above.
[0031] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a noise reduction program for a headphone device, wherein the noise reduction program for the headphone device, when executed by a processor, implements the steps of the noise reduction method for the headphone device as described above.
[0032] The noise reduction method, apparatus, headphone device, and computer-readable storage medium provided in this invention for a headphone device acquire an external sound signal through a feedforward microphone configured within the headphone device, and input the external sound signal to a filtering device configured within the headphone device; control the filtering device to generate a target sound signal corresponding to the external sound signal, wherein the target amplitude of the target sound signal is higher than the theoretical amplitude of the theoretical sound signal corresponding to the external sound signal, the target phase of the target sound signal within a first frequency range is approximately in phase with the external sound phase within the first frequency range corresponding to the external sound signal, and the target phase of the target sound signal within a second frequency range is approximately out of phase with the external sound phase within the second frequency range corresponding to the external sound signal; output the target sound signal through a sound output device configured within the headphone device, thereby canceling the external sound signal to complete the correction.
[0033] In this embodiment, when the headphone device is running, it first collects external sound signals from the wearer's surroundings through a feedforward microphone configured within the headphone device. The acquired external sound signals are then input to a filtering device configured within the headphone device. Subsequently, the headphone device controls the filtering device to calculate, based on the device parameter set corresponding to the filtering device, a target sound signal containing a target amplitude higher than the theoretical amplitude corresponding to the external sound signal, a target phase that is approximately in phase with the external sound signal within a first frequency range greater than or equal to 1000Hz, and approximately out of phase with the external sound signal within a second frequency range less than 1000Hz. The filtering device then inputs the generated target sound signal to a signal amplification device configured within the headphone device. The signal amplification device then amplifies the acquired target sound signal and outputs the target sound signal through a sound output module configured within the headphone device, thereby canceling out noise signals to complete the correction.
[0034] Thus, this invention employs a method of acquiring external sound signals through a feedforward microphone and controlling a filter to generate a target sound signal corresponding to the external sound signals. Noise reduction is achieved by outputting the target sound signal to cancel out the external sound signals. Specifically, this invention acquires external sound signals through a feedforward microphone and generates a target sound signal with a target amplitude higher than the theoretical amplitude corresponding to the external sound signal. The target sound signal's phase is nearly in phase with the external sound signal in the mid-to-high frequency region (greater than or equal to 1000Hz) and nearly out of phase with the external sound signal in the low-frequency region (below 1000Hz). The target sound signal is then output. The method of using a standard sound signal to cancel out external sound signals solves the technical problem that current headphone devices can only reduce noise in the low-frequency range of the noise signal, while leaving the mid-to-high frequency range of the noise unchanged. This achieves the technical effect of enabling the headphone device to output a sound signal with a consistent spectral distribution with the ambient sound in the mid-to-high frequency range, with only a difference in volume. This allows the wearer to freely control the volume of the external sound through the headphone device in low-to-medium noise environments. By optimizing the feedforward noise cancellation design, noise reduction can be achieved in the low-frequency range, and the mid-to-high frequency range can compensate for the passive sound insulation of the headphones, resulting in a more natural sound. Attached Figure Description
[0035] Figure 1 This is a schematic diagram of the headphone device structure in the hardware operating environment involved in the embodiments of the present invention;
[0036] Figure 2 This is a flowchart illustrating the first embodiment of the noise reduction method for the headphone device of the present invention;
[0037] Figure 3 This is a schematic diagram of the noise signal spectrum at different noise reduction levels according to an embodiment of the noise reduction method for the headphone device of the present invention;
[0038] Figure 4 This is a schematic diagram of a feedforward noise reduction system according to an embodiment of the noise reduction method for the headphone device of the present invention;
[0039] Figure 5(a) is a schematic diagram of amplitude compensation involved in an embodiment of the noise reduction method of the headphone device of the present invention;
[0040] Figure 5(b) is a schematic diagram of phase compensation involved in an embodiment of the noise reduction method of the headphone device of the present invention;
[0041] Figure 6 This is a schematic diagram of the functional modules involved in an embodiment of the noise reduction method for the headphone device of the present invention.
[0042] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0043] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0044] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the headphone device structure in the hardware operating environment involved in the embodiments of the present invention.
[0045] It should be noted that, Figure 1 This can be seen as a structural diagram of the hardware operating environment of the headphone device. In this embodiment of the invention, the headphone device can be a headphone device equipped with a feedforward microphone and a filter; of course, the headphone device can also be a Bluetooth headset, Bluetooth microphone, or other mobile headphone device.
[0046] like Figure 1 As shown, the headphone device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0047] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the headphone device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0048] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a noise reduction program for a headphone device.
[0049] exist Figure 1In the illustrated headphone device, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and memory 1005 in the headphone device of the present invention can be set in the headphone device, and the headphone device calls the noise reduction program of the headphone device stored in the memory 1005 through the processor 1001 and performs the following operations:
[0050] The external sound signal is acquired through the feedforward microphone configured in the headphone device, and the external sound signal is input to the filtering device configured in the headphone device.
[0051] The filtering device is controlled to generate a target sound signal corresponding to the external sound signal, wherein the target amplitude of the target sound signal is higher than the theoretical amplitude of the theoretical sound signal corresponding to the external sound signal, the target phase of the target sound signal within a first frequency range is approximately in phase with the external sound phase within the first frequency range corresponding to the external sound signal, and the target phase of the target sound signal within a second frequency range is approximately out of phase with the external sound phase within the second frequency range corresponding to the external sound signal.
[0052] The target sound signal is output through the sound output device configured within the headphone device, thereby canceling out the external sound signal to complete the correction.
[0053] Furthermore, the processor 1001 can call the noise reduction program of the headphone device stored in the memory 1005, and also perform the following operations:
[0054] Obtain the first set of device parameters corresponding to the filtering device; wherein, the first set of device parameters includes the sampling frequency value, the center frequency value, the quality factor, and the gain value;
[0055] Based on the first set of device parameters, a second set of device parameters corresponding to the filtering device is determined, and a target sound signal corresponding to the external sound signal is generated according to the second set of device parameters.
[0056] Furthermore, the processor 1001 can call the noise reduction program of the headphone device stored in the memory 1005, and also perform the following operations:
[0057] Obtain the preset calculation formulas for each parameter;
[0058] The second set of equipment parameters corresponding to the filtering device is obtained by calculating the first set of equipment parameters based on the calculation formulas of each parameter.
[0059] Furthermore, the processor 1001 can call the noise reduction program of the headphone device stored in the memory 1005, and also perform the following operations:
[0060] The filtering device is controlled to calculate the second device parameter group according to a preset digital filtering function formula to generate a target sound signal corresponding to the external sound signal.
[0061] Furthermore, the processor 1001 can call the noise reduction program of the headphone device stored in the memory 1005, and also perform the following operations:
[0062] Adjust the sampling frequency value to match the chip sampling frequency corresponding to the data processing chip configured in the filtering device;
[0063] Adjust the center frequency value to the first frequency range.
[0064] Furthermore, the processor 1001 can call the noise reduction program of the headphone device stored in the memory 1005, and also perform the following operations:
[0065] Modify the quality factor and the center frequency contained in the first device parameter group;
[0066] The filter device generates the target sound signal based on the modified quality factor and center frequency.
[0067] Furthermore, the processor 1001 can call the noise reduction program of the headphone device stored in the memory 1005, and also perform the following operations:
[0068] The modified first set of equipment parameters is determined based on the modified quality factor and center frequency, and the second set of equipment parameters is obtained by calculating the modified first set of equipment parameters according to the calculation formula of each parameter.
[0069] The filtering device is controlled to generate the target sound signal according to the obtained second set of equipment parameters.
[0070] Based on the above-described headphone device, various embodiments of the noise reduction method of the headphone device of the present invention are provided.
[0071] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the noise reduction method for the headphone device of the present invention.
[0072] It should be understood that although the logical order is shown in the flowchart, in some cases the noise reduction method of the present invention for the headphone device may of course be performed in a different order than that shown or described here.
[0073] It is understood that the noise reduction method for the headphone device of the present invention is applied to a headphone device equipped with a feedforward microphone and a filter. When the headphone device includes two earphones, the noise reduction method can be applied to either earphone. In this embodiment, the noise reduction method for the headphone device may include the following steps:
[0074] Step S10: Acquire external sound signals through the feedforward microphone configured in the headphone device, and input the external sound signals to the filtering device configured in the headphone device;
[0075] A feedforward microphone is a microphone mounted on the outer shell of a headphone device to receive external sound signals generated in the wearer's surrounding environment. The feedforward microphone can be deployed anywhere on the headphone device's outer shell. Alternatively, the specific deployment location of the feedforward microphone can refer to the deployment location of feedforward microphones in similar Bluetooth headphone devices with active noise cancellation or adaptive noise cancellation functions; this invention does not impose any limitations on this. Furthermore, the number of feedforward microphones can be one, or technicians can choose to deploy multiple feedforward microphones to form a microphone array. Of course, the array shape and the number of feedforward microphones constituting the microphone array can also be adjusted by technicians according to actual conditions; this invention also does not impose any limitations on this.
[0076] In this embodiment, when the headphone device is running, it first acquires the external sound signals generated in the wearer's surrounding environment through the feedforward microphone configured in the headphone device, and then inputs the acquired external sound signals to the filtering device configured in the headphone device.
[0077] For example, please refer to Figure 4 , Figure 4 This is a schematic diagram of a feedforward noise reduction system according to an embodiment of the noise reduction method for the headphone device of the present invention, as shown below. Figure 4 As shown, when the headphone device is running, it first uses a single feedforward microphone configured on the headphone housing (i.e., Figure 4 The FFmc in the middle collects external sound signals generated in the environment around the wearer (i.e., Figure 4 As shown in d), the acquired external sound signal is input into multiple filters configured within the headphone device (i.e., Figure 4 (Filter in the middle).
[0078] Step S20: Control the filtering device to generate a target sound signal corresponding to the external sound signal, wherein the target amplitude of the target sound signal is higher than the theoretical amplitude of the theoretical sound signal corresponding to the external sound signal, the target phase of the target sound signal within the first frequency range is approximately in phase with the external sound phase within the first frequency range corresponding to the external sound signal, and the target phase of the target sound signal within the second frequency range is approximately out of phase with the external sound phase within the second frequency range corresponding to the external sound signal.
[0079] In this embodiment, the headphone device reads the first set of device parameters input by the technician and inputs the acquired first set of device parameters into the filtering device. Then, the data processing chip in the filtering device calculates the second set of device parameters corresponding to the filtering device based on the first set of device parameters. The filtering device then controls the filtering device to calculate and generate a target sound signal based on the second set of device parameters. The target sound signal has a target phase that is close to being in phase with the external sound in a first frequency range with a frequency greater than or equal to 1000Hz, and close to being out of phase with the external sound in a second frequency range with a frequency less than 1000Hz.
[0080] For example, the headphone device first obtains a first set of device parameters input by a technician based on the filter response settings corresponding to the second-order all-pass filter. Then, the first set of device parameters is input to the data processing chip, which calculates a second set of device parameters corresponding to the second-order all-pass filter based on the first set of device parameters. After that, the data processing chip controls each filter to calculate based on the second set of device parameters to generate a target sound signal with a target amplitude greater than the theoretical amplitude, an external sound phase that is close to in phase in a first frequency range with a frequency greater than or equal to 1000Hz, and a target phase that is close to out of phase with the external sound in a second frequency range less than 1000Hz.
[0081] Furthermore, in a feasible embodiment, the step of "controlling the filtering device to generate a target sound signal corresponding to the external sound signal" in step S20 above may specifically include:
[0082] Step S201: Obtain the first set of device parameters corresponding to the filtering device; wherein, the first set of device parameters includes sampling frequency value, center frequency value, quality factor and gain value;
[0083] In this embodiment, the headphone device acquires the sampling frequency value, center frequency value, quality factor and gain value corresponding to the filtering device. The headphone device then determines the acquired data as a first device parameter group and inputs the acquired first device parameter group into the data processing chip configured in the filtering device.
[0084] Step S202: Determine the second set of device parameters corresponding to the filtering device based on the first set of device parameters, and generate a target sound signal corresponding to the external sound signal according to the second set of device parameters;
[0085] In this embodiment, the headphone device reads the storage device to obtain the parameter calculation formula preset by the technician, and inputs the parameter calculation formula to the data processing chip. The data processing chip calculates the first device parameter group according to the parameter calculation formula to obtain the second device parameter group of the filtering device, and then controls the filtering device to calculate and generate the target sound signal according to the second device parameter group.
[0086] For example, the headphone device first reads from the storage device to obtain the sampling frequency value F corresponding to the second-order all-pass filter. s The center frequency value f0, quality factor Q, and gain value Gain are obtained, and the acquired sampling frequency value F is also calculated. s The center frequency value f0, quality factor Q, and gain value Gain are determined as the first set of device parameters corresponding to the second-order all-pass filter. The headphone device then inputs the first set of device parameters into the data processing chip. At the same time, the headphone device reads the storage device to obtain the calculation formulas for each parameter and inputs the calculation formulas into the data processing chip, which then determines the sampling frequency value F. s The parameters corresponding to the center frequency value f0 are calculated using the parameter processing formula to obtain the a0, a1, a2, b0, b1, and b2 values of the second device parameter group corresponding to the first device parameter group. Then, the second-order all-pass filter is controlled to generate the target sound signal according to the second device parameter group.
[0087] It should be noted that before obtaining the first set of device parameters, technicians can first calculate the first transfer function FF2EAR between the feedforward microphone and the human ear, and the second transfer function SPK2EAR between the speaker and the human ear. Then, based on the obtained first transfer function FF2EAR and second transfer function SPK2EAR, the filter response corresponding to the filter device is determined as Filter = FF2EAR / SPK2EAR. Subsequently, based on the filter response, the parameters in the first set of device parameters corresponding to the second-order all-pass filter are determined.
[0088] Furthermore, in a feasible embodiment, the step of "determining the second device parameter group corresponding to the filtering device based on the first device parameter group" in step S202 above may specifically include:
[0089] Step S2021: Obtain the preset calculation formulas for each parameter;
[0090] Step S2022: Calculate the first device parameter group based on the parameter calculation formulas to obtain the second device parameter group corresponding to the filtering device;
[0091] For example, the headphone device first reads the calculation formulas for each parameter from the storage device, and then inputs these formulas into the data processing chip, which then determines the sampling frequency value F. s The parameter processing formula corresponding to the center frequency value f0 is used to calculate ω0 = 2*π*f0 / F. s Similarly, the data processing chip calculates gainlinear = 10 according to the parameter calculation formula corresponding to the gain value Gain. (Gain / 20) Similarly, the data processing chip calculates the parameters corresponding to the quality factor Q using the formula:
[0092]
[0093] Subsequently, the data processing chip calculates the values of a and ω0 to obtain the values of a0 = a+1, a1 = -2*cos(ω0), and a2 = (1-a) corresponding to the second-order all-pass filter. Then, the data processing chip continues to calculate the values of ω0, a, and gainlinear to obtain the values of b0 = (1-a)*gainlinear, b1 = -2*cos(ω0)*gainlinear, and b2 = (1+a)*gainlinear corresponding to the second-order all-pass filter. The data processing chip then determines the values of a0, a1, a2, b0, b1, and b2 as the second set of device parameters corresponding to the second-order all-pass filter.
[0094] Furthermore, in a feasible embodiment, the step of "generating a target sound signal corresponding to the external sound signal according to the second device parameter group" in step S202 above may specifically include:
[0095] Step S2023: Control the filtering device to calculate the second device parameter group according to the preset digital filtering function formula to generate a target sound signal corresponding to the external sound signal;
[0096] For example, the headphone device first reads from the storage device to obtain a preset IIR digital filter function formula by a technician:
[0097]
[0098] The headphone device then inputs the acquired digital filtering function formula into the data processing chip, which calculates the second set of device parameters based on the IIR digital filtering function formula to generate the target sound signal.
[0099] It should be noted that in this embodiment, z in the IIR digital filter function formula is a discrete parameter, and this discrete data can be obtained from the acquired signal data.
[0100] Furthermore, in a feasible embodiment, after the step of "obtaining the first device parameter group corresponding to the filtering device" in step S20 above, the noise reduction method of the headphone device of the present invention may further include:
[0101] Step A10: Adjust the sampling frequency value to match the sampling frequency of the data processing chip configured in the filtering device;
[0102] Step A20: Adjust the center frequency value to the first frequency range, wherein the minimum frequency value in the first frequency range is greater than or equal to 1000Hz;
[0103] For example, after acquiring the first device parameter set corresponding to the second-order all-pass filter, the headphone device first sets the sampling frequency value F contained in the first device parameter set. s The frequency is adjusted to match the sampling frequency of the data processing chip. At the same time, the headphone device adjusts the center frequency f0 in the first device parameter group to a range greater than or equal to 1000Hz corresponding to the first frequency range. After that, the headphone device can also adjust the quality factor Q in the first device parameter group so that the phase of the generated target sound signal in the first frequency range is kept close to the phase of the external sound signal in the first frequency range by adjusting the quality factor Q.
[0104] It is understood that, referring to Figures 5(a) and 5(b), where Figure 5(a) is a schematic diagram of amplitude compensation in an embodiment of the noise reduction method for the headphone device of the present invention, and Figure 5(b) is a schematic diagram of phase compensation in an embodiment of the noise reduction method for the headphone device of the present invention, as shown in Figures 5(a) and 5(b), although the amplitude of the sound signal does not change in each frequency range, the sound signal will change differently in each frequency range as the quality factor Q value changes. By changing the quality factor Q, the phase of the sound signal in the mid-to-high frequency range can be reversed. Of course, in this embodiment, the specific value of the quality factor Q value can be adjusted by a technician according to the actual situation, and the present invention does not limit it.
[0105] Step S30: Output the target sound signal through the sound output device configured in the headphone device, thereby correcting the external sound signal through the target sound signal;
[0106] In this embodiment, the headphone device inputs the generated target sound signal to the sound output module configured in the headphone device, and the sound output module outputs the target sound signal to correct the target sound signal against the external sound signal.
[0107] For example, please refer to Figure 3 , Figure 3 This is a schematic diagram of the noise signal spectrum at different noise reduction levels according to an embodiment of the noise reduction method for the headphone device of the present invention. The headphone device inputs the generated target sound signal to a signal amplification device configured within the headphone device. The signal amplification device amplifies the target sound signal and inputs it to a sound output module configured within the headphone device. The sound output module outputs the target sound signal through a speaker device configured within the sound output module. Figure 4 As shown, after the target sound signal c is canceled out with the external sound signal d, the remaining sound signal e, which has undergone noise reduction processing, is audible to the wearer. Thus, as... Figure 3 As shown, the headphone device can achieve noise reduction for noise signals in both low-frequency and high-frequency regions. Furthermore, in each mode, the headphone device can keep the frequency change of the target sound signal consistent with the noise signal, thereby controlling the intensity of the external sound signal only in different modes.
[0108] Furthermore, in a feasible embodiment, after step S30 above, the noise reduction method of the headphone device of the present invention may further include:
[0109] Step B10: Modify the quality factor and the center frequency contained in the first device parameter group;
[0110] In this embodiment, the headphone device detects the noise cancellation level of the headphone device through an internally configured detection device, and when a change in the noise cancellation level is detected, the data processing chip is controlled to modify the quality factor and center frequency contained in the first device parameter group accordingly.
[0111] Step B20: Control the filtering device to generate the target sound signal based on the modified quality factor and center frequency;
[0112] In this embodiment, the data processing chip calculates the target sound signal using the formulas for each parameter and the modified quality factor and center frequency.
[0113] For example, the headphone device detects whether the ANC setting of the headphone device has changed through an internally configured detection device. When it is determined that the ANC setting has changed, the quality factor Q value and center frequency value f0 contained in the first device parameter group are adjusted. Then, a new first device parameter group is determined according to the changes in the quality factor Q value and center frequency value f0 respectively. After that, the headphone device recalculates the second device parameter group according to the new first device parameter group through a data processing chip, and controls the second-order all-pass filter to perform calculations according to the new second device parameter group to generate the target sound signal.
[0114] Furthermore, in a feasible embodiment, step B20 above may specifically include:
[0115] Step B201: Determine the modified first set of equipment parameters based on the modified quality factor and center frequency, and calculate the second set of equipment parameters according to the calculation formulas of each parameter.
[0116] Step B202: Control the filtering device to generate the target sound signal according to the obtained second set of device parameters;
[0117] For example, the data processing chip first determines a new first set of device parameters based on the changes in the quality factor Q and the center frequency f0, respectively. Then, the data processing chip processes the sampling frequency values F0 contained in the first set of device parameters according to the calculation formulas of the acquired parameters. s The center frequency value f0, gain value Gain, and quality factor Q are used to calculate new values of a0, a1, a2, b0, b1, and b2, which in turn determine the new second set of device parameters. Then, the data processing chip controls the second-order all-pass filter according to the preset IIR digital filtering function formula:
[0118]
[0119] The new second set of device parameters is calculated to generate the corresponding target sound signal.
[0120] In this embodiment, when the headphone device is running, it first acquires external sound signals generated in the wearer's surrounding environment through the feedforward microphone configured within the headphone device, and inputs the acquired external sound signals into the filtering device configured within the headphone device. Then, the headphone device reads the first set of device parameters input by the technician and inputs the acquired first set of device parameters into the filtering device. Subsequently, the data processing chip configured within the filtering device calculates the second set of device parameters corresponding to the filtering device based on the first set of device parameters. Then, it controls the filtering device to calculate and generate a target sound signal based on the second set of device parameters. The target sound signal has a target amplitude that is higher than the theoretical amplitude of the theoretical signal corresponding to the external sound signal, is approximately in phase with the external sound in a first frequency range with a frequency greater than or equal to 1000Hz, and is approximately out of phase with the external sound in a second frequency range with a frequency lower than 1000Hz. After that, the headphone device inputs the generated target sound signal into the sound output module configured within the headphone device, and the sound output module outputs the target sound signal to cancel out the external sound signal and complete the noise reduction.
[0121] Thus, this invention employs a method of acquiring external sound signals through a feedforward microphone and controlling a filter to generate a target sound signal corresponding to the external sound signals. Noise reduction is achieved by outputting the target sound signal to cancel out the external sound signals. Specifically, this invention acquires external sound signals through a feedforward microphone and generates a target sound signal with a target amplitude higher than the theoretical amplitude corresponding to the external sound signal. The target sound signal's phase is nearly in phase with the external sound signal in the mid-to-high frequency region (greater than or equal to 1000Hz) and nearly out of phase with the external sound signal in the low-frequency region (below 1000Hz). The target sound signal is then output. The method of using a standard sound signal to cancel out external sound signals solves the technical problem that current headphone devices can only reduce noise in the low-frequency range of the noise signal, while leaving the mid-to-high frequency range of the noise unchanged. This achieves the technical effect of enabling the headphone device to output a sound signal with a consistent spectral distribution with the ambient sound in the mid-to-high frequency range, with only a difference in volume. This allows the wearer to freely control the volume of the external sound through the headphone device in low-to-medium noise environments. By optimizing the feedforward noise cancellation design, noise reduction can be achieved in the low-frequency range, and the mid-to-high frequency range can compensate for the passive sound insulation of the headphones, resulting in a more natural sound.
[0122] In addition, the present invention also provides a noise reduction device for headphone devices, please refer to... Figure 6 , Figure 6 This is a schematic diagram of the functional modules involved in an embodiment of the noise reduction method for the headphone device of the present invention, as shown below. Figure 6 As shown, the noise reduction device of the headphone device of the present invention includes:
[0123] The signal transmission module 10 is used to acquire external sound signals through the feedforward microphone configured in the headphone device and input the external sound signals to the filtering device configured in the headphone device.
[0124] The signal generation module 20 is used to control the filtering device to generate a target sound signal corresponding to the external sound signal, wherein the target amplitude of the target sound signal is higher than the theoretical amplitude of the theoretical sound signal corresponding to the external sound signal, the target phase of the target sound signal within a first frequency range is approximately in phase with the external sound phase within the first frequency range corresponding to the external sound signal, and the target phase of the target sound signal within a second frequency range is approximately out of phase with the external sound phase within the second frequency range corresponding to the external sound signal.
[0125] The signal output module 30 is used to output the target sound signal through the sound output device configured in the headphone device, thereby correcting the external sound signal through the target sound signal.
[0126] Furthermore, the signal generation module 20 includes:
[0127] The parameter acquisition unit is used to acquire a first set of device parameters corresponding to the filtering device; wherein, the first set of device parameters includes a sampling frequency value, a center frequency value, a quality factor, and a gain value;
[0128] The signal generation unit is used to determine the second set of device parameters corresponding to the filtering device based on the first set of device parameters, and to generate a target sound signal corresponding to the external sound signal according to the second set of device parameters.
[0129] Furthermore, the signal generation unit includes:
[0130] The formula retrieval sub-unit is used to retrieve the preset calculation formulas for each parameter;
[0131] The parameter calculation subunit is used to calculate the second set of equipment parameters corresponding to the filtering device based on the parameter calculation formulas of the first set of equipment parameters.
[0132] Furthermore, the signal generation unit also includes:
[0133] The signal calculation subunit is used to control the filtering device to calculate the second device parameter group according to a preset digital filtering function formula to generate a target sound signal corresponding to the external sound signal.
[0134] Furthermore, the signal generation module 20 also includes:
[0135] The first adjustment unit is used to adjust the sampling frequency value to be consistent with the chip sampling frequency corresponding to the data processing chip configured in the filtering device;
[0136] The second adjustment unit is used to adjust the center frequency value to the first frequency range, wherein the minimum frequency value in the first frequency range is greater than or equal to 1000Hz.
[0137] Furthermore, the signal output module 30 includes:
[0138] The parameter correction unit is used to modify the quality factor and the center frequency contained in the first device parameter group;
[0139] A signal correction unit is used to control the filtering device to generate a target sound signal based on the modified quality factor and center frequency.
[0140] Furthermore, the signal correction unit includes:
[0141] The parameter modification subunit is used to determine the modified first set of equipment parameters based on the modified quality factor and center frequency, and to calculate the modified first set of equipment parameters according to the parameter calculation formulas to obtain the second set of equipment parameters.
[0142] The signal generation subunit is used to control the filtering device to generate the target sound signal according to the obtained second set of device parameters.
[0143] Furthermore, the present invention also provides an earphone device having an earphone device noise reduction program that can run on a processor, wherein when the earphone device executes the earphone device noise reduction program, it implements the steps of the earphone device noise reduction method as described in any of the above embodiments.
[0144] The specific embodiments of the headphone device of the present invention are basically the same as the embodiments of the noise reduction method of the headphone device described above, and will not be repeated here.
[0145] Furthermore, the present invention also provides a computer-readable storage medium storing a noise reduction program for a headphone device, wherein the noise reduction program for the headphone device, when executed by a processor, implements the steps of the noise reduction method for the headphone device as described in any of the above embodiments.
[0146] The specific embodiments of the computer-readable storage medium of this invention are basically the same as the embodiments of the noise reduction method of the headphone device described above, and will not be repeated here.
[0147] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0148] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0149] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which can be a headphone device equipped with a feedforward microphone and filter; of course, the headphone device can also be a Bluetooth headset, Bluetooth microphone, or other mobile headphone device) to execute the methods described in the various embodiments of the present invention.
[0150] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A noise reduction method of an earphone device, the method comprising: The noise reduction method for the headphone device includes the following steps: The external sound signal is acquired through the feedforward microphone configured in the headphone device, and the external sound signal is input to the filtering device configured in the headphone device. The filtering device is controlled to generate a target sound signal corresponding to the external sound signal, wherein the target amplitude of the target sound signal is higher than the theoretical amplitude of the theoretical sound signal corresponding to the external sound signal, the target phase of the target sound signal within a first frequency range is approximately in phase with the external sound phase within the first frequency range corresponding to the external sound signal, and the target phase of the target sound signal within a second frequency range is approximately out of phase with the external sound phase within the second frequency range corresponding to the external sound signal. The target sound signal is output through the sound output device configured in the headphone device, thereby correcting the external sound signal through the target sound signal; The step of controlling the filtering device to generate a target sound signal corresponding to the external sound signal includes: Obtain the first set of device parameters corresponding to the filtering device; wherein, the first set of device parameters includes the sampling frequency value, the center frequency value, the quality factor, and the gain value; Based on the first set of device parameters, a second set of device parameters corresponding to the filtering device is determined, and a target sound signal corresponding to the external sound signal is generated according to the second set of device parameters. The filtering device is controlled to calculate the second set of device parameters according to a preset digital filtering function formula to generate the target sound signal corresponding to the external sound signal.
2. The noise reduction method of a headphone device according to claim 1, wherein, The step of determining the second set of equipment parameters corresponding to the filtering device based on the first set of equipment parameters includes: Obtain the preset calculation formulas for each parameter; The second set of equipment parameters corresponding to the filtering device is obtained by calculating the first set of equipment parameters based on the calculation formulas of each parameter.
3. The noise reduction method of a headphone device according to claim 1, wherein, After the step of obtaining the first set of device parameters corresponding to the filtering device, the method further includes: Adjust the sampling frequency value to match the chip sampling frequency corresponding to the data processing chip configured in the filtering device; The center frequency value is adjusted to the first frequency range, wherein the minimum frequency value within the first frequency range is greater than or equal to 1000Hz.
4. The noise reduction method of a headphone device according to claim 3, wherein, After the step of outputting the target sound signal through the sound output device configured within the headphone device, the method further includes: Modify the quality factor and the center frequency contained in the first device parameter group; The filter device generates the target sound signal based on the modified quality factor and center frequency.
5. The noise reduction method of a headphone device according to claim 4, wherein, The step of controlling the filtering device to generate the target sound signal based on the modified quality factor and center frequency includes: The modified first set of equipment parameters is determined based on the modified quality factor and center frequency, and the second set of equipment parameters is obtained by calculating the modified first set of equipment parameters according to the calculation formula of each parameter. The filtering device is controlled to generate the target sound signal according to the obtained second set of equipment parameters.
6. A noise reduction device for an earphone device, characterized in that, The device includes: The signal transmission module is used to acquire external sound signals through the feedforward microphone configured in the headphone device and input the external sound signals to the filtering device configured in the headphone device. The signal generation module is used to control the filtering device to generate a target sound signal corresponding to the external sound signal, wherein the target amplitude of the target sound signal is higher than the theoretical amplitude of the theoretical sound signal corresponding to the external sound signal, the target phase of the target sound signal within a first frequency range is approximately in phase with the external sound phase within the first frequency range corresponding to the external sound signal, and the target phase of the target sound signal within a second frequency range is approximately out of phase with the external sound phase within the second frequency range corresponding to the external sound signal. The signal output module is used to output the target sound signal through the sound output device configured in the headphone device, thereby correcting the external sound signal through the target sound signal; The signal generation module is further used for: Obtain the first set of device parameters corresponding to the filtering device; wherein, the first set of device parameters includes the sampling frequency value, the center frequency value, the quality factor, and the gain value; Based on the first set of device parameters, a second set of device parameters corresponding to the filtering device is determined, and a target sound signal corresponding to the external sound signal is generated according to the second set of device parameters. The filtering device is controlled to calculate the second set of device parameters according to a preset digital filtering function formula to generate the target sound signal corresponding to the external sound signal.
7. An earphone device, characterized by, The headphone device includes: a memory, a processor, and a noise reduction program for the headphone device stored in the memory and executable on the processor. When the noise reduction program for the headphone device is executed by the processor, it implements the steps of the noise reduction method for the headphone device as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a noise reduction program for a headphone device, which, when executed by a processor, implements the steps of the noise reduction method for a headphone device as described in any one of claims 1 to 5.