CN113132846B - Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone - Google Patents

Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone Download PDF

Info

Publication number
CN113132846B
CN113132846B CN202110393876.7A CN202110393876A CN113132846B CN 113132846 B CN113132846 B CN 113132846B CN 202110393876 A CN202110393876 A CN 202110393876A CN 113132846 B CN113132846 B CN 113132846B
Authority
CN
China
Prior art keywords
sound field
noise reduction
current
field base
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110393876.7A
Other languages
Chinese (zh)
Other versions
CN113132846A (en
Inventor
徐银海
刘益帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ancsonic Technology Co ltd
Original Assignee
Beijing Ancsonic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ancsonic Technology Co ltd filed Critical Beijing Ancsonic Technology Co ltd
Priority to CN202110393876.7A priority Critical patent/CN113132846B/en
Publication of CN113132846A publication Critical patent/CN113132846A/en
Application granted granted Critical
Publication of CN113132846B publication Critical patent/CN113132846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1781Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions
    • G10K11/17813Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions characterised by the analysis of the acoustic paths, e.g. estimating, calibrating or testing of transfer functions or cross-terms
    • G10K11/17817Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions characterised by the analysis of the acoustic paths, e.g. estimating, calibrating or testing of transfer functions or cross-terms between the output signals and the error signals, i.e. secondary path
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K2210/00Details of active noise control [ANC] covered by G10K11/178 but not provided for in any of its subgroups
    • G10K2210/10Applications
    • G10K2210/108Communication systems, e.g. where useful sound is kept and noise is cancelled
    • G10K2210/1081Earphones, e.g. for telephones, ear protectors or headsets

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention provides an active noise reduction method and device for an earphone and a semi-in-ear active noise reduction earphone. The active noise reduction method of the earphone comprises the following steps: acquiring a first sound signal vector acquired by a microphone array arranged on an earphone, wherein the microphone array comprises at least one talking microphone and at least one error microphone for acquiring noise signals in ears; determining a current noise reduction parameter according to the first acoustic signal vector; and determining the noise reduction signal according to the in-ear noise signal and the current noise reduction parameter. The technical scheme provided by the embodiment of the invention can improve the noise reduction effect of the earphone, so that the earphone has excellent wearing experience and noise reduction performance.

Description

Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone
Technical Field
The invention relates to the technical field of active noise reduction, in particular to an active noise reduction method and device for an earphone and a semi-in-ear active noise reduction earphone.
Background
In recent years, earphone markets with active noise reduction function, for example, ear-worn earphone, in-ear earphone, have been continuously developed. The special semi-in-ear earphone is popular with certain users because of the advantages of comfortable wearing, cleanness, no foreign matter feeling, no stethoscope effect and the like.
However, the poor closure between the semi-in-ear headphones and the human ear canal results in acoustic leakage, with little passive noise reduction; if the same active noise reduction scheme as that of a general in-ear earphone is adopted, the active noise reduction effect of the half-in-ear earphone is poor.
Disclosure of Invention
In view of this, the embodiments of the present invention provide an active noise reduction method and apparatus for an earphone, and a semi-in-ear active noise reduction earphone, which can improve the noise reduction effect of the earphone, so that the earphone has excellent wearing experience and noise reduction performance.
According to a first aspect of an embodiment of the present invention, there is provided an active noise reduction method for an earphone, including: acquiring a first sound signal vector acquired by a microphone array arranged on an earphone, wherein the microphone array comprises at least one talking microphone and at least one error microphone for acquiring noise signals in ears; determining a current noise reduction parameter according to the first acoustic signal vector; and determining the noise reduction signal according to the in-ear noise signal and the current noise reduction parameter.
In some embodiments of the present invention, determining the current noise reduction parameter according to the first acoustic signal vector includes: determining a reference sound field base coefficient vector according to a calibrated sound field base matrix corresponding to the microphone array and the first sound signal vector; determining a current sound field base matrix corresponding to the microphone array according to the relation between a reference sound field base coefficient vector and a calibrated sound field base coefficient vector, wherein the calibrated sound field base coefficient vector is determined according to a calibrated sound field base matrix and a second sound signal vector acquired by the microphone array in a pre-calibrated environment; determining a current sound field base coefficient vector in a current use environment according to the current sound field base matrix and the first sound signal vector; and determining the current noise reduction parameters according to the current sound field base coefficient vector.
In some embodiments of the present invention, determining the current noise reduction parameter according to the current sound field base coefficient vector includes: a. according to the current sound field base coefficient vector, adjusting the calibrated noise reduction coefficient; b. determining an updated first acoustic signal vector based on the adjusted calibrated noise reduction coefficient; c. determining an updated current sound field base coefficient vector based on the current sound field base matrix and the updated first sound signal vector; d. when the updated current sound field base coefficient vector does not meet the preset optimal condition, adjusting the adjusted calibration noise reduction coefficient; e. and b, iteratively executing the steps b, c and d until the updated current sound field base coefficient vector meets the preset optimal condition, and determining the current adjusted calibrated noise reduction coefficient as the current noise reduction coefficient.
In some embodiments of the present invention, the iteratively executing steps b, c, and d until the updated current sound field base coefficient vector meets a preset optimal condition, determining the current adjusted calibrated noise reduction coefficient as the current noise reduction coefficient includes: b, c and d are carried out in the ith iteration to obtain a current sound field base coefficient vector updated for 1 time, a current sound field base coefficient vector updated for 2 times, …, a current sound field base coefficient vector updated for i-1 times and a current sound field base coefficient vector updated for i times; judging whether a preset objective function converges to a minimum value according to the current sound field base coefficient vector updated for 1 time, the current sound field base coefficient vector updated for 2 times, …, the current sound field base coefficient vector updated for i-1 times and the current sound field base coefficient vector updated for i times; and when the preset objective function converges to the minimum value, determining the current adjusted calibration noise reduction coefficient as the current noise reduction coefficient.
In some embodiments of the present invention, the calibrated noise reduction coefficient is determined in a pre-calibrated environment by: a. according to the base coefficient vector of the calibrated sound field, the initial noise reduction coefficient is adjusted; b. determining an updated second sound signal vector based on the adjusted initial noise reduction coefficient; c. determining an updated calibration sound field base coefficient vector based on the calibration sound field base matrix and the updated second sound signal vector; d. when the updated calibrated sound field base coefficient vector does not meet the preset optimal condition, the adjusted initial noise reduction coefficient is adjusted; e. and b, iteratively executing the steps b, c and d until the updated calibrated sound field base coefficient vector meets the preset optimal condition, and determining the current adjusted initial noise reduction coefficient as the calibrated noise reduction coefficient.
In some embodiments of the present invention, the determining the current sound field base matrix corresponding to the microphone array according to the relationship between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector includes: under the condition that the complexity of the sound field where the earphone is currently located is consistent with the complexity of the sound field when the calibrated sound field base matrix is determined in a pre-calibrated environment, determining the current sound field base matrix according to the relation between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector.
In some embodiments of the present invention, determining the noise reduction signal according to the in-ear noise signal and the current noise reduction parameter includes: determining an ambient noise signal transmitted to the error microphone according to the in-ear noise signal, a playing signal of a loudspeaker arranged on the earphone and a secondary acoustic path of the earphone; the noise reduction signal is determined based on the ambient noise signal delivered to the error microphone and the current noise reduction parameters.
According to a second aspect of an embodiment of the present invention, there is provided an active noise reduction device for an earphone, including: a microphone array for collecting a first acoustic signal vector, wherein the microphone array comprises at least one talk microphone and at least one error microphone for collecting an in-ear noise signal; the first determining module is used for determining the current noise reduction parameters according to the first sound signal vector; and the second determining module is used for determining the noise reduction signal according to the in-ear noise signal and the current noise reduction parameter.
According to a third aspect of embodiments of the present invention, there is provided a semi-in-the-ear active noise reduction earphone comprising an active noise reduction device of the earphone as described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable storage medium comprising computer instructions stored thereon, which when executed by a processor, cause the processor to perform the active noise reduction method of a headset of any of the above.
According to a fifth aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor; the memory including computer instructions stored thereon that, when executed by the processor, cause the processor to perform the active noise reduction method of the headset of any of the embodiments described above.
According to the technical scheme provided by the embodiment of the invention, the first sound signal vector acquired by the microphone array arranged on the earphone is acquired, wherein the microphone array comprises at least one talking microphone and at least one error microphone for acquiring noise signals in ears; determining a current noise reduction parameter according to the first acoustic signal vector; according to the in-ear noise signals and the current noise reduction parameters, the noise reduction signals are determined, and the active noise reduction parameters can be determined by combining the acoustic signals collected by the call microphone and the in-ear noise signals collected by the error microphone, so that the noise reduction effect of the feedback active noise reduction earphone is greatly improved, and the active noise reduction earphone has excellent wearing experience and noise reduction performance.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an earphone according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an active noise reduction method of an earphone according to an embodiment of the invention.
Fig. 3 is a schematic structural diagram of an earphone according to another embodiment of the present invention.
Fig. 4 is a flowchart illustrating an active noise reduction method of an earphone according to another embodiment of the invention.
Fig. 5 is a flowchart illustrating an active noise reduction method of an earphone according to another embodiment of the invention.
Fig. 6 is a flowchart illustrating an active noise reduction method of an earphone according to another embodiment of the invention.
Fig. 7 is a flowchart illustrating an active noise reduction method of an earphone according to another embodiment of the invention.
Fig. 8 is a block diagram of an active noise reduction device of an earphone according to an embodiment of the invention.
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For ease of understanding, related concepts and the like that may be related to the embodiments of the present application will be briefly described below.
An open space sound field is formed between the auricle of the user and the active noise reduction earphone. Acoustic signal vector collected by microphone arrayThe frequency components can be obtained by Fast Fourier Transform (FFT)Where m=1, 2,3,..m, M is the number of FFT points and i is the number of microphones in the microphone array. /(I)Can be described by the following formula (1):
Wherein, Is the sound field basis matrix (corresponding to frequency f m) described by the locations of the microphone arrays (i microphones). Wherein/>The sound field basis vector (corresponding to frequency f m),φi,N(fm) for the spatial point where the i-th microphone is located is the nth order sound field basis (corresponding to frequency f m) for the spatial point, representing the nth order mode shape.
It should be noted that, the sound field base matrix may be determined according to the wave equation and the earphone-ear channel sound field boundary condition, which will not be described herein. The sound field base can be determined by a plurality of different basis functions such as sound radiation modes, cavity modes, multipoles and the like, and a person skilled in the art can correspondingly select specific basis function types and mode orders according to the use scene.
Is the sound field base coefficient vector (corresponding to frequency f m) of the open space.
Each frequency component is expressed by the following formula (2)Multiplying the generalized inverse matrix psi D,N×i -1(fm) of the sound field base matrix psi i×N(fm) to obtain a sound field base coefficient vector/>, under the corresponding frequency
In the active noise reduction process, the acoustic signals are acquired through sensors such as a microphone, however, the microphone can acquire information such as intensity, frequency and the like of the sound and lose a part of information, such as propagation relations among different angles and different positions. Particularly, in an uneven sound field, mutual influence necessarily exists among all spatial points, and the information acquired by the microphone cannot be accurately reflected only, so that the full view of the sound field cannot be accurately restored. Therefore, the application converts the processing mode of single dimension (microphone observation) into the processing mode of double dimension (microphone observation+sound field modal decomposition) according to the sound signals collected by the microphones at each space point in the sound field and the multi-order modes corresponding to each space point, so as to more accurately restore the sound field overall view and improve the accuracy of the active noise reduction algorithm.
Fig. 1 is a schematic structural diagram of an earphone according to an embodiment of the present invention.
The headset includes a microphone array (including at least one talk microphone 110 and at least one error microphone 120), a speaker 130, and a computing module 140.
The talk microphone 110 is used for collecting sound signals such as voice signals and noise signals. The error microphone 120 is disposed near the auditory canal of the user, and is used for collecting the in-ear noise signal e. The computing module 140 is configured to receive an acoustic signal vector collected by the microphone array (including an acoustic signal collected by the call microphone 110 and an in-ear noise signal e collected by the error microphone 120), and determine a noise reduction coefficient W according to the acoustic signal vector; calculating a noise reduction signal y according to the in-ear noise signal e and the noise reduction coefficient W, and transmitting the noise reduction signal y to the loudspeaker 130; speaker 130 is configured to play noise-reduced sound waves based on the received noise-reduced signal y and/or is configured to play audio signal s.
The path shown by the broken line in fig. 1 represents the propagation path of an acoustic signal other than the circuit. Specifically, the space between the earphone's housing curved surface and the error microphone 120 forms a primary path, and the speaker 130 itself and the space between the speaker 130 and the error microphone 120 together form a secondary path. The primary path and the secondary path have respective transfer functions, wherein the transfer function of the primary path is the transfer function of the space between the housing curved surface of the earphone and the error microphone, denoted as P, and the transfer function of the secondary path is the transfer function of the electroacoustic conversion of the speaker 130 and the transfer function of the diaphragm surface of the speaker 130 to the air between the error microphone 120, denoted as G.
Fig. 2 is a flowchart illustrating an active noise reduction method of an earphone according to an embodiment of the invention. The method may be performed by a computer device. As shown in fig. 2, the method includes the following.
S110: the method comprises the steps of obtaining a first sound signal vector collected by a microphone array arranged on an earphone, wherein the microphone array comprises at least one talking microphone and at least one error microphone for collecting noise signals in ears.
The earphone can be a feedback active noise reduction earphone, wherein the conversation microphone is used for collecting sound signals such as voice signals and noise signals. The error microphone is arranged at a position close to the auditory canal of the user and is used for collecting noise signals in the ear. It should be appreciated that the microphone array described above may include some or all of the microphones on the feedback active noise reduction headphones. The present invention is not particularly limited as to the types of microphones and the number of microphones included in the microphone array.
S120: and determining the current noise reduction parameter according to the first sound signal vector.
Specifically, a current sound field base coefficient vector in a current use environment may be determined according to the first sound signal vector and the current sound field base matrix, and when the current sound field base coefficient vector does not meet a preset optimal condition, the calibration noise reduction coefficient W 0 may be iteratively adjusted until the updated current sound field base coefficient vector meets the preset optimal condition, where the updated calibration noise reduction parameter may be used as the current noise reduction parameter W 1.
S130: and determining the noise reduction signal according to the current noise reduction parameter and the in-ear noise signal.
Specifically, a noise reduction signal for canceling the in-ear noise signal may be determined according to the in-ear noise signal e and the current noise reduction parameter W 1, and played through a speaker.
According to the technical scheme provided by the embodiment of the invention, the first sound signal vector acquired by the microphone array arranged on the earphone is acquired, wherein the microphone array comprises at least one talking microphone and at least one error microphone for acquiring noise signals in ears; determining a current noise reduction parameter according to the first acoustic signal vector; according to the in-ear noise signals and the current noise reduction parameters, the noise reduction signals are determined, and the active noise reduction parameters can be determined by combining the acoustic signals collected by the call microphone and the in-ear noise signals collected by the error microphone, so that the noise reduction effect of the feedback active noise reduction earphone is greatly improved, and the active noise reduction earphone has excellent wearing experience and noise reduction performance.
In another embodiment of the present invention, determining the noise reduction signal according to the in-ear noise signal and the current noise reduction parameter includes: determining an ambient noise signal transmitted to the error microphone according to the in-ear noise signal, a playing signal of a loudspeaker arranged on the earphone and a secondary acoustic path of the earphone; the noise reduction signal is determined based on the ambient noise signal delivered to the error microphone and the current noise reduction parameters.
Specifically, the in-ear noise signal may be used to subtract the signal that the playback signal of the speaker reaches the error microphone after propagating through the secondary acoustic path, so as to determine the ambient noise signal that is transmitted to the error microphone; the noise reduction signal may then be determined from the ambient noise signal delivered to the error microphone and the current noise reduction parameters.
Fig. 3 is a schematic structural diagram of an earphone according to another embodiment of the present invention. Fig. 4 is a flowchart illustrating an active noise reduction method of an earphone according to another embodiment of the invention. The embodiment of the present invention shown in fig. 4 is extended from the embodiment of the present invention shown in fig. 2, and differences between the embodiment of fig. 4 and the embodiment of fig. 2 are described with reference to fig. 3, which are not repeated.
As shown in fig. 3, the headset includes a microphone array (including at least one talk microphone 110 and at least one error microphone 120), a speaker 130, a sound field base coefficient calculation module 141, a verification module 150, an adaptation module 160 (e.g., an LMS module), a noise reduction signal generation module 170, a superposition module 180, and a superposition module 190.
The path shown by the broken line represents the propagation path of the acoustic signal other than the circuit. Specifically, the space between the earphone's housing curved surface and the error microphone 120 forms a primary path, and the speaker 130 itself and the space between the speaker 130 and the error microphone 120 together form a secondary path. The transfer function of the primary path is P and the transfer function of the secondary path is G.A transfer function for a secondary path modeled by the circuit, i.e., a transfer function including electroacoustic conversion of speaker 130 and a transfer function in air between the diaphragm face of speaker 130 to error microphone 120.
The superposition module 180 is configured to superimpose the audio signal s to be played and the noise reduction signal y, and transmit the superimposed audio signal s and the noise reduction signal y to the speaker 130 for playing. The superimposed audio signal s and noise reduction signal y pass through the secondary path to the error microphone 120, and the ambient noise signal x (not observed) passes through the primary path to the error microphone 120, both of which are superimposed at the error microphone 120 to form an in-ear noise signal (containing an audio component).
In addition, the superimposed audio signal s and noise reduction signal y passThe circuit reaches the superposition module 190. The superposition module 190 is used to receive the pass/>The post-circuit signal is inverted and superimposed with the in-ear noise signal collected by the error microphone 120 to obtain the ambient noise signal (i.e., the ambient noise signal passing through the primary path), xP, that is, the ambient noise signal delivered to the error microphone.
The noise reduction signal generating module 170 is configured to receive the restored environmental noise signal xP passing through the primary path, calculate a noise reduction signal y according to the environmental noise signal xP passing through the primary path and the noise reduction coefficient W, and transmit the noise reduction signal y to the speaker 130; speaker 130 is configured to play noise-reduced sound waves based on the received noise-reduced signal y and/or is configured to play audio signal s.
The sound field base coefficient calculating module 140 is configured to calculate a first sound signal vector based on the microphone arrayAnd a known generalized inverse matrix ψ D,N×i,0 -1(fm of a calibrated sound field basis matrix ψ i×N,0(fm), a reference sound field basis coefficient vector/>, under the corresponding frequency, is calculatedSee formula (2) above. The verification module 150 is used for/>Calibration sound field base matrix ψ i×N,0(fm) for the current application is checked or corrected to determine the current sound field base matrix ψ i×N,1(fm in the current use environment. Then, the sound field base coefficient calculation module 140 is configured to calculate the sound field base coefficient according to the first sound signal vector/>And the generalized inverse matrix ψ D,N×i,1 -1(fm) of the current sound field basis matrix ψ i×N,1(fm) to solve for the current sound field basis coefficient vector/>The adaptive module 160 is configured to instruct to adjust the noise reduction coefficient until the updated current sound field base coefficient vector meets a preset optimal condition, and determine the current adjusted noise reduction coefficient as a final noise reduction coefficient.
Specifically, as shown in fig. 4, in the active noise reduction method of the earphone according to the embodiment of the present invention, the step S120 may include steps S210 to S240.
S210: and determining a reference sound field base coefficient vector according to the calibrated sound field base matrix corresponding to the microphone array and the first sound signal vector.
In the embodiment of the present invention, the calibration sound field base matrix ψ i×N,0(fm) may be predetermined. In the actual use stage of the active noise reduction earphone, the microphone array acquires a first acoustic signal vector at a real-time positionBased on the first acoustic signal vector/>, as shown in the following formula (3)And the generalized inverse matrix psi D,N×i,0 -1(fm) of the calibrated sound field base matrix psi i×N,0(fm) can be calculated to obtain a reference sound field base coefficient vector/>
S220: and determining a current sound field base matrix corresponding to the microphone array according to the relation between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector, wherein the calibrated sound field base coefficient vector is determined according to the calibrated sound field base matrix and a second sound signal vector acquired by the microphone array in a pre-calibrated environment.
It should be noted that, the calibration of the sound field base coefficient vector may be completed in a pre-calibration stage before the earphone leaves the factory. Specifically, the active noise reduction earphone can be placed in the auditory canal of the artificial head to enable the microphone array to be in a calibration position, and a second sound signal vector is acquiredThen based on the second sound signal vector/>, according to the following equation (4)And a known generalized inverse matrix ψ D,N×i,0 -1(fm) of the nominal sound field basis matrix ψ i×N,0(fm), the nominal sound field basis coefficient vector/>, is solved
Because different user auditory canals have differences, and the wearing positions, angles and the like of the users have differences, the real-time position of the active noise reduction earphone in the actual use stage cannot be ensured to be the same as the calibration position in the pre-calibration stage, so that the active noise reduction earphone needs to be based onCalibration sound field base matrix ψ i×N,0(fm) for the current application is checked or corrected to determine the current sound field base matrix ψ i×N,1(fm in the current use environment.
In particular, the reference sound field basis coefficient vector can be comparedAnd calibrating the sound field base coefficient vector/>According to, for example, </>, the relationAnd/>Whether a preset condition is satisfied or not is determined to determine a current sound field basis matrix ψ i×N,1(fm corresponding to the microphone array). For example, when/>And/>When the preset condition is met, the calibrated sound field base matrix can be determined as the current sound field base matrix; when/>And/>And when the preset condition is not met, correcting the calibrated sound field base matrix, and determining the current sound field base matrix again.
S230: and determining a current sound field base coefficient vector in the current use environment according to the current sound field base matrix and the first sound signal vector.
Specifically, the first acoustic signal vector may be based on according to equation (5)And the generalized inverse matrix ψ D,N×i,1 -1(fm) of the current sound field basis matrix ψ i×N,1(fm) to solve for the current sound field basis coefficient vector/>
S240: and determining the current noise reduction parameters according to the current sound field base coefficient vector.
For example, the base coefficient vector may be based on the current sound fieldAnd adjusting the calibration noise reduction coefficient W 0, and determining an updated noise reduction signal by adopting the adjusted calibration noise reduction coefficient. The speaker plays the updated noise reduction signal, and the microphone array can collect the updated first sound signal vector. Then, an updated current sound field basis coefficient vector is determined based on the current sound field basis matrix and the updated first sound signal vector. When the updated current sound field base coefficient vector does not meet the preset optimal condition, the adjusted calibration noise reduction coefficient can be adjusted again; and repeating the iterative process until the updated current sound field base coefficient vector meets the preset optimal condition, and stopping adjustment, and determining the current adjusted calibration noise reduction coefficient as a final noise reduction coefficient W 1.
It should be noted that, the above iterative process may be implemented by using an adaptive algorithm, for example, an LMS (LEAST MEAN Square) algorithm, etc., until the updated current sound field base coefficient vector meets the preset optimal condition. It should be appreciated that embodiments of the present application are not particularly limited as to the algorithm that is actually employed.
According to the technical scheme provided by the embodiment of the application, the position and the gesture of the earphone in the user auditory canal can be detected in real time, when the difference between the current position and the gesture of the earphone and the calibration position is large when the calibration sound field base matrix is determined, the calibration sound field base matrix can be adjusted to obtain the current sound field base matrix, the self-adaptive noise reduction coefficient is further obtained until the updated current sound field base coefficient vector meets the preset optimal condition, and the current adjusted noise reduction coefficient is determined to be the final noise reduction coefficient, namely, the noise reduction parameters can be adjusted in real time according to the position and the gesture of the earphone in the user auditory canal so as to meet different noise reduction requirements of different users in different use states, so that the active noise reduction earphone has excellent wearing experience and noise reduction performance. In addition, the embodiment of the application utilizes the sound field base matrix to obtain the multi-order mode corresponding to the sound signal, and reconstructs the information lost by the microphone, so that the sound field overall view can be restored more accurately, the precision of an active noise reduction algorithm is improved, and the noise reduction effect of the active noise reduction earphone is improved.
Fig. 5 is a flowchart illustrating an active noise reduction method of an earphone according to another embodiment of the invention. The method may be performed by a computer device. The embodiment of fig. 5 of the present invention is extended from the embodiment of fig. 2 of the present invention, and differences between the embodiment of fig. 5 and the embodiment of fig. 2 are emphasized below, which will not be repeated.
As shown in fig. 5, in the active noise reduction method of the earphone according to the embodiment of the present application, the step S120 may include steps S310 to S350.
S310: and determining a reference sound field base coefficient vector according to the calibrated sound field base matrix corresponding to the microphone array and the first sound signal vector.
S320: when the relation between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector does not meet the preset condition, determining the current sound field base matrix according to the nonlinear difference between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector.
In one embodiment of the present invention, the preset condition is used to characterize that the reference sound field base coefficient vector and the calibrated sound field base coefficient vector are linearly related. For example, it can be judged according to the following formula (6)And calibrating the base coefficient vector of the sound fieldWhether or not the correlation is linear, that is, whether or not the following expression (6) holds.
Wherein,Representing reference sound field basis coefficient vector,/>Representing the scaled sound field basis coefficient vector,/>Representing a preset deviation threshold vector, λ being a constant, f m representing frequency.
Specifically, when "+.ltoreq" in the above formula (6) is not established, it is indicated that the sound field structure of the active noise reduction earphone currently formed in the ear canal is not similar to that of the pre-calibration, and thus, the calibration sound field base matrix ψ i×N,0(fm) is not a true current sound field base matrix, and it is necessary to re-determine the current sound field base matrix.
In particular, it can be based onAnd/>Nonlinear difference between/>The true current sound field basis matrix psi i×N,1(fm is determined).
S330: and when the relation between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector meets a preset condition, determining the calibrated sound field base matrix as the current sound field base matrix.
That is, when "+.ltoreq." in the above formula (6) is established, it is indicated that the sound field structure of the active noise reduction headphones currently formed in the ear canal is similar to that at the time of the pre-calibration, at which time the calibration sound field base matrix ψ i×N,0(fm) may be regarded as the current sound field base matrix.
S340: and determining a current sound field base coefficient vector in the current use environment according to the current sound field base matrix and the first sound signal vector.
Specifically, the first acoustic signal vector may be based on according to the above equation (5)And ψ i×N,1(fm) generalized inverse matrix ψ D,N×i,1 -1(fm) solving for the current sound field basis coefficient vector/>
S350: and determining the current noise reduction parameters according to the current sound field base coefficient vector.
For example, when "+.ltoreq" in the above formula (6) is established, the sound field structure of the active noise reduction earphone currently formed in the ear canal is similar to that when calibrated in advance, and the calibrated sound field base matrix ψ i×N,0(fm) is the current sound field base matrix. At this time, the noise reduction parameters of the current active noise reduction earphone may be consistent with the preset calibration noise reduction parameters.
When the sound field structure formed in the auditory canal of the active noise reduction earphone is not similar to that of the active noise reduction earphone when the sound field structure is not more than or equal to the preset standard, the standard sound field base matrix is not the actual current sound field base matrix, and the current sound field base matrix and the current noise reduction parameters can be redetermined.
Specifically, as shown in fig. 6, the above step S350 may include steps S351 to S355.
S351: and adjusting the calibrated noise reduction coefficient according to the current sound field base coefficient vector.
S352: and determining an updated first acoustic signal vector based on the adjusted calibrated noise reduction coefficient.
S353: and determining an updated current sound field base coefficient vector based on the current sound field base matrix and the updated first sound signal vector.
S354: and when the updated current sound field base coefficient vector does not meet the preset optimal condition, adjusting the adjusted calibration noise reduction coefficient.
S355: and iteratively executing the steps S352 to S354 until the updated current sound field base coefficient vector meets the preset optimal condition, and determining the current adjusted calibrated noise reduction coefficient as the current noise reduction coefficient.
In an embodiment of the present invention, whether the current sound field base coefficient vector meets the preset optimal condition may be determined by setting an objective function. The iterative process may be implemented using an adaptive algorithm, such as an LMS (LEAST MEAN Square) algorithm. For example, the objective function may be:
Wherein,
Wherein T represents transposition operation, E represents mathematical expectation, and k is the number of iterative computation of the noise reduction parameters. It should be understood that the expression may also be in the frequency domainThe above objective function is represented, and the present invention is not particularly limited thereto.
Specifically, the current sound field base coefficient vector can be based on the following equation (7) and equation (9)Adjusting the calibration noise reduction coefficient W (0) (also can be marked as W 0) to obtain W (1); determining a noise reduction signal based on W (1), and further acquiring an updated first acoustic signal vector/>, acquired by the microphone arrayAccording to equation (8) above, the generalized inverse matrix ψ D,N×i,1 -1(fm) based on the current sound field basis matrix ψ i×N,1(fm) and the updated first sound signal vector/>Determining an updated current sound field basis coefficient vectorAccording to the updated current sound field base coefficient vector/>Calculating an objective function J (1), and stopping iteration if the objective function J (1) converges to a minimum value; if the objective function J (1) does not converge to the minimum value, the noise reduction parameter is adjusted again according to the formula (9) to obtain W (2), the noise reduction signal is determined based on the W (2), and then the updated first acoustic signal vector acquired by the microphone array is acquiredAnd so on. And repeating the iterative process until the objective function corresponding to the updated current sound field base coefficient vector converges to the minimum value, and at this time, determining the current adjusted calibration noise reduction coefficient as the current noise reduction coefficient W 1.
Specifically, as shown in fig. 7, in an embodiment, the step S355 may include:
s3551: after the i-th iteration is performed in steps S352 to S354, a current sound field base coefficient vector updated 1 time, a current sound field base coefficient vector updated 2 times, …, a current sound field base coefficient vector updated i-1 times, and a current sound field base coefficient vector updated i times are obtained.
S3552: judging whether the preset objective function converges to a minimum value according to the current sound field base coefficient vector updated for 1 time, the current sound field base coefficient vector updated for 2 times, …, the current sound field base coefficient vector updated for i-1 times and the current sound field base coefficient vector updated for i times.
S3553: and when the preset objective function converges to the minimum value, determining the current adjusted calibration noise reduction coefficient as the current noise reduction coefficient.
Specifically, for example, when the time domain is calculated, in the ith iteration, it may be determined whether the square of the 2-norm of the current sound field base coefficient vector converges to the minimum value according to the above objective function. If the judgment result is yes, ending the iteration; if the judgment result is negative, the (i+1) th iteration is entered.
It should be noted that, the calibration noise reduction coefficient may be any set of coefficient values preset for a person; or may be obtained by iteratively adjusting the initial noise reduction parameters, which is not particularly limited by the present invention.
Specifically, the calibration noise reduction coefficient may be determined in a pre-calibration environment before the earphone leaves the factory by:
s410: according to the base coefficient vector of the calibrated sound field, the initial noise reduction coefficient is adjusted;
S420: determining an updated second sound signal vector based on the adjusted initial noise reduction coefficient;
S430: determining an updated calibration sound field base coefficient vector based on the calibration sound field base matrix and the updated second sound signal vector;
S440: when the updated calibrated sound field base coefficient vector does not meet the preset optimal condition, the adjusted initial noise reduction coefficient is adjusted;
S450: and iteratively executing the steps S420 to S440 until the updated calibrated sound field base coefficient vector meets the preset optimal condition, and determining the current adjusted initial noise reduction coefficient as the calibrated noise reduction coefficient.
It should be understood that the steps S410 to S450 for obtaining the calibrated noise reduction coefficient are similar to the steps S351 to S355, and are not repeated herein.
According to the technical scheme provided by the embodiment of the invention, when the relation between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector does not meet the preset condition, the current sound field base matrix is determined according to the nonlinear difference between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector; when the relation between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector meets a preset condition, determining the calibrated sound field base matrix as a current sound field base matrix; the active noise reduction earphone can determine the current sound field base matrix according to the position and the gesture of the earphone in the auditory canal of the user in real time, and then adaptively adjust the active noise reduction parameters, so that different noise reduction requirements of different users in different use states can be met, and the active noise reduction earphone has excellent wearing experience and noise reduction performance.
In an embodiment of the present invention, determining the current sound field base matrix corresponding to the microphone array according to the relationship between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector includes: under the condition that the complexity of the sound field where the active noise reduction earphone is currently located is consistent with the complexity of the sound field when the calibrated sound field base matrix is determined in a pre-calibrated environment, determining the current sound field base matrix according to the relation between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector.
Note that, the complexity of the sound field N 2 when the speaker is engaged (playing the audio signal s and/or the noise reduction signal y) is greater than the complexity of the sound field N 1 when the speaker is not engaged (the speaker is not playing the audio signal and/or the noise reduction signal, and the earphone is only passively sound-insulating), that is, N 2>N1.
In short, when the active noise reduction earphone redetermines the current sound field base matrix under the current use environment, the current sound field condition is required to be ensured to be the same as the sound field condition when the calibrated sound field base matrix is determined, so that the accuracy of an active noise reduction algorithm is ensured. For example, if the calibrated sound field base matrix is determined in a pre-calibrated environment, the speakers do not participate, and thus when the current sound field base matrix is re-determined in the current use environment, the determination needs to be made when the speakers do not participate.
Specifically, in the absence of the loudspeaker, the circuit W between the error microphone and the loudspeaker is open and the secondary path G is meaningless, the headphones of the pre-calibration stage being based on the acquired second sound signal vector and the known calibration sound field basis matrix in the calibration noise environmentSolving the calibrated sound field base coefficient vector/>Then the circuit W is turned on to start active noise reduction (i.e. playing noise reduction signal), and according to the above steps S310-S350, based on/>Iterating to obtain a calibrated noise reduction parameter W 0; in the actual noise environment, the earphone in the actual use stage also determines the current sound field base matrix when the loudspeaker is not engagedCurrent sound field basis coefficient vector/>The circuit W is then turned on to calibrate the noise reduction parameter W 0 to begin active noise reduction and based on/>Iterative adjustment W 0 results in real-time optimal noise reduction parameters W 1.
When the loudspeaker only plays the audio signal s, the circuit W is broken but a secondary path G exists, and the earphone in the pre-calibration stage is based on the collected second sound signal vector in the noise calibration environmentAnd a known calibrated sound field basis matrixSolving the calibrated sound field base coefficient vector/>Then the circuit W is turned on to start active noise reduction (i.e. playing noise reduction signal), and according to the above steps S310-S350, based on/>Iteration is carried out to obtain a calibration noise reduction coefficient W 0; in the actual noise environment, the earphone in the actual use stage determines the current sound field base matrix when the loudspeaker only plays the audio signal sCurrent sound field basis coefficient vector/>The circuit W is then turned on to calibrate the noise reduction parameter W 0 to begin active noise reduction and based on/>Iterative adjustment W 0 results in real-time optimal noise reduction parameters W 1.
When the noise reduction signal y is played by the loudspeaker, the circuit W is connected with the secondary path G, and the earphone in the pre-calibration stage is based on the known calibration sound field base matrix in the calibration noise environmentAnd a second acoustic signal vector/>, acquired in real time under active noise reductionCalculating the calibrated sound field base coefficient vector/>, at the corresponding momentSimultaneously according to the steps S310 to S350, based on/>Iteration is carried out to obtain a calibration noise reduction coefficient W 0; in the actual noise environment, the earphone in the actual use stage actively reduces noise by W 0 when the noise reduction signal y is played by the loudspeaker, and the current sound field base matrix/>Current sound field basis coefficient vector/>Then based on/>Iterative adjustment W 0 results in real-time optimal noise reduction parameters W 1.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present invention, which is not described herein.
The following are examples of the apparatus of the present invention that may be used to perform the method embodiments of the present invention. For details not disclosed in the embodiments of the apparatus of the present invention, please refer to the embodiments of the method of the present invention.
Fig. 8 is a block diagram of an active noise reduction device of an earphone according to an embodiment of the invention. As shown in fig. 8, the active noise reduction device 800 of the earphone includes:
a microphone array 810 for collecting a first acoustic signal vector, wherein the microphone array comprises at least one talk microphone and at least one error microphone for collecting an in-ear noise signal;
a first determining module 820, configured to determine a current noise reduction parameter according to the first acoustic signal vector;
the second determining module 830 is configured to determine a noise reduction signal according to the in-ear noise signal and the current noise reduction parameter.
According to the technical scheme provided by the embodiment of the invention, the first sound signal vector acquired by the microphone array arranged on the earphone is acquired, wherein the microphone array comprises at least one talking microphone and at least one error microphone for acquiring noise signals in ears; determining a current noise reduction parameter according to the first acoustic signal vector; according to the in-ear noise signals and the current noise reduction parameters, the noise reduction signals are determined, and the active noise reduction parameters can be determined by combining the acoustic signals collected by the call microphone and the in-ear noise signals collected by the error microphone, so that the noise reduction effect of the feedback active noise reduction earphone is greatly improved, and the active noise reduction earphone has excellent wearing experience and noise reduction performance.
In some embodiments of the present invention, the first determining module 820 is configured to determine a reference sound field base coefficient vector according to a calibration sound field base matrix corresponding to the microphone array and the first sound signal vector; determining a current sound field base matrix corresponding to the microphone array according to the relation between a reference sound field base coefficient vector and a calibrated sound field base coefficient vector, wherein the calibrated sound field base coefficient vector is determined according to a calibrated sound field base matrix and a second sound signal vector acquired by the microphone array in a pre-calibrated environment; determining a current sound field base coefficient vector in a current use environment according to the current sound field base matrix and the first sound signal vector; and determining the current noise reduction parameters according to the current sound field base coefficient vector.
In some embodiments of the present invention, the first determining module 820 is configured to: a. according to the current sound field base coefficient vector, adjusting the calibrated noise reduction coefficient; b. determining an updated first acoustic signal vector based on the adjusted calibrated noise reduction coefficient; c. determining an updated current sound field base coefficient vector based on the current sound field base matrix and the updated first sound signal vector; d. when the updated current sound field base coefficient vector does not meet the preset optimal condition, adjusting the adjusted calibration noise reduction coefficient; e. and b, iteratively executing the steps b, c and d until the updated current sound field base coefficient vector meets the preset optimal condition, and determining the current adjusted calibrated noise reduction coefficient as the current noise reduction coefficient.
In some embodiments of the present invention, the first determining module 820 is configured to: b, c and d are carried out in the ith iteration to obtain a current sound field base coefficient vector updated for 1 time, a current sound field base coefficient vector updated for 2 times, …, a current sound field base coefficient vector updated for i-1 times and a current sound field base coefficient vector updated for i times; judging whether a preset objective function converges to a minimum value according to the current sound field base coefficient vector updated for 1 time, the current sound field base coefficient vector updated for 2 times, …, the current sound field base coefficient vector updated for i-1 times and the current sound field base coefficient vector updated for i times; and when the preset objective function converges to the minimum value, determining the current adjusted calibration noise reduction coefficient as the current noise reduction coefficient.
In some embodiments of the present invention, the calibrated noise reduction coefficient is determined in a pre-calibrated environment by: a. according to the base coefficient vector of the calibrated sound field, the initial noise reduction coefficient is adjusted; b. determining an updated second sound signal vector based on the adjusted initial noise reduction coefficient; c. determining an updated calibration sound field base coefficient vector based on the calibration sound field base matrix and the updated second sound signal vector; d. when the updated calibrated sound field base coefficient vector does not meet the preset optimal condition, the adjusted initial noise reduction coefficient is adjusted; e. and b, iteratively executing the steps b, c and d until the updated calibrated sound field base coefficient vector meets the preset optimal condition, and determining the current adjusted initial noise reduction coefficient as the calibrated noise reduction coefficient.
In some embodiments of the present invention, the first determining module 820 is configured to determine the current sound field base matrix according to a relationship between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector under a condition that the complexity of the sound field in which the earphone is currently located is consistent with the complexity of the sound field when the calibrated sound field base matrix is determined in the pre-calibrated environment.
In some embodiments of the present invention, the second determining module 830 is configured to determine an ambient noise signal delivered to the error microphone according to the in-ear noise signal, a playing signal of a speaker provided on the earphone, and a secondary acoustic path of the earphone; the noise reduction signal is determined based on the ambient noise signal delivered to the error microphone and the current noise reduction parameters.
In another embodiment of the present invention, a semi-in-the-ear active noise reduction headset is provided, including an active noise reduction device for a headset as provided in the embodiment of fig. 8.
According to the technical scheme provided by the embodiment of the invention, the noise reduction effect of the semi-in-ear feedback active noise reduction earphone can be greatly improved, so that the active noise reduction earphone has excellent wearing experience and noise reduction performance.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
Fig. 9 is a block diagram of an electronic device 900 according to an embodiment of the invention.
Referring to fig. 9, the electronic device 900 includes a processing component 910 that further includes one or more processors, and memory resources represented by memory 920, for storing instructions, such as applications, executable by the processing component 910. The application program stored in memory 920 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 910 is configured to execute instructions to perform the active noise reduction method of the headset described above.
The electronic device 900 may also include a power component configured to perform power management of the electronic device 900, a wired or wireless network interface configured to connect the electronic device 900 to a network, and an input output (I/O) interface. The electronic device 900 may operate based on an operating system stored in the memory 920, such as Windows Server TM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM or the like.
A non-transitory computer readable storage medium, which when executed by a processor of the electronic device 900, causes the electronic device 900 to perform a method of active noise reduction for headphones.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The functional units in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program check codes.
In addition, it should be noted that the combination of the technical features described in the present invention is not limited to the combination described in the claims or the combination described in the specific embodiments, and all the technical features described in the present invention may be freely combined or combined in any manner unless contradiction occurs between them.
It should be noted that the above-mentioned embodiments are merely examples of the present invention, and it is obvious that the present invention is not limited to the above-mentioned embodiments, and many similar variations are possible. All modifications attainable or obvious from the present disclosure set forth herein should be deemed to be within the scope of the present disclosure.
It should be understood that the first, second, etc. qualifiers mentioned in the embodiments of the present invention are only used for more clearly describing the technical solutions of the embodiments of the present invention, and should not be used to limit the protection scope of the present invention.
The foregoing is merely illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. An active noise reduction method for an earphone, comprising:
Acquiring a first sound signal vector acquired by a microphone array arranged on the earphone, wherein the microphone array comprises at least one talking microphone and at least one error microphone for acquiring in-ear noise signals;
Determining a current noise reduction parameter according to the first acoustic signal vector;
determining a noise reduction signal based on the in-ear noise signal and the current noise reduction parameter,
Wherein the determining the current noise reduction parameter according to the first acoustic signal vector includes:
determining a reference sound field base coefficient vector according to a calibrated sound field base matrix corresponding to the microphone array and the first sound signal vector;
Determining a current sound field base matrix corresponding to the microphone array according to the relation between the reference sound field base coefficient vector and a calibrated sound field base coefficient vector, wherein the calibrated sound field base coefficient vector is determined according to the calibrated sound field base matrix and a second sound signal vector collected by the microphone array in a pre-calibrated environment;
determining a current sound field base coefficient vector in a current use environment according to the current sound field base matrix and the first sound signal vector;
And determining the current noise reduction parameters according to the current sound field base coefficient vector.
2. The method of claim 1, wherein said determining the current noise reduction parameter from the current sound field base coefficient vector comprises:
a. According to the current sound field base coefficient vector, adjusting a calibration noise reduction coefficient;
b. determining an updated first acoustic signal vector based on the adjusted calibrated noise reduction coefficient;
c. Determining an updated current sound field base coefficient vector based on the current sound field base matrix and the updated first sound signal vector;
d. When the updated current sound field base coefficient vector does not meet a preset optimal condition, adjusting the adjusted calibration noise reduction coefficient;
e. And b, iteratively executing the steps b, c and d until the updated current sound field base coefficient vector meets the preset optimal condition, and determining the current adjusted calibrated noise reduction coefficient as the current noise reduction parameter.
3. The method of claim 2, wherein the iteratively performing steps b, c, d until the updated current sound field base coefficient vector meets the preset optimal condition, determining a current adjusted nominal noise reduction coefficient as the current noise reduction parameter comprises:
B, c and d are carried out in the ith iteration to obtain a current sound field base coefficient vector updated for 1 time, a current sound field base coefficient vector updated for 2 times, …, a current sound field base coefficient vector updated for i-1 times and a current sound field base coefficient vector updated for i times;
Judging whether a preset objective function converges to a minimum value according to the current sound field base coefficient vector updated for 1 time, the current sound field base coefficient vector updated for 2 times, …, the current sound field base coefficient vector updated for i-1 times and the current sound field base coefficient vector updated for i times;
and when the preset objective function converges to a minimum value, determining the current adjusted calibration noise reduction coefficient as the current noise reduction parameter.
4. The method of claim 2, wherein the calibrated noise reduction coefficient is determined in the pre-calibrated environment by:
a. according to the calibrated sound field base coefficient vector, adjusting an initial noise reduction coefficient;
b. Determining an updated second sound signal vector based on the adjusted initial noise reduction coefficient;
c. Determining an updated calibrated sound field base coefficient vector based on the calibrated sound field base matrix and the updated second sound signal vector;
d. when the updated calibrated sound field base coefficient vector does not meet the preset optimal condition, the adjusted initial noise reduction coefficient is adjusted;
e. and b, iteratively executing the steps b, c and d until the updated calibrated sound field base coefficient vector meets the preset optimal condition, and determining the initial noise reduction coefficient after current adjustment as the calibrated noise reduction coefficient.
5. The method of claim 1, wherein determining the current sound field basis matrix corresponding to the microphone array according to the relationship between the reference sound field basis coefficient vector and the scaled sound field basis coefficient vector comprises:
and under the condition that the complexity of the sound field where the earphone is currently positioned is consistent with the complexity of the sound field when the calibrated sound field base matrix is determined in the pre-calibration environment, determining the current sound field base matrix according to the relation between the reference sound field base coefficient vector and the calibrated sound field base coefficient vector.
6. The method according to any one of claims 1 to 5, wherein said determining a noise reduction signal from said in-ear noise signal and said current noise reduction parameter comprises:
Determining an ambient noise signal transmitted to the error microphone according to the in-ear noise signal, a playing signal of a loudspeaker arranged on the earphone and a secondary acoustic path of the earphone;
and determining the noise reduction signal according to the environmental noise signal transmitted to the error microphone and the current noise reduction parameter.
7. An active noise reduction device for an earphone, comprising:
A microphone array for collecting a first acoustic signal vector, wherein the microphone array comprises at least one talk microphone and at least one error microphone for collecting an in-ear noise signal;
The first determining module is used for determining the current noise reduction parameters according to the first acoustic signal vector;
a second determining module for determining a noise reduction signal according to the in-ear noise signal and the current noise reduction parameter,
Wherein, the first determining module is used for:
determining a reference sound field base coefficient vector according to a calibrated sound field base matrix corresponding to the microphone array and the first sound signal vector;
Determining a current sound field base matrix corresponding to the microphone array according to the relation between the reference sound field base coefficient vector and a calibrated sound field base coefficient vector, wherein the calibrated sound field base coefficient vector is determined according to the calibrated sound field base matrix and a second sound signal vector collected by the microphone array in a pre-calibrated environment;
determining a current sound field base coefficient vector in a current use environment according to the current sound field base matrix and the first sound signal vector;
And determining the current noise reduction parameters according to the current sound field base coefficient vector.
8. A semi-in-the-ear active noise reduction earphone comprising the active noise reduction device of claim 7.
9. An electronic device, comprising:
A processor;
A memory comprising computer instructions stored thereon that, when executed by the processor, cause the processor to perform the active noise reduction method of the headset of any of claims 1-6.
CN202110393876.7A 2021-04-13 2021-04-13 Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone Active CN113132846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110393876.7A CN113132846B (en) 2021-04-13 2021-04-13 Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110393876.7A CN113132846B (en) 2021-04-13 2021-04-13 Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone

Publications (2)

Publication Number Publication Date
CN113132846A CN113132846A (en) 2021-07-16
CN113132846B true CN113132846B (en) 2024-05-10

Family

ID=76775949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110393876.7A Active CN113132846B (en) 2021-04-13 2021-04-13 Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone

Country Status (1)

Country Link
CN (1) CN113132846B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2138007A2 (en) * 2007-03-19 2009-12-30 Sennheiser Electronic GmbH & Co. KG Headset
CN108429950A (en) * 2018-03-22 2018-08-21 恒玄科技(上海)有限公司 The high-efficient noise-reducing earphone and noise reduction system of low-power consumption
CN108600894A (en) * 2018-07-11 2018-09-28 重庆传乐音响科技有限公司 A kind of earphone adaptive active noise control system and method
CN108847250A (en) * 2018-07-11 2018-11-20 会听声学科技(北京)有限公司 A kind of orientation noise-reduction method, system and earphone
CN109314814A (en) * 2018-09-11 2019-02-05 深圳市汇顶科技股份有限公司 Active denoising method and earphone
CN109741727A (en) * 2019-01-07 2019-05-10 哈尔滨工业大学(深圳) Active noise reduction earphone, noise-reduction method and storage medium based on Active noise control algorithm
CN110933554A (en) * 2019-12-13 2020-03-27 恒玄科技(上海)股份有限公司 Active noise reduction method and system and earphone
CN110972014A (en) * 2019-12-11 2020-04-07 歌尔智能科技有限公司 Parameter adjustment method and device for active noise reduction earphone and wireless earphone
CN110996209A (en) * 2019-12-13 2020-04-10 恒玄科技(上海)股份有限公司 Active noise reduction method and system and earphone
CN111193977A (en) * 2019-12-13 2020-05-22 恒玄科技(上海)股份有限公司 Noise reduction method of earphone, self-adaptive FIR filter, noise removal filter bank and earphone
CN111800687A (en) * 2020-03-24 2020-10-20 深圳市豪恩声学股份有限公司 Active noise reduction method and device, electronic equipment and storage medium
CN111800688A (en) * 2020-03-24 2020-10-20 深圳市豪恩声学股份有限公司 Active noise reduction method and device, electronic equipment and storage medium
CN111836147A (en) * 2019-04-16 2020-10-27 华为技术有限公司 Noise reduction device and method
CN111883095A (en) * 2020-04-27 2020-11-03 珠海市杰理科技股份有限公司 Active noise reduction method, device and system and related equipment
CN111935589A (en) * 2020-09-28 2020-11-13 深圳市汇顶科技股份有限公司 Active noise reduction method and device, electronic equipment and chip
CN112399301A (en) * 2020-11-18 2021-02-23 维沃移动通信有限公司 Earphone and noise reduction method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9516407B2 (en) * 2012-08-13 2016-12-06 Apple Inc. Active noise control with compensation for error sensing at the eardrum
US9837066B2 (en) * 2013-07-28 2017-12-05 Light Speed Aviation, Inc. System and method for adaptive active noise reduction
EP3611933A1 (en) * 2017-01-05 2020-02-19 Harman Becker Automotive Systems GmbH Active noise reduction earphones

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2138007A2 (en) * 2007-03-19 2009-12-30 Sennheiser Electronic GmbH & Co. KG Headset
CN108429950A (en) * 2018-03-22 2018-08-21 恒玄科技(上海)有限公司 The high-efficient noise-reducing earphone and noise reduction system of low-power consumption
CN108600894A (en) * 2018-07-11 2018-09-28 重庆传乐音响科技有限公司 A kind of earphone adaptive active noise control system and method
CN108847250A (en) * 2018-07-11 2018-11-20 会听声学科技(北京)有限公司 A kind of orientation noise-reduction method, system and earphone
CN109314814A (en) * 2018-09-11 2019-02-05 深圳市汇顶科技股份有限公司 Active denoising method and earphone
CN109741727A (en) * 2019-01-07 2019-05-10 哈尔滨工业大学(深圳) Active noise reduction earphone, noise-reduction method and storage medium based on Active noise control algorithm
CN111836147A (en) * 2019-04-16 2020-10-27 华为技术有限公司 Noise reduction device and method
CN110972014A (en) * 2019-12-11 2020-04-07 歌尔智能科技有限公司 Parameter adjustment method and device for active noise reduction earphone and wireless earphone
CN110996209A (en) * 2019-12-13 2020-04-10 恒玄科技(上海)股份有限公司 Active noise reduction method and system and earphone
CN111193977A (en) * 2019-12-13 2020-05-22 恒玄科技(上海)股份有限公司 Noise reduction method of earphone, self-adaptive FIR filter, noise removal filter bank and earphone
CN110933554A (en) * 2019-12-13 2020-03-27 恒玄科技(上海)股份有限公司 Active noise reduction method and system and earphone
CN111800687A (en) * 2020-03-24 2020-10-20 深圳市豪恩声学股份有限公司 Active noise reduction method and device, electronic equipment and storage medium
CN111800688A (en) * 2020-03-24 2020-10-20 深圳市豪恩声学股份有限公司 Active noise reduction method and device, electronic equipment and storage medium
CN111883095A (en) * 2020-04-27 2020-11-03 珠海市杰理科技股份有限公司 Active noise reduction method, device and system and related equipment
CN111935589A (en) * 2020-09-28 2020-11-13 深圳市汇顶科技股份有限公司 Active noise reduction method and device, electronic equipment and chip
CN112399301A (en) * 2020-11-18 2021-02-23 维沃移动通信有限公司 Earphone and noise reduction method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
active noise cancellation for in-ear headphones implemented fpga;B reshma;《2017 international conference on intelligent computing and control systems》;20180211;全文 *
为何半入耳式和封闭式耳机越来越多采用anc技术;ams公司;《电子产品世界》;20200521;全文 *
基于dsp的自适应有源降噪耳罩研究与实现;黄悠然;《中国优秀硕士论文全文数据库工程科技II辑》;20200715;全文 *

Also Published As

Publication number Publication date
CN113132846A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
JP6538728B2 (en) System and method for improving the performance of audio transducers based on the detection of transducer status
EP2202998B1 (en) A device for and a method of processing audio data
WO2020034544A1 (en) Earphone wearing status detection method and device and earphone
CN109937579B (en) In-ear active noise reduction earphone
CN110996203B (en) Earphone noise reduction method, device and system and wireless earphone
CN111935589A (en) Active noise reduction method and device, electronic equipment and chip
CN108140381A (en) Mixed self-adapting noise canceling system with filtering error microphone signal
CN113115157B (en) Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone
CN108574898B (en) Active noise reduction system optimization method and system
WO2022048334A1 (en) Testing method and apparatus, earphones, and readable storage medium
CN113421540B (en) Active noise reduction method, active noise reduction device and semi-in-ear active noise reduction earphone
CN113409755B (en) Active noise reduction method and device and active noise reduction earphone
US11595764B2 (en) Tuning method, manufacturing method, computer-readable storage medium and tuning system
US10034087B2 (en) Audio signal processing for listening devices
CN113676815B (en) Noise reduction method and device, earphone equipment and storage medium
CN113409754B (en) Active noise reduction method, active noise reduction device and semi-in-ear active noise reduction earphone
CN113299265B (en) Active noise reduction method and device and active noise reduction earphone
CN113132847B (en) Noise reduction parameter determining method and device of active noise reduction earphone and active noise reduction method
CN113132846B (en) Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone
US20230199368A1 (en) Acoustic device and methods
CN116567477A (en) Partial HRTF compensation or prediction for in-ear microphone arrays
US20200349916A1 (en) Noise cancellation filter structure, noise cancellation system and signal processing method
CN113132848A (en) Filter design method and device and in-ear active noise reduction earphone
TWI746001B (en) Head-mounted apparatus and stereo effect controlling method thereof
US20230292063A1 (en) Apparatus and method for speech enhancement and feedback cancellation using a neural network

Legal Events

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