WO2023045130A1 - Noise reduction method and apparatus, earphone device, and storage medium - Google Patents

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

Info

Publication number
WO2023045130A1
WO2023045130A1 PCT/CN2021/138976 CN2021138976W WO2023045130A1 WO 2023045130 A1 WO2023045130 A1 WO 2023045130A1 CN 2021138976 W CN2021138976 W CN 2021138976W WO 2023045130 A1 WO2023045130 A1 WO 2023045130A1
Authority
WO
WIPO (PCT)
Prior art keywords
noise reduction
noise
signal
feedback
signals
Prior art date
Application number
PCT/CN2021/138976
Other languages
French (fr)
Chinese (zh)
Inventor
曲征
Original Assignee
歌尔科技有限公司
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 歌尔科技有限公司 filed Critical 歌尔科技有限公司
Publication of WO2023045130A1 publication Critical patent/WO2023045130A1/en

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • 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

Definitions

  • the present application relates to the technical field of earphones, and in particular to a noise reduction method, device, earphone equipment and a storage medium.
  • the principle of feedback noise-cancelling headphones is to set a feedback microphone inside the earmuffs to pick up the noise inside the earmuffs, and to process the noise through an algorithm to form a reverse sound wave of the noise to offset the noise at the feedback noise-cancelling headphones, thereby Active cancellation of noise is achieved.
  • the feedback microphone is used to replace the human ear to pick up the noise. If the noise at the feedback microphone is eliminated, it is considered that the noise at the human ear is also eliminated.
  • the noise at the feedback microphone When the noise at the feedback microphone is eliminated, the noise at the human ear may not be completely eliminated. Especially for high-frequency noise, a slight distance change will bring about phase The huge change of , resulting in a large difference between the estimated noise reduction amount and the measured value in the high frequency band.
  • the main purpose of this application is to provide a noise reduction method, device, earphone device and storage medium, aiming to solve the problem that there is a distance between the feedback microphone and the human ear, and the technology that the noise at the feedback microphone cannot completely eliminate the noise at the human ear question.
  • the present application provides a noise reduction method, which is applied to a headphone device, and the headphone device includes an active noise reduction circuit, a speaker, a sound hole and a feedback microphone array, and the feedback microphone array includes A plurality of feedback microphones, the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to the speaker and the outlet
  • the noise reduction method comprises the following steps:
  • the noise-canceling signal is played through the loudspeaker.
  • the step of performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a denoising signal corresponding to an average signal of each of the first noise signals includes:
  • the step of acquiring the first noise signals respectively detected by each of the feedback microphones it may further include:
  • test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker
  • the step of inputting the average signal into the active noise reduction circuit to perform noise reduction processing, and obtaining a denoising signal corresponding to the average signal includes:
  • the active noise reduction circuit includes an active noise reduction branch corresponding to each of the feedback microphones, and the active noise reduction circuit performs noise reduction processing on each of the first noise signals to obtain the same
  • the step of denoising signal corresponding to the average signal of each said first noise signal comprises:
  • the denoising signals of each of the branches are averaged, and the result is used as a denoising signal corresponding to the average signal of each of the first noise signals.
  • the step of acquiring the first noise signals respectively detected by each of the feedback microphones it may further include:
  • test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker
  • the step of inputting each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtaining the branch denoising signals corresponding to each of the first noise signals includes:
  • Each of the first noise signals is input to a corresponding active noise reduction branch, and noise reduction processing is performed based on the corresponding branch filter coefficients to obtain branch denoising signals corresponding to each of the first noise signals.
  • the noise cancellation signals of each of the branches are averaged, and the result is used as the result of each of the first noise signals
  • the step of averaging the denoised signal corresponding to the signal includes:
  • the active noise reduction circuit includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit
  • the earphone device further includes a feedforward microphone
  • each of the first A noise signal is subjected to noise reduction processing, and the step of obtaining a noise removal signal corresponding to the average signal of each of the first noise signals includes:
  • the present application also provides a noise reduction device, the noise reduction device is deployed in the earphone device, the earphone device includes an active noise reduction circuit, a speaker, a sound hole and a feedback microphone array, and the feedback microphone array It includes a plurality of feedback microphones, the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to the speaker and the The connection between the sound holes, and the center of the feedback microphone array is on the connection, and the noise reduction device includes:
  • An acquisition module configured to acquire the first noise signals respectively detected by each of the feedback microphones
  • a noise reduction module configured to perform noise reduction processing on each of the first noise signals through the active noise reduction circuit, to obtain a noise reduction signal corresponding to an average signal of each of the first noise signals;
  • a playback module configured to play the noise-canceling signal through the loudspeaker.
  • the present application also provides an earphone device, the earphone device includes an active noise reduction circuit, a loudspeaker, a sound outlet and a feedback microphone array, the feedback microphone array includes a plurality of feedback microphones, and the feedback microphone array
  • the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to the connection line between the speaker and the sound outlet, And the center of the feedback microphone array is on the connection line
  • the earphone device also includes a memory, a processor, and a noise reduction program stored on the memory and operable on the processor, the noise reduction When the program is executed by the processor, the steps of the above-mentioned noise reduction method are realized.
  • the present application also proposes a computer-readable storage medium, on which a noise reduction program is stored, and when the noise reduction program is executed by a processor, the above-mentioned noise reduction is realized. method steps.
  • the feedback microphone array includes a plurality of feedback microphones, and the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is the feedback microphone array
  • the distribution plane is perpendicular to the line between the loudspeaker and the sound outlet, and the center of the feedback microphone array is on the line; each first noise signal detected by each feedback microphone is processed by the active noise reduction circuit in the earphone device
  • the noise reduction processing is to obtain the noise cancellation signal corresponding to the average signal of each first noise signal, and the noise cancellation signal at the center of the feedback microphone array can be equivalently canceled by playing the noise cancellation signal through the loudspeaker, and then the noise at the human ear can be realized. Noise is also canceled out.
  • FIG. 1 is a schematic flow chart of the first embodiment of the noise reduction method of the present application
  • FIG. 2 is a schematic diagram of a feedback noise reduction principle involved in an embodiment of the present application
  • FIG. 3 is a schematic diagram of a noise transmission path of an in-ear earphone according to an embodiment of the present application
  • Fig. 4 is a schematic diagram of the setting position of the feedback microphone of an in-ear earphone according to the embodiment of the present application;
  • FIG. 5 is a schematic diagram of functional modules of a preferred embodiment of the noise reduction device of the present application.
  • FIG. 1 is a schematic flowchart of a first embodiment of a noise reduction method of the present application.
  • the embodiment of the present application provides an embodiment of the noise reduction method. It should be noted that although the logic sequence is shown in the flow chart, in some cases, the steps shown or described can be executed in a different order than here. A step of.
  • the noise reduction method of this application is applied to the earphone device.
  • the earphone device can include one or two earphones. Since the noise reduction method of the two earphones is the same, the following is for the convenience of description. By default, the earphone device includes one earphone as an example for implementation. example.
  • the noise reduction method includes:
  • Step S10 acquiring first noise signals respectively detected by each of the feedback microphones
  • Feedback active noise reduction also known as feedback noise reduction
  • FB mic feedback microphone
  • noise noise reduction noise reduction
  • the noise is processed by an algorithm to form an anti-phase sound wave for offsetting.
  • d(t) is the initial noise inside the earmuff
  • c(t) is the anti-phase sound wave processed by the algorithm
  • e(t) is the residual noise after cancellation.
  • Feedback noise reduction uses the feedback microphone instead of the human ear to pick up noise, that is to say, the feedback noise reduction will eliminate the noise at the feedback microphone, but it is unknown whether it can be eliminated at the human ear.
  • Figure 3 shows a simplified diagram of an in-ear earphone (take in-ear earphones as an example, but other types of earphones can also be used), the far right is the sound hole of the earphone, which will go deep into the ear canal when actually worn.
  • a is the path from the noise to the feedback microphone
  • b is the path from the noise to the human ear
  • c is the path from the speaker to the feedback microphone
  • d is the path from the loudspeaker to the human ear.
  • the noise of path a and path c is equal-amplitude anti-phase cancellation at the feedback microphone.
  • the relative position of the feedback microphone, the loudspeaker and the human ear is fixed, and d-c is a constant value, but as the position of the noise source changes, the value of b-a changes, resulting in situations where b-a is not equal to d-c, and the position of the human ear noise will not necessarily be eliminated.
  • setting the feedback microphone at this position will block the sound channel of the speaker and affect the sound quality.
  • a noise reduction method is proposed in this embodiment, aiming at setting multiple feedback microphones in the earphone device, by limiting the distribution positions of the multiple feedback microphones to meet certain position conditions, and by designing
  • the earphone device includes an active noise reduction circuit, a speaker, a sound outlet, and a feedback microphone array
  • the feedback microphone array includes a plurality of feedback microphones
  • the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation
  • the location condition is that the distribution plane of the feedback microphone array is perpendicular to the line between the loudspeaker and the sound outlet, and the center of the feedback microphone array is on the line.
  • the distribution position of the feedback microphone array is the same as the feedback microphone array that meets the position condition.
  • error compensation refers to the measurement of the error in advance, and in the subsequent noise reduction process, the measured error is used to compensate the output signal of the feedback microphone array (usually the detected noise signal), so as to The output signal of the compensated feedback microphone array is equivalent to the output signal of the feedback microphone array (hereinafter referred to as the standard microphone array) that meets the position condition.
  • the conversion formula for converting the output signal of the actual feedback microphone array into the output signal of the standard microphone array is converted according to the conversion formula and then participates in the noise reduction process.
  • the two feedback microphones may be symmetrically arranged on both sides of the sound outlet.
  • the noise signal is detected by each feedback microphone of the feedback microphone array (hereinafter referred to as the first noise signal for distinction); since there are multiple feedback microphones, each feedback microphone detects the noise signal separately. noise signal, so there are multiple first noise signals.
  • the earphone device may remove the audio signal played by the speaker from the sound signals detected by the feedback microphone, and the remaining part may be used as the first noise signal.
  • Step S20 performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a noise reduction signal corresponding to the average signal of each of the first noise signals;
  • the earphone device For the first noise signals detected by each feedback microphone, the earphone device performs noise reduction processing on each first noise signal through an active noise reduction circuit to obtain a noise reduction signal corresponding to an average signal of each first noise signal.
  • the average signal is a signal obtained by averaging the first noise signals, and the denoising signal corresponding to the average signal may include a signal generated through denoising processing for canceling the average signal.
  • the purpose is to obtain the denoising signal corresponding to the average signal
  • the order of the two steps of averaging and denoising is not limited; for example, the specific implementation method may be to average each first noise signal , and then perform noise reduction processing on the average signal to directly obtain the denoising signal corresponding to the average signal, or firstly perform denoising processing on each first noise signal, and then average the results obtained by denoising processing to indirectly obtain the average signal Corresponding denoising signal.
  • the active noise reduction circuit can be a feedback active noise reduction circuit or a hybrid active noise reduction circuit, that is, it includes a feedback active noise reduction circuit and a feedforward active noise reduction circuit.
  • the circuit design can be based on feedback or hybrid
  • the design method is based on the design method of the active noise reduction circuit, which is not limited in this embodiment.
  • the specific process of denoising the noise signal through the active noise reduction circuit to obtain the denoising signal can also refer to the principle of the existing active noise reduction circuit, and will not be described in detail here.
  • the earphone device can perform noise reduction processing on each first noise signal through the feedback active noise reduction circuit to obtain the average signal of each first noise signal
  • the corresponding feedback denoising signal is the final denoising signal.
  • the active noise reduction circuit when it is a hybrid active noise reduction circuit, that is, when it includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit, the earphone device also includes a feedforward microphone, so Said step S20 comprises:
  • Step a acquiring a second noise signal detected by the feedforward microphone
  • the feed-forward microphone is generally placed outside the earmuffs to pick up noise before the feedback microphone and the human ear.
  • a noise signal (hereinafter referred to as a second noise signal for distinction) is detected through a feed-forward microphone.
  • Step b performing noise reduction processing on the second noise signal through the feedforward active noise reduction circuit to obtain a feedforward noise reduction signal
  • the earphone device For the second noise signal detected by the feedforward microphone, the earphone device performs noise reduction processing on the second noise signal through a feedforward active noise reduction circuit to obtain a feedforward noise reduction signal, which is used to offset the second noise Signal. It should be noted that, in this embodiment, the specific process of noise reduction processing by the feedforward active noise reduction circuit will not be described in detail here, and the existing feedforward active noise reduction circuit can be referred to.
  • Step c performing noise reduction processing on each of the first noise signals through the feedback active noise reduction circuit to obtain a feedback denoising signal corresponding to an average signal of each of the first noise signals;
  • the earphone device performs noise reduction processing on each of the first noise signals through a feedback active noise reduction circuit to obtain a feedback noise reduction signal corresponding to an average signal of each first noise signal.
  • the first noise signals may be averaged before performing the noise reduction processing, or the first noise signals may be respectively subjected to noise reduction processing before the noise reduction signals are averaged. It should be noted that, in this embodiment, the specific process of performing noise reduction processing through the feedback active noise reduction circuit will not be described in detail here, and the existing feedback active noise reduction circuit can be referred to.
  • Step d adding the feedforward denoising signal and the feedback denoising signal, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
  • the feedforward denoising signal After obtaining the feedforward denoising signal and the feedback denoising signal, add the two denoising signals together, and use the added signal as the denoising signal corresponding to the average signal of each first noise signal, that is, add The resulting signal is played through a loudspeaker.
  • the feedforward noise cancellation signal is used to cancel the first noise signal
  • the second noise signal picked up at the feedback microphone after cancellation is residual noise
  • the feedback noise cancellation signal is used to cancel the noise picked up at the feedback microphone.
  • the second noise signal so as to achieve a better noise reduction effect through hybrid noise reduction.
  • Step S30 playing the noise-canceling signal through the loudspeaker.
  • the earphone device After processing the noise-canceling signal, the earphone device plays the noise-canceling signal through the loudspeaker. Since the distribution plane of the feedback microphone array (or the feedback microphone array after error compensation) is perpendicular to the line between the loudspeaker and the sound outlet, and the center of the feedback microphone array is on the line, each of the feedback microphone arrays
  • the average signal of the first noise signal detected by the feedback microphone can be regarded as the noise signal detected at the center of the feedback microphone array, and the denoising signal corresponding to the average signal obtained through the noise reduction process can be regarded as the noise signal for the feedback microphone
  • the feedback microphone array includes a plurality of feedback microphones, and the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is feedback
  • the distribution plane of the microphone array is perpendicular to the connection line between the loudspeaker and the sound outlet, and the center of the feedback microphone array is on the connection line; each first noise detected by each feedback microphone is detected by the active noise reduction circuit in the earphone device.
  • the signal is subjected to denoising processing to obtain the denoising signal corresponding to the average signal of each first noise signal, and the noise denoising signal at the center of the feedback microphone array can be effectively canceled by playing the denoising signal through the loudspeaker. The noise is also canceled out.
  • the step S20 includes:
  • Step S201 averaging each of the first noise signals to obtain an average signal
  • Step S202 inputting the average signal into the active noise reduction circuit for noise reduction processing to obtain a denoising signal corresponding to the average signal.
  • the earphone device first averages the first noise signals to obtain an average signal.
  • the method of averaging the noise signal can refer to the existing method of signal averaging, and will not be described in detail here. After the average signal is obtained, the average signal is input into the active noise reduction circuit for noise reduction processing.
  • the headphone device When the active noise reduction circuit is a feedback active noise reduction circuit, the headphone device averages the first noise signals and inputs the average signal into the feedback active noise reduction circuit for noise reduction processing to obtain a feedback noise reduction signal corresponding to the average signal, Play the feedback denoise signal through the speaker as the final denoise signal.
  • the filter coefficients of the feedback filter in the feedback active noise reduction circuit can be designed by testing in advance, and the design method can refer to the existing feedback filter design method, wherein the output signal of the feedback microphone (the detected noise signal ), the output signals of each feedback microphone can be averaged before participating in the filter design.
  • the active noise reduction circuit is a hybrid active noise reduction circuit, that is, when it includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit
  • the earphone device detects the second noise signal through the feedforward microphone, and converts the second noise signal Input the feedforward active noise reduction circuit for noise reduction processing to obtain the feedforward noise reduction signal; average the first noise signal detected by each feedback microphone to obtain the average signal input feedback active noise reduction circuit for noise reduction processing, and obtain The feedback denoising signal corresponding to the average signal; the result obtained by adding the feedforward denoising signal and the feedback denoising signal is used as the denoising signal corresponding to the average signal of each first noise signal, that is, the result obtained by adding Play through speakers.
  • the filter coefficients of the feedforward filter in the feedforward active noise reduction circuit and the feedback filter in the feedback active noise reduction circuit can be designed through pre-testing, and the design method can refer to the existing feedforward filter And the design method of the feedback filter, wherein when the output signal (detected noise signal) of the feedback microphone is needed, the output signals of each feedback microphone can be averaged and then participate in the filter design.
  • step S10 before the step S10, it also includes:
  • Step A10 acquiring test noise signals detected by each of the feedback microphones respectively, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
  • the filter coefficients in the ANC circuit can be set by playing test noise and calculating the acoustic transfer function.
  • a section of test noise (hereinafter referred to as test noise) can be preset in the earphone device, the test noise is played through the speaker in the earphone device, and the noise signal is detected by each feedback microphone, and the noise signal is called the test noise Signal.
  • Step A20 averaging each of the test noise signals to obtain an average test signal
  • Step A30 calculating an acoustic transfer function from the loudspeaker to the center of the feedback microphone array according to the average test signal;
  • the average test signal is obtained by averaging the test noise signals, which can be regarded as the noise signal picked up by the microphone placed at the center of the feedback microphone array (the microphone is not actually set at this position).
  • the acoustic transfer function from the loudspeaker to the center of the feedback microphone array can be calculated, and the acoustic transfer function reflects the transfer relationship between the noise signal played by the loudspeaker and the noise signal picked up by the microphone at the center of the feedback microphone array.
  • the method of calculating the acoustic transfer function according to the average test signal may refer to the existing calculation method of the acoustic transfer function, and will not be repeated here.
  • Step A40 setting filter coefficients in the active noise reduction circuit according to the acoustic transfer function
  • the filter coefficients in the active noise reduction circuit can be set according to the acoustic transfer function.
  • the method for setting filter coefficients according to the acoustic transfer function can generally refer to the existing method for setting filter coefficients, which will not be repeated here.
  • the filter coefficients of the feedback filter in the feedback active noise reduction circuit are set according to the acoustic transfer function from the loudspeaker to the center of the feedback microphone array.
  • the active noise reduction circuit is a hybrid active noise reduction circuit
  • a section of test noise (hereinafter referred to as external test noise) can be preset in the external test equipment, and the external test noise is played through the external test equipment, and through the feedforward Microphone and feedback microphone detect this external test noise signal, calculate the acoustic transfer function (hereinafter referred to as the first function) of external sound source to feedforward microphone according to the external test noise signal detected by feedforward microphone; The test noise signal is averaged to obtain the average external test signal.
  • the acoustic transfer function (hereinafter referred to as the second function); according to the first function, the second function and the third function (acoustic transfer function from the loudspeaker to the center of the feedback microphone array), the filter coefficients of the feedforward filter in the feedforward active noise reduction circuit and the feedback active noise reduction circuit are jointly set. Filter coefficients for the feedback filter in the noise reduction circuit.
  • the step S202 includes:
  • Step S2021 input the average signal into the active noise reduction circuit, perform noise reduction processing based on the filter coefficients, and obtain a denoising signal corresponding to the average signal.
  • the filter coefficient in the active noise reduction circuit of the earphone device After setting the filter coefficient in the active noise reduction circuit of the earphone device, when the active noise reduction function is turned on during use, after calculating the average signal of each first noise signal, the average signal can be input into the active noise reduction circuit, Noise reduction processing is performed based on the set filter coefficients in the active noise reduction circuit to obtain a noise reduction signal corresponding to the average signal. It should be noted that the specific process of denoising the signal based on the filter in the active noise reduction circuit to obtain the denoising signal can refer to the existing active noise reduction circuit, and will not be repeated here.
  • the step S20 includes:
  • Step S203 input each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtain the branch noise reduction signals corresponding to each of the first noise signals;
  • Step S204 averaging each of the denoising signals of the branches, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
  • noise reduction processing may be performed first, and then the noise reduction signal may be averaged.
  • the active noise reduction circuit may include active noise reduction branches corresponding to the respective feedback microphones, that is, one feedback microphone corresponds to one active noise reduction branch.
  • the earphone device may first input each first noise signal into the corresponding active noise reduction branch for noise reduction processing, and obtain branch noise cancellation signals corresponding to each first noise signal. . That is, a first noise signal detected by a feedback microphone is input into an active noise reduction branch corresponding to the feedback microphone for noise reduction processing, and a branch noise cancellation signal corresponding to the first noise signal is obtained.
  • the denoising signals of each branch are averaged, and the averaged signal is used as the denoising signal corresponding to the average signal of each first noise signal, that is, although it is not directly denoising the average signal of each first noise signal to obtain
  • the signal obtained by performing noise reduction processing on each first noise signal using the corresponding active noise reduction branch and then averaging can be regarded as the denoising signal corresponding to the average signal of each first noise signal.
  • the active noise reduction branch can be a feedback active noise reduction circuit or a hybrid active noise reduction circuit.
  • the earphone device inputs each first noise signal to the corresponding feedback active noise reduction circuit for noise reduction processing, and obtains feedback noise reduction signals corresponding to each first noise signal (That is, the branch denoising signal), the signal obtained by averaging the denoising signals of each branch is directly used as the denoising signal corresponding to the average signal of each first noise signal, and the denoising signal is played through the loudspeaker.
  • the filter coefficients of the feedback filter in each feedback active noise reduction circuit can be designed by testing in advance, and the design method can refer to the existing feedback filter design method, wherein the output signal of the feedback microphone (the detected noise signal), use the output signal of the corresponding feedback microphone to participate in the corresponding filter design.
  • each active noise reduction branch can use different feedback active noise reduction circuits, but share a feedforward active noise reduction circuit;
  • For the second noise signal input the second noise signal into the feedforward active noise reduction circuit for noise reduction processing to obtain a feedforward noise reduction signal; input the first noise signals detected by each feedback microphone into the corresponding feedback active noise reduction
  • the circuit performs noise reduction processing to obtain each feedback denoising signal; the feedforward denoising signal is added to each feedback denoising signal and then averaged, or each feedback denoising signal is averaged and then combined with the feedforward denoising signal Adding, the calculated result is used as the denoising signal corresponding to the average signal of each first noise signal, that is, the calculated result is played through the speaker.
  • the filter coefficients of the feedforward filter in the feedforward active noise reduction circuit and the feedback filter in the feedback active noise reduction circuit can be designed through pre-testing, and the design method can refer to the existing feedforward filter And the design method of the feedback filter, wherein when the output signal (detected noise signal) of the feedback microphone is needed, the output signal of the corresponding feedback microphone is used to participate in the corresponding filter design.
  • step S10 before the step S10, it also includes:
  • Step B10 acquiring test noise signals detected by each of the feedback microphones respectively, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
  • the filter coefficients in the ANC circuit can be set by playing test noise and calculating the acoustic transfer function.
  • a section of test noise (hereinafter referred to as test noise) can be preset in the earphone device, the test noise is played through the speaker in the earphone device, and the noise signal is detected by each feedback microphone, and the noise signal is called the test noise Signal.
  • Step B20 calculating an acoustic transfer function from the loudspeaker to the corresponding feedback microphone according to each of the test noise signals;
  • Step B30 respectively setting the branch filter coefficients in the corresponding active noise reduction branch according to each of the acoustic transfer functions
  • the acoustic transfer function from the loudspeaker to the corresponding feedback microphone is calculated according to each test noise signal respectively. That is, for each feedback microphone, the acoustic transfer function from the loudspeaker to the feedback microphone is calculated using the test noise signal detected by the feedback microphone. Then, a feedback microphone corresponds to an acoustic transfer function.
  • Set the branch filter coefficients in the corresponding active noise reduction branch according to each acoustic transfer function that is, for each feedback microphone, use the acoustic transfer function corresponding to the feedback microphone to set the corresponding active noise reduction of the feedback microphone. Branch filter coefficients in noisy branches.
  • the filter coefficients of the feedback filters in each feedback active noise reduction circuit are correspondingly set according to the acoustic transfer function from the speaker to each feedback microphone .
  • a section of test noise hereinafter referred to as external test noise
  • the first function the acoustic transfer function of external sound source to feedforward microphone according to the external test noise signal detected by feedforward microphone
  • the external test noise signal and the external test noise signal detected by each feedback microphone are respectively calculated to obtain the acoustic transfer function (hereinafter referred to as the second function) from the feedforward microphone to each feedback microphone; according to the first function, each second function and each The third function (speaker-to-feedback microphone a
  • the step S204 includes:
  • Step S2041 input each of the first noise signals into the corresponding active noise reduction branch, perform noise reduction processing based on the corresponding branch filter coefficients, and obtain branch noise reduction signals corresponding to each of the first noise signals .
  • each first noise signal can be respectively input into the corresponding active noise reduction branch.
  • the filter coefficients set in the denoising branches are subjected to denoising processing to obtain branch denoising signals respectively corresponding to the first noise signals. It should be noted that the specific process of denoising the signal based on the filter in the ANR branch to obtain the denoising signal can refer to the existing ANR circuit, and will not be repeated here.
  • the step S20 when the distribution position of the feedback microphone array meets the position condition after error compensation, the step S20 includes:
  • Step S205 obtaining weights corresponding to each of the feedback microphones, wherein the weights are set in advance according to the error of the distribution position of the feedback microphone array relative to the position condition;
  • the error compensation method can be set in advance according to the error of the distribution position of the feedback microphone array relative to the position condition.
  • the weight corresponding to the feedback microphone array may be set by means of testing, so that the noise signal obtained by weighting and averaging the noise signals detected by each feedback microphone according to the set weight is consistent with the noise signal at the center of the feedback microphone array.
  • Step S206 weighting and averaging each of the denoising signals of the branches according to corresponding weights, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
  • the noise cancellation signal of each branch may be weighted and averaged according to the corresponding weight.
  • the weighted average is to compare the noise cancellation signal of each branch with the corresponding weight Multiply and then average.
  • the weighted average result is used as the denoising signal corresponding to the average signal of each first noise signal.
  • the first noise signals when the first noise signals are averaged and then the noise reduction process is performed, the first noise signals can also be weighted and averaged according to the corresponding weights to obtain the average signal, and then the average signal is input
  • the active noise reduction circuit performs noise reduction processing to obtain a denoising signal corresponding to the average signal of each first noise signal.
  • an embodiment of the present application also proposes a noise reduction device, the noise reduction device is deployed in a headphone device, and the headphone device includes an active noise reduction circuit, a speaker, a sound hole, and a feedback microphone array, and the feedback microphone array includes A plurality of feedback microphones, the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to the speaker and the outlet
  • the noise reduction device includes:
  • An acquisition module 10 configured to acquire first noise signals respectively detected by each of the feedback microphones
  • a noise reduction module 20 configured to perform noise reduction processing on each of the first noise signals through the active noise reduction circuit, to obtain a noise reduction signal corresponding to an average signal of each of the first noise signals;
  • the playback module 30 is configured to play the noise-canceling signal through the loudspeaker.
  • noise reduction module 20 includes:
  • a first averaging unit configured to average each of the first noise signals to obtain an average signal
  • the first noise reduction unit is configured to input the average signal into the active noise reduction circuit for noise reduction processing to obtain a noise reduction signal corresponding to the average signal.
  • the acquiring module 10 is also used to acquire the test noise signals detected by each of the feedback microphones respectively, wherein the test noise signals are detected by each of the feedback microphones after the preset test noise is played through the speakers to the signal;
  • the device also includes:
  • An averaging module configured to average each of the test noise signals to obtain an average test signal
  • a first calculation module configured to calculate an acoustic transfer function from the loudspeaker to the center of the feedback microphone array according to the average test signal
  • a first setting module configured to set filter coefficients in the active noise reduction circuit according to the acoustic transfer function
  • the first noise reduction unit is also used for:
  • the active noise reduction circuit includes active noise reduction branches respectively corresponding to the feedback microphones, and the noise reduction module 20 includes:
  • the second noise reduction unit is configured to input each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtain branch noise reduction signals corresponding to each of the first noise signals;
  • the second averaging unit is configured to average each of the branch denoising signals, and use the result as a denoising signal corresponding to the average signal of each of the first noise signals.
  • the acquiring module 10 is also used to acquire the test noise signals detected by each of the feedback microphones respectively, wherein the test noise signals are detected by each of the feedback microphones after the preset test noise is played through the speakers to the signal;
  • the device also includes:
  • the second calculation module is used to calculate and obtain the acoustic transfer function from the loudspeaker to the corresponding feedback microphone according to each of the test noise signals;
  • the second setting module is used to set the branch filter coefficients in the corresponding active noise reduction branch according to the acoustic transfer functions respectively;
  • the second averaging unit is also used for:
  • Each of the first noise signals is input to a corresponding active noise reduction branch, and noise reduction processing is performed based on the corresponding branch filter coefficients to obtain branch denoising signals corresponding to each of the first noise signals.
  • the second averaging unit is also used for:
  • the active noise reduction circuit includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit
  • the earphone device also includes a feedforward microphone
  • the noise reduction module 20 includes:
  • an acquisition unit configured to acquire a second noise signal detected by the feedforward microphone
  • a third noise reduction unit configured to perform noise reduction processing on the second noise signal through the feedforward active noise reduction circuit to obtain a feedforward noise reduction signal
  • the fourth noise reduction unit is configured to perform noise reduction processing on each of the first noise signals through the feedback active noise reduction circuit to obtain a feedback noise reduction signal corresponding to an average signal of each of the first noise signals;
  • a calculation unit configured to add the feedforward denoising signal and the feedback denoising signal, and use the result as a denoising signal corresponding to the average signal of each of the first noise signals.
  • the earphone device of the present application may include an active noise reduction circuit, a loudspeaker, a sound outlet, and a feedback microphone array, the feedback microphone array includes a plurality of feedback microphones, and the distribution position of the feedback microphone array meets a position condition or meets a condition after error compensation.
  • the position condition, the position condition is that the distribution plane of the feedback microphone array is perpendicular to the line between the speaker and the sound outlet, and the center of the feedback microphone array is on the line,
  • the earphone device further includes a memory, a processor, and a noise reduction program stored on the memory and operable on the processor, when the noise reduction program is executed by the processor, operations such as:
  • the noise-canceling signal is played through the loudspeaker.
  • performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a denoising signal corresponding to an average signal of each of the first noise signals includes:
  • the acquisition of the first noise signals respectively detected by each of the feedback microphones it also includes:
  • test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker
  • the inputting the average signal into the active noise reduction circuit for noise reduction processing, and obtaining the denoising signal corresponding to the average signal includes:
  • the active noise reduction circuit includes an active noise reduction branch corresponding to each of the feedback microphones, and the active noise reduction circuit performs noise reduction processing on each of the first noise signals to obtain
  • the denoising signal corresponding to the average signal of the first noise signal includes:
  • the denoising signals of each of the branches are averaged, and the result is used as a denoising signal corresponding to the average signal of each of the first noise signals.
  • the acquisition of the first noise signals respectively detected by each of the feedback microphones it also includes:
  • test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker
  • the step of inputting each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtaining branch noise reduction signals corresponding to each of the first noise signals includes:
  • Each of the first noise signals is input to a corresponding active noise reduction branch, and noise reduction processing is performed based on the corresponding branch filter coefficients to obtain branch denoising signals corresponding to each of the first noise signals.
  • the denoising signal corresponding to the signal includes:
  • the active noise reduction circuit includes a feed-forward active noise reduction circuit and a feedback active noise reduction circuit
  • the earphone device also includes a feed-forward microphone
  • each of the first The noise signal is subjected to noise reduction processing, and the denoising signal corresponding to the average signal of each of the first noise signals obtained includes:
  • the embodiment of the present application also proposes a computer-readable storage medium, on which a noise reduction program is stored, and when the noise reduction program is executed by a processor, the steps of the above-mentioned noise reduction method are implemented.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

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

Abstract

The present application discloses a noise reduction method and apparatus, an earphone device, and a storage medium. The method is applied to an earphone device; the earphone device comprises an active noise reduction circuit, a loudspeaker, a sound outlet hole, and a feedback microphone array; the feedback microphone array comprises multiple feedback microphones; a distribution plane of the feedback microphone array is perpendicular to a connecting line between the loudspeaker and the sound outlet hole, and the center of the feedback microphone array is located on the connecting line. The method comprises: obtaining first noise signals respectively detected by feedback microphones; performing noise reduction processing on the first noise signals by means of an active noise reduction circuit to obtain a noise cancellation signal corresponding to an average signal of the first noise signals; and playing the noise cancellation signal by means of a loudspeaker. According to the present application, the cancellation of the noise at the center of the feedback microphone array can be equivalently implemented, and thus the noise at a human ear can also be cancelled.

Description

降噪方法、装置、耳机设备及存储介质Noise reduction method, device, earphone device and storage medium
本申请要求于2021年09月24日提交中国专利局、申请号202111123005.X、申请名称为“降噪方法、装置、耳机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111123005.X and the application title "Noise Reduction Method, Device, Headphone Equipment, and Storage Medium" filed with the China Patent Office on September 24, 2021, the entire contents of which are incorporated by reference incorporated in this application.
技术领域technical field
本申请涉及耳机技术领域,尤其涉及一种降噪方法、装置、耳机设备及存储介质。The present application relates to the technical field of earphones, and in particular to a noise reduction method, device, earphone equipment and a storage medium.
背景技术Background technique
随着主动降噪技术的不断发展与成熟,用户对耳机主动降噪功能的要求也越来越高。目前,反馈降噪耳机的原理是通过在耳罩内部设置一个反馈麦克风来拾取耳罩内部的噪声,通过算法对噪声进行处理形成噪声的反向声波,以抵消反馈降噪耳机处的噪声,从而达到噪声的主动消除。该技术原理中,是采用反馈麦克风来代替人耳拾取噪声,反馈麦克风处的噪声被消除,则认为人耳处的噪声也被消除。但是,佩戴耳机时,反馈麦克风与人耳存在一定距离,反馈麦克风处的噪声消除时,人耳处噪声不一定能够完全消除,特别是对高频噪声,细微的距离变化,将会带来相位的巨大变化,从而导致预估的降噪量在高频段与实测值差异大。With the continuous development and maturity of active noise reduction technology, users have higher and higher requirements for the active noise reduction function of headphones. At present, the principle of feedback noise-cancelling headphones is to set a feedback microphone inside the earmuffs to pick up the noise inside the earmuffs, and to process the noise through an algorithm to form a reverse sound wave of the noise to offset the noise at the feedback noise-cancelling headphones, thereby Active cancellation of noise is achieved. In the principle of this technology, the feedback microphone is used to replace the human ear to pick up the noise. If the noise at the feedback microphone is eliminated, it is considered that the noise at the human ear is also eliminated. However, when wearing headphones, there is a certain distance between the feedback microphone and the human ear. When the noise at the feedback microphone is eliminated, the noise at the human ear may not be completely eliminated. Especially for high-frequency noise, a slight distance change will bring about phase The huge change of , resulting in a large difference between the estimated noise reduction amount and the measured value in the high frequency band.
发明内容Contents of the invention
本申请的主要目的在于提供一种降噪方法、装置、耳机设备及存储介质,旨在解决反馈麦克风与人耳存在距离,通过消除反馈麦克风处的噪声并不能够完全消除人耳处噪声的技术问题。The main purpose of this application is to provide a noise reduction method, device, earphone device and storage medium, aiming to solve the problem that there is a distance between the feedback microphone and the human ear, and the technology that the noise at the feedback microphone cannot completely eliminate the noise at the human ear question.
为实现上述目的,本申请提供一种降噪方法,所述降噪方法应用于耳机设备,所述耳机设备包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,所述反馈麦克风阵列包括多个反馈麦克风,所述反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合所述位置条件,所述位置条件为所述反馈麦克风阵列的分布平面垂直于所述扬声器和所述出声孔之间的连线,且所述反馈麦克风阵列的中心在所述连线上,所述降噪方法包括以下步骤:In order to achieve the above purpose, the present application provides a noise reduction method, which is applied to a headphone device, and the headphone device includes an active noise reduction circuit, a speaker, a sound hole and a feedback microphone array, and the feedback microphone array includes A plurality of feedback microphones, the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to the speaker and the outlet The line between the sound holes, and the center of the feedback microphone array is on the line, and the noise reduction method comprises the following steps:
获取各所述反馈麦克风分别检测到的第一噪声信号;acquiring first noise signals respectively detected by each of the feedback microphones;
通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号;performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a noise reduction signal corresponding to an average signal of each of the first noise signals;
通过所述扬声器播放所述消噪信号。The noise-canceling signal is played through the loudspeaker.
可选地,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号的步骤包括:Optionally, the step of performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a denoising signal corresponding to an average signal of each of the first noise signals includes:
对各所述第一噪声信号进行平均得到平均信号;averaging each of the first noise signals to obtain an average signal;
将所述平均信号输入所述主动降噪电路进行降噪处理,得到所述平均信号对应的消噪信号。Inputting the average signal into the active noise reduction circuit for noise reduction processing to obtain a denoising signal corresponding to the average signal.
可选地,所述获取各所述反馈麦克风分别检测到的第一噪声信号的步骤之前,还包括:Optionally, before the step of acquiring the first noise signals respectively detected by each of the feedback microphones, it may further include:
获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Acquiring test noise signals detected by each of the feedback microphones, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
将各所述测试噪声信号进行平均得到平均测试信号;averaging each of the test noise signals to obtain an average test signal;
根据所述平均测试信号计算得到所述扬声器到所述反馈麦克风阵列中心的声学传递函数;calculating an acoustic transfer function from the loudspeaker to the center of the feedback microphone array according to the average test signal;
根据所述声学传递函数设定所述主动降噪电路中的滤波器系数;setting filter coefficients in the active noise reduction circuit according to the acoustic transfer function;
所述将所述平均信号输入所述主动降噪电路进行降噪处理,得到所述平均信号对应的消噪信号的步骤包括:The step of inputting the average signal into the active noise reduction circuit to perform noise reduction processing, and obtaining a denoising signal corresponding to the average signal includes:
将所述平均信号输入所述主动降噪电路,基于所述滤波器系数进行降噪处理,得到所述平均信号对应的消噪信号。Inputting the average signal into the active noise reduction circuit, performing noise reduction processing based on the filter coefficients, to obtain a denoising signal corresponding to the average signal.
可选地,所述主动降噪电路包括与各所述反馈麦克风分别对应的主动降噪支路,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号的步骤包括:Optionally, the active noise reduction circuit includes an active noise reduction branch corresponding to each of the feedback microphones, and the active noise reduction circuit performs noise reduction processing on each of the first noise signals to obtain the same The step of denoising signal corresponding to the average signal of each said first noise signal comprises:
将各所述第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号;Input each of the first noise signals into the corresponding active noise reduction branch to perform noise reduction processing, and obtain branch noise reduction signals corresponding to each of the first noise signals;
将各所述支路消噪信号进行平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。The denoising signals of each of the branches are averaged, and the result is used as a denoising signal corresponding to the average signal of each of the first noise signals.
可选地,所述获取各所述反馈麦克风分别检测到的第一噪声信号的步骤之前,还包括:Optionally, before the step of acquiring the first noise signals respectively detected by each of the feedback microphones, it may further include:
获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Acquiring test noise signals detected by each of the feedback microphones, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
分别根据各所述测试噪声信号计算得到所述扬声器到对应反馈麦克风的声学传递函数;calculating an acoustic transfer function from the loudspeaker to the corresponding feedback microphone according to each of the test noise signals;
分别根据各所述声学传递函数设定对应主动降噪支路中的支路滤波器系数;Setting the branch filter coefficients in the corresponding active noise reduction branch according to each of the acoustic transfer functions;
所述将各所述第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号的步骤包括:The step of inputting each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtaining the branch denoising signals corresponding to each of the first noise signals includes:
将各所述第一噪声信号分别输入对应的主动降噪支路,基于对应的支路滤波器系数进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号。Each of the first noise signals is input to a corresponding active noise reduction branch, and noise reduction processing is performed based on the corresponding branch filter coefficients to obtain branch denoising signals corresponding to each of the first noise signals.
可选地,当所述反馈麦克风阵列的分布位置是经过误差补偿后符合所述位置条件时,所述将各所述支路消噪信号进行平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号的步骤包括:Optionally, when the distribution position of the feedback microphone array meets the position condition after error compensation, the noise cancellation signals of each of the branches are averaged, and the result is used as the result of each of the first noise signals The step of averaging the denoised signal corresponding to the signal includes:
获取各所述反馈麦克风对应的权重,其中,所述权重是预先根据所述反馈麦克风阵列的分布位置相对于所述位置条件的误差设置的;Acquiring weights corresponding to each of the feedback microphones, wherein the weights are set in advance according to the error of the distribution position of the feedback microphone array relative to the position condition;
将各所述支路消噪信号按照对应的权重进行加权平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。Performing a weighted average on each of the branch denoising signals according to the corresponding weight, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
可选地,所述主动降噪电路包括前馈式主动降噪电路和反馈式主动降噪电路,所述耳机设备还包括前馈麦克风,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号的步骤包括:Optionally, the active noise reduction circuit includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit, and the earphone device further includes a feedforward microphone, and each of the first A noise signal is subjected to noise reduction processing, and the step of obtaining a noise removal signal corresponding to the average signal of each of the first noise signals includes:
获取所述前馈麦克风检测到的第二噪声信号;acquiring a second noise signal detected by the feedforward microphone;
通过所述前馈式主动降噪电路对所述第二噪声信号进行降噪处理,得到前馈消噪信号;performing noise reduction processing on the second noise signal through the feedforward active noise reduction circuit to obtain a feedforward noise reduction signal;
通过所述反馈式主动降噪电路对各所述第一噪声信号进行降噪处理,得到各所述第一噪声信号的平均信号对应的反馈消噪信号;performing noise reduction processing on each of the first noise signals through the feedback active noise reduction circuit to obtain a feedback denoising signal corresponding to an average signal of each of the first noise signals;
将所述前馈消噪信号和所述反馈消噪信号相加,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。adding the feedforward denoising signal and the feedback denoising signal, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
为实现上述目的,本申请还提供一种降噪装置,所述降噪装置部署于耳机设备,所述耳机设备包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,所述反馈麦克风阵列包括多个反馈麦克风,所述反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合所述位置条件,所述位置条件为所述反馈麦克风阵列的分布平面垂直于所述扬声器和所述出声孔之间的连线,且所述反馈麦克风阵列的中心在所述连线上,所述降噪装置包括:In order to achieve the above purpose, the present application also provides a noise reduction device, the noise reduction device is deployed in the earphone device, the earphone device includes an active noise reduction circuit, a speaker, a sound hole and a feedback microphone array, and the feedback microphone array It includes a plurality of feedback microphones, the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to the speaker and the The connection between the sound holes, and the center of the feedback microphone array is on the connection, and the noise reduction device includes:
获取模块,用于获取各所述反馈麦克风分别检测到的第一噪声信号;An acquisition module, configured to acquire the first noise signals respectively detected by each of the feedback microphones;
降噪模块,用于通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号;A noise reduction module, configured to perform noise reduction processing on each of the first noise signals through the active noise reduction circuit, to obtain a noise reduction signal corresponding to an average signal of each of the first noise signals;
播放模块,用于通过所述扬声器播放所述消噪信号。A playback module, configured to play the noise-canceling signal through the loudspeaker.
为实现上述目的,本申请还提供一种耳机设备,所述耳机设备包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,所述反馈麦克风阵列包括多个反馈麦克风,所述反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合所述位置条件,所述所述位置条件为所述反馈麦克风阵列的分布平面垂直于所述扬声器和所述出声孔之间的连线,且所述反馈麦克风阵列的中心在所述连线上,所述耳机设备还包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的降噪程序,所述降噪程序被所述处理器执行时实现如上所述的降噪方法的步骤。In order to achieve the above object, the present application also provides an earphone device, the earphone device includes an active noise reduction circuit, a loudspeaker, a sound outlet and a feedback microphone array, the feedback microphone array includes a plurality of feedback microphones, and the feedback microphone array The distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to the connection line between the speaker and the sound outlet, And the center of the feedback microphone array is on the connection line, the earphone device also includes a memory, a processor, and a noise reduction program stored on the memory and operable on the processor, the noise reduction When the program is executed by the processor, the steps of the above-mentioned noise reduction method are realized.
此外,为实现上述目的,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有降噪程序,所述降噪程序被处理器执行时实现如上所述的降噪方法的步骤。In addition, in order to achieve the above purpose, the present application also proposes a computer-readable storage medium, on which a noise reduction program is stored, and when the noise reduction program is executed by a processor, the above-mentioned noise reduction is realized. method steps.
本申请中,通过在耳机设备中设置反馈麦克风阵列,反馈麦克风阵列包括多个反馈麦克风,反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合该位置条件,该位置条件为反馈麦克风阵列的分布平面垂直于扬声器和出声孔之间的连线,且反馈麦克风阵列的中心在该连线上;通过耳机设备中的主动降噪电路对各反馈麦克风检测到的各第一噪声信号进行降噪处理,得到各第一噪声信号的平均信号对应的消噪信号,通过扬声器播 放该消噪信号,能够等效地实现反馈麦克风阵列中心处的噪声被抵消,进而能够实现在人耳处的噪声也被抵消。In this application, by setting the feedback microphone array in the earphone device, the feedback microphone array includes a plurality of feedback microphones, and the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is the feedback microphone array The distribution plane is perpendicular to the line between the loudspeaker and the sound outlet, and the center of the feedback microphone array is on the line; each first noise signal detected by each feedback microphone is processed by the active noise reduction circuit in the earphone device The noise reduction processing is to obtain the noise cancellation signal corresponding to the average signal of each first noise signal, and the noise cancellation signal at the center of the feedback microphone array can be equivalently canceled by playing the noise cancellation signal through the loudspeaker, and then the noise at the human ear can be realized. Noise is also canceled out.
附图说明Description of drawings
图1为本申请降噪方法第一实施例的流程示意图;FIG. 1 is a schematic flow chart of the first embodiment of the noise reduction method of the present application;
图2为本申请实施例涉及的一种反馈降噪原理示意图;FIG. 2 is a schematic diagram of a feedback noise reduction principle involved in an embodiment of the present application;
图3为本申请实施例涉及的一种入耳式耳机噪声传递路径示意图;FIG. 3 is a schematic diagram of a noise transmission path of an in-ear earphone according to an embodiment of the present application;
图4为本申请实施例涉及的一种入耳式耳机的反馈麦克风设置位置示意图;Fig. 4 is a schematic diagram of the setting position of the feedback microphone of an in-ear earphone according to the embodiment of the present application;
图5为本申请降噪装置较佳实施例的功能模块示意图。FIG. 5 is a schematic diagram of functional modules of a preferred embodiment of the noise reduction device of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
参照图1,图1为本申请降噪方法第一实施例的流程示意图。Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a first embodiment of a noise reduction method of the present application.
本申请实施例提供了降噪方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。本申请降噪方法应用于应用于耳机设备,耳机设备可包括一只或两只耳机,由于两只耳机的降噪方法相同,以下为便于描述,默认以耳机设备包括一只耳机为例进行实施例阐述。本实施例中,降噪方法包括:The embodiment of the present application provides an embodiment of the noise reduction method. It should be noted that although the logic sequence is shown in the flow chart, in some cases, the steps shown or described can be executed in a different order than here. A step of. The noise reduction method of this application is applied to the earphone device. The earphone device can include one or two earphones. Since the noise reduction method of the two earphones is the same, the following is for the convenience of description. By default, the earphone device includes one earphone as an example for implementation. example. In this embodiment, the noise reduction method includes:
步骤S10,获取各所述反馈麦克风分别检测到的第一噪声信号;Step S10, acquiring first noise signals respectively detected by each of the feedback microphones;
目前,反馈式主动降噪(也称反馈降噪)的技术原理如图2所示,在耳罩内部设置有一个反馈麦克风(FB mic),通过反馈麦克风拾取耳罩内部的噪声(也称噪声信号),通过算法对噪声进行处理,形成反相声波进行抵消。d(t)为耳罩内部初始噪声,c(t)为算法处理后的反相声波,e(t)为抵消后的残余噪声。反馈降噪是通过反馈麦克风代替人耳拾取噪声,也就是说反馈降噪会使反馈麦克风处的噪声被消除,但人耳处是否能消除是不可知的。如图3所示为入耳式耳机简图(以入耳式耳机为例,也可以是其他类型的耳机),最右侧为耳机的出声孔,实际佩戴时会深入耳道。假设噪声从前泄声孔进入耳中,图3中给出了a、b、 c、d四条路径,a是噪声至反馈麦克风的路径,b是噪声至人耳的路径,c是扬声器到反馈麦克风的路径,d是扬声器到人耳的路径,根据反馈降噪理论,路径a与路径c的噪声是在反馈麦克风处等幅反相抵消的,如果想要人耳处也等幅反相抵消噪声的话,需满足b-a=d-c(此处a、b、c、d表示距离),也即,当且仅当b-a=d-c时,反馈麦克风处的降噪结果和人耳处的降噪结果是一致的。而反馈麦克风与扬声器和人耳的相对位置是固定的,d-c是定值,但随着噪声源位置变化,b-a的值是发生改变的,从而导致b-a会存在不等于d-c的情况,人耳处的噪声不一定会被消除。尤其对高频信号波长短,b-a的微小差异,会带了相位的巨大变化,最终导致预估的降噪量在高频段与实测值差异大。为解决上述问题,将反馈麦克风设置在扬声器与出声孔的连线上,基本可以满足b-a=d-c,但是,反馈麦克风设置在该位置,会使扬声器出声通道被堵塞,影响音质。At present, the technical principle of feedback active noise reduction (also known as feedback noise reduction) is shown in Figure 2. There is a feedback microphone (FB mic) inside the earmuffs, and the noise inside the earmuffs (also called noise noise reduction) is picked up by the feedback microphone. signal), the noise is processed by an algorithm to form an anti-phase sound wave for offsetting. d(t) is the initial noise inside the earmuff, c(t) is the anti-phase sound wave processed by the algorithm, and e(t) is the residual noise after cancellation. Feedback noise reduction uses the feedback microphone instead of the human ear to pick up noise, that is to say, the feedback noise reduction will eliminate the noise at the feedback microphone, but it is unknown whether it can be eliminated at the human ear. Figure 3 shows a simplified diagram of an in-ear earphone (take in-ear earphones as an example, but other types of earphones can also be used), the far right is the sound hole of the earphone, which will go deep into the ear canal when actually worn. Assuming that the noise enters the ear from the front sound hole, four paths a, b, c, and d are given in Figure 3, a is the path from the noise to the feedback microphone, b is the path from the noise to the human ear, and c is the path from the speaker to the feedback microphone d is the path from the loudspeaker to the human ear. According to the feedback noise reduction theory, the noise of path a and path c is equal-amplitude anti-phase cancellation at the feedback microphone. If you want equal-amplitude anti-phase cancellation noise at the human ear If so, b-a=d-c needs to be satisfied (where a, b, c, and d represent distances), that is, if and only when b-a=d-c, the noise reduction result at the feedback microphone is consistent with the noise reduction result at the human ear of. The relative position of the feedback microphone, the loudspeaker and the human ear is fixed, and d-c is a constant value, but as the position of the noise source changes, the value of b-a changes, resulting in situations where b-a is not equal to d-c, and the position of the human ear noise will not necessarily be eliminated. Especially for high-frequency signals with short wavelengths, the small difference between b and a will bring about a huge change in phase, which will eventually lead to a large difference between the estimated noise reduction amount in the high-frequency band and the measured value. In order to solve the above problems, the feedback microphone is arranged on the connection line between the speaker and the sound outlet, which basically satisfies b-a=d-c. However, setting the feedback microphone at this position will block the sound channel of the speaker and affect the sound quality.
对此,在本实施例中提出一种降噪方法,旨在通过在耳机设备中设置多个反馈麦克风,通过限定多个反馈麦克风的分布位置符合一定位置条件,以及通过设计对多个反馈麦克风输出信号的汇总计算方法,使得多个反馈麦克风的作用等效于设置在扬声器与出声孔的连线上的反馈麦克风的作用,也即,使得等效于满足b-a=d-c。In view of this, a noise reduction method is proposed in this embodiment, aiming at setting multiple feedback microphones in the earphone device, by limiting the distribution positions of the multiple feedback microphones to meet certain position conditions, and by designing The summary calculation method of the output signal makes the functions of the multiple feedback microphones equivalent to the functions of the feedback microphones arranged on the connection line between the loudspeaker and the sound outlet, that is, makes it equivalent to satisfying b-a=d-c.
具体地,耳机设备包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,反馈麦克风阵列包括多个反馈麦克风,反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合该位置条件,该位置条件为反馈麦克风阵列的分布平面垂直于扬声器和出声孔之间的连线,且反馈麦克风阵列的中心在该连线上。Specifically, the earphone device includes an active noise reduction circuit, a speaker, a sound outlet, and a feedback microphone array, the feedback microphone array includes a plurality of feedback microphones, and the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, The location condition is that the distribution plane of the feedback microphone array is perpendicular to the line between the loudspeaker and the sound outlet, and the center of the feedback microphone array is on the line.
其中,在具体实施方式中,耳机设备中因空间限制等原因,可能不能设置分布位置严格符合该位置条件的反馈麦克风阵列,也即,反馈麦克风阵列的分布位置与符合该位置条件的反馈麦克风阵列的分布位置存在一定的误差,误差补偿是指预先通过对误差进行测量,在后续降噪过程中,通过测定的误差对反馈麦克风阵列的输出信号(一般是检测到的噪声信号)进行补偿,以使得补偿后的反馈麦克风阵列的输出信号相当于符合该位置条件的反馈麦克风阵列(以下称标准麦克风阵列)的输出信号。例如,通过对实际反馈麦克风阵列的分布位置与标准麦克风阵列的分布位置之间的相对位姿进行测量,并通过测试信号对实际反馈麦克风阵列进行测试,根据测试结果计算出根据该相对位姿将实际反馈麦克风阵列的输出信号转换为标准麦克风阵列的输出信号的转换公式,在后续降噪过程中,将实际反馈麦克风阵列的输出信号按照该转换公式进行转换后再参与降噪处理。Among them, in a specific implementation, due to space constraints and other reasons in the earphone device, it may not be possible to set a feedback microphone array whose distribution position strictly meets the position condition, that is, the distribution position of the feedback microphone array is the same as the feedback microphone array that meets the position condition. There is a certain error in the distribution position of , and error compensation refers to the measurement of the error in advance, and in the subsequent noise reduction process, the measured error is used to compensate the output signal of the feedback microphone array (usually the detected noise signal), so as to The output signal of the compensated feedback microphone array is equivalent to the output signal of the feedback microphone array (hereinafter referred to as the standard microphone array) that meets the position condition. For example, by measuring the relative pose between the distribution position of the actual feedback microphone array and the distribution position of the standard microphone array, and testing the actual feedback microphone array through the test signal, it is calculated according to the relative pose according to the test result that The conversion formula for converting the output signal of the actual feedback microphone array into the output signal of the standard microphone array. In the subsequent noise reduction process, the output signal of the actual feedback microphone array is converted according to the conversion formula and then participates in the noise reduction process.
在一实施方式中,当反馈麦克风阵列中包括两个反馈麦克风时,如图4所示,两个反馈 麦克风可对称设置在出声孔两侧。In one embodiment, when the feedback microphone array includes two feedback microphones, as shown in FIG. 4 , the two feedback microphones may be symmetrically arranged on both sides of the sound outlet.
耳机设备在使用过程中开启主动降噪功能时,通过反馈麦克风阵列的各个反馈麦克风检测噪声信号(以下称为第一噪声信号以示区分);由于有多个反馈麦克风,每个反馈麦克风分别检测噪声信号,所以有多个第一噪声信号。需要说明的是,当扬声器有播放音频时,耳机设备可以对反馈麦克风检测到的声音信号中扬声器播放的音频信号进行去除,剩下的部分作为第一噪声信号。When the active noise reduction function of the earphone device is turned on during use, the noise signal is detected by each feedback microphone of the feedback microphone array (hereinafter referred to as the first noise signal for distinction); since there are multiple feedback microphones, each feedback microphone detects the noise signal separately. noise signal, so there are multiple first noise signals. It should be noted that, when the speaker is playing audio, the earphone device may remove the audio signal played by the speaker from the sound signals detected by the feedback microphone, and the remaining part may be used as the first noise signal.
步骤S20,通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号;Step S20, performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a noise reduction signal corresponding to the average signal of each of the first noise signals;
对于各个反馈麦克风检测到的第一噪声信号,耳机设备通过主动降噪电路对各第一噪声信号进行降噪处理,得到与各个第一噪声信号的平均信号对应的消噪信号。平均信号即对各个第一噪声信号进行平均得到的信号,平均信号对应的消噪信号可以包括通过降噪处理产生的用于抵消平均信号的信号。在本实施例中,目的在于得到与平均信号对应的消噪信号,对平均和降噪两个步骤的先后顺序并不做限制;例如,具体实施方式可以是先对各第一噪声信号进行平均,再对平均信号进行降噪处理直接得到平均信号对应的消噪信号,也可以是先对各个第一噪声信号分别进行降噪处理,再对降噪处理得到的结果进行平均,间接得到平均信号对应的消噪信号。For the first noise signals detected by each feedback microphone, the earphone device performs noise reduction processing on each first noise signal through an active noise reduction circuit to obtain a noise reduction signal corresponding to an average signal of each first noise signal. The average signal is a signal obtained by averaging the first noise signals, and the denoising signal corresponding to the average signal may include a signal generated through denoising processing for canceling the average signal. In this embodiment, the purpose is to obtain the denoising signal corresponding to the average signal, and the order of the two steps of averaging and denoising is not limited; for example, the specific implementation method may be to average each first noise signal , and then perform noise reduction processing on the average signal to directly obtain the denoising signal corresponding to the average signal, or firstly perform denoising processing on each first noise signal, and then average the results obtained by denoising processing to indirectly obtain the average signal Corresponding denoising signal.
主动降噪电路可以是反馈式主动降噪电路,也可以是混合式主动降噪电路,也即,包括反馈式主动降噪电路和前馈式主动降噪电路,电路设计可以根据反馈式或混合式主动降噪电路的设计方式来设计,在本实施例中并不做限制。通过主动降噪电路对噪声信号进行降噪处理得到消噪信号的具体过程也可以参照现有主动降噪电路原理,在此不做详细赘述。The active noise reduction circuit can be a feedback active noise reduction circuit or a hybrid active noise reduction circuit, that is, it includes a feedback active noise reduction circuit and a feedforward active noise reduction circuit. The circuit design can be based on feedback or hybrid The design method is based on the design method of the active noise reduction circuit, which is not limited in this embodiment. The specific process of denoising the noise signal through the active noise reduction circuit to obtain the denoising signal can also refer to the principle of the existing active noise reduction circuit, and will not be described in detail here.
在一实施方式中,主动降噪电路是反馈式主动降噪电路时,耳机设备可以通过反馈式主动降噪电路对各第一噪声信号进行降噪处理,得到与各第一噪声信号的平均信号对应的反馈消噪信号,该反馈消噪信号即最终的消噪信号。In one embodiment, when the active noise reduction circuit is a feedback active noise reduction circuit, the earphone device can perform noise reduction processing on each first noise signal through the feedback active noise reduction circuit to obtain the average signal of each first noise signal The corresponding feedback denoising signal is the final denoising signal.
进一步地,在一实施方式中,主动降噪电路是混合式主动降噪电路时,也即包括前馈式主动降噪电路和反馈式主动降噪电路时,耳机设备还包括前馈麦克风,所述步骤S20包括:Further, in one embodiment, when the active noise reduction circuit is a hybrid active noise reduction circuit, that is, when it includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit, the earphone device also includes a feedforward microphone, so Said step S20 comprises:
步骤a,获取所述前馈麦克风检测到的第二噪声信号;Step a, acquiring a second noise signal detected by the feedforward microphone;
前馈麦克风一般设置在耳罩外侧,用于先于反馈麦克风和人耳拾取到噪声。耳机设备在使用过程中开启主动降噪功能时,通过前馈麦克风检测噪声信号(以下称为第二噪声信号以示区分)。The feed-forward microphone is generally placed outside the earmuffs to pick up noise before the feedback microphone and the human ear. When the active noise reduction function of the earphone device is turned on during use, a noise signal (hereinafter referred to as a second noise signal for distinction) is detected through a feed-forward microphone.
步骤b,通过所述前馈式主动降噪电路对所述第二噪声信号进行降噪处理,得到前馈消噪信号;Step b, performing noise reduction processing on the second noise signal through the feedforward active noise reduction circuit to obtain a feedforward noise reduction signal;
对于前馈麦克风检测到的第二噪声信号,耳机设备通过前馈式主动降噪电路对第二噪声信号进行降噪处理,得到前馈消噪信号,前馈消噪信号用于抵消第二噪声信号。需要说明的是,在本实施例中,通过前馈式主动降噪电路进行降噪处理的具体过程在此不做详细赘述,可参照现有的前馈式主动降噪电路。For the second noise signal detected by the feedforward microphone, the earphone device performs noise reduction processing on the second noise signal through a feedforward active noise reduction circuit to obtain a feedforward noise reduction signal, which is used to offset the second noise Signal. It should be noted that, in this embodiment, the specific process of noise reduction processing by the feedforward active noise reduction circuit will not be described in detail here, and the existing feedforward active noise reduction circuit can be referred to.
步骤c,通过所述反馈式主动降噪电路对各所述第一噪声信号进行降噪处理,得到各所述第一噪声信号的平均信号对应的反馈消噪信号;Step c, performing noise reduction processing on each of the first noise signals through the feedback active noise reduction circuit to obtain a feedback denoising signal corresponding to an average signal of each of the first noise signals;
耳机设备通过反馈式主动降噪电路对各第一噪声信号进行降噪处理,得到各第一噪声信号的平均信号对应的反馈消噪信号。具体地,可以先对各第一噪声信号进行平均后在进行降噪处理,也可以先对各第一噪声信号进行分别降噪处理后再将消噪信号平均。需要说明的是,在本实施例中,通过反馈式主动降噪电路进行降噪处理的具体过程在此不做详细赘述,可参照现有的反馈式主动降噪电路。The earphone device performs noise reduction processing on each of the first noise signals through a feedback active noise reduction circuit to obtain a feedback noise reduction signal corresponding to an average signal of each first noise signal. Specifically, the first noise signals may be averaged before performing the noise reduction processing, or the first noise signals may be respectively subjected to noise reduction processing before the noise reduction signals are averaged. It should be noted that, in this embodiment, the specific process of performing noise reduction processing through the feedback active noise reduction circuit will not be described in detail here, and the existing feedback active noise reduction circuit can be referred to.
步骤d,将所述前馈消噪信号和所述反馈消噪信号相加,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。Step d, adding the feedforward denoising signal and the feedback denoising signal, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
在得到前馈消噪信号和反馈消噪信号后,将两个消噪信号相加,将相加得到的信号作为各第一噪声信号的平均信号对应的消噪信号,也即,将相加得到的信号通过扬声器进行播放。可以理解的是,前馈消噪信号是用于抵消第一噪声信号的,抵消后在反馈麦克风处拾取到的第二噪声信号是残余噪声,反馈消噪信号用于抵消反馈麦克风处拾取到的第二噪声信号,从而通过混合式地消噪达到更佳的降噪效果。After obtaining the feedforward denoising signal and the feedback denoising signal, add the two denoising signals together, and use the added signal as the denoising signal corresponding to the average signal of each first noise signal, that is, add The resulting signal is played through a loudspeaker. It can be understood that the feedforward noise cancellation signal is used to cancel the first noise signal, and the second noise signal picked up at the feedback microphone after cancellation is residual noise, and the feedback noise cancellation signal is used to cancel the noise picked up at the feedback microphone. The second noise signal, so as to achieve a better noise reduction effect through hybrid noise reduction.
步骤S30,通过所述扬声器播放所述消噪信号。Step S30, playing the noise-canceling signal through the loudspeaker.
耳机设备在处理得到消噪信号后,通过扬声器播放该消噪信号。由于反馈麦克风阵列(或经过误差补偿后的反馈麦克风阵列)的分布平面垂直于扬声器和出声孔之间的连线,且反馈麦克风阵列的中心在该连线上,因此,反馈麦克风阵列中各个反馈麦克风检测到的第一噪声信号的平均信号可以看做是在反馈麦克风阵列的中心处检测到的噪声信号,经过降噪处理得到的平均信号对应的消噪信号,可以看做是针对反馈麦克风阵列的中心处噪声信号的消噪信号,进而通过播放该消噪信号,相当于在反馈麦克风阵列的中心处抵消掉噪声信号;又由于反馈麦克风阵列的中心在扬声器与出声孔的连线上,从而能够满足b-a=d-c,使得在中心处噪声信号被抵消掉时,在人耳处噪声信号也能够被抵消掉。After processing the noise-canceling signal, the earphone device plays the noise-canceling signal through the loudspeaker. Since the distribution plane of the feedback microphone array (or the feedback microphone array after error compensation) is perpendicular to the line between the loudspeaker and the sound outlet, and the center of the feedback microphone array is on the line, each of the feedback microphone arrays The average signal of the first noise signal detected by the feedback microphone can be regarded as the noise signal detected at the center of the feedback microphone array, and the denoising signal corresponding to the average signal obtained through the noise reduction process can be regarded as the noise signal for the feedback microphone The denoising signal of the noise signal at the center of the array, and then by playing the denoising signal, it is equivalent to canceling the noise signal at the center of the feedback microphone array; and because the center of the feedback microphone array is on the connecting line between the speaker and the sound outlet , so that b-a=d-c can be satisfied, so that when the noise signal at the center is canceled out, the noise signal at the human ear can also be canceled out.
在本实施例中,通过在耳机设备中设置反馈麦克风阵列,反馈麦克风阵列包括多个反馈麦克风,反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合该位置条件,该位置条件为反馈麦克风阵列的分布平面垂直于扬声器和出声孔之间的连线,且反馈麦克风阵列的中心在该连线上;通过耳机设备中的主动降噪电路对各反馈麦克风检测到的各第一噪声信号进行降噪处理,得到各第一噪声信号的平均信号对应的消噪信号,通过扬声器播放该消噪信号,能够等效地实现反馈麦克风阵列中心处的噪声被抵消,进而能够实现在人耳处的噪声也被抵消。In this embodiment, by setting the feedback microphone array in the earphone device, the feedback microphone array includes a plurality of feedback microphones, and the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is feedback The distribution plane of the microphone array is perpendicular to the connection line between the loudspeaker and the sound outlet, and the center of the feedback microphone array is on the connection line; each first noise detected by each feedback microphone is detected by the active noise reduction circuit in the earphone device. The signal is subjected to denoising processing to obtain the denoising signal corresponding to the average signal of each first noise signal, and the noise denoising signal at the center of the feedback microphone array can be effectively canceled by playing the denoising signal through the loudspeaker. The noise is also canceled out.
进一步地,基于上述第一实施例,提出本申请降噪方法的第二实施例,在本实施例中,所述步骤S20包括:Further, based on the first embodiment above, a second embodiment of the noise reduction method of the present application is proposed. In this embodiment, the step S20 includes:
步骤S201,对各所述第一噪声信号进行平均得到平均信号;Step S201, averaging each of the first noise signals to obtain an average signal;
步骤S202,将所述平均信号输入所述主动降噪电路进行降噪处理,得到所述平均信号对应的消噪信号。Step S202, inputting the average signal into the active noise reduction circuit for noise reduction processing to obtain a denoising signal corresponding to the average signal.
在本实施例中,对于各个反馈麦克风检测到的第一噪声信号,耳机设备先对各第一噪声信号进行平均得到平均信号。噪声信号进行平均的方式可参照现有的信号平均方式,在此不做详细赘述。在得到平均信号后,将平均信号输入主动降噪电路进行降噪处理。In this embodiment, for the first noise signals detected by each feedback microphone, the earphone device first averages the first noise signals to obtain an average signal. The method of averaging the noise signal can refer to the existing method of signal averaging, and will not be described in detail here. After the average signal is obtained, the average signal is input into the active noise reduction circuit for noise reduction processing.
当主动降噪电路是反馈式主动降噪电路时,耳机设备将各第一噪声信号进行平均得到的平均信号输入反馈式主动降噪电路进行降噪处理,得到平均信号对应的反馈消噪信号,将反馈消噪信号作为最终的消噪信号通过扬声器播放。反馈式主动降噪电路中的反馈滤波器的滤波器系数可以通过预先进行测试设计,设计方式可以参照现有的反馈滤波器设计方法,其中需要用到反馈麦克风的输出信号(检测到的噪声信号)时,可以将各个反馈麦克风的输出信号进行平均后再参与滤波器设计。When the active noise reduction circuit is a feedback active noise reduction circuit, the headphone device averages the first noise signals and inputs the average signal into the feedback active noise reduction circuit for noise reduction processing to obtain a feedback noise reduction signal corresponding to the average signal, Play the feedback denoise signal through the speaker as the final denoise signal. The filter coefficients of the feedback filter in the feedback active noise reduction circuit can be designed by testing in advance, and the design method can refer to the existing feedback filter design method, wherein the output signal of the feedback microphone (the detected noise signal ), the output signals of each feedback microphone can be averaged before participating in the filter design.
当主动降噪电路是混合式主动降噪电路时,也即包括前馈式主动降噪电路和反馈式主动降噪电路时,耳机设备通过前馈麦克风检测第二噪声信号,将第二噪声信号输入前馈式主动降噪电路进行降噪处理,得到前馈消噪信号;将各反馈麦克风检测到的第一噪声信号进行平均得到的平均信号输入反馈式主动降噪电路进行降噪处理,得到该平均信号对应的反馈消噪信号;将前馈消噪信号和反馈消噪信号相加得到的结果作为各第一噪声信号的平均信号对应的消噪信号,也即,将相加得到的结果通过扬声器播放。同理,前馈式主动降噪电路中的前馈滤波器和反馈式主动降噪电路中的反馈滤波器的滤波器系数可以通过预先 进行测试设计,设计方式可以参照现有的前馈滤波器和反馈滤波器的设计方法,其中需要用到反馈麦克风的输出信号(检测到的噪声信号)时,可以将各个反馈麦克风的输出信号进行平均后再参与滤波器设计。When the active noise reduction circuit is a hybrid active noise reduction circuit, that is, when it includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit, the earphone device detects the second noise signal through the feedforward microphone, and converts the second noise signal Input the feedforward active noise reduction circuit for noise reduction processing to obtain the feedforward noise reduction signal; average the first noise signal detected by each feedback microphone to obtain the average signal input feedback active noise reduction circuit for noise reduction processing, and obtain The feedback denoising signal corresponding to the average signal; the result obtained by adding the feedforward denoising signal and the feedback denoising signal is used as the denoising signal corresponding to the average signal of each first noise signal, that is, the result obtained by adding Play through speakers. Similarly, the filter coefficients of the feedforward filter in the feedforward active noise reduction circuit and the feedback filter in the feedback active noise reduction circuit can be designed through pre-testing, and the design method can refer to the existing feedforward filter And the design method of the feedback filter, wherein when the output signal (detected noise signal) of the feedback microphone is needed, the output signals of each feedback microphone can be averaged and then participate in the filter design.
进一步地,在一实施方式中,所述步骤S10之前,还包括:Further, in one embodiment, before the step S10, it also includes:
步骤A10,获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Step A10, acquiring test noise signals detected by each of the feedback microphones respectively, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
主动降噪电路中的滤波器系数可以通过播放测试噪声和计算声学传递函数来设定。具体地,耳机设备中可以预先设置一段测试用的噪声(以下称为测试噪声),通过耳机设备中的扬声器播放该测试噪声,并通过各反馈麦克风检测噪声信号,将该噪声信号称为测试噪声信号。The filter coefficients in the ANC circuit can be set by playing test noise and calculating the acoustic transfer function. Specifically, a section of test noise (hereinafter referred to as test noise) can be preset in the earphone device, the test noise is played through the speaker in the earphone device, and the noise signal is detected by each feedback microphone, and the noise signal is called the test noise Signal.
步骤A20,将各所述测试噪声信号进行平均得到平均测试信号;Step A20, averaging each of the test noise signals to obtain an average test signal;
步骤A30,根据所述平均测试信号计算得到所述扬声器到所述反馈麦克风阵列中心的声学传递函数;Step A30, calculating an acoustic transfer function from the loudspeaker to the center of the feedback microphone array according to the average test signal;
将各测试噪声信号进行平均得到平均测试信号,该平均测试信号可以看做是放置于反馈麦克风阵列中心处的麦克风(实际上并未在该位置处设置麦克风)拾取到的噪声信号。根据该平均测试信号可以计算得到扬声器到反馈麦克风阵列中心的声学传递函数,该声学传递函数反应了扬声器播放的噪声信号与反馈麦克阵列中心处麦克风拾取到噪声信号之间的传递关系。根据该平均测试信号计算该声学传递函数的方法可以参照现有的声学传递函数计算方法,在此不做赘述。The average test signal is obtained by averaging the test noise signals, which can be regarded as the noise signal picked up by the microphone placed at the center of the feedback microphone array (the microphone is not actually set at this position). According to the average test signal, the acoustic transfer function from the loudspeaker to the center of the feedback microphone array can be calculated, and the acoustic transfer function reflects the transfer relationship between the noise signal played by the loudspeaker and the noise signal picked up by the microphone at the center of the feedback microphone array. The method of calculating the acoustic transfer function according to the average test signal may refer to the existing calculation method of the acoustic transfer function, and will not be repeated here.
步骤A40,根据所述声学传递函数设定所述主动降噪电路中的滤波器系数;Step A40, setting filter coefficients in the active noise reduction circuit according to the acoustic transfer function;
计算得到扬声器到反馈麦克风阵列中心的声学传递函数后,即可根据声学传递函数设定主动降噪电路中的滤波器系数。具体地,根据声学传递函数设定滤波器系数的方法通用可以参照现有的滤波器系数设定方法,在此不做赘述。After calculating the acoustic transfer function from the loudspeaker to the center of the feedback microphone array, the filter coefficients in the active noise reduction circuit can be set according to the acoustic transfer function. Specifically, the method for setting filter coefficients according to the acoustic transfer function can generally refer to the existing method for setting filter coefficients, which will not be repeated here.
需要说明的是,若主动降噪电路是反馈式主动降噪电路,则根据扬声器到反馈麦克风阵列中心的声学传递函数来设定反馈式主动降噪电路中的反馈滤波器的滤波器系数。若主动降噪电路是混合式主动降噪电路,则进一步地,可以在外部测试设备中预置一段测试噪声(以下称为外部测试噪声),通过外部测试设备播放该外部测试噪声,通过前馈麦克风和反馈麦克风检测该外部测试噪声信号,根据前馈麦克风检测到的外部测试噪声信号计算外部声源到前馈麦克风的声学传递函数(以下称为第一函数);将各反馈麦克风检测到外部测 试噪声信号进行平均,得到平均外部测试信号,根据前馈麦克风检测到的外部测试噪声信号和该平均测试信号,计算得到前馈麦克风到反馈麦克风阵列中心处的声学传递函数(以下称为第二函数);根据第一函数、第二函数和第三函数(扬声器到反馈麦克风阵列中心的声学传递函数)联合设定前馈式主动降噪电路中前馈滤波器的滤波器系数和反馈式主动降噪电路中反馈滤波器的滤波器系数。It should be noted that, if the active noise reduction circuit is a feedback active noise reduction circuit, the filter coefficients of the feedback filter in the feedback active noise reduction circuit are set according to the acoustic transfer function from the loudspeaker to the center of the feedback microphone array. If the active noise reduction circuit is a hybrid active noise reduction circuit, then further, a section of test noise (hereinafter referred to as external test noise) can be preset in the external test equipment, and the external test noise is played through the external test equipment, and through the feedforward Microphone and feedback microphone detect this external test noise signal, calculate the acoustic transfer function (hereinafter referred to as the first function) of external sound source to feedforward microphone according to the external test noise signal detected by feedforward microphone; The test noise signal is averaged to obtain the average external test signal. According to the external test noise signal detected by the feedforward microphone and the average test signal, the acoustic transfer function (hereinafter referred to as the second function); according to the first function, the second function and the third function (acoustic transfer function from the loudspeaker to the center of the feedback microphone array), the filter coefficients of the feedforward filter in the feedforward active noise reduction circuit and the feedback active noise reduction circuit are jointly set. Filter coefficients for the feedback filter in the noise reduction circuit.
所述步骤S202包括:The step S202 includes:
步骤S2021,将所述平均信号输入所述主动降噪电路,基于所述滤波器系数进行降噪处理,得到所述平均信号对应的消噪信号。Step S2021, input the average signal into the active noise reduction circuit, perform noise reduction processing based on the filter coefficients, and obtain a denoising signal corresponding to the average signal.
耳机设备在设定主动降噪电路中的滤波器系数后,在使用过程中开启主动降噪功能时,在计算得到各个第一噪声信号的平均信号后,可以将平均信号输入主动降噪电路,基于设定的主动降噪电路中的滤波器系数进行降噪处理,得到平均信号对应的消噪信号。需要说明的是,主动降噪电路中基于滤波器对信号进行降噪处理得到消噪信号的具体过程可参照现有的主动降噪电路,在此不做赘述。After setting the filter coefficient in the active noise reduction circuit of the earphone device, when the active noise reduction function is turned on during use, after calculating the average signal of each first noise signal, the average signal can be input into the active noise reduction circuit, Noise reduction processing is performed based on the set filter coefficients in the active noise reduction circuit to obtain a noise reduction signal corresponding to the average signal. It should be noted that the specific process of denoising the signal based on the filter in the active noise reduction circuit to obtain the denoising signal can refer to the existing active noise reduction circuit, and will not be repeated here.
进一步地,基于上述第一实施例,提出本申请降噪方法的第三实施例,在本实施例中,所述步骤S20包括:Further, based on the first embodiment above, a third embodiment of the noise reduction method of the present application is proposed. In this embodiment, the step S20 includes:
步骤S203,将各所述第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号;Step S203, input each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtain the branch noise reduction signals corresponding to each of the first noise signals;
步骤S204,将各所述支路消噪信号进行平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。Step S204, averaging each of the denoising signals of the branches, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
在本实施例中,对于各个反馈麦克风检测到的第一噪声信号,可以先进行降噪处理再对消噪信号进行平均。In this embodiment, for the first noise signal detected by each feedback microphone, noise reduction processing may be performed first, and then the noise reduction signal may be averaged.
具体地,主动降噪电路中可以包括与各个反馈麦克风分别对应的主动降噪支路,也即,一个反馈麦克风对应一个主动降噪支路。对于各个反馈麦克风检测到的第一噪声信号,耳机设备可以先将各第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各个第一噪声信号分别对应的支路消噪信号。也即,将一个反馈麦克风检测到的第一噪声信号输入该反馈麦克风对应的主动降噪支路进行降噪处理,得到该第一噪声信号对应的支路消噪信号。Specifically, the active noise reduction circuit may include active noise reduction branches corresponding to the respective feedback microphones, that is, one feedback microphone corresponds to one active noise reduction branch. For the first noise signals detected by each feedback microphone, the earphone device may first input each first noise signal into the corresponding active noise reduction branch for noise reduction processing, and obtain branch noise cancellation signals corresponding to each first noise signal. . That is, a first noise signal detected by a feedback microphone is input into an active noise reduction branch corresponding to the feedback microphone for noise reduction processing, and a branch noise cancellation signal corresponding to the first noise signal is obtained.
将各个支路消噪信号进行平均,将平均得到的信号作为各第一噪声信号的平均信号对应的消噪信号,也即,虽然不是直接对各第一噪声信号的平均信号进行降噪处理得到消噪信号,但是,将各个第一噪声信号采用对应的主动降噪支路进行降噪处理后再进行平均得到的信号,可以看做是各第一噪声信号的平均信号对应的消噪信号。The denoising signals of each branch are averaged, and the averaged signal is used as the denoising signal corresponding to the average signal of each first noise signal, that is, although it is not directly denoising the average signal of each first noise signal to obtain For the denoising signal, however, the signal obtained by performing noise reduction processing on each first noise signal using the corresponding active noise reduction branch and then averaging can be regarded as the denoising signal corresponding to the average signal of each first noise signal.
主动降噪支路可以是反馈式主动降噪电路,也可以是混合式主动降噪电路。The active noise reduction branch can be a feedback active noise reduction circuit or a hybrid active noise reduction circuit.
当主动降噪支路是反馈式主动降噪电路时,耳机设备将各第一噪声信号输入对应的反馈式主动降噪电路进行降噪处理,得到各第一噪声信号分别对应的反馈消噪信号(也即支路消噪信号),将各支路消噪信号进行平均得到的信号直接作为各第一噪声信号的平均信号对应的消噪信号,通过扬声器播放该消噪信号。各个反馈式主动降噪电路中的反馈滤波器的滤波器系数可以通过预先进行测试设计,设计方式可以参照现有的反馈滤波器设计方法,其中需要用到反馈麦克风的输出信号(检测到的噪声信号)时,使用对应的反馈麦克风的输出信号参与对应的滤波器设计。When the active noise reduction branch is a feedback active noise reduction circuit, the earphone device inputs each first noise signal to the corresponding feedback active noise reduction circuit for noise reduction processing, and obtains feedback noise reduction signals corresponding to each first noise signal (That is, the branch denoising signal), the signal obtained by averaging the denoising signals of each branch is directly used as the denoising signal corresponding to the average signal of each first noise signal, and the denoising signal is played through the loudspeaker. The filter coefficients of the feedback filter in each feedback active noise reduction circuit can be designed by testing in advance, and the design method can refer to the existing feedback filter design method, wherein the output signal of the feedback microphone (the detected noise signal), use the output signal of the corresponding feedback microphone to participate in the corresponding filter design.
当主动降噪支路是混合式主动降噪电路时,各个主动降噪支路可以采用不同的反馈式主动降噪电路,但共用一个前馈式主动降噪电路;耳机设备通过前馈麦克风检测第二噪声信号,将第二噪声信号输入前馈式主动降噪电路进行降噪处理,得到前馈消噪信号;将各反馈麦克风检测到的第一噪声信号分别输入对应的反馈式主动降噪电路进行降噪处理,得到各个反馈消噪信号;将前馈消噪信号与各个反馈消噪信号分别相加后再求平均,或将各个反馈消噪信号求平均后再与前馈消噪信号相加,将计算得到的结果作为各第一噪声信号的平均信号对应的消噪信号,也即,将计算得到的结果通过扬声器播放。同理,前馈式主动降噪电路中的前馈滤波器和反馈式主动降噪电路中的反馈滤波器的滤波器系数可以通过预先进行测试设计,设计方式可以参照现有的前馈滤波器和反馈滤波器的设计方法,其中需要用到反馈麦克风的输出信号(检测到的噪声信号)时,使用对应的反馈麦克风的输出信号参与对应的滤波器设计。When the active noise reduction branch is a hybrid active noise reduction circuit, each active noise reduction branch can use different feedback active noise reduction circuits, but share a feedforward active noise reduction circuit; For the second noise signal, input the second noise signal into the feedforward active noise reduction circuit for noise reduction processing to obtain a feedforward noise reduction signal; input the first noise signals detected by each feedback microphone into the corresponding feedback active noise reduction The circuit performs noise reduction processing to obtain each feedback denoising signal; the feedforward denoising signal is added to each feedback denoising signal and then averaged, or each feedback denoising signal is averaged and then combined with the feedforward denoising signal Adding, the calculated result is used as the denoising signal corresponding to the average signal of each first noise signal, that is, the calculated result is played through the speaker. Similarly, the filter coefficients of the feedforward filter in the feedforward active noise reduction circuit and the feedback filter in the feedback active noise reduction circuit can be designed through pre-testing, and the design method can refer to the existing feedforward filter And the design method of the feedback filter, wherein when the output signal (detected noise signal) of the feedback microphone is needed, the output signal of the corresponding feedback microphone is used to participate in the corresponding filter design.
进一步地,在一实施方式中,所述步骤S10之前,还包括:Further, in one embodiment, before the step S10, it also includes:
步骤B10,获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Step B10, acquiring test noise signals detected by each of the feedback microphones respectively, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
主动降噪电路中的滤波器系数可以通过播放测试噪声和计算声学传递函数来设定。具体地,耳机设备中可以预先设置一段测试用的噪声(以下称为测试噪声),通过耳机设备中的扬声器播放该测试噪声,并通过各反馈麦克风检测噪声信号,将该噪声信号称为测试噪 声信号。The filter coefficients in the ANC circuit can be set by playing test noise and calculating the acoustic transfer function. Specifically, a section of test noise (hereinafter referred to as test noise) can be preset in the earphone device, the test noise is played through the speaker in the earphone device, and the noise signal is detected by each feedback microphone, and the noise signal is called the test noise Signal.
步骤B20,分别根据各所述测试噪声信号计算得到所述扬声器到对应反馈麦克风的声学传递函数;Step B20, calculating an acoustic transfer function from the loudspeaker to the corresponding feedback microphone according to each of the test noise signals;
步骤B30,分别根据各所述声学传递函数设定对应主动降噪支路中的支路滤波器系数;Step B30, respectively setting the branch filter coefficients in the corresponding active noise reduction branch according to each of the acoustic transfer functions;
分别根据各测试噪声信号计算得到扬声器到对应的反馈麦克风的声学传递函数。也即,对于每个反馈麦克风,采用该反馈麦克风检测到的测试噪声信号计算扬声器到该反馈麦克风的声学传递函数。那么,一个反馈麦克风对应一个声学传递函数。分别根据各个声学传递函数设定对应的主动降噪支路中的支路滤波器系数,也即,对于每个反馈麦克风,采用该反馈麦克风对应的声学传递函数设定该反馈麦克风对应的主动降噪支路中的支路滤波器系数。The acoustic transfer function from the loudspeaker to the corresponding feedback microphone is calculated according to each test noise signal respectively. That is, for each feedback microphone, the acoustic transfer function from the loudspeaker to the feedback microphone is calculated using the test noise signal detected by the feedback microphone. Then, a feedback microphone corresponds to an acoustic transfer function. Set the branch filter coefficients in the corresponding active noise reduction branch according to each acoustic transfer function, that is, for each feedback microphone, use the acoustic transfer function corresponding to the feedback microphone to set the corresponding active noise reduction of the feedback microphone. Branch filter coefficients in noisy branches.
需要说明的是,若主动降噪支路是反馈式主动降噪电路,则根据扬声器到各个反馈麦克风的声学传递函数来对应设定各个反馈式主动降噪电路中的反馈滤波器的滤波器系数。若主动降噪电路是混合式主动降噪电路,则进一步地,可以在外部测试设备中预置一段测试噪声(以下称为外部测试噪声),通过外部测试设备播放该外部测试噪声,通过前馈麦克风和反馈麦克风检测该外部测试噪声信号,根据前馈麦克风检测到的外部测试噪声信号计算外部声源到前馈麦克风的声学传递函数(以下称为第一函数);根据前馈麦克风检测到的外部测试噪声信号和各个反馈麦克风检测到的外部测试噪声信号,分别计算得到前馈麦克风到各个反馈麦克风的声学传递函数(以下称为第二函数);根据第一函数、各第二函数和各第三函数(扬声器到反馈麦克风的声学传递函数)联合设定前馈式主动降噪电路中前馈滤波器的滤波器系数和各个反馈式主动降噪电路中反馈滤波器的滤波器系数。It should be noted that if the active noise reduction branch is a feedback active noise reduction circuit, the filter coefficients of the feedback filters in each feedback active noise reduction circuit are correspondingly set according to the acoustic transfer function from the speaker to each feedback microphone . If the active noise reduction circuit is a hybrid active noise reduction circuit, then further, a section of test noise (hereinafter referred to as external test noise) can be preset in the external test equipment, and the external test noise is played through the external test equipment, and through the feedforward Microphone and feedback microphone detect this external test noise signal, calculate the acoustic transfer function (hereinafter referred to as the first function) of external sound source to feedforward microphone according to the external test noise signal detected by feedforward microphone; The external test noise signal and the external test noise signal detected by each feedback microphone are respectively calculated to obtain the acoustic transfer function (hereinafter referred to as the second function) from the feedforward microphone to each feedback microphone; according to the first function, each second function and each The third function (speaker-to-feedback microphone acoustic transfer function) jointly sets the filter coefficients of the feedforward filter in the feedforward ANC circuit and the filter coefficients of the feedback filter in each feedback ANC circuit.
所述步骤S204包括:The step S204 includes:
步骤S2041,将各所述第一噪声信号分别输入对应的主动降噪支路,基于对应的支路滤波器系数进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号。Step S2041, input each of the first noise signals into the corresponding active noise reduction branch, perform noise reduction processing based on the corresponding branch filter coefficients, and obtain branch noise reduction signals corresponding to each of the first noise signals .
耳机设备在设定主动降噪支路中的支路滤波器系数后,在使用过程中开启主动降噪功能时,可将各个第一噪声信号分别输入对应的主动降噪支路,基于该主动降噪支路中设定的滤波器系数进行降噪处理,得到各第一噪声信号分别对应的支路消噪信号。需要说明的是,主动降噪支路中基于滤波器对信号进行降噪处理得到消噪信号的具体过程可参照现有的主动降噪电路,在此不做赘述。After setting the branch filter coefficients in the active noise reduction branch of the earphone device, when the active noise reduction function is turned on during use, each first noise signal can be respectively input into the corresponding active noise reduction branch. The filter coefficients set in the denoising branches are subjected to denoising processing to obtain branch denoising signals respectively corresponding to the first noise signals. It should be noted that the specific process of denoising the signal based on the filter in the ANR branch to obtain the denoising signal can refer to the existing ANR circuit, and will not be repeated here.
进一步地,在一实施方式中,当所述反馈麦克风阵列的分布位置是经过误差补偿后符 合所述位置条件时,所述步骤S20包括:Further, in one embodiment, when the distribution position of the feedback microphone array meets the position condition after error compensation, the step S20 includes:
步骤S205,获取各所述反馈麦克风对应的权重,其中,所述权重是预先根据所述反馈麦克风阵列的分布位置相对于所述位置条件的误差设置的;Step S205, obtaining weights corresponding to each of the feedback microphones, wherein the weights are set in advance according to the error of the distribution position of the feedback microphone array relative to the position condition;
当反馈麦克风阵列的分布位置与位置条件之间存在误差时,可以对误差进行补偿,在本实施方式中,误差补偿的方式可以是预先根据反馈麦克风阵列的分布位置相对于位置条件的误差设置各个反馈麦克风阵列对应的权重。具体地,可以通过测试的方法来设置权重,以使得按照该设定的权重对各个反馈麦克风检测的噪声信号进行加权平均得到的噪声信号与反馈麦克风阵列的中心位置的噪声信号一致。When there is an error between the distribution position of the feedback microphone array and the position condition, the error can be compensated. In this embodiment, the error compensation method can be set in advance according to the error of the distribution position of the feedback microphone array relative to the position condition. The weight corresponding to the feedback microphone array. Specifically, the weight may be set by means of testing, so that the noise signal obtained by weighting and averaging the noise signals detected by each feedback microphone according to the set weight is consistent with the noise signal at the center of the feedback microphone array.
步骤S206,将各所述支路消噪信号按照对应的权重进行加权平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。Step S206, weighting and averaging each of the denoising signals of the branches according to corresponding weights, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
在通过各反馈麦克风检测到第一噪声信号后,可以将各支路消噪信号按照对应的权重进行加权平均。其中,可以理解的是反馈麦克风、第一噪声信号、主动降噪支路、权重、支路消噪信号之间是一一对应的,加权平均是将各支路消噪信号与对应的权重相乘后再平均。将加权平均的结果作为各第一噪声信号的平均信号对应的消噪信号。After the first noise signal is detected by each feedback microphone, the noise cancellation signal of each branch may be weighted and averaged according to the corresponding weight. Among them, it can be understood that there is a one-to-one correspondence between the feedback microphone, the first noise signal, the active noise reduction branch, the weight, and the branch noise cancellation signal, and the weighted average is to compare the noise cancellation signal of each branch with the corresponding weight Multiply and then average. The weighted average result is used as the denoising signal corresponding to the average signal of each first noise signal.
进一步地,在一实施方式中,当先对各第一噪声信号进行平均再进行降噪处理时,也可以先将各第一噪声信号按照对应的权重进行加权平均得到平均信号,再将平均信号输入主动降噪电路进行降噪处理得到各第一噪声信号的平均信号对应的消噪信号。Further, in one embodiment, when the first noise signals are averaged and then the noise reduction process is performed, the first noise signals can also be weighted and averaged according to the corresponding weights to obtain the average signal, and then the average signal is input The active noise reduction circuit performs noise reduction processing to obtain a denoising signal corresponding to the average signal of each first noise signal.
此外,本申请实施例还提出一种降噪装置,所述降噪装置部署于耳机设备,所述耳机设备包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,所述反馈麦克风阵列包括多个反馈麦克风,所述反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合所述位置条件,所述位置条件为所述反馈麦克风阵列的分布平面垂直于所述扬声器和所述出声孔之间的连线,且所述反馈麦克风阵列的中心在所述连线上,参照图5,所述降噪装置包括:In addition, an embodiment of the present application also proposes a noise reduction device, the noise reduction device is deployed in a headphone device, and the headphone device includes an active noise reduction circuit, a speaker, a sound hole, and a feedback microphone array, and the feedback microphone array includes A plurality of feedback microphones, the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to the speaker and the outlet The connection between the sound holes, and the center of the feedback microphone array is on the connection, with reference to Fig. 5, the noise reduction device includes:
获取模块10,用于获取各所述反馈麦克风分别检测到的第一噪声信号;An acquisition module 10, configured to acquire first noise signals respectively detected by each of the feedback microphones;
降噪模块20,用于通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号;A noise reduction module 20, configured to perform noise reduction processing on each of the first noise signals through the active noise reduction circuit, to obtain a noise reduction signal corresponding to an average signal of each of the first noise signals;
播放模块30,用于通过所述扬声器播放所述消噪信号。The playback module 30 is configured to play the noise-canceling signal through the loudspeaker.
进一步地,所述降噪模块20包括:Further, the noise reduction module 20 includes:
第一平均单元,用于对各所述第一噪声信号进行平均得到平均信号;a first averaging unit, configured to average each of the first noise signals to obtain an average signal;
第一降噪单元,用于将所述平均信号输入所述主动降噪电路进行降噪处理,得到所述平均信号对应的消噪信号。The first noise reduction unit is configured to input the average signal into the active noise reduction circuit for noise reduction processing to obtain a noise reduction signal corresponding to the average signal.
进一步地,所述获取模块10还用于获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Further, the acquiring module 10 is also used to acquire the test noise signals detected by each of the feedback microphones respectively, wherein the test noise signals are detected by each of the feedback microphones after the preset test noise is played through the speakers to the signal;
所述装置还包括:The device also includes:
平均模块,用于将各所述测试噪声信号进行平均得到平均测试信号;An averaging module, configured to average each of the test noise signals to obtain an average test signal;
第一计算模块,用于根据所述平均测试信号计算得到所述扬声器到所述反馈麦克风阵列中心的声学传递函数;A first calculation module, configured to calculate an acoustic transfer function from the loudspeaker to the center of the feedback microphone array according to the average test signal;
第一设定模块,用于根据所述声学传递函数设定所述主动降噪电路中的滤波器系数;A first setting module, configured to set filter coefficients in the active noise reduction circuit according to the acoustic transfer function;
所述第一降噪单元还用于:The first noise reduction unit is also used for:
将所述平均信号输入所述主动降噪电路,基于所述滤波器系数进行降噪处理,得到所述平均信号对应的消噪信号。Inputting the average signal into the active noise reduction circuit, performing noise reduction processing based on the filter coefficients, to obtain a denoising signal corresponding to the average signal.
进一步地,所述主动降噪电路包括与各所述反馈麦克风分别对应的主动降噪支路,所述降噪模块20包括:Further, the active noise reduction circuit includes active noise reduction branches respectively corresponding to the feedback microphones, and the noise reduction module 20 includes:
第二降噪单元,用于将各所述第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号;The second noise reduction unit is configured to input each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtain branch noise reduction signals corresponding to each of the first noise signals;
第二平均单元,用于将各所述支路消噪信号进行平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。The second averaging unit is configured to average each of the branch denoising signals, and use the result as a denoising signal corresponding to the average signal of each of the first noise signals.
进一步地,所述获取模块10还用于获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Further, the acquiring module 10 is also used to acquire the test noise signals detected by each of the feedback microphones respectively, wherein the test noise signals are detected by each of the feedback microphones after the preset test noise is played through the speakers to the signal;
所述装置还包括:The device also includes:
第二计算模块,用于分别根据各所述测试噪声信号计算得到所述扬声器到对应反馈麦克风的声学传递函数;The second calculation module is used to calculate and obtain the acoustic transfer function from the loudspeaker to the corresponding feedback microphone according to each of the test noise signals;
第二设定模块,用于分别根据各所述声学传递函数设定对应主动降噪支路中的支路滤波器系数;The second setting module is used to set the branch filter coefficients in the corresponding active noise reduction branch according to the acoustic transfer functions respectively;
所述第二平均单元还用于:The second averaging unit is also used for:
将各所述第一噪声信号分别输入对应的主动降噪支路,基于对应的支路滤波器系数进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号。Each of the first noise signals is input to a corresponding active noise reduction branch, and noise reduction processing is performed based on the corresponding branch filter coefficients to obtain branch denoising signals corresponding to each of the first noise signals.
进一步地,当所述反馈麦克风阵列的分布位置是经过误差补偿后符合所述位置条件时,所述第二平均单元还用于:Further, when the distribution position of the feedback microphone array meets the position condition after error compensation, the second averaging unit is also used for:
获取各所述反馈麦克风对应的权重,其中,所述权重是预先根据所述反馈麦克风阵列的分布位置相对于所述位置条件的误差设置的;Acquiring weights corresponding to each of the feedback microphones, wherein the weights are set in advance according to the error of the distribution position of the feedback microphone array relative to the position condition;
将各所述支路消噪信号按照对应的权重进行加权平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。Performing a weighted average on each of the branch denoising signals according to the corresponding weight, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
进一步地,所述主动降噪电路包括前馈式主动降噪电路和反馈式主动降噪电路,所述耳机设备还包括前馈麦克风,所述降噪模块20包括:Further, the active noise reduction circuit includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit, the earphone device also includes a feedforward microphone, and the noise reduction module 20 includes:
获取单元,用于获取所述前馈麦克风检测到的第二噪声信号;an acquisition unit, configured to acquire a second noise signal detected by the feedforward microphone;
第三降噪单元,用于通过所述前馈式主动降噪电路对所述第二噪声信号进行降噪处理,得到前馈消噪信号;A third noise reduction unit, configured to perform noise reduction processing on the second noise signal through the feedforward active noise reduction circuit to obtain a feedforward noise reduction signal;
第四降噪单元,用于通过所述反馈式主动降噪电路对各所述第一噪声信号进行降噪处理,得到各所述第一噪声信号的平均信号对应的反馈消噪信号;The fourth noise reduction unit is configured to perform noise reduction processing on each of the first noise signals through the feedback active noise reduction circuit to obtain a feedback noise reduction signal corresponding to an average signal of each of the first noise signals;
计算单元,用于将所述前馈消噪信号和所述反馈消噪信号相加,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。A calculation unit, configured to add the feedforward denoising signal and the feedback denoising signal, and use the result as a denoising signal corresponding to the average signal of each of the first noise signals.
本申请降噪装置的具体实施方式的拓展内容与上述降噪方法各实施例基本相同,在此不做赘述。The expanded content of the specific implementation of the noise reduction device of the present application is basically the same as that of the embodiments of the above noise reduction method, and will not be repeated here.
本申请耳机设备可以包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,所述反馈麦克风阵列包括多个反馈麦克风,所述反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合所述位置条件,所述位置条件为所述反馈麦克风阵列的分布平面垂直于所述扬声器和所述出声孔之间的连线,且所述反馈麦克风阵列的中心在所述连线上,所述耳机设备还包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的降噪程序,所述降噪程序被所述处理器执行时实现如操作:The earphone device of the present application may include an active noise reduction circuit, a loudspeaker, a sound outlet, and a feedback microphone array, the feedback microphone array includes a plurality of feedback microphones, and the distribution position of the feedback microphone array meets a position condition or meets a condition after error compensation. The position condition, the position condition is that the distribution plane of the feedback microphone array is perpendicular to the line between the speaker and the sound outlet, and the center of the feedback microphone array is on the line, The earphone device further includes a memory, a processor, and a noise reduction program stored on the memory and operable on the processor, when the noise reduction program is executed by the processor, operations such as:
获取各所述反馈麦克风分别检测到的第一噪声信号;acquiring first noise signals respectively detected by each of the feedback microphones;
通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号;performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a noise reduction signal corresponding to an average signal of each of the first noise signals;
通过所述扬声器播放所述消噪信号。The noise-canceling signal is played through the loudspeaker.
进一步地,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号包括:Further, performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a denoising signal corresponding to an average signal of each of the first noise signals includes:
对各所述第一噪声信号进行平均得到平均信号;averaging each of the first noise signals to obtain an average signal;
将所述平均信号输入所述主动降噪电路进行降噪处理,得到所述平均信号对应的消噪信号。Inputting the average signal into the active noise reduction circuit for noise reduction processing to obtain a denoising signal corresponding to the average signal.
进一步地,所述获取各所述反馈麦克风分别检测到的第一噪声信号之前,还包括:Further, before the acquisition of the first noise signals respectively detected by each of the feedback microphones, it also includes:
获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Acquiring test noise signals detected by each of the feedback microphones, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
将各所述测试噪声信号进行平均得到平均测试信号;averaging each of the test noise signals to obtain an average test signal;
根据所述平均测试信号计算得到所述扬声器到所述反馈麦克风阵列中心的声学传递函数;calculating an acoustic transfer function from the loudspeaker to the center of the feedback microphone array according to the average test signal;
根据所述声学传递函数设定所述主动降噪电路中的滤波器系数;setting filter coefficients in the active noise reduction circuit according to the acoustic transfer function;
所述将所述平均信号输入所述主动降噪电路进行降噪处理,得到所述平均信号对应的消噪信号包括:The inputting the average signal into the active noise reduction circuit for noise reduction processing, and obtaining the denoising signal corresponding to the average signal includes:
将所述平均信号输入所述主动降噪电路,基于所述滤波器系数进行降噪处理,得到所述平均信号对应的消噪信号。Inputting the average signal into the active noise reduction circuit, performing noise reduction processing based on the filter coefficients, to obtain a denoising signal corresponding to the average signal.
进一步地,所述主动降噪电路包括与各所述反馈麦克风分别对应的主动降噪支路,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号包括:Further, the active noise reduction circuit includes an active noise reduction branch corresponding to each of the feedback microphones, and the active noise reduction circuit performs noise reduction processing on each of the first noise signals to obtain The denoising signal corresponding to the average signal of the first noise signal includes:
将各所述第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号;Input each of the first noise signals into the corresponding active noise reduction branch to perform noise reduction processing, and obtain branch noise reduction signals corresponding to each of the first noise signals;
将各所述支路消噪信号进行平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。The denoising signals of each of the branches are averaged, and the result is used as a denoising signal corresponding to the average signal of each of the first noise signals.
进一步地,所述获取各所述反馈麦克风分别检测到的第一噪声信号之前,还包括:Further, before the acquisition of the first noise signals respectively detected by each of the feedback microphones, it also includes:
获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Acquiring test noise signals detected by each of the feedback microphones, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
分别根据各所述测试噪声信号计算得到所述扬声器到对应反馈麦克风的声学传递函数;calculating an acoustic transfer function from the loudspeaker to the corresponding feedback microphone according to each of the test noise signals;
分别根据各所述声学传递函数设定对应主动降噪支路中的支路滤波器系数;Setting the branch filter coefficients in the corresponding active noise reduction branch according to each of the acoustic transfer functions;
所述将各所述第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号包括:The step of inputting each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtaining branch noise reduction signals corresponding to each of the first noise signals includes:
将各所述第一噪声信号分别输入对应的主动降噪支路,基于对应的支路滤波器系数进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号。Each of the first noise signals is input to a corresponding active noise reduction branch, and noise reduction processing is performed based on the corresponding branch filter coefficients to obtain branch denoising signals corresponding to each of the first noise signals.
进一步地,当所述反馈麦克风阵列的分布位置是经过误差补偿后符合所述位置条件时,所述将各所述支路消噪信号进行平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号包括:Further, when the distribution position of the feedback microphone array meets the position condition after error compensation, the noise cancellation signals of each of the branches are averaged, and the result is taken as the average of the first noise signals The denoising signal corresponding to the signal includes:
获取各所述反馈麦克风对应的权重,其中,所述权重是预先根据所述反馈麦克风阵列的分布位置相对于所述位置条件的误差设置的;Acquiring weights corresponding to each of the feedback microphones, wherein the weights are set in advance according to the error of the distribution position of the feedback microphone array relative to the position condition;
将各所述支路消噪信号按照对应的权重进行加权平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。Performing a weighted average on each of the branch denoising signals according to the corresponding weight, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
进一步地,所述主动降噪电路包括前馈式主动降噪电路和反馈式主动降噪电路,所述耳机设备还包括前馈麦克风,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号包括:Further, the active noise reduction circuit includes a feed-forward active noise reduction circuit and a feedback active noise reduction circuit, and the earphone device also includes a feed-forward microphone, and each of the first The noise signal is subjected to noise reduction processing, and the denoising signal corresponding to the average signal of each of the first noise signals obtained includes:
获取所述前馈麦克风检测到的第二噪声信号;acquiring a second noise signal detected by the feedforward microphone;
通过所述前馈式主动降噪电路对所述第二噪声信号进行降噪处理,得到前馈消噪信号;performing noise reduction processing on the second noise signal through the feedforward active noise reduction circuit to obtain a feedforward noise reduction signal;
通过所述反馈式主动降噪电路对各所述第一噪声信号进行降噪处理,得到各所述第一噪声信号的平均信号对应的反馈消噪信号;performing noise reduction processing on each of the first noise signals through the feedback active noise reduction circuit to obtain a feedback denoising signal corresponding to an average signal of each of the first noise signals;
将所述前馈消噪信号和所述反馈消噪信号相加,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。adding the feedforward denoising signal and the feedback denoising signal, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
此外,本申请实施例还提出一种计算机可读存储介质,所述存储介质上存储有降噪程序,所述降噪程序被处理器执行时实现如上所述的降噪方法的步骤。In addition, the embodiment of the present application also proposes a computer-readable storage medium, on which a noise reduction program is stored, and when the noise reduction program is executed by a processor, the steps of the above-mentioned noise reduction method are implemented.
本申请耳机设备和计算机可读存储介质的各实施例,均可参照本申请降噪方法各个实施例,此处不再赘述。For the various embodiments of the earphone device and the computer-readable storage medium of the present application, reference may be made to the various embodiments of the noise reduction method of the present application, which will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所 固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.

Claims (10)

  1. 一种降噪方法,其特征在于,所述降噪方法应用于耳机设备,所述耳机设备包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,所述反馈麦克风阵列包括多个反馈麦克风,所述反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合所述位置条件,所述位置条件为所述反馈麦克风阵列的分布平面垂直于所述扬声器和所述出声孔之间的连线,且所述反馈麦克风阵列的中心在所述连线上,所述降噪方法包括以下步骤:A noise reduction method, characterized in that the noise reduction method is applied to an earphone device, and the earphone device includes an active noise reduction circuit, a loudspeaker, a sound outlet and a feedback microphone array, and the feedback microphone array includes a plurality of feedback microphones , the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to between the speaker and the sound outlet The connection line, and the center of the feedback microphone array is on the connection line, the noise reduction method includes the following steps:
    获取各所述反馈麦克风分别检测到的第一噪声信号;acquiring first noise signals respectively detected by each of the feedback microphones;
    通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号;performing noise reduction processing on each of the first noise signals through the active noise reduction circuit to obtain a noise reduction signal corresponding to an average signal of each of the first noise signals;
    通过所述扬声器播放所述消噪信号。The noise-canceling signal is played through the loudspeaker.
  2. 如权利要求1所述的降噪方法,其特征在于,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号的步骤包括:The noise reduction method according to claim 1, wherein the active noise reduction circuit performs noise reduction processing on each of the first noise signals to obtain an average signal corresponding to each of the first noise signals. The steps for denoising the signal include:
    对各所述第一噪声信号进行平均得到平均信号;averaging each of the first noise signals to obtain an average signal;
    将所述平均信号输入所述主动降噪电路进行降噪处理,得到所述平均信号对应的消噪信号。Inputting the average signal into the active noise reduction circuit for noise reduction processing to obtain a denoising signal corresponding to the average signal.
  3. 如权利要求2所述的降噪方法,其特征在于,所述获取各所述反馈麦克风分别检测到的第一噪声信号的步骤之前,还包括:The noise reduction method according to claim 2, wherein before the step of acquiring the first noise signals respectively detected by each of the feedback microphones, further comprising:
    获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Acquiring test noise signals detected by each of the feedback microphones, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
    将各所述测试噪声信号进行平均得到平均测试信号;averaging each of the test noise signals to obtain an average test signal;
    根据所述平均测试信号计算得到所述扬声器到所述反馈麦克风阵列中心的声学传递函数;calculating an acoustic transfer function from the loudspeaker to the center of the feedback microphone array according to the average test signal;
    根据所述声学传递函数设定所述主动降噪电路中的滤波器系数;setting filter coefficients in the active noise reduction circuit according to the acoustic transfer function;
    所述将所述平均信号输入所述主动降噪电路进行降噪处理,得到所述平均信号对应的消噪信号的步骤包括:The step of inputting the average signal into the active noise reduction circuit to perform noise reduction processing, and obtaining a denoising signal corresponding to the average signal includes:
    将所述平均信号输入所述主动降噪电路,基于所述滤波器系数进行降噪处理,得到所述平均信号对应的消噪信号。Inputting the average signal into the active noise reduction circuit, performing noise reduction processing based on the filter coefficients, to obtain a denoising signal corresponding to the average signal.
  4. 如权利要求1所述的降噪方法,其特征在于,所述主动降噪电路包括与各所述反馈麦克风分别对应的主动降噪支路,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号的步骤包括:The noise reduction method according to claim 1, wherein the active noise reduction circuit includes an active noise reduction branch corresponding to each of the feedback microphones, and the active noise reduction circuit is used for each of the The first noise signal is subjected to noise reduction processing, and the step of obtaining the denoising signal corresponding to the average signal of each of the first noise signals includes:
    将各所述第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号;Input each of the first noise signals into the corresponding active noise reduction branch to perform noise reduction processing, and obtain branch noise reduction signals corresponding to each of the first noise signals;
    将各所述支路消噪信号进行平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。The denoising signals of each of the branches are averaged, and the result is used as a denoising signal corresponding to the average signal of each of the first noise signals.
  5. 如权利要求4所述的降噪方法,其特征在于,所述获取各所述反馈麦克风分别检测到的第一噪声信号的步骤之前,还包括:The noise reduction method according to claim 4, wherein before the step of acquiring the first noise signals respectively detected by each of the feedback microphones, further comprising:
    获取各所述反馈麦克风分别检测到的测试噪声信号,其中,所述测试噪声信号是通过所述扬声器播放预置测试噪声后被各所述反馈麦克风检测到的信号;Acquiring test noise signals detected by each of the feedback microphones, wherein the test noise signal is a signal detected by each of the feedback microphones after playing preset test noise through the speaker;
    分别根据各所述测试噪声信号计算得到所述扬声器到对应反馈麦克风的声学传递函数;calculating an acoustic transfer function from the loudspeaker to the corresponding feedback microphone according to each of the test noise signals;
    分别根据各所述声学传递函数设定对应主动降噪支路中的支路滤波器系数;Setting the branch filter coefficients in the corresponding active noise reduction branch according to each of the acoustic transfer functions;
    所述将各所述第一噪声信号分别输入对应的主动降噪支路进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号的步骤包括:The step of inputting each of the first noise signals into the corresponding active noise reduction branch for noise reduction processing, and obtaining the branch denoising signals corresponding to each of the first noise signals includes:
    将各所述第一噪声信号分别输入对应的主动降噪支路,基于对应的支路滤波器系数进行降噪处理,得到各所述第一噪声信号分别对应的支路消噪信号。Each of the first noise signals is input to a corresponding active noise reduction branch, and noise reduction processing is performed based on the corresponding branch filter coefficients to obtain branch denoising signals corresponding to each of the first noise signals.
  6. 如权利要求4所述的降噪方法,其特征在于,当所述反馈麦克风阵列的分布位置是经过误差补偿后符合所述位置条件时,所述将各所述支路消噪信号进行平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号的步骤包括:The noise reduction method according to claim 4, wherein when the distribution position of the feedback microphone array meets the position condition after error compensation, the noise reduction signals of each of the branches are averaged, The step of using the result as the denoising signal corresponding to the average signal of each of the first noise signals includes:
    获取各所述反馈麦克风对应的权重,其中,所述权重是预先根据所述反馈麦克风阵列的分布位置相对于所述位置条件的误差设置的;Acquiring weights corresponding to each of the feedback microphones, wherein the weights are set in advance according to the error of the distribution position of the feedback microphone array relative to the position condition;
    将各所述支路消噪信号按照对应的权重进行加权平均,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。Performing a weighted average on each of the branch denoising signals according to the corresponding weight, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
  7. 如权利要求1至6任一项所述的降噪方法,其特征在于,所述主动降噪电路包括前馈式主动降噪电路和反馈式主动降噪电路,所述耳机设备还包括前馈麦克风,所述通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号的步骤包括:The noise reduction method according to any one of claims 1 to 6, wherein the active noise reduction circuit includes a feedforward active noise reduction circuit and a feedback active noise reduction circuit, and the earphone device also includes a feedforward active noise reduction circuit. Microphone, the step of performing noise reduction processing on each of the first noise signals through the active noise reduction circuit, and obtaining a denoising signal corresponding to an average signal of each of the first noise signals includes:
    获取所述前馈麦克风检测到的第二噪声信号;acquiring a second noise signal detected by the feedforward microphone;
    通过所述前馈式主动降噪电路对所述第二噪声信号进行降噪处理,得到前馈消噪信号;performing noise reduction processing on the second noise signal through the feedforward active noise reduction circuit to obtain a feedforward noise reduction signal;
    通过所述反馈式主动降噪电路对各所述第一噪声信号进行降噪处理,得到各所述第一噪声信号的平均信号对应的反馈消噪信号;performing noise reduction processing on each of the first noise signals through the feedback active noise reduction circuit to obtain a feedback denoising signal corresponding to an average signal of each of the first noise signals;
    将所述前馈消噪信号和所述反馈消噪信号相加,将结果作为各所述第一噪声信号的平均信号对应的消噪信号。adding the feedforward denoising signal and the feedback denoising signal, and using the result as a denoising signal corresponding to the average signal of each of the first noise signals.
  8. 一种降噪装置,其特征在于,所述降噪装置部署于耳机设备,所述耳机设备包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,所述反馈麦克风阵列包括多个反馈麦克风,所述反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合所述位置条件,所述位置条件为所述反馈麦克风阵列的分布平面垂直于所述扬声器和所述出声孔之间的连线,且所述反馈麦克风阵列的中心在所述连线上,所述降噪装置包括:A noise reduction device, characterized in that the noise reduction device is deployed on a headphone device, and the headphone device includes an active noise reduction circuit, a speaker, a sound outlet, and a feedback microphone array, and the feedback microphone array includes a plurality of feedback microphones , the distribution position of the feedback microphone array meets a position condition or meets the position condition after error compensation, and the position condition is that the distribution plane of the feedback microphone array is perpendicular to between the speaker and the sound outlet The connection line, and the center of the feedback microphone array is on the connection line, the noise reduction device includes:
    获取模块,用于获取各所述反馈麦克风分别检测到的第一噪声信号;An acquisition module, configured to acquire the first noise signals respectively detected by each of the feedback microphones;
    降噪模块,用于通过所述主动降噪电路对各所述第一噪声信号进行降噪处理,得到与各所述第一噪声信号的平均信号对应的消噪信号;A noise reduction module, configured to perform noise reduction processing on each of the first noise signals through the active noise reduction circuit, to obtain a noise reduction signal corresponding to an average signal of each of the first noise signals;
    播放模块,用于通过所述扬声器播放所述消噪信号。A playback module, configured to play the noise-canceling signal through the loudspeaker.
  9. 一种耳机设备,其特征在于,所述耳机设备包括主动降噪电路、扬声器、出声孔和反馈麦克风阵列,所述反馈麦克风阵列包括多个反馈麦克风,所述反馈麦克风阵列的分布位置符合一位置条件或经过误差补偿后符合所述位置条件,所述位置条件为所述反馈麦克风阵列的分布平面垂直于所述扬声器和所述出声孔之间的连线,且所述反馈麦克风阵列的中心在所述连线上,所述耳机设备还包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的降噪程序,所述降噪程序被所述处理器执行时实现如权利要求1至7中任一项所述的降噪方法的步骤。An earphone device, characterized in that the earphone device includes an active noise reduction circuit, a speaker, a sound outlet, and a feedback microphone array, the feedback microphone array includes a plurality of feedback microphones, and the distribution positions of the feedback microphone array conform to a The position condition or meet the position condition after error compensation, the position condition is that the distribution plane of the feedback microphone array is perpendicular to the line between the speaker and the sound outlet, and the feedback microphone array Centering on the connection, the earphone device further includes a memory, a processor, and a noise reduction program stored on the memory and operable on the processor, and the noise reduction program is executed by the processor When realizing the steps of the noise reduction method as described in any one of claims 1 to 7.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有降噪程序,所述降噪程序被处理器执行时实现如权利要求1至7中任一项所述的降噪方法的步骤。A computer-readable storage medium, characterized in that a noise reduction program is stored on the computer-readable storage medium, and when the noise reduction program is executed by a processor, the method according to any one of claims 1 to 7 is realized. The steps of the noise reduction method.
PCT/CN2021/138976 2021-09-24 2021-12-17 Noise reduction method and apparatus, earphone device, and storage medium WO2023045130A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111123005.X 2021-09-24
CN202111123005.XA CN113676815B (en) 2021-09-24 2021-09-24 Noise reduction method and device, earphone equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023045130A1 true WO2023045130A1 (en) 2023-03-30

Family

ID=78550046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/138976 WO2023045130A1 (en) 2021-09-24 2021-12-17 Noise reduction method and apparatus, earphone device, and storage medium

Country Status (2)

Country Link
CN (1) CN113676815B (en)
WO (1) WO2023045130A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676815B (en) * 2021-09-24 2022-11-01 歌尔科技有限公司 Noise reduction method and device, earphone equipment and storage medium
CN115278438A (en) * 2022-07-27 2022-11-01 北京爱德发科技有限公司 Noise reduction earphone, noise reduction method and device, storage medium and processor
CN115767345A (en) * 2022-11-11 2023-03-07 歌尔科技有限公司 Noise reduction method, noise reduction device, earphone device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050249355A1 (en) * 2002-09-02 2005-11-10 Te-Lun Chen [feedback active noise controlling circuit and headphone]
US8447045B1 (en) * 2010-09-07 2013-05-21 Audience, Inc. Multi-microphone active noise cancellation system
CN105900452A (en) * 2013-12-03 2016-08-24 伯斯有限公司 Active noise reduction headphone
CN107787589A (en) * 2015-06-22 2018-03-09 索尼移动通讯有限公司 Noise canceling system, earphone and electronic installation
CN113676815A (en) * 2021-09-24 2021-11-19 歌尔科技有限公司 Noise reduction method and device, earphone equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW562382U (en) * 2002-09-02 2003-11-11 Lab9 Inc A feedback type active noise control earphone
JP6574835B2 (en) * 2014-08-29 2019-09-11 ハーマン インターナショナル インダストリーズ インコーポレイテッド Auto calibration noise canceling headphones
EP2996112B1 (en) * 2014-09-10 2018-08-22 Harman Becker Automotive Systems GmbH Adaptive noise control system with improved robustness
EP3419307B1 (en) * 2017-06-19 2020-05-13 Audio-Technica Corporation Headphone
CN112637724B (en) * 2020-12-29 2023-08-08 西安讯飞超脑信息科技有限公司 Earphone noise reduction method, system and storage medium
CN112929807B (en) * 2021-01-25 2022-09-13 深圳市卓翼科技股份有限公司 Method, system, test terminal and storage medium for automatically correcting filter coefficients

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050249355A1 (en) * 2002-09-02 2005-11-10 Te-Lun Chen [feedback active noise controlling circuit and headphone]
US8447045B1 (en) * 2010-09-07 2013-05-21 Audience, Inc. Multi-microphone active noise cancellation system
CN105900452A (en) * 2013-12-03 2016-08-24 伯斯有限公司 Active noise reduction headphone
CN107787589A (en) * 2015-06-22 2018-03-09 索尼移动通讯有限公司 Noise canceling system, earphone and electronic installation
CN113676815A (en) * 2021-09-24 2021-11-19 歌尔科技有限公司 Noise reduction method and device, earphone equipment and storage medium

Also Published As

Publication number Publication date
CN113676815A (en) 2021-11-19
CN113676815B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
WO2023045130A1 (en) Noise reduction method and apparatus, earphone device, and storage medium
KR102266080B1 (en) Frequency-dependent sidetone calibration
US8050421B2 (en) Acoustic correction apparatus and acoustic correction method
TWI611704B (en) Method, system for self-tuning active noise cancellation and headset apparatus
CN110996203B (en) Earphone noise reduction method, device and system and wireless earphone
US20160300562A1 (en) Adaptive feedback control for earbuds, headphones, and handsets
US8249265B2 (en) Method and apparatus for achieving active noise reduction
CN113574593B (en) Tuning method, manufacturing method, computer-readable storage medium, and tuning system
GB2546563A (en) Dynamic frequency-dependent sidetone generation
CN113421540B (en) Active noise reduction method, active noise reduction device and semi-in-ear active noise reduction earphone
TWI796369B (en) Method for determining a response function of a noise cancellation enabled audio device
CN113450754A (en) Active noise cancellation system and method
CN114787911A (en) Noise elimination system and signal processing method of ear-wearing type playing device
EP3671740B1 (en) Method of compensating a processed audio signal
CN113115157B (en) Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone
CN113409754A (en) Active noise reduction method, active noise reduction device and semi-in-ear active noise reduction earphone
CN111464930B (en) Howling detection method and device for earphone and storage medium
US11264004B2 (en) Parallel noise cancellation filters
WO2021016001A1 (en) Input signal-based frequency domain adaptive filter stability control
Huang et al. Directional dependency for feedforward active noise control systems with in-ear headphones
TW202234382A (en) Improved noise partition hybrid type anc system
TWI549525B (en) With three-dimensional effect and to enhance the noise reduction of the environment noise loudspeakers active noise reduction headphones
KR100847453B1 (en) Adaptive crosstalk cancellation method for 3d audio
CN113132846B (en) Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone
US11948546B2 (en) Feed-forward adaptive noise-canceling with dynamic filter selection based on classifying acoustic environment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21958241

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE