Noise reduction method, device, headphone device and storage medium
By utilizing the signal correlation calculation between the noise reduction microphone and the call microphone and the assistance of the bone conduction microphone in the headphone device, the problem of circuit noise amplification during active noise reduction is solved, effective noise reduction of external sounds is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202210420178.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-21
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-04-21
AI Technical Summary
During the active noise reduction process, circuit noise is amplified and offsets external environmental noise, causing users to hear additional noise, affecting the user experience.
By obtaining the signals collected by the noise reduction microphone and the call microphone in the headphone device, calculating the correlation and extracting the signal with a correlation greater than the threshold as the external sound signal, active noise reduction processing is performed to eliminate circuit noise, and the bone conduction microphone is used to assist in identifying the user's voice signal to avoid noise reduction.
Active noise reduction is achieved only for external sounds, avoiding the amplification of circuit noise, improving user experience, and preventing dullness and additional noise.
Smart Images

Figure CN114786083B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of earphone technology, and in particular to a noise reduction method, apparatus, earphone device and storage medium. Background Art
[0002] Headphones with active noise cancellation (ANC) are becoming increasingly popular. ANC can effectively reduce low-frequency external noise, providing users with a quiet environment. The principle of ANC is to use a noise-canceling microphone to pick up external noise signals, generate a signal with an opposite phase to the external noise, and broadcast it through a speaker to cancel out the external noise, allowing the human ear to perceive the noise cancellation effect. However, when ANC is turned on, due to the effects of various components, the signal picked up by the noise-canceling microphone will contain some circuit noise. This circuit noise will be transmitted and amplified by the circuit, causing the speaker to emit a signal with an opposite phase to this circuit noise. However, at this time, there is no corresponding noise in the external environment to cancel it out, so the user will hear additional noise, affecting the user experience. Summary of the Invention
[0003] The main purpose of the present invention is to provide a noise reduction method, apparatus, headphone device and storage medium, aiming to solve the problem that circuit noise is also actively reduced during active noise reduction, causing the user to hear additional noise.
[0004] To achieve the above object, the present invention provides a noise reduction method, which is applied to a headphone device and includes:
[0005] Acquire a first sound signal collected by a noise reduction microphone and a second sound signal collected by a call microphone in the headset device;
[0006] calculating a first correlation between the first sound signal and the second sound signal;
[0007] When the first correlation is greater than a first preset threshold, extracting a signal from the first sound signal that makes the first correlation greater than the first preset threshold as an external sound signal;
[0008] Active noise reduction based on external sound signals.
[0009] Optionally, the step of extracting a signal having a first correlation greater than a first preset threshold from the first sound signal as the external sound signal includes:
[0010] calculating a signal delay between the first sound signal and the second sound signal;
[0011] The second sound signal is aligned with the first sound signal according to the signal time delay, and a signal overlapping with the aligned second sound signal is extracted from the first sound signal as the external sound signal.
[0012] Optionally, the step of performing active noise reduction processing based on the external sound signal includes:
[0013] Obtaining a third sound signal collected by a bone conduction microphone in the headphone device;
[0014] calculating a second correlation between the external sound signal and the third sound signal;
[0015] When the second correlation is greater than a second preset threshold, the signal that makes the second correlation greater than the second preset threshold is removed from the external sound signal, and the remaining signal is used as the external noise signal;
[0016] Active noise reduction is performed for external noise signals.
[0017] Optionally, the step of performing active noise reduction processing based on the external sound signal includes:
[0018] Remove the signal from the user's voice direction from the external sound signal and use the remaining signal as the external noise signal;
[0019] Active noise reduction is performed for external noise signals.
[0020] Optionally, before the step of calculating the first correlation between the first sound signal and the second sound signal, the method further includes:
[0021] Detect whether the headset device is in call mode;
[0022] If the earphone device is not in the call mode, the step of calculating a first correlation between the first sound signal and the second sound signal is performed.
[0023] Optionally, after the step of detecting whether the headset device is in a call mode, the method further includes:
[0024] If the headset device is in a call mode, obtaining a third sound signal collected by a bone conduction microphone in the headset device;
[0025] calculating a third correlation between the second sound signal and the third sound signal;
[0026] When the third correlation is greater than a third preset threshold, removing the signal that makes the third correlation greater than the second preset threshold from the second sound signal, and treating the remaining signal as a noise signal;
[0027] calculating a fourth correlation between the first sound signal and the noise signal;
[0028] When the fourth correlation is greater than a fourth preset threshold, extracting a signal from the first sound signal that makes the fourth correlation greater than the fourth preset threshold as an external noise signal;
[0029] Active noise reduction is performed for external noise signals.
[0030] Optionally, after the step of calculating the first correlation between the first sound signal and the second sound signal, the method further includes:
[0031] When the first correlation is less than or equal to a first preset threshold, the active noise reduction processing function is suspended.
[0032] To achieve the above-mentioned object, the present invention further provides a noise reduction device, which is deployed in a headphone device and includes:
[0033] An acquisition module, configured to acquire a first sound signal collected by a noise reduction microphone and a second sound signal collected by a call microphone in the headset device;
[0034] a calculation module, configured to calculate a first correlation between the first sound signal and the second sound signal;
[0035] an extraction module, configured to extract, from the first sound signal, a signal that makes the first correlation greater than the first preset threshold value as the external sound signal when the first correlation is greater than the first preset threshold value;
[0036] The noise reduction module is used to perform active noise reduction processing based on external sound signals.
[0037] To achieve the above objectives, the present invention also provides an earphone device, which includes: a memory, a processor, and a noise reduction program stored in the memory and executable on the processor. When the noise reduction program is executed by the processor, the steps of the above noise reduction method are implemented.
[0038] In addition, to achieve the above-mentioned purpose, the present invention further proposes a computer-readable storage medium, on which a noise reduction program is stored. When the noise reduction program is executed by a processor, the steps of the above-mentioned noise reduction method are implemented.
[0039] In the present invention, a first sound signal collected by a noise reduction microphone in an earphone device and a second sound signal collected by a call microphone are obtained; a first correlation between the first sound signal and the second sound signal is calculated; when the first correlation is greater than a first preset threshold, a signal that makes the first correlation greater than the first preset threshold is extracted from the first sound signal as an external sound signal; and active noise reduction processing is performed based on the external sound signal, thereby achieving the effect of actively reducing the noise of only the external sound signal but not the circuit noise, thereby avoiding the introduction of additional circuit noise in the active noise reduction process and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a flow chart of a first embodiment of the noise reduction method of the present invention;
[0041] Figure 2 Schematic diagram of the functional modules of a preferred embodiment of the noise reduction device of the present invention.
[0042] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0044] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of a noise reduction method according to the present invention.
[0045] The embodiments of the present invention provide embodiments of a noise reduction method. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order. The noise reduction method of the embodiments of the present invention is applied to a headphone device. When the headphone device includes two headphones, the noise reduction method can be applied to either headphone. In this embodiment, the noise reduction method includes:
[0046] Step S10, obtaining a first sound signal collected by a noise reduction microphone and a second sound signal collected by a call microphone in the earphone device;
[0047] In this embodiment, in order to solve the problem of additional noise generated by actively noise reduction processing of the circuit noise contained in the signal picked up by the noise reduction microphone during the active noise reduction process, it is proposed to turn on the call microphone to collect the sound signal when the active noise reduction function is turned on, and use the call microphone to cooperate with the noise reduction microphone to eliminate circuit noise and improve the noise reduction effect of the active noise reduction.
[0048] The active noise reduction function in this embodiment can be implemented based on feedforward noise reduction technology or feedback noise reduction technology. In this case, the corresponding noise reduction microphone can be the feedforward microphone used in feedforward noise reduction or the feedback microphone used in feedback noise reduction. This is not limited in this embodiment. The call microphone is a microphone in the headset device used to record the user's voice signal in call mode. In this embodiment, when the active noise reduction function is turned on, the call microphone is also turned on to put it into working state, and the sound signal collected by the call microphone is obtained. In the following, the sound signal collected by the noise reduction microphone is referred to as the first sound signal, and the sound signal collected by the call microphone is referred to as the second sound signal, for the purpose of distinction.
[0049] Step S20, calculating a first correlation between the first sound signal and the second sound signal;
[0050] After acquiring the first sound signal and the second sound signal, the headphone device may calculate the correlation between the first sound signal and the second sound signal (hereinafter referred to as the first correlation for distinction). There are many methods for calculating the correlation between two signals, which are not limited in this embodiment. For example, in one embodiment, the correlation may be calculated using a normalized cross-correlation function, with the calculated peak value being used as the correlation. The closer the peak value is to 1, the more correlated the two signals are.
[0051] It should be noted that the first sound signal is the sound signal collected by the noise reduction microphone, which contains the external sound signal and the circuit noise of the noise reduction microphone circuit; the second sound signal is the sound signal collected by the call microphone, which contains the external sound signal and the circuit noise of the call microphone circuit; the external sound signal is relative to the circuit noise inside the headphone device, which may include external noise or human voice; the first correlation is calculated between the first sound signal and the second sound signal. Since both signals contain external sound signals, when the external sound signal is strong, the first correlation will be larger. When the external sound signal is weak, the circuit noise of the noise reduction microphone circuit and the circuit noise of the call microphone circuit are weakly correlated, so the calculated first correlation will be smaller.
[0052] Step S30, when the first correlation is greater than the first preset threshold, extracting from the first sound signal a signal that makes the first correlation greater than the first preset threshold as an external sound signal;
[0053] The headphone device may compare the calculated first correlation with a preset threshold (hereinafter referred to as the first preset threshold). The first preset threshold is set as needed so that when the first correlation is greater than the first preset threshold, it can be indicated that the external sound signal is strong and needs to be suppressed by active noise reduction processing.
[0054] When the headphone device determines that the first correlation is greater than a first preset threshold, the signal that makes the first correlation greater than the first preset threshold can be extracted from the first sound signal and treated as the external sound signal. In other words, because the external sound signal is strong, the correlation between the first sound signal and the second sound signal is high, so this signal is extracted for active noise reduction processing. The signal that is not extracted can be considered as circuit noise of the noise reduction microphone circuit. Therefore, the effect of actively reducing noise only for the external sound signal and not for the circuit noise can be achieved, thereby avoiding the introduction of additional noise during the active noise reduction process.
[0055] There are many methods for extracting a signal from a first sound signal that has a first correlation greater than a first preset threshold, which are not limited in this embodiment. For example, in one embodiment, the first sound signal can be converted from a time domain signal into a first spectrum curve, the second sound signal can be converted from a time domain signal into a second spectrum curve, the two spectrum curves can be added together to obtain a third spectrum curve, and the frequency points in the third spectrum curve whose amplitude is approximately doubled (a range can be set) compared to the first spectrum curve are used as relevant frequency points. The amplitudes of the relevant frequency points in the first spectrum curve are extracted to form a fourth spectrum curve, and the signal corresponding to the fourth spectrum curve is used as the extracted external sound signal.
[0056] Furthermore, in another embodiment, the following method may be used to extract a signal from the first sound signal that makes the first correlation greater than the first preset threshold. Step S30 includes:
[0057] Step S301, calculating the signal delay between the first sound signal and the second sound signal;
[0058] Since the first correlation between the first sound signal and the second sound signal is greater than the first preset threshold, the first sound signal and the second sound signal contain the same strong external sound signal. Since there is a time difference between the noise reduction microphone and the call microphone when receiving the external sound signal, there is a signal delay in the external sound signal in the first sound signal and the second sound signal.
[0059] In this embodiment, the headphone device may first calculate the signal delay between the first sound signal and the second sound signal. There are many methods for calculating the signal delay between the two signals, which are not limited here.
[0060] Step S302 : aligning the second sound signal with the first sound signal according to the signal delay, and extracting a signal overlapping with the aligned second sound signal from the first sound signal as an external sound signal.
[0061] After calculating the signal delay, the headphone device can align the second sound signal with the first sound signal, that is, shift the second sound signal according to the signal delay so that the second sound signal is aligned with the first sound signal in the time domain. The first sound signal is compared with the aligned second sound signal, and the signal that overlaps with the aligned second sound signal is extracted from the first sound signal as the external sound signal.
[0062] Step S40: performing active noise reduction processing based on the external sound signal.
[0063] After extracting the external sound signal, the headphone device can perform active noise reduction processing based on the external sound signal. In specific embodiments, as needed, the headphone device can be configured to directly perform active noise reduction processing on the external sound signal, that is, generate a signal with a phase opposite to that of the external sound signal to cancel the external sound signal. Alternatively, the headphone device can be configured to perform active noise reduction processing on a portion of the external sound signal, that is, generate a signal with a phase opposite to that of the external sound signal to cancel the portion of the external sound signal.
[0064] For example, in one embodiment, considering that if a user speaks while wearing headphones, the user's speaking voice will also be picked up by the noise reduction microphone and the call microphone, and will be extracted as an external sound signal, at this time, if the user sound signal in the external sound signal is also actively noise-reduced, the user will not be able to hear his own voice clearly and will feel muffled. To solve this problem, the user sound signal in the external sound signal can be further eliminated, and active noise reduction processing can only be performed on the external noise signal. The method of extracting the external noise signal from the external sound signal is not limited in this embodiment.
[0065] Furthermore, in one embodiment, the following method may be used to remove the user voice signal from the external voice signal. Step S40 includes:
[0066] Step S401: Remove the signal from the external sound signal that comes from the user's voice direction, and use the remaining signal as the external noise signal;
[0067] Step S402: Perform active noise reduction processing on the external noise signal.
[0068] There are many methods for removing signals from the user's voice direction from external sound signals, which are not limited in this embodiment. For example, in one embodiment, beamforming can be used to implement this, using a microphone array composed of a call microphone and a noise reduction microphone to locate the user's voice direction and then remove signals from the user's voice direction.
[0069] Furthermore, in one embodiment, after step S20, the method further includes:
[0070] Step a: When the first correlation is less than or equal to a first preset threshold, suspending the active noise reduction processing function.
[0071] When the headphone device determines that the first correlation is less than or equal to the first preset threshold, it indicates that the external sound signal is weak and that not performing active noise reduction processing will not affect the user experience. In this case, the headphone device can suspend the active noise reduction function, that is, it can not perform active noise reduction processing on any signal to avoid introducing additional circuit noise. When it is again detected that the first correlation between the first sound signal and the second sound signal is greater than the first preset threshold, the active noise reduction function is resumed.
[0072] In another embodiment, when the headphone device determines that the first correlation is less than or equal to the first preset threshold, it can also perform active noise reduction processing on a blank signal, where the blank signal can be a signal with an amplitude of 0 to avoid introducing additional circuit noise.
[0073] In this embodiment, a first sound signal collected by a noise reduction microphone in an earphone device and a second sound signal collected by a call microphone are obtained; a first correlation between the first sound signal and the second sound signal is calculated; when the first correlation is greater than a first preset threshold, a signal that makes the first correlation greater than the first preset threshold is extracted from the first sound signal as an external sound signal; and active noise reduction processing is performed based on the external sound signal, thereby achieving the effect of actively reducing noise only for the external sound signal but not for the circuit noise, thereby avoiding the introduction of additional circuit noise in the active noise reduction process and improving the user experience.
[0074] Furthermore, based on the above-mentioned first embodiment, a second embodiment of the noise reduction method of the present invention is proposed. In this embodiment, step S40 includes:
[0075] Step S403: obtaining a third sound signal collected by a bone conduction microphone in the headphone device;
[0076] In this embodiment, a bone conduction microphone can be incorporated into the headset to assist in removing the user's voice from external sound signals. The bone conduction microphone picks up the vibrations of the head bones caused by speech, collecting these mechanical vibrations and converting them into sound signals. When the active noise cancellation feature is enabled, the headset activates the bone conduction microphone, putting it into operation. The headset then receives the sound signal collected by the bone conduction microphone, hereinafter referred to as the third sound signal for clarity.
[0077] Step S404, calculating a second correlation between the external sound signal and the third sound signal;
[0078] After acquiring the external sound signal and the third sound signal, the headphone device can calculate the correlation between the external sound signal and the third sound signal (hereinafter referred to as the second correlation for distinction). It should be noted that the external sound signal can be regarded as the sound signal remaining after the circuit noise is removed from the first sound signal collected by the noise reduction microphone, which includes the external noise signal and the user sound signal, and the third sound signal mainly includes the user sound signal; the second correlation is calculated for the external sound signal and the third sound signal. Since both signals contain the user sound signal, when the user sound signal is strong, the calculated second correlation will be larger, and when the user sound signal is weak, the calculated second correlation will be smaller.
[0079] Step S405 , when the second correlation is greater than the second preset threshold, removing the signal that makes the second correlation greater than the second preset threshold from the external sound signal, and treating the remaining signal as the external noise signal;
[0080] The headphone device may compare the calculated second correlation with a preset threshold (hereinafter referred to as the second preset threshold). The second preset threshold is set as needed so that when the second correlation is greater than the second preset threshold, it can be indicated that the user's voice signal is strong and it is necessary to avoid active noise reduction processing on this part of the signal to avoid the user being unable to hear their own voice clearly and experiencing a dull feeling.
[0081] When the headphone device determines that the second correlation is greater than the second preset threshold, the signal that makes the second correlation greater than the second preset threshold can be removed from the external sound signal, and the remaining signal can be treated as the external noise signal. In other words, because the user's voice signal is strong, the correlation between the external sound signal and the third sound signal is relatively high. Therefore, after removing this portion of the signal, active noise reduction processing is performed on the remaining portion, and the remaining portion can be treated as the external noise signal. Therefore, the effect of actively reducing the noise signal only is achieved, while the active noise reduction processing is not performed on the user's voice signal, thereby avoiding the user being unable to hear their own voice and experiencing a dull feeling.
[0082] There are many methods for removing signals from the external sound signal that cause the second correlation to exceed the second preset threshold, which are not limited in this embodiment. In one embodiment, the removal effect can be achieved by extracting the signals from the external sound signal that cause the second correlation to exceed the second preset threshold, and then subtracting the extracted signals from the external sound signal. The specific implementation method for extracting the signals from the external sound signal that cause the second correlation to exceed the second preset threshold can refer to the specific implementation method for extracting the signals from the first sound signal that cause the first correlation to exceed the first preset threshold, and will not be repeated here.
[0083] Step S406: Perform active noise reduction processing on the external noise signal.
[0084] After extracting the external noise signal, the headphone device performs active noise reduction processing on the external noise signal, that is, generates a signal with an opposite phase to cancel the external noise signal.
[0085] Furthermore, in one embodiment, when the second correlation is less than or equal to the second preset threshold, it indicates that the user voice signal is weak, and not eliminating the user voice signal in the external sound signal will not affect the user experience. At this time, the headphone device can directly perform active noise reduction processing on the external sound signal.
[0086] In this embodiment, a third sound signal collected by a bone conduction microphone in the headphone device is obtained; a second correlation between the external sound signal and the third sound signal is calculated; when the second correlation is greater than a second preset threshold, the signal that makes the second correlation greater than the second preset threshold is eliminated from the external sound signal, and the remaining signal is used as the external noise signal; active noise reduction processing is performed on the external noise signal, thereby achieving the effect of actively reducing noise only on the external noise signal but not on the user sound signal, thereby avoiding the user from not being able to hear his own voice and feeling dull.
[0087] Furthermore, based on the first and / or second embodiments described above, a third embodiment of the noise reduction method of the present invention is proposed. In this embodiment, the noise reduction method further includes:
[0088] Step S50, detecting whether the headset device is in a call mode;
[0089] Step S60 : If the earphone device is not in the call mode, the step of calculating the first correlation between the first sound signal and the second sound signal is performed.
[0090] In this embodiment, when the active noise reduction function of the headphone device is turned on, it can detect whether the headphone device is in call mode. If the headphone device is not in call mode, it can be considered that the user voice signal in the first sound signal collected by the noise reduction microphone is weak, or even if active noise reduction processing is performed on the user voice signal, it will not affect the user experience. Therefore, when the headphone device determines that it is not in call mode, the first correlation between the first sound signal and the second sound signal can be calculated, so that when the first correlation is greater than the first preset threshold, the signal that makes the first correlation greater than the first preset threshold is extracted from the first sound signal as the external sound signal, and active noise reduction processing is performed based on the external sound signal, thereby achieving the effect of actively reducing the external sound signal but not the circuit noise, thereby avoiding the introduction of additional circuit noise in the active noise reduction process and improving the user experience.
[0091] Furthermore, in one embodiment, when the headset device determines that it is in call mode, the active noise reduction function can be suspended. In other words, at this time, the user needs to hear what they say clearly, so by suspending the active noise reduction function, the user's voice signal is not processed by active noise reduction, which may affect the user's call experience. When the headset device determines that it is not in call mode, the active noise reduction function is resumed.
[0092] Furthermore, in another embodiment, after step S50, the method further includes:
[0093] Step S70: If the headset device is in a call mode, obtaining a third sound signal collected by a bone conduction microphone in the headset device;
[0094] When the headphone device determines that it is in call mode, it can also use the third sound signal collected by the bone conduction microphone to eliminate the user sound signal in the first sound signal, thereby avoiding active noise reduction processing of the user sound signal. At the same time, it can use the second sound signal collected by the call microphone to extract the external noise signal, thereby avoiding active noise reduction processing of the circuit noise.
[0095] Step S80, calculating a third correlation between the second sound signal and the third sound signal;
[0096] After acquiring the second sound signal and the third sound signal, the headphone device can calculate the correlation between the second sound signal and the third sound signal (hereinafter referred to as the third correlation for distinction). It should be noted that the second sound signal is the sound signal collected by the call microphone, which contains the external sound signal and the circuit noise of the call microphone circuit, while the third sound signal mainly contains the user sound signal; the third correlation is calculated for the second sound signal and the third sound signal. Since both signals contain the user sound signal, when the user sound signal is strong, the calculated third correlation will be larger, and when the user sound signal is weak, the calculated third correlation will be smaller.
[0097] Step S90: when the third correlation is greater than the third preset threshold, remove the signal that makes the third correlation greater than the second preset threshold from the second sound signal, and use the remaining signal as a noise signal;
[0098] The headphone device may compare the calculated third correlation with a preset threshold (hereinafter referred to as the third preset threshold). The third preset threshold is set as needed so that when the third correlation is greater than the third preset threshold, it indicates that the user's voice signal is strong and it is necessary to avoid active noise reduction processing on this signal to avoid the user being unable to hear their own voice and experiencing a dull feeling.
[0099] When the headset device determines that the third correlation is greater than a third preset threshold, the signal that makes the third correlation greater than the third preset threshold can be removed from the second sound signal, and the remaining signal can be regarded as a noise signal. The noise signal can be understood as including external noise signals and circuit noise of the call microphone circuit.
[0100] There are many methods for removing signals from the second sound signal that cause the third correlation to exceed the third preset threshold, which are not limited in this embodiment. In one embodiment, the removal effect can be achieved by extracting signals from the second sound signal that cause the third correlation to exceed the third preset threshold, and then subtracting the extracted signals from the second sound signal. The specific implementation method for extracting signals from the second sound signal that cause the third correlation to exceed the third preset threshold can refer to the specific implementation method for extracting signals from the first sound signal that cause the first correlation to exceed the first preset threshold, and is not further described here.
[0101] Step A10, calculating a fourth correlation between the first sound signal and the noise signal;
[0102] After acquiring the first sound signal and the noise signal, the headphone device can calculate the correlation between the first sound signal and the noise signal (hereinafter referred to as the fourth correlation for distinction). It should be noted that the first sound signal is the sound signal collected by the noise reduction microphone, which contains the external sound signal and the circuit noise of the noise reduction microphone circuit; the noise signal contains the external noise signal and the circuit noise of the call microphone circuit; the fourth correlation is calculated for the first sound signal and the noise signal. Since both signals contain the external noise signal, when the external noise signal is strong, the fourth correlation will be greater, and when the external noise signal is weak, the calculated fourth correlation will be smaller.
[0103] Step A20: when the fourth correlation is greater than a fourth preset threshold, extracting a signal from the first sound signal that makes the fourth correlation greater than the fourth preset threshold as an external noise signal;
[0104] The headphone device may compare the calculated fourth correlation with a preset threshold (hereinafter referred to as the fourth preset threshold). The fourth preset threshold is set as needed so that when the fourth correlation is greater than the fourth preset threshold, it can be indicated that the external noise signal is strong and needs to be suppressed by active noise reduction processing.
[0105] When the headphone device determines that the fourth correlation is greater than a fourth preset threshold, it can extract the signal from the first sound signal that makes the fourth correlation greater than the fourth preset threshold, and treat this portion of the signal as the external noise signal. That is, because the external noise signal is strong, the correlation between the first sound signal and the noise signal is high, so this portion of the signal is extracted for active noise reduction processing. The portion of the signal that is not extracted can be considered to be the circuit noise of the noise reduction microphone circuit and the user's voice signal. Therefore, the headphone device can achieve the effect of actively reducing the external noise signal while ignoring the circuit noise and the user's voice signal. This avoids the introduction of additional noise during the active noise reduction process and prevents the user from being unable to hear their own voice and experiencing a dull feeling.
[0106] Step A30: Perform active noise reduction processing on the external noise signal.
[0107] After extracting the external noise signal, the headphone device performs active noise reduction processing on the external noise signal, that is, generates a signal with an opposite phase to cancel the external noise signal.
[0108] In addition, the embodiment of the present invention also provides a noise reduction device, which is deployed in a headphone device. Figure 2 , the noise reduction device includes:
[0109] An acquisition module 10 is configured to acquire a first sound signal collected by a noise reduction microphone and a second sound signal collected by a call microphone in the headset device;
[0110] A calculation module 20, configured to calculate a first correlation between the first sound signal and the second sound signal;
[0111] An extraction module 30 is configured to extract, from the first sound signal, a signal that makes the first correlation greater than the first preset threshold as an external sound signal when the first correlation is greater than the first preset threshold;
[0112] The noise reduction module 40 is configured to perform active noise reduction processing based on external sound signals.
[0113] Furthermore, the extraction module 30 includes:
[0114] a first calculation unit, configured to calculate a signal delay between the first sound signal and the second sound signal;
[0115] The extraction unit is configured to align the second sound signal with the first sound signal according to the signal delay, and extract a signal overlapping with the aligned second sound signal from the first sound signal as the external sound signal.
[0116] Furthermore, the noise reduction module 40 includes:
[0117] an acquiring unit, configured to acquire a third sound signal collected by a bone conduction microphone in the headphone device;
[0118] a second calculating unit, configured to calculate a second correlation between the external sound signal and the third sound signal;
[0119] a first elimination unit, configured to, when the second correlation is greater than a second preset threshold, eliminate from the external sound signal the signal that makes the second correlation greater than the second preset threshold, and use the remaining signal as the external noise signal;
[0120] The first noise reduction unit is configured to perform active noise reduction processing on an external noise signal.
[0121] Furthermore, the noise reduction module 40 includes:
[0122] A second elimination unit is used to eliminate the signal from the external sound signal coming from the direction of the user's voice, and use the remaining signal as the external noise signal;
[0123] The second noise reduction unit is used to perform active noise reduction processing on external noise signals.
[0124] Furthermore, the noise reduction device further comprises:
[0125] A detection module is used to detect whether the headset device is in call mode;
[0126] The calculation module 20 is further configured to calculate a first correlation between the first sound signal and the second sound signal if the earphone device is not in the call mode.
[0127] Furthermore, the acquisition module 10 is further configured to acquire a third sound signal collected by a bone conduction microphone in the earphone device if the earphone device is in a call mode;
[0128] The calculation module 20 is further configured to calculate a third correlation between the second sound signal and the third sound signal;
[0129] The noise reduction device also includes:
[0130] a removal module configured to, when the third correlation is greater than a third preset threshold, remove from the second sound signal the signal that makes the third correlation greater than the second preset threshold, and use the remaining signal as a noise signal;
[0131] The calculation module 20 is further configured to calculate a fourth correlation between the first sound signal and the noise signal;
[0132] The extraction module 30 is further configured to extract, from the first sound signal, a signal that makes the fourth correlation greater than the fourth preset threshold as the external noise signal when the fourth correlation is greater than the fourth preset threshold;
[0133] The noise reduction module 40 is further configured to perform active noise reduction processing on external noise signals.
[0134] Furthermore, the noise reduction device further comprises:
[0135] The pausing module is configured to suspend the active noise reduction processing function when the first correlation is less than or equal to a first preset threshold.
[0136] The expanded content of the specific implementation of the noise reduction device of the present invention is basically the same as the embodiments of the above-mentioned noise reduction method, and will not be repeated here.
[0137] The headphone device of the present invention includes a structural shell, a communication module, a main control module (such as a microcontroller unit MCU), a speaker, a microphone, a memory, etc. The main control module may include a microprocessor, an audio decoding unit, a power supply and a power management unit, sensors required by the system, and other active or passive devices (which can be replaced, deleted, or added according to actual functions) to realize the reception and playback functions of wireless audio. The headphone device can establish a communication connection with the user terminal through the communication module. The memory of the headphone can store a noise reduction program, and the microprocessor can be used to call the noise reduction program stored in the memory and perform the following operations:
[0138] Acquire a first sound signal collected by a noise reduction microphone and a second sound signal collected by a call microphone in the headset device;
[0139] calculating a first correlation between the first sound signal and the second sound signal;
[0140] When the first correlation is greater than a first preset threshold, extracting a signal from the first sound signal that makes the first correlation greater than the first preset threshold as an external sound signal;
[0141] Active noise reduction based on external sound signals.
[0142] Furthermore, the operation of extracting a signal having a first correlation greater than a first preset threshold from the first sound signal as the external sound signal includes:
[0143] calculating a signal delay between the first sound signal and the second sound signal;
[0144] The second sound signal is aligned with the first sound signal according to the signal time delay, and a signal overlapping with the aligned second sound signal is extracted from the first sound signal as the external sound signal.
[0145] Furthermore, the operation of performing active noise reduction processing based on the external sound signal includes:
[0146] Obtaining a third sound signal collected by a bone conduction microphone in the headphone device;
[0147] calculating a second correlation between the external sound signal and the third sound signal;
[0148] When the second correlation is greater than a second preset threshold, the signal that makes the second correlation greater than the second preset threshold is removed from the external sound signal, and the remaining signal is used as the external noise signal;
[0149] Active noise reduction is performed for external noise signals.
[0150] Furthermore, the operation of performing active noise reduction processing based on the external sound signal includes:
[0151] Remove the signal from the user's voice direction from the external sound signal and use the remaining signal as the external noise signal;
[0152] Active noise reduction is performed for external noise signals.
[0153] Furthermore, before calculating the first correlation between the first sound signal and the second sound signal, the microprocessor may be further configured to call a noise reduction program stored in the memory and perform the following operations:
[0154] Detect whether the headset device is in call mode;
[0155] If the earphone device is not in the call mode, an operation of calculating a first correlation between the first sound signal and the second sound signal is performed.
[0156] Furthermore, after detecting whether the headset device is in the call mode, the microprocessor may be further configured to call the noise reduction program stored in the memory and perform the following operations:
[0157] If the headset device is in a call mode, obtaining a third sound signal collected by a bone conduction microphone in the headset device;
[0158] calculating a third correlation between the second sound signal and the third sound signal;
[0159] When the third correlation is greater than a third preset threshold, removing the signal that makes the third correlation greater than the second preset threshold from the second sound signal, and treating the remaining signal as a noise signal;
[0160] calculating a fourth correlation between the first sound signal and the noise signal;
[0161] When the fourth correlation is greater than a fourth preset threshold, extracting a signal from the first sound signal that makes the fourth correlation greater than the fourth preset threshold as an external noise signal;
[0162] Active noise reduction is performed for external noise signals.
[0163] Furthermore, after calculating the first correlation between the first sound signal and the second sound signal, the microprocessor may be further configured to call a noise reduction program stored in the memory and perform the following operations:
[0164] When the first correlation is less than or equal to a first preset threshold, the active noise reduction processing function is suspended.
[0165] The various embodiments of the headphone device and the computer-readable storage medium of the present invention may refer to the various embodiments of the noise reduction method of the present invention, and will not be described in detail here.
[0166] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0167] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0168] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of various embodiments of the present invention.
[0169] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A noise reduction method, characterized in that: The noise reduction method is applied to a headphone device, and the noise reduction method includes: Obtaining a first sound signal collected by a noise reduction microphone in the headset device and a second sound signal collected by a call microphone, wherein the call microphone is a microphone in the headset device used to record user sound signals in call mode, the first sound signal including an external sound signal and circuit noise of the noise reduction microphone circuit, and the second sound signal including an external sound signal and circuit noise of the call microphone circuit; calculating a first correlation between the first sound signal and the second sound signal; When the first correlation is greater than a first preset threshold, extracting a signal from the first sound signal that makes the first correlation greater than the first preset threshold as an external sound signal; Active noise reduction processing is performed based on the external sound signal.
2. The noise reduction method according to claim 1, wherein: The step of extracting a signal having the first correlation greater than the first preset threshold from the first sound signal as the external sound signal includes: calculating a signal delay between the first sound signal and the second sound signal; The second sound signal is aligned with the first sound signal according to the signal time delay, and a signal overlapping with the aligned second sound signal is extracted from the first sound signal as an external sound signal.
3. The noise reduction method according to claim 1, wherein: The step of performing active noise reduction processing based on the external sound signal includes: Acquiring a third sound signal collected by a bone conduction microphone in the headphone device; calculating a second correlation between the external sound signal and the third sound signal; When the second correlation is greater than a second preset threshold, removing the signal that makes the second correlation greater than the second preset threshold from the external sound signal, and treating the remaining signal as an external noise signal; Active noise reduction processing is performed on the external noise signal.
4. The noise reduction method according to claim 1, wherein: The step of performing active noise reduction processing based on the external sound signal includes: Eliminating the signal from the user's voice direction in the external sound signal and treating the remaining signal as the external noise signal; Active noise reduction processing is performed on the external noise signal.
5. The noise reduction method according to claim 1, wherein: Before the step of calculating the first correlation between the first sound signal and the second sound signal, the method further includes: Detecting whether the headset device is in call mode; If the earphone device is not in the call mode, the step of calculating the first correlation between the first sound signal and the second sound signal is performed.
6. The noise reduction method according to claim 5, wherein: After the step of detecting whether the headset device is in the call mode, the method further includes: If the earphone device is in a call mode, obtaining a third sound signal collected by a bone conduction microphone in the earphone device; calculating a third correlation between the second sound signal and the third sound signal; When the third correlation is greater than a third preset threshold, removing the signal that makes the third correlation greater than the third preset threshold from the second sound signal, and treating the remaining signal as a noise signal; calculating a fourth correlation between the first sound signal and the noise signal; When the fourth correlation is greater than a fourth preset threshold, extracting a signal from the first sound signal that makes the fourth correlation greater than the fourth preset threshold as an external noise signal; Active noise reduction processing is performed on the external noise signal.
7. The noise reduction method according to claim 1, wherein: After the step of calculating the first correlation between the first sound signal and the second sound signal, the method further includes: When the first correlation is less than or equal to the first preset threshold, the active noise reduction processing function is suspended.
8. A noise reduction device, characterized in that: The noise reduction device is deployed in a headphone device, and the noise reduction device includes: an acquisition module, configured to acquire a first sound signal collected by a noise reduction microphone in the headset device and a second sound signal collected by a call microphone, wherein the call microphone is a microphone in the headset device used to record a user sound signal in a call mode, the first sound signal including an external sound signal and circuit noise of the noise reduction microphone circuit, and the second sound signal including an external sound signal and circuit noise of the call microphone circuit; a calculation module, configured to calculate a first correlation between the first sound signal and the second sound signal; an extraction module, configured to extract, from the first sound signal, a signal that makes the first correlation greater than the first preset threshold as an external sound signal when the first correlation is greater than a first preset threshold; The noise reduction module is configured to perform active noise reduction processing based on the external sound signal.
9. A headphone device, characterized in that: The headphone device includes: a memory, a processor, and a noise reduction program stored in the memory and executable on the processor. When the noise reduction program is executed by the processor, the steps of the noise reduction method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a noise reduction program, which, when executed by a processor, implements the steps of the noise reduction method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Voice equipment control method and device, voice equipment and storage medium
CN111341345A
Realize that earphone of making an uproar falls in diamylose gram
CN206698401U
Signal processing device, signal processing device, computer program, and audio device
WO2021065095A1