CN111800687B - Active noise reduction method and device, electronic equipment and storage medium - Google Patents

Active noise reduction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111800687B
CN111800687B CN202010213133.2A CN202010213133A CN111800687B CN 111800687 B CN111800687 B CN 111800687B CN 202010213133 A CN202010213133 A CN 202010213133A CN 111800687 B CN111800687 B CN 111800687B
Authority
CN
China
Prior art keywords
microphone
wearing state
earphone
noise reduction
signal
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.)
Active
Application number
CN202010213133.2A
Other languages
Chinese (zh)
Other versions
CN111800687A (en
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.)
Shenzhen Horn Audio Co Ltd
Original Assignee
Shenzhen Horn Audio 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 Shenzhen Horn Audio Co Ltd filed Critical Shenzhen Horn Audio Co Ltd
Priority to CN202010213133.2A priority Critical patent/CN111800687B/en
Publication of CN111800687A publication Critical patent/CN111800687A/en
Application granted granted Critical
Publication of CN111800687B publication Critical patent/CN111800687B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1785Methods, e.g. algorithms; Devices
    • G10K11/17853Methods, e.g. algorithms; Devices of the filter
    • G10K11/17854Methods, e.g. algorithms; Devices of the filter the filter being an adaptive filter

Abstract

The application is applicable to the technical field of noise reduction, and provides an active noise reduction method, an active noise reduction device, electronic equipment and a storage medium. According to the embodiment of the application, a proper microphone is selected as a feedforward microphone according to the wearing state of the earphone, and a noise signal collected by the feedforward microphone is acquired; according to the noise signal, generating a noise reduction signal through a self-adaptive filtering algorithm to reduce the noise of the noise signal; the noise reduction signal and the noise signal have opposite phases and same frequency and energy, and the noise of the earphone can be reduced according to the wearing state of the earphone, so that the noise reduction effect is improved.

Description

Active noise reduction method and device, electronic equipment and storage medium
Technical Field
The present application belongs to the field of noise reduction technologies, and in particular, to an active noise reduction method and apparatus, an electronic device, and a storage medium.
Background
Noise reduction techniques are also becoming increasingly important because of the large amount of noise present in social environments that interferes with people's life and work. In the field of noise reduction of earphones, two mainstream noise elimination modes of active noise reduction and passive noise reduction are generally available. The passive noise reduction mainly utilizes the materials of the earphone to resist and absorb noise, the noise reduction capability of the passive noise reduction on a high-frequency part is good, and the effect of the noise reduction on medium and low frequencies is poor. The noise reduction of the medium-low frequency generally adopts an active noise reduction technology, and noise sound waves with the same amplitude and the opposite phase are mainly emitted by a sound generator to counteract the noise.
In the active noise reduction technology in the field of earphone noise reduction, noise reduction signals with opposite phases to noise signals and same frequency and energy are mainly generated through an algorithm, and then noise sound waves with the same amplitude and the same phase are sent through a sound generator to offset noise.
Disclosure of Invention
The embodiment of the application provides an active noise reduction method, an active noise reduction device, electronic equipment and a storage medium, and aims to solve the problem that in the noise reduction process of an existing earphone, due to interference of external factors, the noise reduction effect is sharply reduced or extra abnormal noise occurs, so that the noise reduction effect is poor.
In a first aspect, an embodiment of the present application provides an active noise reduction method, which is applied to an earphone, where the earphone includes a first microphone, a second microphone, a third microphone, and a sound emitter, the first microphone and the second microphone are disposed in a rear cavity of the earphone, a distance between the first microphone and the sound emitter is smaller than a distance between the second microphone and the sound emitter, and the third microphone is disposed in a front cavity of the earphone;
the active noise reduction method comprises the following steps:
detecting a wearing state of the earphone; wherein the wearing state is used for indicating a matching degree state between the earphone and the ear canal of the user;
selecting the first microphone or the second microphone as a feedforward microphone according to the wearing state;
acquiring a noise signal acquired by the feedforward microphone;
according to the noise signal, generating a noise reduction signal through a self-adaptive filtering algorithm to reduce the noise of the noise signal; wherein the noise reduction signal and the noise signal have opposite phases and the same frequency and energy.
In a second aspect, an embodiment of the present application provides an active noise reduction device applied to an earphone, where the earphone includes a first microphone, a second microphone, a third microphone, and a sound emitter, the first microphone and the second microphone are disposed in a rear cavity of the earphone, a distance between the first microphone and the sound emitter is smaller than a distance between the second microphone and the sound emitter, and the third microphone is disposed in a front cavity of the earphone;
the active noise reduction device includes:
the detection module is used for detecting the wearing state of the earphone;
the selection module is used for selecting one of the first microphone and the second microphone as a feedforward microphone according to the wearing state of the earphone;
the acquisition module is used for acquiring the noise signal acquired by the feedforward microphone;
the noise reduction module is used for generating a noise reduction signal through a self-adaptive filtering algorithm according to the noise signal so as to reduce the noise of the noise signal; wherein the noise reduction signal and the noise signal have opposite phases and the same frequency and energy.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the active noise reduction method when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the active noise reduction method are implemented.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when run on an electronic device, causes the electronic device to perform the active noise reduction method according to any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: according to the embodiment of the application, a proper microphone is selected as a feedforward microphone according to the wearing state of the earphone, and a noise signal collected by the feedforward microphone is acquired; according to the noise signal, a noise reduction signal is generated through a self-adaptive filtering algorithm to reduce noise of the noise signal, and noise of the earphone can be reduced according to the wearing state of the earphone, so that the noise reduction effect is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an earphone according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an active noise reduction method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an active noise reduction method according to another embodiment of the present application;
FIG. 4 is a schematic structural diagram of an active noise reduction system provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an active noise reduction device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The active noise reduction method provided by the embodiment of the application can be applied to earphones or other electronic devices, and the embodiment of the application does not limit the specific types of the electronic devices. In order to explain the technical solution described in the present application, the following embodiments are described with an application product as an earphone.
Example one
Referring to fig. 1, an embodiment of the present application provides an earphone, including: a housing 11, a sound emitter 12 disposed in a front cavity of the housing 11, a first microphone 13 and a second microphone 14 disposed in a rear cavity of the housing 11, and a third microphone 15 disposed in the front cavity of the housing 11. The distance between the first microphone 13 and the sound generator 12 is smaller than the distance between the second microphone 14 and the sound generator 12, an air outlet pipeline is formed in the front cavity, and the bottom of the front cavity is a sound outlet for transmitting sound.
In application, the sound emitter may be a speaker or a loudspeaker. The first microphone and the second microphone can be two microphones used in the function of reducing the noise in the conversation, and the two microphones used in the function of reducing the noise in the conversation are multiplexed, so that a microphone opening is not required to be additionally arranged on the earphone shell, and the active noise reduction function can be realized under the condition that the extra hardware cost is not increased and the appearance of the earphone is not influenced. Of course, the first microphone and the second microphone may be set separately according to the requirement, which is not limited in this respect.
Referring to fig. 2, an embodiment of the present application provides an active noise reduction method applied to the earphone in the embodiment corresponding to fig. 1, including:
step S201, detecting a wearing state of the headset.
In application, the wearing state is used for indicating the matching degree state between the earphone and the ear canal of the user; in particular for indicating whether the degree of matching between the earpiece and the ear canal of the user has reached a preset condition.
In application, whether the matching degree between the earphone and the ear canal reaches a preset condition can be judged according to the correlation degree between the audio signal collected by the first microphone and the audio signal output by the sound generator. Or after the iteration times of the preset filtering algorithm are greater than the preset iteration times, judging whether the matching degree between the earphone and the auditory canal reaches the preset condition according to the noise reduction effect convergence degree. The preset low-frequency signal can be output through the sound generator, and whether the matching degree between the earphone and the auditory canal reaches the preset condition or not can be judged according to the sensitivity of the feedback microphone when the preset low-frequency signal is collected.
In one embodiment, the detecting the wearing state of the headset includes: acquiring a first audio signal collected by the first microphone; acquiring a second audio signal output by the sound generator; acquiring the correlation degree of the first audio signal and the second audio signal; when the correlation degree is smaller than or equal to a first correlation degree threshold value, judging that the wearing state of the earphone is a first preset wearing state; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition, and when the correlation degree is larger than a second correlation degree threshold value, the wearing state of the earphone is judged to be a second preset wearing state; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition.
In application, when the correlation degree of the first audio signal and the second audio signal is high, it is indicated that the first microphone close to the sound generator can collect the audio signal sent by the sound generator, namely, the wearing leakage sound of the earphone is high, and it can be judged that the matching degree of the earphone and the auditory canal does not reach the preset state. When the correlation degree of the first audio signal and the second audio signal is small, it is indicated that the first microphone close to the sound generator cannot collect the audio signal sent by the sound generator, namely, the wearing leakage of the earphone is small, and it can be judged that the matching degree of the earphone and the auditory canal reaches the preset condition.
In one embodiment, the detecting the wearing state of the headset includes: acquiring a third audio signal acquired by the third microphone after the iteration number of the adaptive filtering algorithm is greater than a preset iteration number; calculating the convergence degree of the actual noise reduction effect according to the third audio signal and the audio signal collected by the selected feedforward microphone; when the convergence of the noise reduction effect is greater than or equal to a first noise reduction effect convergence threshold value, determining that the wearing state of the earphone is a first preset wearing state; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition; when the noise reduction effect convergence is smaller than a second noise reduction effect convergence threshold, judging that the wearing state of the earphone is a second preset wearing state; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition.
In an application, the third microphone may be a feedback microphone used in an active noise reduction process. The earphone can perform iterative noise reduction through the adaptive filtering algorithm, and after the iteration times of the adaptive filtering algorithm are larger than the preset iteration times, the convergence degree of the actual noise reduction effect is calculated, the convergence degree of the noise reduction effect is good, the fact that the feedforward microphone signal basically reflects the real noise of the environment is shown, and then the fact that the matching degree of the earphone and the auditory canal reaches the preset condition can be judged. The convergence of the noise reduction effect is poor, which indicates that the feedforward microphone signal cannot well reflect the real noise of the environment, and then the matching degree of the earphone and the auditory canal can be judged not to reach the preset condition.
In one embodiment, the detecting the wearing state of the headset includes:
acquiring a preset low-frequency signal output by the sound generator; acquiring a fourth audio signal acquired by the third microphone;
calculating the signal attenuation degree of the preset low-frequency signal according to the low-frequency signal included in the fourth audio signal;
obtaining sensitivity corresponding to the signal attenuation degree according to the signal attenuation degree;
when the sensitivity is greater than a first sensitivity threshold value, judging that the wearing state of the earphone is a first preset wearing state; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition;
when the sensitivity is smaller than or equal to a second sensitivity threshold value, judging that the wearing state of the earphone is a second preset wearing state; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition.
In application, the sound generator can be controlled to send out a preset low-frequency signal (such as a low-frequency or infrasonic signal with a specific frequency), then a low-frequency signal included in a fourth audio signal collected by a third microphone is obtained, the signal attenuation of the preset low-frequency signal can be calculated, when the signal attenuation is higher, the sensitivity of the third microphone for receiving the audio signal sent out by the sound generator is considered to be low, and then the condition that the matching degree of the earphone and the auditory canal does not reach the preset state can be judged; when the signal attenuation degree is smaller, the sensitivity of the third microphone for receiving the audio signal sent by the sound generator is considered to be high, and the matching degree of the earphone and the auditory canal can be judged to reach the preset state.
Step S202, selecting the first microphone or the second microphone as a feedforward microphone according to the wearing state.
In application, the first microphone or the second microphone is selected as a feedforward microphone according to the wearing state, and the first microphone or the second microphone is selected as the feedforward microphone according to the matching degree state between the earphone and the ear canal of the user.
In one embodiment, step S202 includes:
when the wearing state of the earphone is a first preset wearing state, selecting the first microphone as a feedforward microphone;
and when the wearing state of the earphone is a second preset wearing state, selecting the second microphone as a feedforward microphone.
In the application, first preset wearing state is used for instructing matching degree between earphone and user's the duct reaches preset condition (earphone and duct match better promptly), and the second preset wearing state is used for instructing matching degree between earphone and user's the duct does not reach preset condition (earphone and duct match relatively poor promptly).
In application, because the distance between the first microphone and the sound emitter is smaller than that between the second microphone and the sound emitter, when the earphone is well matched with the ear canal, the sound leakage of the loudspeaker is smaller, the crosstalk of the audio signal emitted by the sound emitter is smaller for the first microphone (which can be regarded as a near-end microphone) and the second microphone (which can be regarded as a far-end microphone), because the correlation degree between the first microphone closer to the sound emitter inside the earphone and the noise inside the earphone is higher, and the first microphone closer to the loudspeaker of the earphone is automatically switched to be used as a feedforward microphone at the moment, the noise reduction effect is better. When the earphone is poorly matched with the ear canal, the near-end microphone is much less interfered by signals sent by the loudspeaker than the far-end microphone, and because the wearing is open, the noise is only delayed and increased when being transmitted from the far-end microphone to the inner position of the earphone, and the correlation degree between the noise signals collected by the far-end microphone and the noise information really influencing useful signals of the sound generator is still ensured to a certain extent. The earphone software is automatically switched to a far-end microphone (if the TWS earphone far-end microphone is generally at the tail end of the earphone long handle) which is farther away from the earphone loudspeaker to be used as a feedforward microphone, and in addition, due to the fact that time delay is increased, the fact that the causality of feedforward self-adaptive noise reduction has certain redundancy is also guaranteed. Thereby reducing a sharp drop in noise reduction effect and preventing serious problems such as additional abnormal noise caused by non-convergence.
Step S203, acquiring a noise signal collected by the feedforward microphone.
In application, after one of the first microphone and the second microphone is selected as a feedforward microphone, an audio signal collected by the feedforward microphone is acquired as a noise signal.
Step S204, according to the noise signal, generating a noise reduction signal through a self-adaptive filtering algorithm to reduce the noise of the noise signal;
wherein the noise reduction signal and the noise signal have opposite phases and the same frequency and energy.
In application, according to a noise signal collected by a feedforward microphone, according to a noise reduction signal which is generated by a self-adaptive filtering algorithm and has the same phase and the same frequency and the same energy, the noise reduction signal is played by the sound generator and then is counteracted with the noise signal to obtain a true useful signal, and the noise reduction effect is achieved. The adaptive filtering algorithm may be an adaptive filtering algorithm such as LMS or FXLMS.
In one embodiment, the first microphone and the second microphone used for active noise reduction are microphones used in multiplexed call upstream noise reduction.
According to the embodiment of the application, a proper microphone can be selected as a feedforward microphone according to the wearing state of the earphone, and a noise signal collected by the feedforward microphone is acquired; according to the noise signal, a noise reduction signal is generated through the adaptive filtering algorithm to reduce noise of the noise signal, noise can be reduced by combining the wearing state of the earphone, and the noise reduction effect can be improved.
Example two
The embodiment of the present application provides an active noise reduction method, which is further described in the first embodiment, and reference may be specifically made to the related description of the first embodiment where the same or similar to the first embodiment, and details are not described herein again. Referring to fig. 3, in the present embodiment, step S301 and step S302 are included before step S204 in the first embodiment, and step S303 is a further description of step S204:
step S301, the earphone automatically acquires a pre-stored secondary channel model corresponding to the feedforward microphone.
In the application, in the active noise reduction process, the same secondary channel module is used for processing noise signals, so that the noise reduction effect and the noise reduction stability are easily influenced. When the first microphone is used as the feedforward microphone through a preliminary experiment, the secondary channel model with a good noise reduction effect is selected and stored as the secondary channel model corresponding to the first microphone. And when the second microphone is used as the feedforward microphone, selecting a secondary channel model with a better noise reduction effect, and storing the secondary channel model as a secondary channel model corresponding to the second microphone. And according to the secondary channel models respectively stored by the first microphone and the second microphone, selecting one of the secondary channel models as a feedforward microphone, and acquiring a pre-stored secondary channel model corresponding to the feedforward microphone.
Step S302, inputting the noise signal to the secondary channel model for processing.
In application, the noise signal collected by the feedforward microphone is input into a secondary channel model corresponding to the feedforward microphone for processing.
And step S303, generating a noise reduction signal through the adaptive filtering algorithm according to the noise signal processed by the secondary channel model, and reducing the noise of the noise signal.
In application, according to the acquired filter coefficient corresponding to the feedforward microphone and the noise signal processed by the secondary channel model, a noise reduction signal is generated according to an adaptive filtering algorithm, and the noise reduction signal is played by the sound generator and then is counteracted with the noise signal to obtain a true useful signal, so that the noise reduction effect is achieved. The adaptive filtering algorithm may be an adaptive filtering algorithm such as LMS or FXLMS.
In a specific application, as shown in fig. 4, it is a schematic diagram of a noise reduction system corresponding to the active noise reduction method in the embodiment of the present application, in fig. 4, the near-end microphone is a first microphone, the far-end microphone is a second microphone, and the error microphone is a third microphone.
According to the embodiment of the application, the noise signal is input to the secondary channel model for processing by selecting the pre-stored secondary channel model corresponding to the feedforward microphone; according to the noise signal processed by the secondary channel model, the noise reduction signal is generated by the adaptive filtering algorithm to reduce the noise of the noise signal, so that the noise reduction effect can be further improved, and the noise reduction stability can be maintained.
EXAMPLE III
Corresponding to the active noise reduction method described in the foregoing embodiment, fig. 5 shows a block diagram of an active noise reduction apparatus for performing the active noise reduction method provided in this embodiment of the present application, where the active noise reduction apparatus may be integrated in a headset or other electronic devices, and when the active noise reduction apparatus is a headset, the headset includes: the microphone comprises a shell, a sound generator arranged in the shell, a first microphone and a second microphone arranged in a rear cavity of the shell, and a third microphone arranged in a front cavity of the shell. The distance between the first microphone and the sound generator is smaller than the distance between the second microphone and the sound generator, an air outlet pipeline is formed in the front cavity, and a sound outlet for transmitting sound is formed in the bottom of the front cavity. The embodiment of the present application does not set any limitation to a specific type of the electronic device, and only a part related to the embodiment of the present application is shown for convenience of explanation.
In application, the sound emitter may be a speaker or a loudspeaker. The first microphone and the second microphone can be two microphones used in the function of reducing the noise in the conversation, and the two microphones used in the function of reducing the noise in the conversation are multiplexed, so that a microphone opening is not required to be additionally arranged on the earphone shell, and the active noise reduction function can be realized under the condition that the extra hardware cost is not increased and the appearance of the earphone is not influenced. Of course, the first microphone and the second microphone may be set separately according to the requirement, which is not limited in this respect.
Referring to fig. 5, the active noise reduction apparatus 500 provided in this embodiment includes:
a detection module 501, configured to detect a wearing state of the headset; wherein the wearing state is used for indicating a matching degree state between the earphone and the ear canal of the user;
a selecting module 502, configured to select one of the first microphone and the second microphone as a feedforward microphone according to the wearing state of the headset;
an obtaining module 503, configured to obtain a noise signal collected by the feedforward microphone;
a noise reduction module 504, configured to generate a noise reduction signal according to the noise signal through an adaptive filtering algorithm to reduce noise of the noise signal; wherein the noise reduction signal and the noise signal have opposite phases and the same frequency and energy.
In one embodiment, the detection module comprises:
the first acquisition unit is used for acquiring a first audio signal acquired by the first microphone;
the second acquisition unit is used for acquiring a second audio signal output by the sound generator;
a third obtaining unit, configured to obtain a correlation between the first audio signal and the second audio signal;
the first judging unit is used for judging that the wearing state of the earphone is a first preset wearing state when the correlation degree is smaller than or equal to a first correlation degree threshold value; wherein the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition,
the second judging unit is used for judging that the wearing state of the earphone is a second preset wearing state when the correlation degree is larger than a second correlation degree threshold value; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition.
In one embodiment, the detection module comprises:
the fourth obtaining unit is used for obtaining a third audio signal collected by the third microphone after the iteration number of the adaptive filtering algorithm is larger than a preset iteration number;
the first calculating unit is used for calculating the convergence degree of the actual noise reduction effect according to the third audio signal and the noise signal collected by the selected feedforward microphone;
the third judging unit is used for judging that the wearing state of the earphone is a first preset wearing state when the convergence of the noise reduction effect is larger than or equal to a first noise reduction effect convergence threshold value; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition;
the fourth judging unit is used for judging the wearing state of the earphone to be a second preset wearing state when the convergence of the noise reduction effect is smaller than a second noise reduction effect convergence threshold value; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition.
In one embodiment, the detection module comprises:
the fifth acquisition unit is used for acquiring a preset low-frequency signal output by the sound generator;
a sixth obtaining unit, configured to obtain a fourth audio signal collected by the third microphone;
the second calculating unit is used for calculating the signal attenuation degree of the preset low-frequency signal according to the low-frequency signal included in the fourth audio signal;
the obtaining unit is used for obtaining the sensitivity corresponding to the signal attenuation degree according to the signal attenuation degree;
a fifth judging unit, configured to judge that the wearing state of the earphone is a first preset wearing state when the sensitivity is greater than a first sensitivity threshold; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition;
a sixth determining unit, configured to determine that the wearing state of the earphone is a second preset wearing state when the sensitivity is less than or equal to a second sensitivity threshold; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition.
In one embodiment, the selection module comprises:
the first selection unit is used for selecting the first microphone as a feedforward microphone when the wearing state of the earphone is a first preset wearing state;
and the second selection unit is used for selecting the second microphone as a feedforward microphone when the wearing state of the earphone is a second preset wearing state.
In one embodiment, the first microphone and the second microphone used for active noise reduction are microphones used in multiplexed call upstream noise reduction.
In one embodiment, the noise reduction module comprises:
a seventh acquiring unit, configured to enable the earphone to automatically acquire a pre-stored secondary channel model corresponding to the feedforward microphone;
the input unit is used for inputting the noise signal to the secondary channel model for processing;
and the noise reduction unit is used for generating a noise reduction signal through the adaptive filtering algorithm according to the noise signal processed by the secondary channel model so as to reduce the noise of the noise signal.
Therefore, in the embodiment of the application, a proper microphone can be selected as a feedforward microphone according to the wearing state of the headset, and a noise signal collected by the feedforward microphone is acquired; according to the noise signal, generating a noise reduction signal through the adaptive filtering algorithm to reduce the noise of the noise signal; the noise reduction signal and the noise signal have opposite phases and same frequency and energy, and can be combined with the wearing state of the earphone to reduce noise, so that the noise reduction effect can be improved.
Example four
As shown in fig. 6, an embodiment of the present invention also provides an electronic device 600, which includes: a processor 601 memory 602 and a computer program 603, such as an active noise reduction program, stored in said memory 602 and executable on said processor 601. The processor 601, when executing the computer program 603, implements the steps in the various active noise reduction method embodiments described above, such as the method steps in embodiment one and/or embodiment two. The processor 601, when executing the computer program 603, implements the functions of the modules in the above-described device embodiments, such as the functions of the modules 501 to 504 shown in fig. 5.
Illustratively, the computer program 603 may be partitioned into one or more modules that are stored in the memory 602 and executed by the processor 601 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program 603 in the electronic device 600. For example, the computer program 603 may be divided into a detection module, a selection module, an acquisition module and a noise reduction module, and specific functions of the modules are described in the third embodiment, which is not described herein again.
The electronic device 600 may be an electronic device such as a headset or other electronic device. The terminal device may include, but is not limited to, a processor 601 memory 602. Those skilled in the art will appreciate that fig. 5 is merely an example of an electronic device 600 and does not constitute a limitation of the electronic device 600 and may include more or less components than those shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 601 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 602 may be an internal storage unit of the electronic device 600, such as a hard disk or a memory of the electronic device 600. The memory 602 may also be an external storage device of the electronic device 600, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 600. Further, the memory 602 may also include both internal storage units and external storage devices of the electronic device 600. The memory 602 is used for storing the computer programs and other programs and data required by the terminal device. The memory 602 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (5)

1. An active noise reduction method is applied to earphones which comprise a first microphone, a second microphone, a third microphone and a sound generator, wherein the first microphone and the second microphone are arranged in a rear cavity of the earphones, the distance between the first microphone and the sound generator is smaller than the distance between the second microphone and the sound generator, and the third microphone is arranged in a front cavity of the earphones;
the active noise reduction method comprises the following steps:
detecting a wearing state of the earphone; wherein the wearing state is used for indicating a matching degree state between the earphone and the ear canal of the user;
selecting one of the first microphone and the second microphone as a feedforward microphone according to the wearing state;
acquiring a noise signal acquired by the feedforward microphone;
according to the noise signal, generating a noise reduction signal through a self-adaptive filtering algorithm to reduce the noise of the noise signal; wherein the noise reduction signal and the noise signal have opposite phases and the same frequency and energy;
before noise reduction is carried out on the noise signal by generating a noise reduction signal through an adaptive filtering algorithm, the method comprises the following steps:
the earphone automatically acquires a pre-stored secondary channel model corresponding to the feedforward microphone;
inputting the noise signal into the secondary channel model for processing;
the noise reduction of the noise signal by generating a noise reduction signal through an adaptive filtering algorithm according to the noise signal comprises:
according to the noise signal processed by the secondary channel model, generating a noise reduction signal through the adaptive filtering algorithm to reduce the noise of the noise signal;
the detecting the wearing state of the earphone comprises:
acquiring a first audio signal collected by the first microphone;
acquiring a second audio signal output by the sound generator;
acquiring the correlation degree of the first audio signal and the second audio signal;
when the correlation degree is smaller than or equal to a first correlation degree threshold value, judging that the wearing state of the earphone is a first preset wearing state, and indicating that a first microphone close to a sound generator cannot acquire an audio signal sent by the sound generator; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition;
when the correlation degree is larger than a second correlation degree threshold value, judging that the wearing state of the earphone is a second preset wearing state, and indicating that a first microphone close to the sound generator can acquire an audio signal sent by the sound generator; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition; or
The detecting the wearing state of the earphone comprises:
acquiring a third audio signal acquired by the third microphone after the iteration number of the adaptive filtering algorithm is greater than a preset iteration number;
calculating the convergence degree of the actual noise reduction effect according to the third audio signal and the noise signal collected by the selected feedforward microphone;
when the convergence of the noise reduction effect is greater than or equal to a first noise reduction effect convergence threshold value, determining that the wearing state of the earphone is a first preset wearing state; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition;
when the convergence of the noise reduction effect is smaller than a second noise reduction effect convergence threshold value, judging that the wearing state of the earphone is a second preset wearing state; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition; or
The detecting the wearing state of the earphone comprises:
acquiring a preset low-frequency signal output by the sound generator;
acquiring a fourth audio signal acquired by the third microphone;
calculating the signal attenuation degree of the preset low-frequency signal according to the low-frequency signal included in the fourth audio signal;
obtaining sensitivity corresponding to the signal attenuation degree according to the signal attenuation degree;
when the sensitivity is greater than a first sensitivity threshold value, judging that the wearing state of the earphone is a first preset wearing state; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition;
when the sensitivity is smaller than or equal to a second sensitivity threshold value, judging that the wearing state of the earphone is a second preset wearing state; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition;
the selecting one of the first microphone and the second microphone as a feedforward microphone according to the wearing state of the headset includes:
when the wearing state of the earphone is a first preset wearing state, selecting the first microphone as a feedforward microphone;
and when the wearing state of the earphone is a second preset wearing state, selecting the second microphone as a feedforward microphone.
2. The active noise reduction method of claim 1, wherein the first microphone and the second microphone used for active noise reduction are microphones used in a multiplexed call upstream noise reduction.
3. An active noise reduction device is applied to earphones, wherein the earphones comprise a first microphone, a second microphone, a third microphone and a sound generator, the first microphone and the second microphone are arranged in a rear cavity of the earphones, the distance between the first microphone and the sound generator is smaller than the distance between the second microphone and the sound generator, and the third microphone is arranged in a front cavity of the earphones;
the active noise reduction device includes:
the detection module is used for detecting the wearing state of the earphone;
the selection module is used for selecting one of the first microphone and the second microphone as a feedforward microphone according to the wearing state of the earphone;
the acquisition module is used for acquiring the noise signal acquired by the feedforward microphone;
the noise reduction module is used for generating a noise reduction signal through a self-adaptive filtering algorithm according to the noise signal so as to reduce the noise of the noise signal; wherein the noise reduction signal and the noise signal have opposite phases and the same frequency and energy;
the detection module comprises:
the first acquisition unit is used for acquiring a first audio signal acquired by the first microphone;
the second acquisition unit is used for acquiring a second audio signal output by the sound generator;
a third obtaining unit, configured to obtain a correlation between the first audio signal and the second audio signal;
the first judging unit is used for judging that the wearing state of the earphone is a first preset wearing state when the correlation degree is smaller than or equal to a first correlation degree threshold value, and the first judging unit shows that a first microphone close to a sound generator cannot collect audio signals sent by the sound generator; the first preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user reaches a preset condition;
the second judging unit is used for judging that the wearing state of the earphone is a second preset wearing state when the correlation degree is larger than a second correlation degree threshold value, and the second judging unit shows that the first microphone close to the sound generator can collect the audio signal sent by the sound generator; the second preset wearing state is used for indicating that the matching degree between the earphone and the ear canal of the user does not reach a preset condition;
the selection module comprises:
the first selection unit is used for selecting the first microphone as a feedforward microphone when the wearing state of the earphone is a first preset wearing state;
the second selection unit is used for selecting the second microphone as a feedforward microphone when the wearing state of the earphone is a second preset wearing state;
the noise reduction module includes:
a seventh acquiring unit, configured to enable the earphone to automatically acquire a pre-stored secondary channel model corresponding to the feedforward microphone;
the input unit is used for inputting the noise signal to the secondary channel model for processing;
and the noise reduction unit is used for generating a noise reduction signal through the adaptive filtering algorithm according to the noise signal processed by the secondary channel model so as to reduce the noise of the noise signal.
4. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to claim 1 or 2 when executing the computer program.
5. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to claim 1 or 2.
CN202010213133.2A 2020-03-24 2020-03-24 Active noise reduction method and device, electronic equipment and storage medium Active CN111800687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010213133.2A CN111800687B (en) 2020-03-24 2020-03-24 Active noise reduction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010213133.2A CN111800687B (en) 2020-03-24 2020-03-24 Active noise reduction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111800687A CN111800687A (en) 2020-10-20
CN111800687B true CN111800687B (en) 2022-04-12

Family

ID=72806413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010213133.2A Active CN111800687B (en) 2020-03-24 2020-03-24 Active noise reduction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111800687B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163282B (en) * 2021-03-31 2023-12-29 深圳鱼亮科技有限公司 Noise reduction pickup system and method based on USB
CN113132848A (en) * 2021-04-13 2021-07-16 北京安声科技有限公司 Filter design method and device and in-ear active noise reduction earphone
CN113132846A (en) * 2021-04-13 2021-07-16 北京安声科技有限公司 Active noise reduction method and device of earphone and semi-in-ear active noise reduction earphone
CN113242490B (en) * 2021-06-22 2023-02-28 安克创新科技股份有限公司 Signal processing method and device, headset and storage medium
CN113473286A (en) * 2021-06-23 2021-10-01 芯海科技(深圳)股份有限公司 State detection method, earphone and computer readable storage medium
CN113490092B (en) * 2021-06-28 2023-11-07 北京安声浩朗科技有限公司 Active noise reduction earphone
CN114071304B (en) * 2021-11-29 2023-04-25 歌尔科技有限公司 Active noise reduction method and device for earphone, earphone and computer readable storage medium
CN114071309B (en) * 2021-12-20 2023-08-25 歌尔科技有限公司 Earphone noise reduction method, device, equipment and computer readable storage medium
CN114176623B (en) * 2021-12-21 2023-09-12 深圳大学 Sound noise reduction method, system, noise reduction device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102859581A (en) * 2009-12-30 2013-01-02 罗伯特·博世有限公司 Adaptive digital noise canceller
CN108538281A (en) * 2018-04-18 2018-09-14 会听声学科技(北京)有限公司 Noise-reduction method, noise reduction system and earphone
CN109348322A (en) * 2018-09-07 2019-02-15 歌尔科技有限公司 A kind of radix saposhnikoviae method for de-noising, feed-forward noise reduction system, earphone and storage medium
CN109714023A (en) * 2018-12-28 2019-05-03 歌尔股份有限公司 Adaptive filter method, sef-adapting filter and noise control system
CN110392912A (en) * 2016-10-24 2019-10-29 爱浮诺亚股份有限公司 Use eliminating from moving noise for multiple microphones
CN110889197A (en) * 2019-10-31 2020-03-17 佳禾智能科技股份有限公司 Adaptive feedforward active noise reduction method based on neural network, computer-readable storage medium and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108140380B (en) * 2015-08-20 2022-05-27 思睿逻辑国际半导体有限公司 Adaptive noise cancellation feedback controller and method with feedback response provided in part by fixed response filter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102859581A (en) * 2009-12-30 2013-01-02 罗伯特·博世有限公司 Adaptive digital noise canceller
CN110392912A (en) * 2016-10-24 2019-10-29 爱浮诺亚股份有限公司 Use eliminating from moving noise for multiple microphones
CN108538281A (en) * 2018-04-18 2018-09-14 会听声学科技(北京)有限公司 Noise-reduction method, noise reduction system and earphone
CN109348322A (en) * 2018-09-07 2019-02-15 歌尔科技有限公司 A kind of radix saposhnikoviae method for de-noising, feed-forward noise reduction system, earphone and storage medium
CN109714023A (en) * 2018-12-28 2019-05-03 歌尔股份有限公司 Adaptive filter method, sef-adapting filter and noise control system
CN110889197A (en) * 2019-10-31 2020-03-17 佳禾智能科技股份有限公司 Adaptive feedforward active noise reduction method based on neural network, computer-readable storage medium and electronic device

Also Published As

Publication number Publication date
CN111800687A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
CN111800687B (en) Active noise reduction method and device, electronic equipment and storage medium
US9576588B2 (en) Close-talk detector for personal listening device with adaptive active noise control
CN111800688B (en) Active noise reduction method and device, electronic equipment and storage medium
CN102413403B (en) Noise reduction circuit and method therefor, and earphone device
US8050421B2 (en) Acoustic correction apparatus and acoustic correction method
CN105979415A (en) Noise reduction method capable of realizing self-adaptive adjustment of noise reduction gain, device thereof, and noise reduction earphone
US11308933B2 (en) Noise cancellation enabled audio device and noise cancellation system
CN110996203B (en) Earphone noise reduction method, device and system and wireless earphone
KR20160010592A (en) Squeal suppression method and device for active noise removal (anr) earphone
CN109348322A (en) A kind of radix saposhnikoviae method for de-noising, feed-forward noise reduction system, earphone and storage medium
EP3935866A1 (en) Placement of multiple feedforward microphones in an active noise reduction (anr) system
CN113421540B (en) Active noise reduction method, active noise reduction device and semi-in-ear active noise reduction earphone
CN113574593B (en) Tuning method, manufacturing method, computer-readable storage medium, and tuning system
EP3828879A1 (en) Noise cancellation system and signal processing method for an ear-mountable playback device
EP3935626A1 (en) Active noise reduction (anr) system with multiple feedforward microphones and multiple controllers
US9491306B2 (en) Signal processing control in an audio device
CN113409754B (en) Active noise reduction method, active noise reduction device and semi-in-ear active noise reduction earphone
US20220343886A1 (en) Audio system and signal processing method for an ear mountable playback device
EP2997720B1 (en) Reduced acoustic coupling
CN113676815B (en) Noise reduction method and device, earphone equipment and storage medium
CN115396774A (en) Active noise reduction method and active noise reduction earphone
CN109003620A (en) A kind of echo removing method, device, electronic equipment and storage medium
US11825281B1 (en) Adaptive equalization compensation for earbuds
CN113763917A (en) Filter processing method and device
CN114257913A (en) In-ear earphone

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
GR01 Patent grant
GR01 Patent grant