CN114885240A - Noise reduction method and device, earphone equipment and storage medium - Google Patents

Noise reduction method and device, earphone equipment and storage medium Download PDF

Info

Publication number
CN114885240A
CN114885240A CN202210461558.4A CN202210461558A CN114885240A CN 114885240 A CN114885240 A CN 114885240A CN 202210461558 A CN202210461558 A CN 202210461558A CN 114885240 A CN114885240 A CN 114885240A
Authority
CN
China
Prior art keywords
noise
attenuation coefficient
signal
attenuation
noise 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.)
Pending
Application number
CN202210461558.4A
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 Inc
Original Assignee
Goertek Inc
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 Inc filed Critical Goertek Inc
Priority to CN202210461558.4A priority Critical patent/CN114885240A/en
Publication of CN114885240A publication Critical patent/CN114885240A/en
Pending legal-status Critical Current

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/1781Methods 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 characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions
    • 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/1787General system configurations
    • 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
    • G10K2210/00Details of active noise control [ANC] covered by G10K11/178 but not provided for in any of its subgroups
    • G10K2210/10Applications
    • G10K2210/108Communication systems, e.g. where useful sound is kept and noise is cancelled
    • G10K2210/1081Earphones, e.g. for telephones, ear protectors or headsets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2460/00Details of hearing devices, i.e. of ear- or headphones covered by H04R1/10 or H04R5/033 but not provided for in any of their subgroups, or of hearing aids covered by H04R25/00 but not provided for in any of its subgroups
    • H04R2460/01Hearing devices using active noise cancellation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

The invention discloses a noise reduction method, a noise reduction device, earphone equipment and a storage medium, wherein the noise reduction method is applied to the earphone equipment and comprises the following steps: acquiring an ambient noise signal through a feedforward microphone in the earphone device; acquiring a first attenuation coefficient and a second attenuation coefficient, wherein the first attenuation coefficient represents the attenuation amount of the noise signal when the noise signal is transmitted from the feedforward microphone position to the user eardrum position, and the second attenuation coefficient represents the attenuation amount of the noise signal when the noise signal is transmitted from the loudspeaker position to the user eardrum position; and performing target processing on the environmental noise signal to obtain a noise-canceling signal, and playing the noise-canceling signal by using a loudspeaker, wherein the target processing comprises anti-phase processing, attenuation processing by using a first attenuation coefficient and compensation processing by using a second attenuation coefficient. The invention finally achieves that the noise-eliminating signal at the eardrum of the user can offset the noise signal at the eardrum of the user more, thereby improving the active noise-reducing effect and improving the use experience of the noise-reducing earphone.

Description

Noise reduction method and device, earphone equipment and storage medium
Technical Field
The present invention relates to the field of earphone technologies, and in particular, to a noise reduction method and apparatus, an earphone device, and a storage medium.
Background
At present, with the development of science and technology and the improvement of the living standard of people, earphones with active noise reduction (ANC) functions gradually enter the lives of people. The most basic principle of active noise cancellation is based on waveform cancellation. The earphone loudspeaker emits a waveform with a phase opposite to that of the noise signal to offset the influence of the noise signal, so that the noise reduction effect is achieved. The feedforward noise reduction is one of active noise reduction, receives noise from the outside through a feedforward microphone (FF ANC MIC), recognizes the phase and amplitude of a noise signal through an earphone internal chip, transmits equal-amplitude reverse noise information to an earphone loudspeaker (SPK) through an internal circuit, and transmits reverse sound waves through the earphone loudspeaker (SPK) to offset noise of an external environment, so that the noise reduction effect is achieved.
However, in practice, the audio recorded by the feedforward microphone has a large error with the magnitude of the noise signal received at the eardrum of the human ear. Since the external noise reaches the outside of the housing of the earphone, then passes through the whole earphone and finally reaches the eardrum of the human ear through the human ear canal, a certain loss of noise transmission is necessarily caused. This can make the noise signal size that the feedforward microphone recorded ≠ speaker reverse cancellation signal size ≠ the noise signal size that the people's ear actually received, and then makes reverse cancellation signal unable cancel external noise completely, if it is too big to cancel the signal, can produce the effect of falling the noise of burden even, very influences the use experience of the earphone of making an uproar that falls.
Disclosure of Invention
The invention mainly aims to provide a noise reduction method, a noise reduction device, earphone equipment and a storage medium, and aims to solve the technical problems that the noise reduction of feedforward cannot completely offset external noise and influences the use experience of a noise reduction earphone by performing equal-amplitude reverse processing on a noise signal picked up by a feedforward microphone and then playing the noise signal.
In order to achieve the above object, the present invention provides a noise reduction method, where the noise reduction method is applied to a headphone device, and the noise reduction method includes:
acquiring an ambient noise signal through a feedforward microphone in the headphone device;
obtaining a first attenuation coefficient and a second attenuation coefficient, wherein the first attenuation coefficient represents the attenuation amount when the noise signal is transmitted from the feedforward microphone position to the ear drum position of the user, and the second attenuation coefficient represents the attenuation amount when the noise signal is transmitted from the loudspeaker position of the earphone device to the ear drum position of the user;
and performing target processing on the environmental noise signal to obtain a noise elimination signal for offsetting the environmental noise, and playing the noise elimination signal by using the loudspeaker, wherein the target processing comprises anti-phase processing, attenuation processing by using the first attenuation coefficient and compensation processing by using the second attenuation coefficient.
Optionally, the step of obtaining the second attenuation coefficient includes:
obtaining the distance from the loudspeaker to the eardrum of the user through the loudspeaker by adopting ultrasonic ranging, wherein the distance is used as the length of the ear canal of the user;
and obtaining the attenuation coefficient corresponding to the ear canal length of the user from a preset third attenuation coefficient corresponding to various ear canal lengths as the second attenuation coefficient, wherein the third attenuation coefficient represents the attenuation of the noise signal after the noise signal is transmitted from the loudspeaker position and passes through the distance corresponding to the ear canal length.
Optionally, before the step of obtaining the second attenuation coefficient, the method further includes:
when the earphone device is detected to be worn on a test ear, obtaining the distance from the loudspeaker to the eardrum of the test ear through the loudspeaker by adopting ultrasonic ranging, and taking the distance as the length of a first test ear canal;
playing a test noise signal by adopting the loudspeaker, and acquiring an attenuation noise signal picked by a microphone arranged at the eardrum of the test ear;
and calculating the third attenuation coefficient corresponding to the first test ear canal length according to the test noise signal and the attenuation noise signal, and binding and storing the first test ear canal length and the third attenuation coefficient in the earphone equipment.
Optionally, the obtaining, by the speaker, a distance from the speaker to an eardrum of the user by using ultrasonic ranging, and the step of obtaining the distance as the ear canal length of the user includes:
transmitting an ultrasonic signal through the speaker and receiving the ultrasonic signal reflected back through a receiving microphone provided at the speaker position in the ear speaker device;
and calculating the distance from the loudspeaker to the eardrum of the user according to the transmitting time and the receiving time of the ultrasonic signal, wherein the distance is used as the length of the ear canal of the user.
Optionally, the step of obtaining the first attenuation coefficient includes:
and obtaining the attenuation coefficient corresponding to the user ear canal length from a preset fourth attenuation coefficient corresponding to various ear canal lengths as the first attenuation coefficient, wherein the fourth attenuation coefficient represents the attenuation of the noise signal which is transmitted from the feedforward microphone position and passes through the distance corresponding to the ear canal length.
Optionally, before the step of obtaining the first attenuation coefficient, the method further includes:
when the earphone device is detected to be worn on a test ear, obtaining the distance from the loudspeaker to the eardrum of the test ear through the loudspeaker by adopting ultrasonic ranging, and taking the distance as the length of a second test ear canal;
acquiring a first ring noise signal through the feedforward microphone, and acquiring a second ring noise signal picked by a microphone arranged at the eardrum of the test ear;
and calculating to obtain the fourth attenuation coefficient corresponding to the second test ear canal length according to the first ring noise signal and the second ring noise signal, and binding and storing the second test ear canal length and the fourth attenuation coefficient in the earphone equipment.
Optionally, the step of performing target processing on the environmental noise signal to obtain a noise cancellation signal for canceling the environmental noise includes:
carrying out attenuation processing on the environmental noise signal by adopting the first attenuation coefficient to obtain a first processed signal;
performing compensation processing on the first processed signal by using the second attenuation coefficient to obtain a second processed signal;
and performing anti-phase processing on the second processing signal to obtain a noise cancellation signal for canceling the environmental noise.
In order to achieve the above object, the present invention further provides a noise reduction apparatus, where the noise reduction apparatus is disposed in an earphone device, and the noise reduction apparatus includes:
a first obtaining module, configured to obtain an ambient noise signal through a feedforward microphone in the earphone device;
a second obtaining module, configured to obtain a first attenuation coefficient and a second attenuation coefficient, where the first attenuation coefficient represents an attenuation amount when the noise signal is transferred from the feedforward microphone position to the user eardrum position, and the second attenuation coefficient represents an attenuation amount when the noise signal is transferred from the speaker position of the earphone device to the user eardrum position;
and the noise reduction module is used for carrying out target processing on the environmental noise signal to obtain a noise elimination signal for offsetting the environmental noise and playing the noise elimination signal by adopting the loudspeaker, wherein the target processing comprises anti-phase processing, attenuation processing by adopting the first attenuation coefficient and compensation processing by adopting the second attenuation coefficient.
To achieve the above object, the present invention also provides an earphone device, including: a memory, a processor and a noise reduction program stored on the memory and executable on the processor, the noise reduction program when executed by the processor implementing the steps of the noise reduction method as above.
Furthermore, to achieve the above object, the present invention further provides a computer readable storage medium, on which a noise reduction program is stored, the noise reduction program implementing the steps of the noise reduction method as above when executed by a processor.
In the invention, an environment noise signal is obtained through a feedforward microphone of the earphone device, a first attenuation coefficient and a second attenuation coefficient are obtained, the first attenuation coefficient represents the attenuation amount of the noise signal when the noise signal is transmitted from the feedforward microphone to the eardrum position of a user, and the second attenuation coefficient represents the attenuation amount of the noise signal when the noise signal is transmitted from the loudspeaker position of the earphone device to the eardrum position of the user; and performing target processing on the environmental noise signal to obtain a noise elimination signal for offsetting the environmental noise, and playing the noise elimination signal by adopting a loudspeaker, wherein the target processing comprises anti-phase processing, attenuation processing by adopting a first attenuation coefficient and compensation processing by adopting a second attenuation coefficient. According to the invention, the first attenuation coefficient and the second attenuation coefficient are adopted to perform corresponding attenuation processing and compensation processing on the environmental noise signal acquired by the feedforward microphone, so that the noise-eliminating signal at the eardrum of the user can be finally achieved to more offset the noise signal at the eardrum of the user, thus the active noise-reducing effect is improved, and the use experience of the noise-reducing earphone is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating a noise reduction method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of functional modules of a noise reduction apparatus according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a noise reduction method according to a first embodiment of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than presented herein. The noise reduction method provided by the embodiment of the invention is applied to the earphone equipment, and when the earphone equipment comprises two earphones, the noise reduction method can be applied to any one of the earphones. In this embodiment, the noise reduction method includes:
step S10, acquiring an environment noise signal through a feedforward microphone in the earphone device;
the feedforward microphone is arranged in the earphone device, and the arrangement position of the feedforward microphone can refer to the arrangement position of the feedforward microphone in the conventional earphone device. When the active noise reduction mode is turned on, the earphone device may acquire a sound signal through a feedforward microphone in the earphone device, and the sound signal may be considered as a noise signal of an external environment, and is hereinafter referred to as an environmental noise signal.
Step S20, obtaining a first attenuation coefficient and a second attenuation coefficient, wherein the first attenuation coefficient represents the attenuation amount when the noise signal is transferred from the feedforward microphone position to the user 'S eardrum position, and the second attenuation coefficient represents the attenuation amount when the noise signal is transferred from the speaker position of the earphone device to the user' S eardrum position;
the headphone device may obtain two attenuation coefficients for modifying the ambient noise signal, hereinafter referred to as a first attenuation coefficient and a second attenuation coefficient for distinguishing. The first attenuation coefficient may be a coefficient capable of representing an attenuation amount of the noise signal transmitted from the feedforward microphone position to the ear drum position of the user, and the coefficient may be a ratio, and may also be an energy value or an amplitude value, and may be specifically set according to needs, and is not limited herein. It should be noted that, the transmission of the noise signal from the feedforward microphone position to the eardrum of the user specifically means that the noise corresponding to the noise signal is transmitted by a propagation medium, but not the signal transmission in the internal circuit of the earphone device, and the noise is transmitted from one place to another, so that there is a certain attenuation in the energy of the noise, and the noise signal can be obtained by picking up the noise, and the attenuation can be quantified by analyzing the energy or amplitude of the noise signal.
In a specific embodiment, the first attenuation coefficient may be obtained by a technician in a laboratory test, and is written into a chip of the headphone device when the headphone device is produced, and the headphone device is obtained from a local computer when the headphone device needs to be used; or, the first attenuation coefficient may also be uploaded to the server by a technician after being obtained by a laboratory test, and acquired from the server by the earphone device when the earphone device is required to be used; or, the earphone device may calculate a first attenuation coefficient based on data obtained by testing in a testing environment, store the first attenuation coefficient in the local machine, and obtain the first attenuation coefficient from the local machine when the earphone device needs to be used; alternatively, in other embodiments, the earphone device may also obtain the first attenuation coefficient by other manners, which is not limited in this embodiment.
In one embodiment, when the first attenuation coefficient is obtained by a technician in a laboratory test, the test method may specifically be: the method comprises the following steps of wearing earphone equipment on a test ear, wherein the test ear is a simulated ear, and a microphone is arranged at the eardrum of the test ear; measuring the distance from a loudspeaker to the eardrum of a test ear by adopting an ultrasonic ranging method through the loudspeaker in the earphone equipment, and outputting the distance as the length of the auditory canal of the test ear; acquiring noise signals picked up by a feedforward microphone in the earphone equipment, acquiring noise signals picked up by a microphone arranged at the ear membrane of a test ear, calculating to obtain an attenuation coefficient according to the two noise signals, and outputting the attenuation coefficient; recording the output auditory canal length and attenuation coefficient of the test ear, and presetting the recorded auditory canal length and attenuation coefficient in earphone equipment; by replacing different test ears or adjusting the depth of the earphone device worn on the test ears, the fourth attenuation coefficients corresponding to different ear canal lengths can be measured.
The second attenuation coefficient may be a coefficient capable of representing an attenuation amount of the noise signal transmitted from the speaker position of the earphone device to the eardrum position of the user, and the coefficient may be a ratio, may also be an energy value or an amplitude value, and may be specifically set as required, and is not limited herein. It should be noted that the transmission of the noise signal from the speaker position of the earphone device to the eardrum position of the user also refers to the transmission of the noise by means of the propagation medium.
In a specific embodiment, the second attenuation coefficient is the same as the first attenuation coefficient, and there are multiple obtaining manners, which may specifically refer to the obtaining manner of the first attenuation coefficient, and will not be described herein.
In one embodiment, when the second attenuation coefficient is obtained by a technician in a laboratory test, the test method may specifically be: the method comprises the following steps of wearing earphone equipment on a test ear, wherein the test ear is a simulated ear, and a microphone is arranged at the eardrum of the test ear; measuring the distance from a loudspeaker to the eardrum of a test ear by adopting an ultrasonic ranging method through the loudspeaker in the earphone equipment, and outputting the distance as the length of the auditory canal of the test ear; controlling a loudspeaker in the earphone equipment to play a section of noise signal, acquiring the noise signal picked by a microphone arranged at the eardrum of the test ear, calculating to obtain an attenuation coefficient according to the two noise signals, and outputting the attenuation coefficient; recording the output auditory canal length and attenuation coefficient of the test ear, and presetting the recorded auditory canal length and attenuation coefficient in earphone equipment; by replacing different test ears or adjusting the depth of the earphone device worn on the test ears, the third attenuation coefficients corresponding to different ear canal lengths can be measured.
Step S30, performing target processing on the environmental noise signal to obtain a noise cancellation signal for canceling the environmental noise, and playing the noise cancellation signal by using the speaker, where the target processing includes anti-phase processing, attenuation processing using the first attenuation coefficient, and compensation processing using the second attenuation coefficient.
After obtaining the ambient noise signal, the first attenuation coefficient, and the second attenuation coefficient, the earphone device may perform attenuation processing, compensation processing, and anti-phase processing on the ambient noise signal, where the attenuation processing is performed by using the first attenuation coefficient, and the compensation processing is performed by using the second attenuation coefficient. The order of the three processing operations may be arbitrarily reversed, and is not limited in this embodiment. For example, in one embodiment, the ambient noise signal may be attenuated by a first attenuation coefficient, the processed signal may be subjected to an anti-phase processing, and the signal subjected to the anti-phase processing may be compensated by a second attenuation coefficient. For another example, in an embodiment, the environmental noise signal may be subjected to an anti-phase processing, and then the signal subjected to the anti-phase processing may be subjected to an attenuation processing by using a first attenuation coefficient, and then the signal subjected to the attenuation processing may be subjected to a compensation processing by using a second attenuation coefficient. Still other embodiments are not described in detail herein.
In the specific embodiment, the specific operation of the attenuation processing is different according to the data form of the first attenuation coefficient, but it is understood that the signal is attenuated by the first attenuation coefficient, and the energy or amplitude of the processed signal is smaller than that of the signal before processing. For example, in an embodiment, when the first attenuation coefficient is a ratio (it is understood that the ratio is smaller than 1) obtained by dividing the amplitude of the noise signal at the eardrum of the user by the amplitude of the noise signal at the feedforward microphone position, the amplitude of the ambient noise signal may be multiplied by the first attenuation coefficient to obtain the ambient noise signal after the attenuation processing.
Similarly, in the embodiment, the specific operation of performing the compensation processing is different according to the data format of the second attenuation coefficient, but it is understood that the signal is compensated by using the second attenuation coefficient, and the energy or amplitude of the processed signal is greater than that of the signal before processing. For example, in an embodiment, when the second attenuation coefficient is a ratio (it is understood that the ratio is less than 1) obtained by dividing the amplitude of the noise signal at the eardrum of the user by the amplitude of the noise signal at the speaker position, the amplitude of the ambient noise signal may be divided by the second attenuation coefficient to obtain the ambient noise signal after the compensation processing.
The attenuation processing is performed by using a first attenuation coefficient in order to simulate the attenuation of the transmission of the ambient noise signal from the feedforward microphone position to the user's eardrum position, the compensation processing is performed by using a second attenuation coefficient in order to simulate the attenuation of the transmission of the noise signal played by the speaker to the user's eardrum position, and the anti-phase processing is performed by generating a signal with an opposite phase to the original signal based on the principle of waveform cancellation so as to cancel the original signal. That is, the noise signal at the eardrum of the user is obtained after the first attenuation coefficient is adopted to attenuate the environmental noise signal, if the noise signal at the eardrum of the user is directly processed in the reverse phase mode to obtain the noise-canceling signal, and the noise-canceling signal is played by the loudspeaker, the noise-canceling signal actually reaching the eardrum of the user is attenuated to a level smaller than the noise signal at the eardrum of the user through the distance from the loudspeaker to the eardrum of the user, therefore, the noise signal at the eardrum of the user can not be completely offset, therefore, the signal to be played by the loudspeaker is firstly compensated by adopting the second attenuation coefficient and then output, such that, when the played-back noise-canceling signal reaches the position of the user's eardrum, it is attenuated to a level just equivalent to the level of the noise signal at the user's eardrum, therefore, the noise signals at the eardrum of the user can be offset more, and a better noise elimination effect is achieved.
In the present embodiment, an ambient noise signal is acquired by a feedforward microphone of the ear speaker device, and a first attenuation coefficient and a second attenuation coefficient are acquired, the first attenuation coefficient representing an attenuation amount of the noise signal when the noise signal is transferred from a position of the feedforward microphone to a position of an eardrum of a user, and the second attenuation coefficient representing an attenuation amount of the noise signal when the noise signal is transferred from a position of a speaker of the ear speaker device to the position of the eardrum of the user; and performing target processing on the environmental noise signal to obtain a noise elimination signal for offsetting the environmental noise, and playing the noise elimination signal by adopting a loudspeaker, wherein the target processing comprises anti-phase processing, attenuation processing by adopting a first attenuation coefficient and compensation processing by adopting a second attenuation coefficient. The embodiment performs corresponding attenuation processing and compensation processing on the environmental noise signal acquired by the feedforward microphone by adopting the first attenuation coefficient and the second attenuation coefficient, so that the noise-canceling signal finally reaching the eardrum of the user can more offset the noise signal at the eardrum of the user, thereby improving the active noise-reducing effect and improving the use experience of the noise-reducing earphone.
Further, in an embodiment, the step of performing target processing on the environmental noise signal in step S30 to obtain a noise cancellation signal for canceling the environmental noise includes:
step S301, performing attenuation processing on the environmental noise signal by using the first attenuation coefficient to obtain a first processed signal;
step S302, compensating the first processed signal by using the second attenuation coefficient to obtain a second processed signal;
step S303, performing anti-phase processing on the second processed signal to obtain a noise cancellation signal for canceling the environmental noise.
In this embodiment, the ambient noise signal may be attenuated by the first attenuation coefficient, and the signal after the attenuation processing may be referred to as a first processed signal for distinction. And then, the first processed signal is compensated by adopting a second attenuation coefficient, and the processed signal is called as a second processed signal for distinguishing. And then, performing anti-phase processing on the second processing signal to obtain a noise cancellation signal for canceling the environmental noise.
Further, based on the first embodiment, a second embodiment of the noise reduction method for headphones according to the present invention is proposed, in this embodiment, the step of acquiring the second attenuation coefficient in step S20 includes:
step S201, obtaining the distance from the loudspeaker to the eardrum of the user by the loudspeaker through ultrasonic ranging, wherein the distance is used as the length of the ear canal of the user;
in this embodiment, considering that the ear canal lengths of each person are different, the attenuation of the noise signal transmitted from the speaker position to the eardrum of the user is different, the ear canal length of the user is measured in an ultrasonic ranging mode, and then a proper second attenuation coefficient is selected according to the ear canal length of the user, so that the noise reduction effect of the noise reduction service provided by the current user is improved, and the use experience of the noise reduction earphone is further improved.
Specifically, the speaker in the earphone device may adopt a speaker with an ultrasonic transceiving function, and the distance from the speaker to the eardrum of the user is measured by using an ultrasonic ranging principle, and the distance is used as the ear canal length of the user.
Step S202, obtaining attenuation coefficients corresponding to the user ear canal lengths from preset third attenuation coefficients corresponding to various ear canal lengths as the second attenuation coefficients, wherein the third attenuation coefficients represent attenuation amounts of noise signals which are transmitted from the loudspeaker position and pass through the distance corresponding to the ear canal lengths.
Different attenuation coefficients (hereinafter referred to as third attenuation coefficients to show differences) may be set in the earphone device in advance for different ear canal lengths, and each third attenuation coefficient represents an attenuation amount of a noise signal that is transmitted from a speaker position and passes through a distance of the ear canal length corresponding to the third attenuation coefficient. In a specific embodiment, the third attenuation coefficients of various ear canal lengths may be obtained and set in the earphone device by testing in a test environment by a technician in a development stage, or may be obtained and stored in the earphone device by calculating based on test data in the test environment by the earphone device, which is not limited in this embodiment. It can be understood that, when the more the third attenuation coefficients corresponding to different ear canal lengths are set in the earphone device, the more the third attenuation coefficients corresponding to the ear canal lengths of the user can be matched in a specific application scene, and further, a better noise reduction effect can be obtained.
In an embodiment, when the third attenuation coefficient corresponding to the ear canal length of the user is not set in advance, the earphone device may also select, from the preset third attenuation coefficients corresponding to various ear canal lengths, the third attenuation coefficient corresponding to an ear canal length closest to the ear canal length of the user as the second attenuation coefficient.
Further, in an embodiment, before the step of obtaining the second attenuation coefficient in step S20, the method further includes:
step S40, when the earphone device is detected to be worn on a test ear, obtaining the distance from the loudspeaker to the eardrum of the test ear as the length of a first test ear canal by the loudspeaker through ultrasonic ranging;
in this embodiment, a technician or a user may place the earphone device in a test environment, so that the earphone device automatically tests to obtain the third attenuation coefficient and stores the third attenuation coefficient in the earphone device for calling in a subsequent application. The test environment may specifically be a test environment in which the earphone device is worn on a test ear and the test ear is in communication connection with the earphone device. Wherein, the test ear is a simulated ear, and a microphone is arranged at the eardrum of the test ear.
The earphone device may measure a distance from the speaker to the eardrum of the test ear by using an ultrasonic ranging method through the speaker in the earphone device when detecting that the test ear is worn, and the distance is used as an ear canal length of the test ear (hereinafter referred to as a first test ear canal length). The specific implementation of measuring the length of the first test ear canal may refer to the specific implementation of measuring the length of the ear canal of the user, which is not described herein again.
In a specific embodiment, the headset device may determine that it is worn in a test ear according to an instruction triggered by a user, that is, when the user places the headset device in a test environment, an instruction to start a test may be triggered in an interactive manner such as touching a touch button of the headset, so that the headset device starts to perform the test when receiving the instruction.
Step S50, playing a test noise signal by using the loudspeaker, and acquiring an attenuated noise signal picked by a microphone arranged at the eardrum of the test ear;
the earphone device plays a test noise signal by using a loudspeaker, and acquires a noise signal picked up by a microphone arranged at the eardrum of the test ear (hereinafter, referred to as an attenuation noise signal for distinguishing). The test noise signal may be a section of noise signal with a certain frequency and a certain amplitude, which is set in advance according to needs.
Step S60, calculating the third attenuation coefficient corresponding to the first test ear canal length according to the test noise signal and the attenuation noise signal, and binding and storing the first test ear canal length and the third attenuation coefficient in the earphone device.
It can be understood that the test noise signal is played by the speaker, and the signal is attenuated by a distance of propagation through the ear canal of the test ear, and the attenuated noise signal picked up by the microphone at the eardrum of the test ear has a certain attenuation amount compared with the test noise signal. The earphone device may bind the first test ear canal length and the third attenuation coefficient and store the bound first test ear canal length and the third attenuation coefficient in the earphone device, so that when the ear canal length of the user measured by the earphone device is the same as the first test ear canal length, the third attenuation coefficient corresponding to the first test ear canal length is called as the second attenuation coefficient to perform compensation processing on the ambient sound signal.
Further, in an embodiment, the step S40 includes:
step S401, transmitting an ultrasonic signal through the loudspeaker and receiving a retro-reflected ultrasonic signal through a receiving microphone arranged at the position of the loudspeaker in the earphone device;
in this embodiment, an ultrasonic signal may be emitted through a speaker of the ear speaker device, and the emission time of the emitted ultrasonic signal may be recorded, and the ultrasonic signal reflected by the eardrum of the user may be received by a receiving microphone provided at the speaker position, and the reception time may be recorded.
Step S402, calculating the distance between the loudspeaker and the eardrum of the user according to the transmitting time and the receiving time of the ultrasonic signal, and taking the distance as the length of the ear canal of the user.
According to the transmitting time and the receiving time of the ultrasonic wave signal, the earphone device can calculate the distance from the loudspeaker to the eardrum of the user, and the distance is used as the ear canal length of the user. Since the frequency of the ultrasonic signal is high, it is known that λ ═ c/f (λ is the wavelength, c is the sound velocity, and f is the frequency of the acoustic wave), and when the sound velocity is constant, the higher the frequency, the shorter the wavelength of the acoustic wave. Therefore, the wavelength of the ultrasonic signal is very short, the directivity of the ultrasonic signal is very strong in the dimension range of the size of the earphone, the ultrasonic signal can be approximately considered to be propagated along a straight line, and the distance of the front obstacle can be calculated through the receiving time and the receiving angle of the ultrasonic signal reflected back to the receiving microphone after reaching the object.
Further, based on the second embodiment, a third embodiment of the noise reduction method for headphones according to the present invention is proposed, in this embodiment, the step of acquiring the first attenuation coefficient in step S10 includes:
step S101, obtaining attenuation coefficients corresponding to the user ear canal lengths from preset fourth attenuation coefficients corresponding to various ear canal lengths as the first attenuation coefficients, wherein the fourth attenuation coefficients represent attenuation amounts of noise signals which are transmitted from the feedforward microphone and pass through distances corresponding to the ear canal lengths.
In this embodiment, considering that the ear canal length of each person is different, the attenuation that noise signal transmitted to user's eardrum department from the speaker position is different, proposes to measure user's ear canal length through the ultrasonic ranging mode, and then selects suitable first attenuation coefficient according to user's ear canal length to it is better to improve the noise reduction effect to the service of making an uproar that falls that current user provided, further promotes the use experience of making an uproar earphone.
Different attenuation coefficients (hereinafter referred to as fourth attenuation coefficients for distinction) can be set in the earphone device in advance for different ear canal lengths, and each fourth attenuation coefficient represents an attenuation amount of a noise signal which is transmitted from a feedforward microphone position and passes through a distance of the ear canal length corresponding to the fourth attenuation coefficient. In a specific embodiment, the fourth attenuation coefficients of various ear canal lengths may be obtained and set in the earphone device by a technician in a test environment during a development stage, or may be obtained and stored in the earphone device by the earphone device in the test environment based on test data, which is not limited in this embodiment. It can be understood that, when more fourth attenuation coefficients corresponding to different ear canal lengths are set in the earphone device, the more fourth attenuation coefficients corresponding to the ear canal lengths of the user can be matched in a specific application scene, and a better noise reduction effect can be obtained.
In an embodiment, when the fourth attenuation coefficient corresponding to the user ear canal length is not set in advance, the earphone device may select, from the preset fourth attenuation coefficients corresponding to various ear canal lengths, the fourth attenuation coefficient corresponding to the ear canal length closest to the user ear canal length as the first attenuation coefficient.
Further, in an embodiment, before the step of obtaining the first attenuation coefficient in step S10, the method further includes:
step S70, when the earphone device is detected to be worn on a test ear, obtaining the distance from the loudspeaker to the eardrum of the test ear as the length of a second test ear canal by the loudspeaker through ultrasonic ranging;
in this embodiment, a technician or a user may place the earphone device in a test environment, so that the earphone device automatically tests to obtain the fourth attenuation coefficient and stores the fourth attenuation coefficient in the earphone device for calling in a subsequent application. The test environment may specifically be a test environment in which the earphone device is worn on a test ear and the test ear is in communication connection with the earphone device. Wherein, the test ear is a simulated ear, and a microphone is arranged at the eardrum of the test ear.
The earphone device may measure a distance from the speaker to the eardrum of the test ear by using an ultrasonic ranging method through the speaker in the earphone device when detecting that the test ear is worn, and the distance is used as an ear canal length of the test ear (hereinafter referred to as a second test ear canal length). The specific implementation of measuring the length of the second test ear canal may refer to the specific implementation of measuring the length of the ear canal of the user, which is not described herein again.
It should be noted that when the embodiment is implemented in combination with the embodiment of steps S40-S60 in the second embodiment, the ear canal length can be tested by the earphone device only once, and then the first test ear canal length is the second test ear canal length.
Step S80, acquiring a first loop noise signal through the feedforward microphone, and acquiring a second loop noise signal picked by a microphone arranged at the eardrum of the test ear;
the earphone device acquires a noise signal (hereinafter referred to as a first loop noise signal for distinction) by a feedforward microphone, and acquires a noise signal (hereinafter referred to as a second loop noise signal) picked up by a microphone provided at the eardrum of the test ear.
Step S90, calculating the fourth attenuation coefficient corresponding to the second test ear canal length according to the first loop noise signal and the second loop noise signal, and binding and storing the second test ear canal length and the fourth attenuation coefficient in the earphone device.
It can be understood that, when a noise signal in an external environment of the earphone device passes through the feedforward microphone position and is transmitted to the eardrum of the user through the shell of the earphone device and the ear canal of the user, the signal is attenuated, that is, the second loop noise signal has a certain attenuation amount compared with the first loop noise signal, and since the first loop noise signal and the second loop noise signal are known to the earphone device, the earphone device can obtain an attenuation coefficient through comparing the first loop noise signal and the second loop noise signal, where the attenuation coefficient represents an attenuation amount of the noise signal after the noise signal passes through a distance of the second test ear canal length from the feedforward microphone position, that is, the attenuation coefficient is a fourth attenuation coefficient corresponding to the second test ear canal length. The earphone device may bind the second test ear canal length and the fourth attenuation coefficient and store the bound second test ear canal length and the fourth attenuation coefficient in the earphone device, so that when the ear canal length of the user measured by the earphone device is the same as the second test ear canal length, the fourth attenuation coefficient corresponding to the second test ear canal length is called as the first attenuation coefficient to perform attenuation processing on the ambient sound signal.
In addition, an embodiment of the present invention further provides a noise reduction apparatus, where the noise reduction apparatus is disposed in an earphone device, and referring to fig. 2, the noise reduction apparatus includes:
a first obtaining module 10, configured to obtain an ambient noise signal through a feedforward microphone in the earphone device;
a second obtaining module 20, configured to obtain a first attenuation coefficient and a second attenuation coefficient, where the first attenuation coefficient represents an attenuation amount when the noise signal is transferred from the feedforward microphone position to the user ear drum position, and the second attenuation coefficient represents an attenuation amount when the noise signal is transferred from the speaker position of the earphone device to the user ear drum position;
and a noise reduction module 30, configured to perform target processing on the ambient noise signal to obtain a noise cancellation signal for canceling the ambient noise, and play the noise cancellation signal by using the speaker, where the target processing includes anti-phase processing, attenuation processing performed by using the first attenuation coefficient, and compensation processing performed by using the second attenuation coefficient.
Further, the second obtaining module 20 is further configured to:
obtaining the distance from the loudspeaker to the eardrum of the user through the loudspeaker by adopting ultrasonic ranging, wherein the distance is used as the length of the ear canal of the user;
and obtaining the attenuation coefficient corresponding to the user ear canal length from a preset third attenuation coefficient corresponding to various ear canal lengths as the second attenuation coefficient, wherein the third attenuation coefficient represents the attenuation of the noise signal after the noise signal is transmitted from the loudspeaker position and passes through the distance corresponding to the ear canal length.
Further, the noise reduction device further includes:
the first distance measurement module is used for obtaining the distance from the loudspeaker to the eardrum of the test ear as the length of a first test ear canal by adopting ultrasonic distance measurement through the loudspeaker when the earphone equipment is detected to be worn on the test ear;
the third acquisition module is used for playing a test noise signal by adopting the loudspeaker and acquiring an attenuated noise signal picked by a microphone arranged at the eardrum of the test ear;
the first calculation module is used for calculating the third attenuation coefficient corresponding to the first test ear canal length according to the test noise signal and the attenuation noise signal, and binding and storing the first test ear canal length and the third attenuation coefficient in the earphone device.
Further, the ranging module is further configured to:
transmitting an ultrasonic signal through the speaker and receiving the ultrasonic signal reflected back through a receiving microphone provided at the speaker position in the ear speaker device;
and calculating the distance from the loudspeaker to the eardrum of the user according to the transmitting time and the receiving time of the ultrasonic signal, wherein the distance is used as the length of the ear canal of the user.
Further, the second obtaining module 20 is further configured to:
and obtaining the attenuation coefficient corresponding to the user ear canal length from a preset fourth attenuation coefficient corresponding to various ear canal lengths as the first attenuation coefficient, wherein the fourth attenuation coefficient represents the attenuation of the noise signal which is transmitted from the feedforward microphone position and passes through the distance corresponding to the ear canal length.
Further, the noise reduction apparatus further includes:
the second distance measurement module is used for obtaining the distance from the loudspeaker to the eardrum of the test ear as the length of a second test ear canal by adopting ultrasonic distance measurement through the loudspeaker when the earphone equipment is detected to be worn on the test ear;
the fourth acquisition module is used for acquiring a first ring noise signal through the feedforward microphone and acquiring a second ring noise signal picked by a microphone arranged at the eardrum of the test ear;
and the second calculation module is used for calculating the fourth attenuation coefficient corresponding to the second test ear canal length according to the first ring noise signal and the second ring noise signal, and binding and storing the second test ear canal length and the fourth attenuation coefficient in the earphone equipment.
Further, the noise reduction module is further configured to:
carrying out attenuation processing on the environmental noise signal by adopting the first attenuation coefficient to obtain a first processed signal;
performing compensation processing on the first processed signal by using the second attenuation coefficient to obtain a second processed signal;
and performing anti-phase processing on the second processing signal to obtain a noise cancellation signal for canceling the environmental noise.
The specific implementation of the noise reduction apparatus of the present invention has basically the same extension as that of each embodiment of the noise reduction method, and is not described herein again.
The earphone device comprises a structural shell, a communication module, a main control module (such as a Micro Control Unit (MCU)), a loudspeaker, a microphone, a memory and the like. The main control module can comprise a microprocessor, an audio decoding unit, a power supply and power supply management unit, a sensor and other active or passive devices required by the system and the like (which can be replaced, deleted or added according to actual functions), so that the wireless audio receiving and playing functions are realized. The earphone device can establish a communication connection with the user terminal through the communication module. The memory of the headset may have a noise reduction program stored therein, and the microprocessor may be configured to call the noise reduction program stored in the memory and perform the following operations:
acquiring an ambient noise signal through a feedforward microphone in the headphone device;
obtaining a first attenuation coefficient and a second attenuation coefficient, wherein the first attenuation coefficient represents the attenuation amount when the noise signal is transmitted from the feedforward microphone position to the ear drum position of the user, and the second attenuation coefficient represents the attenuation amount when the noise signal is transmitted from the loudspeaker position of the earphone device to the ear drum position of the user;
and performing target processing on the environmental noise signal to obtain a noise elimination signal for offsetting the environmental noise, and playing the noise elimination signal by using the loudspeaker, wherein the target processing comprises anti-phase processing, attenuation processing by using the first attenuation coefficient and compensation processing by using the second attenuation coefficient.
Further, the operation of obtaining the second attenuation coefficient includes:
obtaining the distance from the loudspeaker to the eardrum of the user through the loudspeaker by adopting ultrasonic ranging, wherein the distance is used as the length of the ear canal of the user;
and obtaining the attenuation coefficient corresponding to the user ear canal length from a preset third attenuation coefficient corresponding to various ear canal lengths as the second attenuation coefficient, wherein the third attenuation coefficient represents the attenuation of the noise signal after the noise signal is transmitted from the loudspeaker position and passes through the distance corresponding to the ear canal length.
Further, before the operation of obtaining the second attenuation coefficient, the microprocessor may be further configured to call a noise reduction program stored in the memory:
when the earphone device is detected to be worn on a test ear, obtaining the distance from the loudspeaker to the eardrum of the test ear through the loudspeaker by adopting ultrasonic ranging, and taking the distance as the length of a first test ear canal;
playing a test noise signal by adopting the loudspeaker, and acquiring an attenuation noise signal picked by a microphone arranged at the eardrum of the test ear;
and calculating the third attenuation coefficient corresponding to the first test ear canal length according to the test noise signal and the attenuation noise signal, and binding and storing the first test ear canal length and the third attenuation coefficient in the earphone equipment.
Further, the obtaining, by the speaker, a distance from the speaker to an eardrum of the user by using ultrasonic ranging includes:
transmitting an ultrasonic signal through the speaker and receiving the ultrasonic signal reflected back through a receiving microphone provided at the speaker position in the ear speaker device;
and calculating the distance from the loudspeaker to the eardrum of the user according to the transmitting time and the receiving time of the ultrasonic signal, wherein the distance is used as the length of the ear canal of the user.
Further, the operation of obtaining the first attenuation coefficient includes:
and obtaining the attenuation coefficient corresponding to the user ear canal length from a preset fourth attenuation coefficient corresponding to various ear canal lengths as the first attenuation coefficient, wherein the fourth attenuation coefficient represents the attenuation of the noise signal which is transmitted from the feedforward microphone position and passes through the distance corresponding to the ear canal length.
Further, before the operation of obtaining the first attenuation coefficient, the microprocessor may be further configured to call a noise reduction program stored in the memory:
when the earphone device is detected to be worn on a test ear, obtaining the distance from the loudspeaker to the eardrum of the test ear through the loudspeaker by adopting ultrasonic ranging, and taking the distance as the length of a second test ear canal;
acquiring a first ring noise signal through the feedforward microphone, and acquiring a second ring noise signal picked by a microphone arranged at the eardrum of the test ear;
and calculating to obtain the fourth attenuation coefficient corresponding to the second test ear canal length according to the first ring noise signal and the second ring noise signal, and binding and storing the second test ear canal length and the fourth attenuation coefficient in the earphone equipment.
Further, the operation of performing target processing on the environmental noise signal to obtain a noise cancellation signal for canceling the environmental noise includes:
carrying out attenuation processing on the environmental noise signal by adopting the first attenuation coefficient to obtain a first processed signal;
performing compensation processing on the first processed signal by using the second attenuation coefficient to obtain a second processed signal;
and performing anti-phase processing on the second processing signal to obtain a noise cancellation signal for canceling the environmental noise.
The embodiments of the headphone device and the computer-readable storage medium of the present invention can refer to the embodiments of the noise reduction method of the present invention, and are not described herein again.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A noise reduction method applied to a headphone device, the noise reduction method comprising:
acquiring an ambient noise signal through a feedforward microphone in the headphone device;
obtaining a first attenuation coefficient and a second attenuation coefficient, wherein the first attenuation coefficient represents the attenuation amount when the noise signal is transmitted from the feedforward microphone position to the ear drum position of the user, and the second attenuation coefficient represents the attenuation amount when the noise signal is transmitted from the loudspeaker position of the earphone device to the ear drum position of the user;
and performing target processing on the environmental noise signal to obtain a noise elimination signal for offsetting the environmental noise, and playing the noise elimination signal by using the loudspeaker, wherein the target processing comprises anti-phase processing, attenuation processing by using the first attenuation coefficient and compensation processing by using the second attenuation coefficient.
2. The noise reduction method according to claim 1, wherein the step of obtaining the second attenuation coefficient comprises:
obtaining the distance from the loudspeaker to the eardrum of the user through the loudspeaker by adopting ultrasonic ranging, wherein the distance is used as the length of the ear canal of the user;
and obtaining the attenuation coefficient corresponding to the user ear canal length from a preset third attenuation coefficient corresponding to various ear canal lengths as the second attenuation coefficient, wherein the third attenuation coefficient represents the attenuation of the noise signal after the noise signal is transmitted from the loudspeaker position and passes through the distance corresponding to the ear canal length.
3. The noise reduction method according to claim 2, wherein the step of obtaining the second attenuation coefficient further comprises, before:
when the earphone device is detected to be worn on a test ear, obtaining the distance from the loudspeaker to the eardrum of the test ear through the loudspeaker by adopting ultrasonic ranging, and taking the distance as the length of a first test ear canal;
playing a test noise signal by adopting the loudspeaker, and acquiring an attenuation noise signal picked by a microphone arranged at the eardrum of the test ear;
and calculating the third attenuation coefficient corresponding to the first test ear canal length according to the test noise signal and the attenuation noise signal, and binding and storing the first test ear canal length and the third attenuation coefficient in the earphone equipment.
4. The method of reducing noise of claim 2, wherein the step of obtaining the distance from the speaker to the eardrum of the user as the length of the ear canal of the user by using ultrasonic ranging through the speaker comprises:
transmitting an ultrasonic signal through the speaker and receiving the ultrasonic signal reflected back through a receiving microphone provided at the speaker position in the ear speaker device;
and calculating the distance from the loudspeaker to the eardrum of the user according to the transmitting time and the receiving time of the ultrasonic signal, wherein the distance is used as the length of the ear canal of the user.
5. The noise reduction method according to claim 2, wherein the step of obtaining the first attenuation coefficient comprises:
and obtaining the attenuation coefficient corresponding to the user ear canal length from a preset fourth attenuation coefficient corresponding to various ear canal lengths as the first attenuation coefficient, wherein the fourth attenuation coefficient represents the attenuation of the noise signal which is transmitted from the feedforward microphone position and passes through the distance corresponding to the ear canal length.
6. The noise reduction method according to claim 5, wherein the step of obtaining the first attenuation coefficient further comprises, before:
when the earphone device is detected to be worn on a test ear, obtaining the distance from the loudspeaker to the eardrum of the test ear through the loudspeaker by adopting ultrasonic ranging, and taking the distance as the length of a second test ear canal;
acquiring a first ring noise signal through the feedforward microphone, and acquiring a second ring noise signal picked by a microphone arranged at the eardrum of the test ear;
and calculating to obtain the fourth attenuation coefficient corresponding to the second test ear canal length according to the first ring noise signal and the second ring noise signal, and binding and storing the second test ear canal length and the fourth attenuation coefficient in the earphone equipment.
7. The noise reduction method according to any one of claims 1 to 6, wherein the step of performing target processing on the ambient noise signal to obtain a noise cancellation signal for canceling the ambient noise comprises:
carrying out attenuation processing on the environmental noise signal by adopting the first attenuation coefficient to obtain a first processing signal;
performing compensation processing on the first processed signal by using the second attenuation coefficient to obtain a second processed signal;
and performing anti-phase processing on the second processing signal to obtain a noise cancellation signal for canceling the environmental noise.
8. A noise reducing apparatus disposed in a headphone device, the noise reducing apparatus comprising:
a first obtaining module, configured to obtain an ambient noise signal through a feedforward microphone in the earphone device;
a second obtaining module, configured to obtain a first attenuation coefficient and a second attenuation coefficient, where the first attenuation coefficient represents an attenuation amount when the noise signal is transferred from the feedforward microphone position to the user eardrum position, and the second attenuation coefficient represents an attenuation amount when the noise signal is transferred from the speaker position of the earphone device to the user eardrum position;
and the noise reduction module is used for carrying out target processing on the environmental noise signal to obtain a noise elimination signal for offsetting the environmental noise and playing the noise elimination signal by adopting the loudspeaker, wherein the target processing comprises anti-phase processing, attenuation processing by adopting the first attenuation coefficient and compensation processing by adopting the second attenuation coefficient.
9. An earphone device, characterized in that the earphone device comprises: memory, a processor and a noise reduction program stored on the memory and executable on the processor, the noise reduction program when executed by the processor implementing the steps of the noise reduction method according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a noise reduction program is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the noise reduction method according to any one of claims 1 to 7.
CN202210461558.4A 2022-04-28 2022-04-28 Noise reduction method and device, earphone equipment and storage medium Pending CN114885240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210461558.4A CN114885240A (en) 2022-04-28 2022-04-28 Noise reduction method and device, earphone equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210461558.4A CN114885240A (en) 2022-04-28 2022-04-28 Noise reduction method and device, earphone equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114885240A true CN114885240A (en) 2022-08-09

Family

ID=82672068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210461558.4A Pending CN114885240A (en) 2022-04-28 2022-04-28 Noise reduction method and device, earphone equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114885240A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024119397A1 (en) * 2022-12-07 2024-06-13 深圳市韶音科技有限公司 Open wearable acoustic device and active noise cancellation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024119397A1 (en) * 2022-12-07 2024-06-13 深圳市韶音科技有限公司 Open wearable acoustic device and active noise cancellation method

Similar Documents

Publication Publication Date Title
US9142205B2 (en) Leakage-modeling adaptive noise canceling for earspeakers
EP2250822B1 (en) A sound system and a method for providing sound
CN106851460B (en) Earphone and sound effect adjusting control method
WO2020019821A1 (en) Microphone hole-blockage detection method and related product
US20110135106A1 (en) Method and a system for processing signals
CN104581526B (en) Sensor
US10932079B2 (en) Acoustical listening area mapping and frequency correction
CN114040285B (en) Method and device for generating feedforward filter parameters of earphone, earphone and storage medium
EP2806424A1 (en) Improved noise reduction
US11934506B2 (en) Methods, apparatus and systems for biometric processes
CN114333886A (en) Audio processing method and device, electronic equipment and storage medium
CN114885240A (en) Noise reduction method and device, earphone equipment and storage medium
US10715903B2 (en) System and method for configuring audio signals to compensate for acoustic changes of the ear
US11516604B2 (en) System and method for evaluating an ear seal using external stimulus
CN111464930B (en) Howling detection method and device for earphone and storage medium
CN114928785A (en) Feedback noise reduction method and device for earphone equipment, earphone equipment and storage medium
CN113542966B (en) Earphone and control method thereof
CN114286254B (en) Wireless earphone, mobile phone and sound wave distance measuring method
CN115065921A (en) Method and device for preventing hearing aid from howling
US20210400410A1 (en) System and method for evaluating an ear seal using normalization
EP2378788A2 (en) Device and method for in-ear sound generation
RU2803486C1 (en) Systems and methods for determining the state of hearing aid with bone conduction
JP2016522444A (en) Acoustic device with active noise reduction processing capability
WO2023160286A1 (en) Noise reduction parameter adaptation method and apparatus
CN113766402B (en) Hearing aid method and device for improving environmental adaptability

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