Active noise reduction method and chip of earphone
Technical Field
The invention relates to the field of audio output equipment, in particular to an active noise reduction method and a chip of an earphone.
Background
The earphones are mainly divided into two types according to the difference of noise reduction methods adopted, namely passive noise reduction earphones and active noise reduction earphones. The passive noise reduction earphone mainly forms a closed space by surrounding ears, or adopts sound insulation materials such as silica gel earplugs and the like to block outside noise. Because the noise is not processed by the noise reduction circuit chip, the noise can only be blocked from high-frequency noise generally, and the noise reduction effect on low-frequency noise is not obvious. The active noise reduction earphone generates reverse sound waves equal to external noise through the noise reduction system, and neutralizes the noise, so that the noise reduction effect is achieved. The active noise reduction earphone is mostly designed in a head-wearing mode with a large size, external noise is blocked by the aid of structures such as earplug cotton and an earphone shell, a first round of sound insulation is conducted, and meanwhile sufficient space is provided for a noise reduction circuit and a power supply which are installed in the active noise reduction earphone.
The active noise reduction technology, namely the active noise elimination technology, has the following principle: all heard sounds are sound waves, all having a certain spectral composition. If a sound wave is found whose spectrum is equal in magnitude and opposite in phase (180 deg. apart) to the noise to be cancelled, the noise can be completely cancelled out by the superposition of the two. The key to the active noise reduction technique is how to obtain a sound that cancels the noise. The commonly used method is as follows: starting from the noise, the microphone is used for monitoring the noise, and then an opposite sound wave is generated through an electronic circuit and played through a loudspeaker. When dealing with complicated noise environment, two pieces of MEMS microphones for monitoring noise will pick up in-ear noise and diversified external environment noise respectively, and the intelligent high definition of rethread independent operation falls the treater of making an uproar, carries out high-speed operation, accurate noise elimination to the different noises that pick up.
When the existing active noise reduction earphone generates reverse sound waves to offset noise in real time, if time delay control is not good, reverse elimination of the noise cannot be achieved, and the reverse sound waves are more likely to be superposed on external noise to enable the noise to become more obvious, so that auditory experience of a user is influenced, and even hearing is damaged.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides an active noise reduction method of an earphone, which comprises the following steps:
s110: detecting a preset spatial distance threshold range, and if a plurality of active noise reduction earphones exist, carrying out wireless information communication on the active noise reduction earphones to establish a local area sharing network; s120: the active noise reduction earphones receive and identify external noise signals, collect and process the external noise signals, and calculate the relative position of a noise source; s130: determining at least one of the plurality of active noise reduction earphones closest to the noise source, and calculating attenuation characteristics and lag times of other active noise reduction earphones relative to the noise signal of the active noise reduction earphone closest to the noise source; s140: transmitting the external noise signals received and identified by the active noise reduction earphone closest to the noise source to other active noise reduction earphones in real time in an electromagnetic wireless communication mode, or transmitting the reversed-phase sound wave signals of the external noise signals received and identified by the active noise reduction earphone closest to the noise source to other active noise reduction earphones in real time in an electromagnetic wireless communication mode; s150: and the other active noise reduction earphones generate the opposite-phase sound wave signal of the external noise signal of the other active noise reduction earphones according to the attenuation characteristic, the delay time and the external noise signal in the electromagnetic wireless communication form or the opposite-phase sound wave signal of the external noise signal transmitted by the active noise reduction earphone closest to the noise source, and output the opposite-phase sound wave signal through the loudspeaker of the other active noise reduction earphones.
Preferably, step S150 is followed by step S160: after a predetermined time interval, detecting whether a new active noise reduction earphone enters the predetermined spatial distance threshold range, and whether at least one of the active noise reduction earphones leaves the predetermined spatial distance threshold range, if the new active noise reduction earphone enters the predetermined spatial distance threshold range or at least one of the active noise reduction earphones leaves the predetermined spatial distance threshold range, returning to step S110, otherwise returning to step S120.
Preferably, in step S120, the step of receiving and identifying the external noise signal by the plurality of active noise reduction earphones includes the following steps: the active noise reduction earphones receive and identify direct signals, first-order reflection signals, second-order reflection signals and above reflection signals in external noise, remove the second-order reflection signals and above reflection signals, and reserve the direct signals and the first-order reflection signals as the external noise signals.
Preferably, in step S120, the step of receiving and identifying the external noise signal by the plurality of active noise reduction earphones includes the following steps: and determining the spatial positions of the active noise reduction earphones through the positioning function of an audio signal output terminal (such as a mobile phone, a notebook computer, a tablet computer and the like) connected with the active noise reduction earphones or the built-in positioning function of the active noise reduction earphones.
Preferably, in step S120, the step of summarizing and processing the external noise signals and calculating the relative position of the noise source includes the following steps: and summarizing and processing the external noise signals, and calculating the relative position of a real sound source and the relative position of a first-order reflection sound source of the real sound source through the direct signals, the first-order reflection signals and the spatial positions of the active noise reduction earphones.
Preferably, in step S120, the step of summarizing and processing the external noise signals and calculating the relative position of the noise source includes the following steps: determining the number of noise sources simultaneously existing in the space according to the external noise signals received and identified by the active noise reduction earphones; when the number of the noise sources exceeds a preset value, the noise sources in a preset frequency or volume range are selected, and the relative positions of the noise sources are calculated.
Preferably, in step S150, generating an inverse acoustic wave signal of the external noise signal of itself includes the following steps: if the noise source and the active noise reduction earphones closest to the noise source are a plurality of groups, carrying out superposition processing on the corresponding attenuation characteristics, the lag time and the external noise signals of each group, or carrying out superposition processing on the corresponding attenuation characteristics, the lag time and the inverse sound wave signals of the external noise signals of each group; and then generates the reverse sound wave signal of the external noise signal of the self.
The invention also provides an active noise reduction chip, which is arranged in the active noise reduction earphone and comprises: the device comprises an induction circuit, a wireless communication circuit and interface, an external sound receiving circuit and interface, a noise identification circuit, a noise processing circuit, a comparison circuit, an attenuation characteristic and delay time calculation circuit, an active noise reduction control circuit, an audio output interface and an audio input interface; the presence sensing circuit is used for controlling the presence sensing component of the active noise reduction earphone, detecting the range of a preset spatial distance threshold value, and if a plurality of active noise reduction earphones exist, carrying out wireless information communication on the active noise reduction earphones to establish a local area sharing network; the external sound receiving circuit and the interface are used for controlling a microphone of the active noise reduction earphone to receive an external noise signal; the noise identification circuit is used for identifying an external noise signal; the noise processing circuit is used for summarizing and processing the external noise signals and calculating the relative position of a noise source; a comparison circuit for determining at least one of the plurality of active noise reduction headphones that is closest to the noise source; the attenuation characteristic and lag time calculation circuit is used for calculating the attenuation characteristic and the lag time of other active noise reduction earphones relative to the noise signal of the active noise reduction earphone closest to the noise source; the wireless communication circuit and the interface are used for controlling a wireless communication component of the active noise reduction earphone, transmitting an external noise signal received and identified by the active noise reduction earphone closest to the noise source to the other active noise reduction earphones in an electromagnetic wireless communication mode in real time, or transmitting an inverse sound wave signal of the external noise signal received and identified by the active noise reduction earphone closest to the noise source to the other active noise reduction earphones in an electromagnetic wireless communication mode in real time; the active noise reduction control circuit is used for generating an opposite-phase sound wave signal of the external noise signal according to the attenuation characteristic, the lag time and the external noise signal in the electromagnetic wireless communication form or the opposite-phase sound wave signal of the external noise signal transmitted by the active noise reduction earphone closest to the noise source; and the audio output interface is used for controlling a loudspeaker of the active noise reduction earphone to output the reversed phase sound wave signal generated by the active noise reduction control circuit.
Preferably, the wireless communication circuit and the interface are further configured to perform wireless information communication on the plurality of active noise reduction earphones, so as to establish a local area sharing network.
Preferably, after a predetermined time interval, detecting whether a new active noise reduction earphone enters the predetermined spatial distance threshold range and whether at least one of the active noise reduction earphones leaves the predetermined spatial distance threshold range, if the new active noise reduction earphone enters the predetermined spatial distance threshold range or at least one of the active noise reduction earphones leaves the predetermined spatial distance threshold range, the presence sensing component of the active noise reduction earphone is controlled again by the presence sensing circuit, the presence sensing component of the active noise reduction earphone is detected, the plurality of active noise reduction earphones are detected within the predetermined spatial distance threshold range, otherwise, the external sound receiving circuit and the interface control the microphone of the active noise reduction earphone to receive the external noise signal again, the external noise signal is identified again by the noise identification circuit, and the external noise signal is summarized again by the noise processing circuit, The relative position of the noise source is processed and calculated.
Preferably, when the active noise reduction earphone receives and identifies an external noise signal, the noise identification circuit is configured to identify a direct signal, a first-order reflected signal, and a second-order or higher reflected signal in the external noise, and the noise processing circuit is configured to remove the second-order or higher reflected signal and retain the direct signal and the first-order reflected signal as the external noise signal.
Preferably, the earphone further comprises a positioning circuit, and when the active noise reduction earphone receives and identifies the external noise signal, the positioning circuit is used for controlling a positioning component of the active noise reduction earphone to determine the spatial position of the active noise reduction earphone.
Preferably, when the relative position of the noise source is calculated, the noise processing circuit is configured to collect and process the external noise signal, and calculate the relative position of the real sound source and the relative position of the first-order reflected sound source of the real sound source according to the direct signal, the first-order reflected signal, and the spatial positions of the active noise reduction earphones.
Preferably, when the external noise signals are collected and processed and the relative positions of the noise sources are calculated, the noise processing circuit determines the number of the noise sources existing in the space at the same time according to the external noise signals received and identified by the active noise reduction earphones; when the number of the noise sources exceeds a preset value, the noise sources in a preset frequency or volume range are selected, and the relative positions of the noise sources are calculated.
Preferably, when generating the inverse sound wave signal of the external noise signal of the active noise reduction control circuit, if the noise source and the active noise reduction earphones closest to the noise source are multiple groups, the active noise reduction control circuit is configured to perform superposition processing on the corresponding groups of attenuation characteristics, delay time and the external noise signal, or perform superposition processing on the corresponding groups of attenuation characteristics, delay time and the inverse sound wave signal of the external noise signal; and then generates the reverse sound wave signal of the external noise signal of the self.
The method comprises the steps of establishing a local area sharing network by a plurality of active noise reduction earphones in a space, identifying a noise source, determining the relative position of the noise source, selecting the active noise reduction earphone closest to the noise source, acquiring the earliest external noise data in the space, and sharing the external noise data to other active noise reduction earphones in an electromagnetic wireless communication mode, so that the other active noise reduction earphones can acquire noise signals before the noise is transmitted, and the time delay of the active noise reduction processing process can be reduced; in addition, the invention effectively captures the quantity, strength and position change of the active noise reduction earphone user and the noise source by updating the dynamic state of the active noise reduction earphone and the noise source in real time in the space, so that the active noise reduction earphone is more suitable for changeable dynamic use scenes; thirdly, the invention not only considers the noise source in the form of a real sound source, but also considers the noise source in the form of a first-order reflection sound source formed by spatial reflection, can better deal with the condition of larger spatial echo, filters out second-order and above reflection signals, and reduces the calculation difficulty and the calculation amount.
Drawings
Fig. 1 is a flowchart illustrating steps of an active noise reduction method for a headphone according to an embodiment of the present invention.
Fig. 2 is a block diagram of an active noise reduction chip of an earphone according to an embodiment of the present invention.
Fig. 3 is an application scenario of an active noise reduction method and a chip of an earphone according to an embodiment of the present invention.
Fig. 4 is another application scenario of an active noise reduction method and a chip of an earphone according to an embodiment of the present invention.
Wherein, the device comprises an independent space-1, a door and window-2, a noise sound wave-3, a user-4, a user-5, a user-6, a user-7, a user-8, a user-9, a presence induction circuit-10, an external sound receiving circuit and an interface-11, a noise identification circuit-12, a comparison circuit-13, an active noise reduction control circuit-14, a wireless communication circuit and an interface-15, a positioning circuit-16, a noise processing circuit-17, an attenuation characteristic and lag time calculation circuit-18, an audio input interface-19, an audio output interface-20, a presence induction component-21, a microphone-22, a wireless communication component-23, a positioning component-24, an audio signal output terminal-25, a voice frequency identification circuit-20, a voice frequency identification circuit-24, a voice frequency identification circuit-3, a voice frequency identification circuit-24, a voice frequency identification circuit-3, a voice frequency identification circuit, a, Speaker-26, active noise reduction earphone chip-100.
Detailed Description
In order to cope with the time delay phenomenon of the existing active noise reduction technology, the active noise reduction method and the chip of the earphone provided by the invention are realized by the following technical scheme:
example 1:
the present embodiment provides an active noise reduction method for a headphone, please refer to fig. 1, which includes the following steps:
s110: and detecting the preset spatial distance threshold range, and if a plurality of active noise reduction earphones exist, carrying out wireless information communication on the plurality of active noise reduction earphones to establish a local area sharing network.
S120: and the plurality of active noise reduction earphones receive and identify the external noise signals, collect and process the external noise signals, and calculate the relative position of the noise source.
S130: at least one of a plurality of active noise reduction headphones closest to the noise source is determined, and the attenuation characteristics and the lag time of the other active noise reduction headphones with respect to the noise signal of the active noise reduction headphone closest to the noise source are calculated.
S140: and transmitting the external noise signal received and identified by the active noise reduction earphone closest to the noise source to other active noise reduction earphones in real time in an electromagnetic wireless communication mode, or transmitting the reversed-phase sound wave signal of the external noise signal received and identified by the active noise reduction earphone closest to the noise source to other active noise reduction earphones in real time in an electromagnetic wireless communication mode.
S150: and other active noise reduction earphones generate the reverse sound wave signal of the external noise signal of the other active noise reduction earphones according to the attenuation characteristic, the delay time and the external noise signal in the electromagnetic wireless communication form or the reverse sound wave signal of the external noise signal transmitted by the active noise reduction earphone closest to the noise source, and output the reverse sound wave signal through the loudspeaker of the other active noise reduction earphones.
S160: after a predetermined time interval, detecting whether a new active noise reduction earphone enters a predetermined spatial distance threshold range or not, and whether at least one of the plurality of active noise reduction earphones leaves the predetermined spatial distance threshold range or not, if the new active noise reduction earphone enters the predetermined spatial distance threshold range or at least one of the plurality of active noise reduction earphones leaves the predetermined spatial distance threshold range, returning to step S110, otherwise, returning to step S120.
Specifically, in step S120, the method for receiving and identifying the external noise signal by the plurality of active noise reduction earphones includes the following steps: the active noise reduction earphones receive and identify direct signals, first-order reflection signals, second-order reflection signals and above reflection signals in the external noise, remove the second-order reflection signals and above reflection signals, and reserve the direct signals and the first-order reflection signals as the external noise signals. The method for receiving and identifying the external noise signals by the active noise reduction earphones comprises the following steps: the spatial positions of the active noise reduction earphones are determined through the positioning function of an audio signal output terminal (such as a mobile phone, a notebook computer, a tablet computer and the like) connected with the active noise reduction earphones or the built-in positioning function of the active noise reduction earphones. The method for summarizing and processing the external noise signals and calculating the relative position of the noise source comprises the following steps: and summarizing and processing the external noise signals, and calculating the relative position of the real sound source and the relative position of the first-order reflection sound source of the real sound source according to the direct signals, the first-order reflection signals and the spatial positions of the plurality of active noise reduction earphones. The method for summarizing and processing the external noise signals and calculating the relative position of the noise source comprises the following steps: determining the number of noise sources simultaneously existing in the space according to the external noise signals received and recognized by the active noise reduction earphones; when the number of the noise sources exceeds a preset value, the noise sources in a preset frequency or volume range are selected, and the relative positions of the noise sources are calculated.
Further, in step S150, generating an inverse acoustic wave signal of the external noise signal of itself, includes the steps of: if the noise source and the active noise reduction earphones closest to the noise source are a plurality of groups, carrying out superposition processing on the corresponding attenuation characteristics, the lag time and the external noise signals of each group, or carrying out superposition processing on the corresponding attenuation characteristics, the lag time and the inverse sound wave signals of the external noise signals of each group; and then generates the reverse sound wave signal of the external noise signal of the self.
In the application scenario as shown in fig. 3, there is an independent space 1, which may be specifically a room of a home, a train car, a classroom, etc.; in the embodiment, a local area sharing network is established by active noise reduction earphones of a plurality of users in an independent space 1, a noise source, namely a door and window 2, is identified, the relative position of the noise source is determined, the active noise reduction earphone of a user I4 closest to the door and window 2 is selected, the earliest external noise data in the space is obtained, and the active noise reduction earphone of other users is shared by electromagnetic waves, so that the active noise reduction earphones of other users acquire noise signals before noise sound waves 3 are transmitted, and the conventional time delay in the prior art is reduced as much as possible. When the application scene shown in fig. 3 changes to the application scene shown in fig. 4 after a period of time, that is, the user four 7 leaves the independent space 1, the user six 9 enters the independent space 1, and the user five 8 no longer uses the active noise reduction earphone, moves the position, and becomes a new noise source; in the embodiment, the active noise reduction earphones, the noise sources and the positions thereof in the independent space 1 are updated in real time, and the corresponding active noise reduction earphones closest to the noise sources effectively capture the changes of users of the active noise reduction earphones, the number, the strength and the position changes of the noise sources, namely, the local area sharing network is rebuilt on the basis of the active noise reduction earphones of the user one 4, the user two 5, the user three 6 and the user six 9, a new noise source, namely the user five 8, is identified, and the active noise reduction earphones of the user three 6 closest to the user five 8 are selected, so that the dynamic use scene is adapted to be changeable. Thirdly, the embodiment not only considers the noise source in the form of a real sound source, but also considers the noise source in the form of a first-order reflection sound source formed by spatial reflection, so that the condition of large spatial echo can be better dealt with, meanwhile, second-order and above reflection signals are filtered, and the calculation difficulty and the calculation amount are reduced.
Example 2:
referring to fig. 2, the active noise reduction chip 100 provided in the embodiment includes: the device comprises a presence sensing circuit 10, a wireless communication circuit and interface 15, an external sound receiving circuit and interface 11, a noise identification circuit 12, a noise processing circuit 17, a comparison circuit 13, an attenuation characteristic and lag time calculation circuit 18, an active noise reduction control circuit 14, an audio output interface 20 and an audio input interface 19; the presence sensing circuit 10 is used for controlling the presence sensing component 21 of the active noise reduction earphone, detecting the presence within a preset spatial distance threshold range, if a plurality of active noise reduction earphones exist, carrying out wireless information communication on the plurality of active noise reduction earphones, and establishing a local area sharing network; an external sound receiving circuit and interface 11, which is used for controlling the microphone 22 of the active noise reduction earphone to receive the external noise signal; a noise identifying circuit 12 for identifying an external noise signal; the noise processing circuit 17 is used for summarizing and processing external noise signals and calculating the relative position of a noise source; a comparison circuit 13 for determining at least one of the plurality of active noise reduction headphones closest to the noise source; an attenuation characteristic and lag time calculation circuit 18 for calculating attenuation characteristics and lag times of other active noise reduction earphones relative to a noise signal of the active noise reduction earphone closest to the noise source; the wireless communication circuit and interface 15 is used for controlling a wireless communication component 23 of the active noise reduction earphone, transmitting an external noise signal received and identified by the active noise reduction earphone closest to a noise source to other active noise reduction earphones in an electromagnetic wireless communication mode in real time, or transmitting an inverse sound wave signal of the external noise signal received and identified by the active noise reduction earphone closest to the noise source to other active noise reduction earphones in an electromagnetic wireless communication mode in real time; the active noise reduction control circuit 14 is configured to generate an opposite-phase sound wave signal of the external noise signal according to the attenuation characteristic, the hysteresis time, and the external noise signal in the form of electromagnetic wireless communication transmitted by the active noise reduction earphone closest to the noise source or the opposite-phase sound wave signal of the external noise signal; and an audio output interface 20 for controlling the speaker 26 of the active noise reduction earphone to output the inverse sound wave signal generated by the active noise reduction control circuit 14.
Specifically, the wireless communication circuit and interface 15 are also used to perform wireless information communication with multiple active noise reduction headsets to establish a local area sharing network.
More specifically, after a predetermined time interval, it is detected whether a new active noise reduction earphone enters a predetermined spatial distance threshold range and whether at least one of the active noise reduction earphones leaves the predetermined spatial distance threshold range, if the new active noise reduction earphone enters the predetermined spatial distance threshold range or at least one of the active noise reduction earphones leaves the predetermined spatial distance threshold range, the presence sensing circuit 10 controls the presence sensing component of the active noise reduction earphone again, and if the new active noise reduction earphone detects that the active noise reduction earphone exists within the predetermined spatial distance threshold range, otherwise the external sound receiving circuit and the interface 11 controls the microphone 22 of the active noise reduction earphone to receive the external noise signal again, the external noise signal is identified again by the noise identification circuit 12, the external noise signal is summarized again by the noise processing circuit 17, The relative position of the noise source is processed and calculated.
When the active noise reduction earphone receives and identifies an external noise signal, the noise identification circuit 12 is used for identifying a direct signal, a first-order reflection signal, a second-order reflection signal and a reflection signal above the second order in the external noise, and the noise processing circuit 17 is used for removing the second-order reflection signal and the reflection signal above the second order, and keeping the direct signal and the first-order reflection signal as the external noise signal.
In addition, the active noise reduction chip of the earphone provided by the invention further comprises a positioning circuit 16, and when the active noise reduction earphone receives and identifies an external noise signal, the positioning circuit 16 is used for controlling a positioning component 24 of the active noise reduction earphone to determine the spatial position of the active noise reduction earphone.
When calculating the relative position of the noise source, the noise processing circuit 17 is configured to summarize and process the external noise signal, and calculate the relative position of the real sound source and the relative position of the first-order reflected sound source of the real sound source according to the direct signal, the first-order reflected signal, and the spatial positions of the multiple active noise reduction earphones.
When the external noise signals are collected and processed and the relative positions of the noise sources are calculated, the noise processing circuit 17 determines the number of the noise sources existing in the space at the same time according to the external noise signals received and identified by the active noise reduction earphones; when the number of the noise sources exceeds a preset value, the noise sources in a preset frequency or volume range are selected, and the relative positions of the noise sources are calculated.
When the opposite-phase sound wave signals of the external noise signals of the active noise reduction control circuit are generated, if the noise sources and the active noise reduction earphones closest to the noise sources are a plurality of groups, the active noise reduction control circuit is used for performing superposition processing on the corresponding attenuation characteristics, the delay time and the external noise signals of each group, or performing superposition processing on the corresponding attenuation characteristics, the delay time and the opposite-phase sound wave signals of the external noise signals of each group; and then generates the reverse sound wave signal of the external noise signal of the self.
More specifically, the active noise reduction chip of the earphone provided by the invention is packaged by adopting a stacked SIP (session initiation protocol), based on a 3.0nm manufacturing process and based on the application of an ANANDA (analog-to-digital) earphone, under the conditions that the ambient temperature is 15-40 ℃ and the relative humidity is 20-80% under the standard atmospheric pressure of 1 standard square meter and the indoor temperature is 20, the average active noise reduction depth of a full frequency band can reach-20 dB, the maximum active noise reduction depth of the full frequency band can reach-52 dB, and the average active noise reduction depth of a frequency band from 72Hz to 4000Hz can reach 28 dB.
It should be noted that the above-mentioned embodiments are provided for further detailed description of the present invention, and the present invention is not limited to the above-mentioned embodiments, and those skilled in the art can make various modifications and variations on the above-mentioned embodiments without departing from the scope of the present invention.