The present disclosure relates in general to adaptive noise cancellation in connection with an acoustic transducer, and more particularly, performance and stability control for feedback active noise cancellation.
Wireless telephones, such as mobile/cellular telephones, cordless telephones, and other consumer audio devices, such as mp3 players, are in widespread use. Performance of such devices with respect to intelligibility can be improved by providing noise cancelling using a microphone to measure ambient acoustic events and then using signal processing to insert an anti-noise signal into the output of the device to cancel the ambient acoustic events.
In an adaptive noise cancellation system, it is often desirable for the system to be fully adaptive such that a maximum noise cancellation effect is provided to a user at all times. Adaptive noise cancellation systems often use a fixed feedback controller due to low cost, simplicity, wideband noise cancellation, and other advantages. However, existing feedback noise cancellation systems have disadvantages. For example, feedback noise cancellation cancels at least a portion of a source audio signal which may cause degraded audio performance of a device. In order to maintain reasonable audio performance, the gain of the feedback controller may need to be reduced, and thus noise cancellation performance is compromised. In addition, due to varying conditions (e.g., different shapes of user's ears, different ways user's wear headphones, etc.), noise cancellation strength may differ from user to user. Furthermore, a feedback controller may become unstable if a secondary path of a device utilizing ANC changes.
In accordance with the teachings of the present disclosure, certain disadvantages and problems associated with existing approaches to feedback adaptive noise cancellation may be reduced or eliminated.
In accordance with embodiments of the present disclosure, an integrated circuit for implementing at least a portion of a personal audio device may include an output, an error microphone input, and a processing circuit. The output may be configured to provide an output signal to a transducer including both a source audio signal for playback to a listener and an anti-noise signal for countering the effect of ambient audio sounds in an acoustic output of the transducer. The error microphone input may be configured to receive an error microphone signal indicative of the output of the transducer and the ambient audio sounds at the transducer. The processing circuit may implement a feedback path and an event detection and oversight control. The feedback path may include a feedback filter having a response that generates a feedback anti-noise signal based on the error microphone signal and a variable gain element in series with the feedback filter. The event detection and oversight control may detect that an ambient audio event is occurring that could cause the feedback filter to generate an undesirable component in the anti-noise signal and control the gain of the variable gain element to reduce the undesirable component.
In accordance with these and other embodiments of the present disclosure, an integrated circuit for implementing at least a portion of a personal audio device may include an output, an error microphone input, and a processing circuit. The output may be configured to provide an output signal to a transducer including both a source audio signal for playback to a listener and an anti-noise signal for countering the effect of ambient audio sounds in an acoustic output of the transducer. The error microphone input may be configured to receive an error microphone signal indicative of the output of the transducer and the ambient audio sounds at the transducer. The processing circuit may implement a feedback path comprising a feedback filter having a response that generates a feedback anti-noise signal based on the error microphone signal and an adaptive notch filter in the feedback path in series with the feedback filter in order to reduce the response of the feedback filter in certain frequency ranges.
In accordance with these and other embodiments of the present disclosure, a method for cancelling ambient audio sounds in the proximity of a transducer may include receiving an error microphone signal indicative of the output of the transducer and ambient audio sounds at the transducer. The method may also include generating an anti-noise signal for countering the effects of ambient audio sounds at an acoustic output of the transducer, wherein generating the anti-noise signal comprises applying a feedback filter having a response that generates a feedback anti-noise signal based on the error microphone signal and applying a variable gain element in series with the feedback filter. The method may further include monitoring whether an ambient audio event is occurring that could cause the feedback filter to generate an undesirable component in the anti-noise signal and controlling the gain of the variable gain element to reduce the undesirable component. The method may additionally include combining the anti-noise signal with a source audio signal to generate an audio signal provided to the transducer.
In accordance with these and other embodiments of the present disclosure, a method for cancelling ambient audio sounds in the proximity of a transducer may include receiving an error microphone signal indicative of the output of the transducer and ambient audio sounds at the transducer. The method may also include generating an anti-noise signal for countering the effects of ambient audio sounds at an acoustic output of the transducer, wherein generating the anti-noise signal comprises applying a feedback filter having a response that generates a feedback anti-noise signal based on the error microphone signal and applying an adaptive notch filter in series with the feedback filter in order to reduce the response of the feedback filter in certain frequency ranges. The method may further include combining the anti-noise signal with a source audio signal to generate an audio signal provided to the transducer.
Technical advantages of the present disclosure may be readily apparent to one of ordinary skill in the art from the figures, description and claims included herein. The objects and advantages of the embodiments will be realized and achieved at least by the elements, features, and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are examples and explanatory and are not restrictive of the claims set forth in this disclosure.
A more complete understanding of the present embodiments and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
The present disclosure encompasses noise cancelling techniques and circuits that can be implemented in a personal audio device, such as a wireless telephone. The personal audio device includes an ANC circuit that may measure the ambient acoustic environment and generate a signal that is injected in the speaker (or other transducer) output to cancel ambient acoustic events. A reference microphone may be provided to measure the ambient acoustic environment and an error microphone may be included for controlling the adaptation of the anti-noise signal to cancel the ambient audio sounds and for correcting for the electro-acoustic path from the output of the processing circuit through the transducer.
Referring now to
Wireless telephone 10 may include ANC circuits and features that inject an anti-noise signal into speaker SPKR to improve intelligibility of the distant speech and other audio reproduced by speaker SPKR. A reference microphone R may be provided for measuring the ambient acoustic environment, and may be positioned away from the typical position of a user's mouth, so that the near-end speech may be minimized in the signal produced by reference microphone R. Another microphone, error microphone E, may be provided in order to further improve the ANC operation by providing a measure of the ambient audio combined with the audio reproduced by speaker SPKR close to ear 5, when wireless telephone 10 is in close proximity to ear 5. In other embodiments, additional reference and/or error microphones may be employed. Circuit 14 within wireless telephone 10 may include an audio CODEC integrated circuit (IC) 20 that receives the signals from reference microphone R, near-speech microphone NS, and error microphone E and interfaces with other integrated circuits such as a radio-frequency (RF) integrated circuit 12 having a wireless telephone transceiver. In some embodiments of the disclosure, the circuits and techniques disclosed herein may be incorporated in a single integrated circuit that includes control circuits and other functionality for implementing the entirety of the personal audio device, such as an MP3 player-on-a-chip integrated circuit. In these and other embodiments, the circuits and techniques disclosed herein may be implemented partially or fully in software and/or firmware embodied in computer-readable media and executable by a controller or other processing device.
In general, ANC techniques of the present disclosure measure ambient acoustic events (as opposed to the output of speaker SPKR and/or the near-end speech) impinging on reference microphone R, and by also measuring the same ambient acoustic events impinging on error microphone E, ANC processing circuits of wireless telephone 10 adapt an anti-noise signal generated from the output of reference microphone R to have a characteristic that minimizes the amplitude of the ambient acoustic events at error microphone E. Because acoustic path P(z) extends from reference microphone R to error microphone E, ANC circuits are effectively estimating acoustic path P(z) while removing effects of an electro-acoustic path S(z) that represents the response of the audio output circuits of CODEC IC 20 and the acoustic/electric transfer function of speaker SPKR including the coupling between speaker SPKR and error microphone E in the particular acoustic environment, which may be affected by the proximity and structure of ear 5 and other physical objects and human head structures that may be in proximity to wireless telephone 10, when wireless telephone 10 is not firmly pressed to ear 5. While the illustrated wireless telephone 10 includes a two-microphone ANC system with a third near-speech microphone NS, some aspects of the present invention may be practiced in a system that does not include separate error and reference microphones, or a wireless telephone that uses near-speech microphone NS to perform the function of the reference microphone R. Also, in personal audio devices designed only for audio playback, near-speech microphone NS will generally not be included, and the near-speech signal paths in the circuits described in further detail below may be omitted, without changing the scope of the disclosure, other than to limit the options provided for input to the microphone.
Referring now to
As used in this disclosure, the term “headphone” broadly includes any loudspeaker and structure associated therewith that is intended to be mechanically held in place proximate to a listener's ear canal, and includes without limitation earphones, earbuds, and other similar devices. As more specific examples, “headphone” may refer to intra-concha earphones, supra-concha earphones, and supra-aural earphones.
Combox 16 or another portion of headphone assembly 13 may have a near-speech microphone NS to capture near-end speech in addition to or in lieu of near-speech microphone NS of wireless telephone 10. In addition, each headphone 18A, 18B may include a transducer such as speaker SPKR that reproduces distant speech received by wireless telephone 10, along with other local audio events such as ringtones, stored audio program material, injection of near-end speech (i.e., the speech of the user of wireless telephone 10) to provide a balanced conversational perception, and other audio that requires reproduction by wireless telephone 10, such as sources from webpages or other network communications received by wireless telephone 10 and audio indications such as a low battery indication and other system event notifications. Each headphone 18A, 18B may include a reference microphone R for measuring the ambient acoustic environment and an error microphone E for measuring of the ambient audio combined with the audio reproduced by speaker SPKR close to a listener's ear when such headphone 18A, 18B is engaged with the listener's ear. In some embodiments, CODEC IC 20 may receive the signals from reference microphone R and error microphone E of each headphone and near-speech microphone NS, and perform adaptive noise cancellation for each headphone as described herein. In other embodiments, a CODEC IC or another circuit may be present within headphone assembly 13, communicatively coupled to reference microphone R, near-speech microphone NS, and error microphone E, and configured to perform adaptive noise cancellation as described herein.
Referring now to
Referring now to
To implement the above, adaptive filter 34A may have coefficients controlled by SE coefficient control block 33, which may compare downlink audio signal ds and/or internal audio signal ia and error microphone signal err after removal of the above-described filtered downlink audio signal ds and/or internal audio signal ia, that has been filtered by adaptive filter 34A to represent the expected downlink audio delivered to error microphone E, and which is removed from the output of adaptive filter 34A by a combiner 36 to generate a playback-corrected error, shown as PBCE in
As depicted in
In operation, an increased gain of programmable gain element 46 may cause increased noise cancellation of the feedback anti-noise component, and a decreased gain may cause reduced noise cancellation of the feedback anti-noise component. In some embodiments, as described in greater detail below, oversight control 39, in conjunction with event detection block 38, may control the gain of programmable gain element 46 in response to detection of an ambient audio event that could cause feedback filter 44 to generate an undesirable component in the anti-noise signal in order to reduce the undesirable component.
Although feedback filter 44 and gain element 46 are shown as separate components of ANC circuit 30, in some embodiments some structure and/or function of feedback filter 44 and gain element 46 may be combined. For example, in some of such embodiments, an effective gain of feedback filter 44 may be varied via control of one or more filter coefficients of feedback filter 44.
Event detection 38 and oversight control block 39 may perform various actions in in response to various events, as described in greater detail herein, including, without limitation, controlling the gain of programmable gain element 46. In some embodiments, event detection 38 and oversight control block 39 may be similar in structure and/or functionality as the event detection and oversight control logic described in U.S. patent application Ser. No. 13/309,494 by Jon D. Hendrix et al., filed Dec. 1, 2011, entitled “Oversight Control of an Adaptive Noise Canceler in a Personal Audio Device,” and assigned to the applicant of the present application.
In some embodiments, event detection 38 and oversight control block 39 may monitor signals within ANC circuit 30A (e.g., source audio signal ds/ia and a signal output by secondary estimate filter 34A), in order to determine a gain of secondary estimate filter 34A and/or magnitude of the response SE(z) of secondary estimate filter 34A. Because secondary estimate filter 34A models the electroacoustic path to a user's ear, response SE(z) indicates how speaker SPKR is acoustically coupled to the user's ear. Thus, a magnitude or gain of response SE(z) at certain frequency bands may indicate how loose or tight a device (e.g., a headphone) is coupled to a user's ear. Because response SE(z) may be continuously trained by ANC circuit 30A, change in response SE(z), and thus the change in fitting of speaker SPKR to the user's ear, may be tracked over time, and the gain of the programmable feedback element 46 may be adjusted as a function of the change in response SE(z).
As another example, in these and other embodiments, event detection 38 and oversight control block 39 may monitor signals within ANC circuit 30A (e.g., playback corrected error PBCE and reference microphone signal ref) to determine a noise boost estimate of ANC circuit 30A. In general, when ANC circuit 30A is operating properly, error microphone E may typically sense less sound pressure than reference microphone R in the absence of a source audio signal. However, if the feedback loop comprising feedback filter 44 is unstable or does not perform as expected due to changes in the secondary path or because the secondary path is different than expected, error microphone E may sense higher sound pressure than reference microphone R. The amount of noise boost may be estimated by comparing the level of difference between or the ratio of playback corrected error PBCE and reference microphone signal ref, which may be performed in the time domain and/or frequency domain. Based on such noise boost estimate, event detection 38 and oversight control block 39 may control the gain of the programmable feedback element 46.
As another example, in these and other embodiments, event detection 38 and oversight control block 39 may determine whether howling or error microphone clipping has occurred. Howling or error microphone clipping may occur when the ambient audio event is a signal due to positive feedback through reference microphone R due to alteration of coupling between speaker SPKR and the reference microphone R and/or when the ambient audio event is a signal due to positive feedback through error microphone E due to alteration of coupling between speaker SPKR and the error microphone E. When howling or error microphone clipping occurs, event detection 38 and oversight control block 39 may attenuate the gain of programmable gain element 46 until the howling or clipping is no longer present. In addition, when the howling or clipping is no longer present, event detection 38 and oversight control block 39 may restore the gain of programmable gain element 46 to a particular level.
At step 602, oversight control block 39 may initialize variables. For example, oversight control block 39 may initialize a gain G for programmable gain element 46 to a value of 1. In addition, oversight control block 39 may initialize a post-howling maximum gain Gh for programmable gain element 46 to 1.
At step 604, event detection block 38 may detect whether howling or error microphone clipping is occurring. If howling or error microphone clipping is occurring, method 600 may proceed to step 606. Otherwise, method 600 may remain at step 604 until howling or error microphone clipping is detected.
At step 606, oversight control block 39 may reduce gain G by a factor r, wherein r has a positive value less than 1. The value r may be a constant that defines a rate at which gain G is reduced each time step 606 is executed. The value of r may be predetermined by a manufacturer or other provider of wireless telephone 10 or an ANC circuit (e.g., ANC circuit 30A or 30C) or by a user of wireless telephone 10. The value r may be set in order to achieve one or more subjective goals, such as smoothness of transition of reduced gain G and the speed at which gain G is reduced. In addition, oversight control block 39 may set a value for the post-howling maximum gain Gh. For example, upon the occurrence of the howling event, oversight control block 39 may set the value of Gh=wGh+(1−w)G, wherein w is a weighting factor that defines a middle ground of a new post-howling maximum gain Gh between a present value of post-howling maximum gain Gh and gain G. If w is set to less than 1, then after each howling event, the post-howling maximum gain Gh is reduced, such that eventually, gain G will be set to a maximum level that is unlikely to lead to howling. The value of w may be predetermined by a manufacturer or other provider of wireless telephone 10 or an ANC circuit (e.g., ANC circuit 30A or 30C) or by a user of wireless telephone 10.
At step 608, oversight control block 39 may initialize a counter n to a value of 0.
At step 610, event detection block 38 may detect whether howling or error microphone clipping is still occurring. If howling or error microphone clipping is still occurring, method 600 may proceed to step 612. Otherwise, method 600 may proceed to step 618.
At step 612, oversight control block 39 may increment counter n. At step 614, oversight control block 39 may determine if counter n has reached its max value. If counter n has reached its max value, method 600 may proceed to step 616. Otherwise, method 600 may proceed again to step 610.
At step 616, in response to counter n reaching its maximum value, oversight control block 39 may again reduce gain G by factor r. After completion of step 616, method 600 may proceed again to step 608.
At step 618, oversight control block 39 may gradually increase gain G to post-howling maximum gain Gh. After completion of step 618, method 600 may return again to step 604.
Although
Method 600 may be implemented using wireless telephone 10 or any other system operable to implement method 600. In certain embodiments, method 600 may be implemented partially or fully in software and/or firmware embodied in computer-readable media and executable by a controller.
As a result of method 600, when howling or error microphone clipping is present, the gain G may be periodically reduced (e.g., by factor r for each reduction). After the howling or microphone clipping is no longer present, the gain G may then be restored to a maximum level (e.g., post-howling maximum gain Gh).
Referring now to
Response N(z) of notch filter 48 may effectively reduce a gain of the feedback path comprising feedback filter 44 at particular frequencies (e.g., higher frequencies in the range of 1000 Hz to 8000 Hz) while not affecting noise cancelling performance of the feedback path at other frequencies (e.g., lower frequencies in the range of 50 Hz to 1000 Hz). Accordingly, notch filter 48 may reduce or eliminate instabilities of the feedback loop of ANC circuit 30B that may occur at particular frequencies.
In some embodiments, response N(z) of notch filter 48 may be adaptive. For example,
In the structure shown in
N(z,n)=(1+w(n)z−1+z−2)/(1+rW(n)z−1+r2z−2)
where:
W(n+1)=W(n)−μv(n−1)y(n)
Referring now to
This disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Similarly, where appropriate, the appended claims encompass all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Moreover, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, or component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative.
All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are construed as being without limitation to such specifically recited examples and conditions. Although embodiments of the present inventions have been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the disclosure.