CN117014750A - Noise reduction method, device and computer readable storage medium - Google Patents

Noise reduction method, device and computer readable storage medium Download PDF

Info

Publication number
CN117014750A
CN117014750A CN202311071384.1A CN202311071384A CN117014750A CN 117014750 A CN117014750 A CN 117014750A CN 202311071384 A CN202311071384 A CN 202311071384A CN 117014750 A CN117014750 A CN 117014750A
Authority
CN
China
Prior art keywords
noise reduction
signal
microphone
processing parameter
reduction processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311071384.1A
Other languages
Chinese (zh)
Inventor
于锴
华洋
温晓峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Intelligent Technology Co Ltd
Original Assignee
Goertek Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Intelligent Technology Co Ltd filed Critical Goertek Intelligent Technology Co Ltd
Priority to CN202311071384.1A priority Critical patent/CN117014750A/en
Publication of CN117014750A publication Critical patent/CN117014750A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/08Mouthpieces; Microphones; Attachments therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present invention relates to the field of noise reduction technologies, and in particular, to a noise reduction method, device, and computer readable storage medium, where the method includes: acquiring a microphone signal picked up by a microphone of the earphone device, and detecting whether an interference signal exists in the microphone signal; if an interference signal exists in the microphone signal, adjusting a noise reduction processing parameter of a last state of a noise reduction processing channel corresponding to the microphone signal to obtain a noise reduction processing parameter of a current state, so as to suppress a low-frequency signal in the microphone signal based on the noise reduction processing parameter of the current state, wherein the upper limit frequency of the low-frequency signal is smaller than a preset frequency; and processing the microphone signal based on the noise reduction processing parameter in the current state to obtain a noise reduction reference signal so as to counteract the microphone signal through the noise reduction reference signal. The invention realizes suppression of transient interference noise signals in microphone signals and improves the noise reduction effect of active noise reduction.

Description

Noise reduction method, device and computer readable storage medium
Technical Field
The present invention relates to the field of noise reduction technologies, and in particular, to a noise reduction method, apparatus, and computer readable storage medium.
Background
The active noise reduction earphone can reduce noise in the environment to a great extent, and provides good experience for users. However, because the use scenes of the user are very complex and various, a lot of non-steady use scenes are often encountered, and some transient interference exists in the scenes to cause the earphone to vibrate and the earphone cavity to compress, so that the microphone on the active noise reduction earphone picks up transient interference noise, the transient interference noise generally has the characteristics of low frequency and high energy, the active noise reduction system is difficult to eliminate the noise, and even the lifting can be generated for some low frequency bands, so that the user can sense the interference noise when using the earphone, and the user experience is reduced.
Disclosure of Invention
The invention mainly aims to provide a noise reduction method, equipment and a computer readable storage medium, which aim to inhibit transient interference noise so as to improve the noise reduction effect of active noise reduction.
To achieve the above object, the present invention provides a noise reduction method comprising the steps of:
acquiring a microphone signal picked up by a microphone of the earphone device, and detecting whether an interference signal exists in the microphone signal;
If the interference signal exists in the microphone signal, adjusting a noise reduction processing parameter of a last state of a noise reduction processing channel corresponding to the microphone signal to obtain a noise reduction processing parameter of a current state, so as to suppress a low-frequency signal in the microphone signal based on the noise reduction processing parameter of the current state, wherein the upper limit frequency of the low-frequency signal is smaller than a preset frequency;
and processing the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal so as to counteract the microphone signal through the noise reduction reference signal.
Optionally, after the step of detecting whether an interference signal exists in the microphone signal, the method further includes:
and if the interference signal does not exist in the microphone signal, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
Optionally, the step of taking the initial processing parameter of the noise reduction processing path as the current state noise reduction processing parameter if the interference signal does not exist in the microphone signal includes:
if the interference signal does not exist in the microphone signal, detecting whether the noise reduction processing parameter in the previous state is in an adjusted state or not;
And if the noise reduction processing parameter in the previous state is in the adjusted state, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
Optionally, the step of detecting whether an interference signal exists in the microphone signal includes:
determining low-frequency signal energy of a low-frequency signal in the microphone signal, and detecting whether the low-frequency signal energy is larger than a preset energy threshold;
if the energy of the low-frequency signal is larger than the energy threshold value, determining that an interference signal exists in the microphone signal;
and if the energy of the low-frequency signal is smaller than or equal to the energy threshold value, determining that the interference signal is not present in the microphone signal.
Optionally, the last state noise reduction processing parameter at least includes a last state low frequency signal gain and a last state lower limit cut-off frequency of the filter, and the step of adjusting the last state noise reduction processing parameter of the noise reduction processing path corresponding to the microphone signal to obtain the current state noise reduction processing parameter includes:
reducing the last state low frequency signal gain of a filter in a noise reduction processing path corresponding to the microphone signal to obtain the current state filter gain;
And increasing the last state lower limit cut-off frequency of the filter in the noise reduction processing path to obtain the current state lower limit cut-off frequency.
Optionally, before the step of detecting whether an interference signal exists in the microphone signal, the method further includes:
detecting whether the earphone equipment triggers an interference signal detection instruction or not;
and if the earphone equipment triggers the interference signal detection instruction, executing the step of detecting whether the interference signal exists in the microphone signal.
Optionally, an acceleration sensor and/or a touch sensor is disposed on the earphone device, and the step of detecting whether the earphone device triggers an interference signal detection instruction includes:
acquiring sensor signals acquired by the acceleration sensor and/or the touch sensor;
if the sensor signal is larger than the corresponding signal threshold value, determining that the earphone equipment triggers an interference signal detection instruction;
and if the sensor signal is smaller than or equal to the signal threshold value, determining that the earphone equipment does not trigger an interference signal detection instruction.
Optionally, after the step of processing the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal, the method further includes:
Detecting whether the interference signal exists in the noise reduction reference signal;
if the interference signal exists in the noise reduction reference signal, closing a signal output path corresponding to the noise reduction reference signal.
To achieve the above object, the present invention also provides a noise reduction apparatus including: the device comprises a memory, a processor and a noise reduction program stored on the memory and capable of running on the processor, wherein the noise reduction program realizes the steps of the noise reduction method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a noise reduction program which, when executed by a processor, implements the steps of the noise reduction method as described above.
According to the invention, through obtaining a microphone signal picked up by a microphone of the earphone equipment, and detecting whether an interference signal exists in the microphone signal; if an interference signal exists in the microphone signal, adjusting a noise reduction processing parameter of a last state of a noise reduction processing channel corresponding to the microphone signal to obtain a noise reduction processing parameter of a current state, so as to suppress a low-frequency signal in the microphone signal based on the noise reduction processing parameter of the current state, wherein the upper limit frequency of the low-frequency signal is smaller than a preset frequency; and processing the microphone signal based on the noise reduction processing parameter in the current state to obtain a noise reduction reference signal so as to counteract the microphone signal through the noise reduction reference signal.
When the interference signal exists in the microphone signal, the noise reduction processing parameter of the last state of the noise reduction processing channel where the microphone signal is positioned is adjusted to obtain the noise reduction processing parameter of the current state, so that the low-frequency signal in the microphone signal is suppressed based on the noise reduction processing parameter of the current state, transient interference noise signals in the microphone signal are suppressed, the noise reduction effect of active noise reduction is improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the noise reduction method of the present invention;
FIG. 3 is a schematic diagram of a noise reduction system according to an embodiment of the noise reduction method of the present invention;
FIG. 4 is a schematic flow chart of a noise reduction method according to an embodiment of the present invention;
fig. 5 is a schematic functional block diagram of a noise reduction device according to a preferred embodiment of the invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure of a hardware running environment according to an embodiment of the present invention.
It should be noted that, in the noise reduction device of the embodiment of the present invention, the noise reduction device may be an active noise reduction earphone, or may be a device that establishes a communication connection with the active noise reduction earphone, for example, a smart phone, a personal computer, a server, etc., which is not limited herein.
As shown in fig. 1, the noise reduction apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the noise reduction device and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a noise reduction program may be included in a memory 1005, which is one type of computer storage medium. An operating system is a program that manages and controls the hardware and software resources of the device, supporting the execution of noise reduction programs, as well as other software or programs. In the device shown in fig. 1, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing communication connection with a server; and the processor 1001 may be configured to call a noise reduction program stored in the memory 1005 and perform the following operations:
acquiring a microphone signal picked up by a microphone of the earphone device, and detecting whether an interference signal exists in the microphone signal;
if the interference signal exists in the microphone signal, adjusting a noise reduction processing parameter of a last state of a noise reduction processing channel corresponding to the microphone signal to obtain a noise reduction processing parameter of a current state, so as to suppress a low-frequency signal in the microphone signal based on the noise reduction processing parameter of the current state, wherein the upper limit frequency of the low-frequency signal is smaller than a preset frequency;
and processing the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal so as to counteract the microphone signal through the noise reduction reference signal.
Further, after the step of detecting whether an interference signal exists in the microphone signal, the processor 1001 may be further configured to invoke a noise reduction program stored in the memory 1005 to perform the following operations:
and if the interference signal does not exist in the microphone signal, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
Further, the step of taking the initial processing parameter of the noise reduction processing path as the current state noise reduction processing parameter if the interference signal does not exist in the microphone signal includes:
if the interference signal does not exist in the microphone signal, detecting whether the noise reduction processing parameter in the previous state is in an adjusted state or not;
and if the noise reduction processing parameter in the previous state is in the adjusted state, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
Further, the step of detecting whether an interference signal exists in the microphone signal includes:
determining low-frequency signal energy of a low-frequency signal in the microphone signal, and detecting whether the low-frequency signal energy is larger than a preset energy threshold;
If the energy of the low-frequency signal is larger than the energy threshold value, determining that an interference signal exists in the microphone signal;
and if the energy of the low-frequency signal is smaller than or equal to the energy threshold value, determining that the interference signal is not present in the microphone signal.
Further, the last state noise reduction processing parameter at least includes a last state low frequency signal gain and a last state lower limit cut-off frequency of the filter, and the step of adjusting the last state noise reduction processing parameter of the noise reduction processing path corresponding to the microphone signal to obtain the current state noise reduction processing parameter includes:
reducing the last state low frequency signal gain of a filter in a noise reduction processing path corresponding to the microphone signal to obtain the current state filter gain;
and increasing the last state lower limit cut-off frequency of the filter in the noise reduction processing path to obtain the current state lower limit cut-off frequency.
Further, before the step of detecting whether there is an interference signal in the microphone signal, the processor 1001 may be further configured to invoke a noise reduction program stored in the memory 1005 to perform the following operations:
detecting whether the earphone equipment triggers an interference signal detection instruction or not;
And if the earphone equipment triggers the interference signal detection instruction, executing the step of detecting whether the interference signal exists in the microphone signal.
Further, an acceleration sensor and/or a touch sensor is arranged on the earphone device, and the step of detecting whether the earphone device triggers an interference signal detection instruction comprises the following steps:
acquiring sensor signals acquired by the acceleration sensor and/or the touch sensor;
if the sensor signal is larger than the corresponding signal threshold value, determining that the earphone equipment triggers an interference signal detection instruction;
and if the sensor signal is smaller than or equal to the signal threshold value, determining that the earphone equipment does not trigger an interference signal detection instruction.
Further, after the step of processing the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal, the processor 1001 may be further configured to invoke a noise reduction program stored in the memory 1005 to perform the following operations:
detecting whether the interference signal exists in the noise reduction reference signal;
if the interference signal exists in the noise reduction reference signal, closing a signal output path corresponding to the noise reduction reference signal.
Based on the above-described structure, various embodiments of a noise reduction method are proposed.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of the noise reduction method according to the present invention.
Embodiments of the present invention provide embodiments of noise reduction methods, it being noted that although a logic sequence is shown in the flow diagrams, in some cases the steps shown or described may be performed in a different order than that shown or described herein. In this embodiment, the execution body of the noise reduction method may be an active noise reduction earphone, or may be a device that establishes a communication connection with the active noise reduction earphone, for example, a personal computer, a smart phone, a server, etc., which is not limited in this embodiment, and for convenience of description, the execution body is omitted for illustration of each embodiment. In this embodiment, the noise reduction method includes:
step S10, acquiring a microphone signal picked up by a microphone of the earphone equipment, and detecting whether an interference signal exists in the microphone signal;
in this embodiment, for convenience of description, the active noise reduction earphone is referred to as an earphone device, a microphone for picking up a sound signal is disposed on the earphone device, hereinafter, the sound signal picked up by the microphone is referred to as a microphone signal for distinguishing, and in this embodiment, the microphone on the active noise reduction earphone includes at least a feedforward microphone and/or a feedback microphone, and the microphone signal includes at least a feedforward microphone signal and/or a feedback microphone signal. Further, in a possible embodiment, the microphone of the earphone device may further include a talking microphone, and the like, which is not limited herein.
In this embodiment, detection of an interference signal is added outside the noise reduction system, and the noise reduction system is controlled by the detection of the interference signal according to the detection result, including adjusting noise reduction parameters of the corresponding channels or directly closing the corresponding channels. Specifically, the interference detection module detects an interference signal of each frame of microphone signal picked up by the microphone, determines a noise reduction processing parameter corresponding to each frame of microphone signal based on the result of the interference signal detection, and processes the current frame of microphone signal through the corresponding noise reduction processing parameter.
Specifically, detecting whether a transient interference signal (hereinafter referred to as an interference signal for convenience of description) exists in the microphone signal, in a possible implementation manner, whether the signal energy of the low-frequency signal in the microphone signal exceeds a threshold value may be detected based on the characteristics that the transient interference signal has low frequency and high energy, so as to detect whether the transient interference signal exists in the microphone signal; in another possible implementation manner, whether the transient interference signal exists in the microphone signal may be detected based on the characteristic that the transient interference signal does not have continuity in the time domain, or may be detected by adopting other possible transient interference signal detection manners, which is not limited herein.
Step S20, if the interference signal exists in the microphone signal, adjusting a noise reduction processing parameter of a last state of a noise reduction processing channel corresponding to the microphone signal to obtain a noise reduction processing parameter of a current state, so as to suppress a low-frequency signal in the microphone signal based on the noise reduction processing parameter of the current state, wherein the upper limit frequency of the low-frequency signal is smaller than a preset frequency;
in the present embodiment, a parameter for performing noise reduction processing on a microphone signal is referred to as a current state noise reduction processing parameter. If there is an interference signal in the microphone signal, noise reduction processing parameters (hereinafter referred to as a previous state noise reduction processing parameter) for processing a previous frame of microphone signal in a microphone noise reduction processing path corresponding to the microphone signal may not be suitable for the interference signal, so that the interference signal cannot be accurately suppressed.
In this embodiment, the noise reduction processing parameters are not specifically limited, and may be set according to actual requirements. Illustratively, in one possible embodiment, parameters such as filter gain, cut-off frequency, etc., may be included, without limitation. Specifically, the previous state processing parameter may be adjusted according to a certain step size, and in a possible implementation manner, the step size may be preset; in another possible embodiment, the step size may also be determined based on the difference between the last frame microphone signal and the current frame microphone signal, e.g. based on the energy difference, the loudness difference, etc.
Further, in a possible implementation manner, if there is no interference signal in the microphone signal, the noise reduction processing parameter of the previous state may be used as the noise reduction processing parameter of the current state; in another possible embodiment, if there is no interference signal in the microphone signal, the current state noise reduction processing parameter may be determined according to whether the noise reduction processing parameter in the previous state is changed, for example, when the noise reduction processing parameter in the previous state is changed, the microphone signal corresponding to the noise reduction processing parameter in the previous state is considered to have an interference signal, however, at this time, there is no interference signal in the microphone signal, if the noise reduction processing parameter in the up-shift state is still adopted at this time, the obtained noise reduction processing result may be inaccurate, and therefore the initial noise reduction processing parameter may be used as the target noise reduction processing parameter.
And step S30, processing the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal so as to counteract the microphone signal through the noise reduction reference signal.
And processing the microphone signal based on the noise reduction processing parameter in the current state, wherein the obtained signal is called a noise reduction reference signal, and the noise reduction reference signal is output through a loudspeaker to be counteracted with the microphone signal so as to realize active noise reduction.
Further, in a possible implementation manner, when the microphone on the earphone device includes at least a feedforward microphone and a feedback microphone, the microphone signal includes at least a feedforward microphone signal and a feedback microphone signal, and in this implementation manner, when detecting the interference signal, whether the feedforward microphone signal has the interference signal or not and whether the feedback microphone signal has the interference signal or not are detected, respectively, and the above-mentioned processing is performed on a signal path where the interference signal has the interference signal.
In this embodiment, by acquiring a microphone signal picked up by a microphone of the earphone device, and detecting whether an interference signal exists in the microphone signal; if an interference signal exists in the microphone signal, adjusting a noise reduction processing parameter of a last state of a noise reduction processing channel corresponding to the microphone signal to obtain a noise reduction processing parameter of a current state, so as to suppress a low-frequency signal in the microphone signal based on the noise reduction processing parameter of the current state, wherein the upper limit frequency of the low-frequency signal is smaller than a preset frequency; and processing the microphone signal based on the noise reduction processing parameter in the current state to obtain a noise reduction reference signal so as to counteract the microphone signal through the noise reduction reference signal.
When the interference signal exists in the microphone signal, the noise reduction processing parameter of the last state of the noise reduction processing channel where the microphone signal is located is adjusted to obtain the noise reduction processing parameter of the current state, so that the low-frequency signal in the microphone signal is suppressed based on the noise reduction processing parameter of the current state, transient interference noise signals in the microphone signal are suppressed, the noise reduction effect of active noise reduction is improved, and the user experience is improved.
Further, based on the above first embodiment, a second embodiment of the noise reduction method of the present invention is provided, and in this embodiment, after step S10, the method further includes:
step S40, if the interference signal does not exist in the microphone signal, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
In this embodiment, when there is no interference signal in the microphone signal, the initial processing parameter of the noise reduction processing path is used as the noise reduction processing parameter of the current state to ensure the accuracy of the noise reduction reference signal, thereby improving the noise reduction effect.
Further, in a possible embodiment, step S40 includes:
step S401, if the interference signal does not exist in the microphone signal, detecting whether the noise reduction processing parameter in the previous state is in an adjusted state;
in this embodiment, if no interference signal exists in the microphone signal, it is detected whether the noise reduction processing parameter in the previous state is in the adjusted state. Specifically, in a possible implementation manner, whether the previous state noise reduction processing parameter is consistent with the initial noise reduction processing parameter is detected, so as to detect whether the previous state processing parameter is in an adjusted state; in another possible implementation manner, the recording may be performed each time the noise reduction processing parameter is adjusted, and whether the noise reduction parameter is in the adjusted state or not is detected according to the recording, which is not limited herein.
Step S402, if the noise reduction processing parameter in the previous state is in the adjusted state, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
If the noise reduction processing parameter in the previous state is in the adjusted state, determining that the noise reduction processing parameter in the previous state is not suitable for the current microphone signal, and taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state at the moment to ensure the accuracy of the noise reduction reference signal, thereby improving the noise reduction effect.
In the embodiment, when no interference signal exists in the microphone signal, whether the noise reduction processing parameter in the previous state is in the adjusted state is detected, and when the noise reduction processing parameter in the previous state is determined to be in the adjusted state, the initial processing parameter of the noise reduction processing passage is taken as the noise reduction processing parameter in the current state.
Further, in a possible embodiment, step S10 includes:
step S101, determining low-frequency signal energy of a low-frequency signal in the microphone signal, and detecting whether the low-frequency signal energy is larger than a preset energy threshold;
in this embodiment, whether or not an interference signal exists in the microphone signal is detected based on the signal energy. Specifically, the low frequency signal energy of the low frequency signal in the microphone signal is determined, and whether the low frequency signal energy is greater than a preset energy threshold is detected.
Step S102, if the energy of the low-frequency signal is larger than the energy threshold, determining that an interference signal exists in the microphone signal;
If the low frequency signal energy is greater than the energy threshold, it is determined that the signal energy of the low frequency band of the microphone signal is too great, i.e., that an interference signal is present in the microphone signal.
Step S103, if the low frequency signal energy is less than or equal to the energy threshold, determining that the interference signal is not present in the microphone signal.
If the low frequency signal energy is less than or equal to the energy threshold, it is determined that the signal energy of the low frequency band of the microphone signal is in a normal range, i.e. no interference signal is present in the microphone signal.
Further, in a possible implementation manner, the last state noise reduction processing parameter includes at least a last state low frequency signal gain and a last state lower limit cut-off frequency of the filter, and step S20 includes:
step S201, the last state low frequency signal gain of the filter in the noise reduction processing path corresponding to the microphone signal is reduced, and the current state filter gain is obtained;
in this embodiment, the last state noise reduction processing parameter at least includes a last state low frequency signal gain and a last state lower limit cut-off frequency of the filter. In order to suppress the energy of the low-frequency signal, the gain of the low-frequency signal in the last state of the filter in the noise reduction processing path corresponding to the microphone signal is reduced, and the adjusted gain is called the current state filter gain.
Step S202, increasing the last state lower limit cut-off frequency of the filter in the noise reduction processing path, to obtain the current state lower limit cut-off frequency.
The upper state lower limit cut-off frequency of the filter in the noise reduction processing path is increased, and the adjusted cut-off frequency is called the lower limit cut-off frequency.
In this embodiment, when no interference signal exists in the microphone signal, the initial processing parameter of the noise reduction processing path is used as the noise reduction processing parameter in the current state, so as to ensure the accuracy of the noise reduction reference signal, thereby improving the noise reduction effect.
Further, based on the first and/or second embodiments, a third embodiment of the noise reduction method of the present invention is provided, in this embodiment, in the step S10: before detecting whether an interference signal exists in the microphone signal, the method further comprises:
step S50, detecting whether the earphone equipment triggers an interference signal detection instruction;
in this embodiment, before the detection of the interference signal, it is detected whether the earphone device triggers an interference signal detection instruction. Specifically, in a possible implementation manner, the detection of the interference signal may be triggered by the sensor signal, and in this implementation manner, whether the detection of the interference signal triggers the detection instruction of the interference signal may be detected by detecting the sensor signal; in another possible implementation manner, the interference signal detection command may be triggered by receiving a user command, and in this implementation manner, whether the user command is received or not is detected to trigger the interference signal detection command is detected or not, which is not limited herein.
Step S60, if the earphone device triggers the interference signal detection instruction, executing the step of detecting whether an interference signal exists in the microphone signal;
if the earphone device triggers the interference signal detection instruction, the earphone device is considered to receive transient interference, and at the moment, interference signal detection is performed, namely, a step of detecting whether an interference signal exists in a microphone signal is performed.
In this embodiment, when it is determined that the earphone device triggers the interference signal detection instruction, the interference signal detection is performed, and compared with continuous interference signal detection, the calculation amount of the active noise reduction system can be reduced, and the noise reduction processing speed can be improved.
Further, in a possible implementation manner, if the earphone device does not trigger the interference signal detection instruction, it is considered that the earphone device does not receive the transient interference, and the microphone signal of the previous frame may have an interference signal, so that in order to suppress the interference signal, the noise reduction processing parameter of the previous state may be changed, at this time, the noise reduction processing parameter of the previous state is not adapted to the microphone signal of the current frame, and in this embodiment, when the earphone device does not trigger the interference signal detection instruction, the initial processing parameter of the noise reduction processing channel is used as the noise reduction processing parameter of the current state, so as to ensure accuracy of the noise reduction reference signal, thereby improving the noise reduction effect. Further, in a possible implementation manner, if the earphone device does not trigger the interference signal detection instruction, detecting whether the noise reduction processing parameter in the previous state is in the adjusted state; if the noise reduction processing parameter in the previous state is in the adjusted state, the initial processing parameter of the noise reduction processing path is used as the noise reduction processing parameter in the current state, and the embodiment can reduce the calculated amount of the active noise reduction system and improve the noise reduction processing speed.
Further, in a possible implementation manner, the earphone device is provided with an acceleration sensor and/or a touch sensor, and step S50 includes:
step S501, acquiring sensor signals acquired by the acceleration sensor and/or the touch sensor;
in this embodiment, whether the earphone device triggers an interference signal detection command is detected by the sensor signal. Specifically, an acceleration sensor and/or a touch sensor are arranged on the earphone device, and sensor signals acquired by the acceleration sensor and/or the touch sensor are acquired, wherein the sensor signals comprise the acceleration sensor signals and/or the touch sensor signals.
Whether the sensor signal is larger than a preset signal threshold is detected, and the specific signal threshold can be set according to actual requirements.
Step S502, if the sensor signal is larger than the corresponding signal threshold, determining that the earphone equipment triggers an interference signal detection instruction;
if the sensor signal is larger than the corresponding signal threshold, the earphone device is considered to receive transient interference, and at the moment, the earphone device is determined to trigger an interference signal detection instruction. Specifically, the signal threshold corresponding to the acceleration sensor signal is an acceleration threshold, and the signal threshold corresponding to the touch sensor signal is a capacitance threshold.
Step S503, if the sensor signal is less than or equal to the signal threshold, determining that the earphone device does not trigger an interference signal detection instruction.
If the sensor signal is smaller than or equal to the signal threshold, the earphone device is considered to not receive transient interference, and the earphone device is determined to not trigger an interference signal detection instruction.
Further, in a possible embodiment, after step S30, the method further includes:
step S60, detecting whether the interference signal exists in the noise reduction reference signal;
in this embodiment, after the noise reduction processing parameter is processed on the basis of the current state noise reduction processing parameter to obtain the noise reduction reference signal, whether the noise reduction reference signal has an interference signal is detected to determine whether the interference signal has been suppressed. In this embodiment, the specific process of detecting the interference signal may refer to the first and/or second embodiments, which is not limited herein.
And step S70, if the interference signal exists in the noise reduction reference signal, closing a signal output path corresponding to the noise reduction reference signal.
If the noise reduction reference signal has an interference signal, determining that the interference signal does not completely suppress the interference signal, and closing a signal output passage corresponding to the noise reduction reference signal to ensure the hearing safety of a user.
In this embodiment, when it is determined that the earphone device triggers the interference signal detection instruction, the interference signal detection is performed, and compared with the continuous interference signal detection, the calculation amount of the active noise reduction system can be reduced, and the noise reduction processing speed can be improved.
Further, in one possible implementation, referring to fig. 3, the active noise reduction system may include two paths, feed-forward noise reduction and feedback noise reduction. The feedforward microphone (i.e., FFMIC (Feed Forward Microphone) shown in fig. 3) of the feedforward noise reduction path is typically disposed on the earphone housing to receive noise from the external environment, and is processed by the feedforward filter circuit (i.e., FFH (Feed Forward Path) shown in fig. 3) and then emitted by the Speaker (i.e., SPK (Speaker) shown in fig. 3). The feedback path is then the one that receives the residual noise signal in the ear canal by the feedback microphone (i.e., FBMIC (Feed Back Microphone) shown in fig. 3), processes it by the feedback filter circuit (i.e., FBH (Feed Back Path) shown in fig. 3), and then emits it through the speaker to cancel the ambient noise. In this embodiment, the active noise reduction system may be further multiplexed with a transmission mode, in which the human voice signal in the feedforward microphone signal is amplified and then output through the speaker, and the signal received by the feedforward microphone is processed by the transmission filter circuit (i.e. PTH (Pass Through Path) shown in fig. 3) and then emitted by the speaker. In this embodiment, an interference detection module is added outside the noise reduction system, and the interference detection module controls the active noise reduction system according to the detection result.
In this embodiment, referring to fig. 4, the flow of active noise reduction system detection may be:
an acceleration sensor signal and a touch sensor signal are acquired (i.e., sensor signals acquired by an acceleration sensor and a touch sensor are acquired).
It is detected whether the sensor signal is greater than the corresponding signal threshold (i.e., whether the detected acceleration/touch sensor signal shown in fig. 4 is greater than the signal threshold).
If the sensor signal is larger than the corresponding signal threshold value, the earphone equipment is determined to trigger an interference signal detection instruction. Acquiring microphone signals picked up by a microphone of the earphone device (i.e., acquiring feedforward microphone signals and feedback microphone signals shown in fig. 4); determining low frequency signal energy of the low frequency signal in the microphone signal, and detecting whether the low frequency signal energy is greater than a preset energy threshold (i.e., whether the low frequency signal energy in the detected FB (feedback)/FF (Feed Forward) signal shown in fig. 4 is greater than the energy threshold).
If the energy of the low-frequency signal is greater than the energy threshold, determining that an interference signal exists in the microphone signal, and adjusting the noise reduction processing parameter of the last state of the noise reduction processing path corresponding to the microphone signal at this time to obtain the noise reduction processing parameter of the current state (i.e. the adjusted noise reduction processing parameter shown in fig. 4).
If the low frequency signal energy is less than or equal to the energy threshold, then determining that the interfering signal is not present in the microphone signal, detecting whether the last state noise reduction processing parameter is in an adjusted state (i.e., detecting whether the last state noise reduction processing parameter is changed as shown in fig. 4). And if the noise reduction processing parameter in the last state is in the adjusted state, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state (namely, setting the noise reduction processing parameter as the initial noise reduction processing parameter in fig. 4), and if the noise reduction processing parameter in the last state is not in the adjusted state, returning to acquire an acceleration sensor signal and the touch sensor signal and detecting the acceleration sensor signal.
If the sensor signal is smaller than or equal to the signal threshold, determining that the earphone equipment does not trigger an interference signal detection instruction, and detecting whether the noise reduction processing parameter in the previous state is in an adjusted state or not; and if the noise reduction processing parameter in the previous state is in the adjusted state, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
Processing the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal (i.e. the acquired noise reduction signal shown in fig. 4), and detecting whether the interference signal exists in the noise reduction reference signal (i.e. whether the energy of a low-frequency signal in the detected noise reduction signal shown in fig. 4 is greater than an energy threshold value); if the interference signal exists in the noise reduction reference signal, closing a signal output channel corresponding to the noise reduction reference signal; and if the interference signal does not exist in the noise reduction reference signal, returning to acquire the acceleration sensor signal and the touch sensor signal and detecting.
In addition, an embodiment of the present invention further provides a noise reduction device, referring to fig. 5, where the noise reduction device includes:
a detection module 10, configured to obtain a microphone signal picked up by a microphone of the earphone device, and detect whether an interference signal exists in the microphone signal;
the adjusting module 20 is configured to adjust a noise reduction processing parameter of a previous state of a noise reduction processing path corresponding to the microphone signal if the interference signal exists in the microphone signal, so as to obtain a noise reduction processing parameter of a current state, so as to suppress a low-frequency signal in the microphone signal based on the noise reduction processing parameter of the current state, where an upper limit frequency of the low-frequency signal is less than a preset frequency;
the processing module 30 is configured to process the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal, so as to cancel the microphone signal by using the noise reduction reference signal.
Further, the noise reduction device further comprises a determining module, configured to:
and if the interference signal does not exist in the microphone signal, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
Further, the determining module is further configured to:
If the interference signal does not exist in the microphone signal, detecting whether the noise reduction processing parameter in the previous state is in an adjusted state or not;
and if the noise reduction processing parameter in the previous state is in the adjusted state, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
Further, the detection module is further configured to:
determining low-frequency signal energy of a low-frequency signal in the microphone signal, and detecting whether the low-frequency signal energy is larger than a preset energy threshold;
if the energy of the low-frequency signal is larger than the energy threshold value, determining that an interference signal exists in the microphone signal;
and if the energy of the low-frequency signal is smaller than or equal to the energy threshold value, determining that the interference signal is not present in the microphone signal.
Further, the last state noise reduction processing parameter at least includes a last state low frequency signal gain and a last state lower limit cut-off frequency of the filter, and the adjusting module is further configured to:
reducing the last state low frequency signal gain of a filter in a noise reduction processing path corresponding to the microphone signal to obtain the current state filter gain;
And increasing the last state lower limit cut-off frequency of the filter in the noise reduction processing path to obtain the current state lower limit cut-off frequency.
Further, the detection module is further configured to:
detecting whether the earphone equipment triggers an interference signal detection instruction or not;
and if the earphone equipment triggers the interference signal detection instruction, executing the step of detecting whether the interference signal exists in the microphone signal.
Further, an acceleration sensor and/or a touch sensor are arranged on the earphone device, and the detection module is further used for:
acquiring sensor signals acquired by the acceleration sensor and/or the touch sensor;
if the sensor signal is larger than the corresponding signal threshold value, determining that the earphone equipment triggers an interference signal detection instruction;
and if the sensor signal is smaller than or equal to the signal threshold value, determining that the earphone equipment does not trigger an interference signal detection instruction.
Further, the detection module is further configured to:
detecting whether the interference signal exists in the noise reduction reference signal;
if the interference signal exists in the noise reduction reference signal, closing a signal output path corresponding to the noise reduction reference signal.
The embodiments of the noise reduction device of the present invention can refer to the embodiments of the noise reduction method of the present invention, and will not be described herein.
In addition, an embodiment of the present invention also proposes a computer-readable storage medium, on which a noise reduction program is stored, which when executed by a processor implements the steps of the noise reduction method described below.
Embodiments of the noise reduction apparatus and the computer readable storage medium of the present invention may refer to embodiments of the noise reduction method of the present invention, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method of noise reduction, the method comprising the steps of:
Acquiring a microphone signal picked up by a microphone of the earphone device, and detecting whether an interference signal exists in the microphone signal;
if the interference signal exists in the microphone signal, adjusting a noise reduction processing parameter of a last state of a noise reduction processing channel corresponding to the microphone signal to obtain a noise reduction processing parameter of a current state, so as to suppress a low-frequency signal in the microphone signal based on the noise reduction processing parameter of the current state, wherein the upper limit frequency of the low-frequency signal is smaller than a preset frequency;
and processing the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal so as to counteract the microphone signal through the noise reduction reference signal.
2. The method of noise reduction according to claim 1, further comprising, after the step of detecting whether an interference signal is present in the microphone signal:
and if the interference signal does not exist in the microphone signal, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
3. The noise reduction method according to claim 2, wherein the step of taking an initial processing parameter of the noise reduction processing path as the current state noise reduction processing parameter if the interference signal does not exist in the microphone signal comprises:
If the interference signal does not exist in the microphone signal, detecting whether the noise reduction processing parameter in the previous state is in an adjusted state or not;
and if the noise reduction processing parameter in the previous state is in the adjusted state, taking the initial processing parameter of the noise reduction processing path as the noise reduction processing parameter in the current state.
4. The noise reduction method of claim 1, wherein the step of detecting whether an interference signal is present in the microphone signal comprises:
determining low-frequency signal energy of a low-frequency signal in the microphone signal, and detecting whether the low-frequency signal energy is larger than a preset energy threshold;
if the energy of the low-frequency signal is larger than the energy threshold value, determining that an interference signal exists in the microphone signal;
and if the energy of the low-frequency signal is smaller than or equal to the energy threshold value, determining that the interference signal is not present in the microphone signal.
5. The method of noise reduction according to claim 1, wherein the last state noise reduction processing parameter includes at least a last state low frequency signal gain and a last state lower limit cut-off frequency of a filter, and the step of adjusting the last state noise reduction processing parameter of the noise reduction processing path corresponding to the microphone signal to obtain the current state noise reduction processing parameter includes:
Reducing the last state low frequency signal gain of a filter in a noise reduction processing path corresponding to the microphone signal to obtain the current state filter gain;
and increasing the last state lower limit cut-off frequency of the filter in the noise reduction processing path to obtain the current state lower limit cut-off frequency.
6. The method of noise reduction according to claim 1, wherein prior to the step of detecting whether an interfering signal is present in the microphone signal, further comprising:
detecting whether the earphone equipment triggers an interference signal detection instruction or not;
and if the earphone equipment triggers the interference signal detection instruction, executing the step of detecting whether the interference signal exists in the microphone signal.
7. The noise reduction method according to claim 6, wherein an acceleration sensor and/or a touch sensor is provided on the headphone device, and the step of detecting whether the headphone device triggers an interference signal detection instruction includes:
acquiring sensor signals acquired by the acceleration sensor and/or the touch sensor;
if the sensor signal is larger than the corresponding signal threshold value, determining that the earphone equipment triggers an interference signal detection instruction;
And if the sensor signal is smaller than or equal to the signal threshold value, determining that the earphone equipment does not trigger an interference signal detection instruction.
8. The noise reduction method according to any one of claims 1 to 7, characterized by further comprising, after the step of processing the microphone signal based on the current state noise reduction processing parameter to obtain a noise reduction reference signal:
detecting whether the interference signal exists in the noise reduction reference signal;
if the interference signal exists in the noise reduction reference signal, closing a signal output path corresponding to the noise reduction reference signal.
9. A noise reduction apparatus, characterized in that the noise reduction apparatus comprises: memory, a processor and a noise reduction program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the noise reduction method according to any one of claims 1 to 8.
10. A computer-readable storage medium, on which a noise reduction program is stored, which, when executed by a processor, implements the steps of the noise reduction method according to any one of claims 1 to 8.
CN202311071384.1A 2023-08-23 2023-08-23 Noise reduction method, device and computer readable storage medium Pending CN117014750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311071384.1A CN117014750A (en) 2023-08-23 2023-08-23 Noise reduction method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311071384.1A CN117014750A (en) 2023-08-23 2023-08-23 Noise reduction method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117014750A true CN117014750A (en) 2023-11-07

Family

ID=88565491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311071384.1A Pending CN117014750A (en) 2023-08-23 2023-08-23 Noise reduction method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117014750A (en)

Similar Documents

Publication Publication Date Title
US8315400B2 (en) Method and device for acoustic management control of multiple microphones
CN108540906B (en) Volume adjusting method, earphone and computer readable storage medium
US8811602B2 (en) Full duplex speakerphone design using acoustically compensated speaker distortion
US10595151B1 (en) Compensation of own voice occlusion
CN112954115B (en) Volume adjusting method and device, electronic equipment and storage medium
TW201335931A (en) Method and apparatus for audio intelligibility enhancement and computing apparatus
EP2700161B1 (en) Processing audio signals
CN111294719B (en) Method and device for detecting in-ear state of ear-wearing type device and mobile terminal
CN105027542A (en) Communication system and robot
EP3038255A2 (en) An intelligent volume control interface
EP3163850B1 (en) Acoustical signal processing method and device of communication device
CN114071306B (en) Noise reduction earphone audio processing method, noise reduction earphone, device and readable storage medium
US9564145B2 (en) Speech intelligibility detection
CN114071309B (en) Earphone noise reduction method, device, equipment and computer readable storage medium
CN117014750A (en) Noise reduction method, device and computer readable storage medium
CN114071307A (en) Earphone volume adjusting method, device, equipment and medium
US9843872B2 (en) Sound collection equipment and method for detecting the operation status of sound collection equipment
CN113329290B (en) Earphone control method, earphone control device, wireless earphone and storage medium
US7760869B2 (en) Method and apparatus for controlling the transmit volume level of a speakerphone
CN114125625B (en) Noise reduction adjustment method, earphone and computer readable storage medium
CN114554346B (en) Adaptive adjustment method and device of ANC parameters and storage medium
US20220322005A1 (en) Audio feedback detection apparatus and audio feedback detection method
CN115103254A (en) Noise reduction mode control method and device, earphone equipment and storage medium
CN116546363A (en) Human voice optimization method, device, microphone set and storage medium
CN115767355A (en) Earphone volume adaptive compensation method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination