Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
FREQUENCY-SHAPED NOISE-BASED ADAPTATION OF SECONDARY PATH ADAPTIVE RESPONSE IN NOISE-CANCELING PERSONAL AUDIO DEVICES
Document Type and Number:
WIPO Patent Application WO/2015/160477
Kind Code:
A1
Abstract:
A personal audio device includes an adaptive noise canceling (ANC) circuit that adaptively generates an anti-noise signal from a reference microphone signal and injects the anti-noise signal into the speaker or other transducer output to cause cancellation of ambient audio sounds. An error microphone is also provided proximate the speaker to provide an error signal indicative of the effectiveness of the noise cancellation. A secondary path estimating adaptive filter is used to estimate the electro-acoustical path from the noise canceling circuit through the transducer so that source audio can be removed from the error signal. Noise is injected so that the adaptation of the secondary path estimating adaptive filter can be maintained, irrespective of the presence and amplitude of the source audio. The noise is shaped by a noise shaping filter that has a response controlled in conformity with at least one parameter of the secondary path response.

Inventors:
LU YANG (US)
ZHOU DAYONG (US)
LI NING (US)
Application Number:
PCT/US2015/022113
Publication Date:
October 22, 2015
Filing Date:
March 24, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
CIRRUS LOGIC INC (US)
International Classes:
G10K11/178; H04R1/10; H04R3/00
Domestic Patent References:
WO2015038255A12015-03-19
WO2012166511A22012-12-06
WO2012166388A22012-12-06
Foreign References:
EP2237573A12010-10-06
US20020003887A12002-01-10
US20130301842A12013-11-14
US20130301846A12013-11-14
US20120140943A12012-06-07
Attorney, Agent or Firm:
HARRIS, Andrew, Mitchell (Attorney at Law L.L.C.,P.O. Box 799, Athens GA, US)
Download PDF:
Claims:
CLAIMS

WHAT IS CLAIMED IS:

1. A personal audio device, comprising:

a personal audio device housing;

a transducer mounted on the housing for reproducing an audio signal including both source audio for playback to a listener and an anti-noise signal for countering the effects of ambient audio sounds in an acoustic output of the transducer;

a reference microphone mounted on the housing for providing a reference microphone signal indicative of the ambient audio sounds;

an error microphone mounted on the housing in proximity to the transducer for providing an error microphone signal indicative of the acoustic output of the transducer and the ambient audio sounds at the transducer;

a controllable noise source for providing a noise signal; and

a processing circuit that filters the reference microphone signal with a first adaptive filter to generate the anti-noise signal to reduce the presence of the ambient audio sounds heard by the listener in conformity with an error signal and the reference microphone signal, wherein the processing circuit implements a noise shaping filter having a controllable frequency response that filters the noise signal to produce a frequency-shaped noise signal, wherein the processing circuit implements a secondary path adaptive filter having a secondary path response that shapes the source audio and a combiner that removes the source audio from the error microphone signal to provide the error signal, and wherein the processing circuit injects the frequency-shaped noise signal into the secondary path adaptive filter and the audio signal reproduced by the transducer in place of or in combination with the source audio to cause the secondary path adaptive filter to continue to adapt when the source audio is absent or has reduced amplitude, and wherein the processing circuit controls the frequency response of the noise shaping filter in conformity with at WO 2015/160477 PCT/US2015/022113 ΌΓ^ '

22 least one parameter of the secondary path response to reduce audibility of the noise signal in the audio signal reproduced by the transducer.

2. The personal audio device of Claim 1, wherein the processing circuit analyzes the error signal to determine frequency content of the error signal and adaptively controls the controllable frequency response of the noise shaping filter in conformity with the frequency content of the error signal.

3. The personal audio device of Claim 2, wherein the controllable response of the noise shaping filter includes a response that is an inverse of at least a portion of the secondary path response, wherein the at least one parameter comprises parameters determinative of the secondary path response.

4. The personal audio device of Claim 2, wherein a gain of the controllable frequency response of the noise shaping filter is set in conformity with an inverse of a magnitude of the secondary path response over at least a portion of the secondary path response.

5. The personal audio device of Claim 1, wherein a gain of the controllable frequency response of the noise shaping filter is set in conformity with an inverse of a magnitude of the secondary path response in a particular frequency band.

6. The personal audio device of Claim 1, wherein the processing circuit further frequency-smooths the controllable frequency response of the noise shaping to prevent generation of narrow peaks in a frequency spectrum of the frequency-shaped noise signal. WO 2015/160477 PCT/US2015/022113 6PCT

23

7. The personal audio device of Claim 1, wherein the processing circuit further smooths the controllable frequency response of the noise shaping in the time domain to prevent abrupt changes in the amplitude of the frequency-shaped noise signal.

8. The personal audio device of Claim 1, wherein the processing circuit further reduces a rate of update of the controllable frequency response of the noise shaping filter in response to an indication of system instability or an ambient audio condition that may cause improper generation of that anti- noise signal.

9. A method of countering effects of ambient audio sounds by a personal audio device, the method comprising:

measuring the ambient audio sounds with a reference microphone to generate a reference microphone signal;

filtering the reference microphone signal with a first adaptive filter to generate an anti-noise signal to reduce the presence of the ambient audio sounds heard by the listener in conformity with an error signal and the reference microphone signal;

combining the anti-noise signal with source audio;

providing a result of the combining to a transducer;

measuring an acoustic output of the transducer and the ambient audio sounds with an error microphone;

shaping the source audio with a secondary path adaptive filter;

removing the source audio from the error microphone signal to provide the error signal; generating a noise signal with a controllable noise source;

filtering the noise signal with a noise shaping filter having a controllable frequency response to produce a frequency-shaped noise signal;

injecting the frequency-shaped noise signal into the secondary path adaptive filter and the audio signal reproduced by the transducer in place of or in combination with the source audio to cause the secondary path adaptive filter to continue to adapt when the source audio is absent or has reduced amplitude; and

controlling the frequency response of the noise shaping filter in conformity with at least one parameter of the secondary path response to reduce audibility of the noise signal in the audio signal reproduced by the transducer.

10. The method of Claim 9, further comprising analyzing the error signal to determine frequency content of the error signal and wherein the controlling adaptively controls the controllable frequency response of the noise shaping filter in conformity with the frequency content of the error signal.

11. The method of Claim 10, wherein the controllable response of the noise shaping filter includes a response that is an inverse of at least a portion of the secondary path response, wherein the at least one parameter comprises parameters determinative of the secondary path response.

12. The method of Claim 10, wherein the controlling sets a gain of the controllable frequency response of the noise shaping filter in conformity with an inverse of a magnitude of the secondary path response over at least a portion of the secondary path response.

13. The method of Claim 9, wherein the controlling sets a gain of the controllable frequency response of the noise shaping filter in conformity with an inverse of a magnitude of the secondary path response in a particular frequency band.

14. The method of Claim 9, wherein the controlling further comprises smoothing the controllable frequency response of the noise shaping to prevent generation of narrow peaks in a frequency spectrum of the frequency-shaped noise signal.

15. The method of Claim 9, wherein the controlling further comprises smoothing the controllable frequency response of the noise shaping in the time domain to prevent abrupt changes in the amplitude of the frequency-shaped noise signal.

16. The method of Claim 9, further comprising reducing a rate of update of the controllable frequency response of the noise shaping filter in response to an indication of system instability or an ambient audio condition that may cause improper generation of that anti-noise signal.

17. An integrated circuit for implementing at least a portion of a personal audio device, comprising: an output for providing an output signal to an output transducer including both source audio for playback to a listener and an anti-noise signal for countering the effects of ambient audio sounds in an acoustic output of the transducer;

a reference microphone input for receiving a reference microphone signal indicative of the ambient audio sounds;

an error microphone input for receiving an error microphone signal indicative of the acoustic output of the transducer and the ambient audio sounds at the transducer;

a controllable noise source for providing a noise signal; and

a processing circuit that filters the reference microphone signal with a first adaptive filter to generate the anti-noise signal to reduce the presence of the ambient audio sounds heard by the listener in conformity with an error signal and the reference microphone signal, wherein the processing circuit implements a noise shaping filter having a controllable frequency response that filters the noise signal to produce a frequency-shaped noise signal, wherein the processing circuit implements a secondary path adaptive filter having a secondary path response that shapes the source audio and a combiner that removes the source audio from the error microphone signal to provide the error signal, and wherein the processing circuit injects the frequency-shaped noise signal into the secondary path adaptive filter and the audio signal reproduced by the transducer in place of or in combination with the source audio to cause the secondary path adaptive filter to continue to adapt when the source audio is absent or has reduced amplitude, and wherein the processing circuit controls the frequency response of the noise shaping filter in conformity with at least one parameter of the secondary path response to reduce audibility of the noise signal in the audio signal reproduced by the transducer.

18. The integrated circuit of Claim 17, wherein the processing circuit analyzes the error signal to determine frequency content of the error signal and adaptively controls the controllable frequency response of the noise shaping filter in conformity with the frequency content of the error signal.

19. The integrated circuit of Claim 18, wherein the controllable response of the noise shaping filter includes a response that is an inverse of at least a portion of the secondary path response, wherein the at least one parameter comprises parameters determinative of the secondary path response.

20. The integrated circuit of Claim 18, wherein a gain of the controllable frequency response of the noise shaping filter is set in conformity with an inverse of a magnitude of the secondary path response over at least a portion of the secondary path response.

21. The integrated circuit of Claim 17, wherein a gain of the controllable frequency response of the noise shaping filter is set in conformity with an inverse of a magnitude of the secondary path response in a particular frequency band.

22. The integrated circuit of Claim 17, wherein the processing circuit further frequency-smooths the controllable frequency response of the noise shaping to prevent generation of narrow peaks in a frequency spectrum of the frequency-shaped noise signal.

23. The integrated circuit of Claim 17, wherein the processing circuit further smooths the controllable frequency response of the noise shaping in the time domain to prevent abrupt changes in the amplitude of the frequency-shaped noise signal.

24. The integrated circuit of Claim 17, wherein the processing circuit further reduces a rate of update of the controllable frequency response of the noise shaping filter in response to an indication of system instability or an ambient audio condition that may cause improper generation of that anti- noise signal.

Description:
FREQUENCY-SHAPED NOISE-BASED ADAPTATION OF SECONDARY PATH ADAPTIVE RESPONSE IN NOISE-CANCELING PERSONAL AUDIO DEVICES

FIELD OF THE INVENTION

[0001] The present invention relates generally to personal audio devices such as wireless telephones that include adaptive noise cancellation (ANC), and more specifically, to control of ANC in a personal audio device that uses injected noise having a frequency-shaped noise-based adaptation of a secondary path estimate.

BACKGROUND OF THE INVENTION

[0002] Wireless telephones, such as mobile/cellular telephones, headphones, and other consumer audio devices are in widespread use. Performance of such devices with respect to intelligibility can be improved by providing noise canceling 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.

[0003] Noise canceling operation can be improved by measuring the transducer output of a device at the transducer to determine the effectiveness of the noise canceling using an error microphone. The measured output of the transducer is ideally the source audio, e.g., the audio provided to a headset for reproduction, or downlink audio in a telephone and/or playback audio in either a dedicated audio player or a telephone, since the noise canceling signal(s) are ideally canceled by the ambient noise at the location of the transducer. To remove the source audio from the error microphone signal, the secondary path from the transducer through the error microphone can be estimated and used to filter the source audio to the correct phase and amplitude for subtraction from the error microphone signal. However, when source audio is absent or low in amplitude, the secondary path estimate cannot typically be updated. [0004] Therefore, it would be desirable to provide a personal audio device, including wireless telephones, that provides noise cancellation using a secondary path estimate to measure the output of the transducer and that can continuously adapt the secondary path estimate independent of whether source audio of sufficient amplitude is present.

DISCLOSURE OF THE INVENTION

[0005] The above-stated objective of providing a personal audio device providing noise cancelling including a secondary path estimate that can be adapted continuously whether or not source audio of sufficient amplitude is present, is accomplished in a noise-canceling personal audio device, including noise-canceling headphones, a method of operation, and an integrated circuit.

[0006] The personal audio device includes a housing, with a transducer mounted on the housing for reproducing an audio signal that includes both source audio for providing to a listener and an anti- noise signal for countering the effects of ambient audio sounds in an acoustic output of the transducer. A reference microphone is mounted on the housing to provide a reference microphone signal indicative of the ambient audio sounds. The personal audio device further includes an adaptive noise-canceling (ANC) processing circuit within the housing for adaptively generating an anti-noise signal from the reference microphone signal such that the anti-noise signal causes substantial cancellation of the ambient audio sounds. An error microphone is included for controlling the adaptation of the anti-noise signal to cancel the ambient audio sounds and for correcting for the electro-acoustical path from the output of the processing circuit through the transducer. The ANC processing circuit injects noise when the source audio, e.g., downlink audio in telephones and/or playback audio in media players or telephones, is at such a low level that the secondary path estimating adaptive filter cannot properly continue adaptation. A controllable filter frequency-shapes the noise in conformity with at least one parameter of the secondary path response, so that audibility of the noise output by the transducer is reduced, while providing noise of sufficient amplitude for adapting the secondary path response. [0007] The foregoing and other objectives, features, and advantages of the invention will be apparent from the following, more particular, description of the preferred embodiment of the invention, as illustrated in the accompanying drawings.

DESCRIPTION OF THE DRAWINGS

[0008] Figure 1A is an illustration of a wireless telephone 10 coupled to a pair of earbuds EB1 and EB2, which is an example of a personal audio system in which the techniques disclosed herein can be implemented.

[0009] Figure IB is an illustration of electrical and acoustical signal paths in Figure 1 A.

[0010] Figure 2 is a block diagram of circuits within wireless telephone 10.

[0011] Figure 3 is a block diagram depicting signal processing circuits and functional blocks within ANC circuit 30 of CODEC integrated circuit 20 of Figure 2.

[0012] Figure 4 is a block diagram depicting details of frequency-shaping noise generator 40 of Figure 3.

[0013] Figure 5-Figure 7 are process diagrams showing computations performed in the operation of frequency-shaping noise generator 40 of Figure 3.

[0014] Figure 8 is a flowchart showing other details of the operation of frequency-shaping noise generator 40 of Figure 3.

[0015] Figure 9 is a flowchart showing further details of operation of frequency-shaping noise generator 40 of Figure 3. [0016] Figure 10 is a process diagram showing other computations performed in the operation of frequency-shaping noise generator 40 of Figure 3.

[0017] Figure 11 is a block diagram depicting signal processing circuits and functional blocks within an integrated circuit implementing an A C system as disclosed herein.

BEST MODE FOR CARRYING OUT THE INVENTION

[0018] The present disclosure reveals noise canceling techniques and circuits that can be implemented in a personal audio device, such as wireless headphones or a wireless telephone. The personal audio device includes an adaptive noise canceling (ANC) circuit that measures the ambient acoustic environment and generates a signal that is injected into the speaker (or other transducer) output to cancel ambient acoustic events. A reference microphone is provided to measure the ambient acoustic environment, and an error microphone is included to measure the ambient audio and transducer output at the transducer, thus giving an indication of the effectiveness of the noise cancelation. A secondary path estimating adaptive filter is used to remove the playback audio from the error microphone signal, in order to generate an error signal. However, depending on the presence (and level) of the audio signal reproduced by the personal audio device, e.g., downlink audio during a telephone conversation or playback audio from a media file/connection, the secondary path adaptive filter may not be able to continue to adapt to estimate the secondary path. The circuits and methods disclosed herein use injected noise to provide enough energy for the secondary path estimating adaptive filter to continue to adapt, while remaining at a level that is less noticeable or unnoticeable to the listener.

[0019] The spectrum of the injected noise is altered by adapting a noise shaping filter that shapes the frequency spectrum of the noise in conformity with the frequency content of the error signal that represents the output of the transducer as heard by the listener with the playback audio (and thus also the injected noise) removed. The injected noise is also controlled in conformity with at least one parameter of the secondary path response, e.g., the gain and/or higher-order coefficients of the secondary path response. The result is that the amplitude of the injected noise will track the residual ambient noise as heard by the listener in different frequency bands, so that the secondary path estimating adaptive filter can be effectively trained, while maintaining the injected noise at an imperceptible level.

[0020] Figure 1A shows a wireless telephone 10 and a pair of earbuds EB1 and EB2, each attached to a corresponding ear 5A, 5B of a listener. Illustrated wireless telephone 10 is an example of a device in which the techniques herein may be employed, but it is understood that not all of the elements or configurations illustrated in wireless telephone 10, or in the circuits depicted in subsequent illustrations, are required. Wireless telephone 10 is connected to earbuds EB1, EB2 by a wired or wireless connection, e.g., a BLUETOOTH™ connection (BLUETOOTH is a trademark of Bluetooth SIG, Inc.). Earbuds EB1, EB2 each have a corresponding transducer, such as speaker SPKR1, SPKR2, which reproduce source audio including distant speech received from wireless telephone 10, ringtones, stored audio program material, and injection of near-end speech (i.e., the speech of the user of wireless telephone 10). The source audio also includes any other audio that wireless telephone 10 is required to reproduce, such as source audio from web-pages or other network communications received by wireless telephone 10 and audio indications such as battery low and other system event notifications. Reference microphones Rl, R2 are provided on a surface of the housing of respective earbuds EB1, EB2 for measuring the ambient acoustic environment. Another pair of microphones, error microphones El, E2, are provided in order to further improve the ANC operation by providing a measure of the ambient audio combined with the audio reproduced by respective speakers SPKR1, SPKR2 close to corresponding ears 5A, 5B, when earbuds EB1, EB2 are inserted in the outer portion of ears 5 A, 5B.

[0021] Wireless telephone 10 includes adaptive noise canceling (ANC) circuits and features that inject an anti-noise signal into speakers SPKR1, SPKR2 to improve intelligibility of the distant speech and other audio reproduced by speakers SPKR1, SPKR2. An exemplary circuit 14 within wireless telephone 10 includes an audio integrated circuit 20 that receives the signals from reference microphones Rl, R2, a near speech microphone NS, and error microphones El, E2 and interfaces with other integrated circuits such as a radio frequency (RF) integrated circuit 12 containing the wireless telephone transceiver. In other implementations, the circuits and techniques disclosed herein may be incorporated in a single integrated circuit that contains control circuits and other functionality for implementing the entirety of the personal audio device, such as an MP3 player-on-a-chip integrated circuit. Alternatively, the ANC circuits may be included within a housing of earbuds EB1, EB2 or in a module located along wired connections between wireless telephone 10 and earbuds EB1, EB2. In other embodiments, wireless telephone 10 includes a reference microphone, error microphone and speaker and the noise-canceling is performed by an integrated circuit within wireless telephone 10. For the purposes of illustration, the ANC circuits will be described as provided within wireless telephone 10, but the above variations are understandable by a person of ordinary skill in the art and the consequent signals that are required between earbuds EB1, EB2, wireless telephone 10, and a third module, if required, can be easily determined for those variations. A near speech microphone NS is provided at a housing of wireless telephone 10 to capture near-end speech, which is transmitted from wireless telephone 10 to the other conversation participant(s). Alternatively, near speech microphone NS may be provided on the outer surface of a housing of one of earbuds EB1, EB2, on a boom affixed to one of earbuds EB1, EB2, or on a pendant located between wireless telephone 10 and either or both of earbuds EB1, EB2.

[0022] Figure IB shows a simplified schematic diagram of audio integrated circuits 20A, 20B that include ANC processing, as coupled to respective reference microphones Rl, R2, which provides a measurement of ambient audio sounds Ambientl, Ambient 2 that is filtered by the ANC processing circuits within audio integrated circuits 20A, 20B, located within corresponding earbuds EBl, EB2. Audio integrated circuits 20A, 20B may be alternatively combined in a single integrated circuit, such as integrated circuit 20 within wireless telephone 10. Audio integrated circuits 20A, 20B generate outputs for their corresponding channels that are amplified by an associated one of amplifiers Al, A2 and which are provided to the corresponding one of speakers SPKR1, SPKR2. Audio integrated circuits 20A, 20B receive the signals (wired or wireless depending on the particular configuration) from reference microphones Rl, R2, near speech microphone NS and error microphones El, E2. Audio integrated circuits 20A, 20B also interface with other integrated circuits such as an RF integrated circuit 12 containing the wireless telephone transceiver shown in Figure 1 A. In other configurations, the circuits and techniques disclosed herein may be

incorporated in a single integrated circuit that contains control circuits and other functionality for implementing the entirety of the personal audio device, such as an MP3 player-on-a-chip integrated circuit. Alternatively, multiple integrated circuits may be used, for example, when a wireless connection is provided from each of earbuds EBl, EB2 to wireless telephone 10 and/or when some or all of the ANC processing is performed within earbuds EBl, EB2 or a module disposed along a cable connecting wireless telephone 10 to earbuds EBl, EB2.

[0023] In general, the ANC techniques illustrated herein measure ambient acoustic events (as opposed to the output of speakers SPKR1, SPKR2 and/or the near-end speech) impinging on reference microphones Rl, R2 and also measure the same ambient acoustic events impinging on error microphones El, E2. The ANC processing circuits of integrated circuits 20A, 20B

individually adapt an anti-noise signal generated from the output of the corresponding reference microphone Rl, R2 to have a characteristic that minimizes the amplitude of the ambient acoustic events at the corresponding error microphone El, E2. Since acoustic path Pi(z) extends from reference microphone Rl to error microphone El, the ANC circuit in audio integrated circuit 20 A is essentially estimating acoustic path Pi(z) combined with removing effects of an electro-acoustic path Si(z) that represents the response of the audio output circuits of audio integrated circuit 20 A and the acoustic/electric transfer function of speaker SPKRl. The estimated response includes the coupling between speaker SPKRl and error microphone El in the particular acoustic environment which is affected by the proximity and structure of ear 5A and other physical objects and human head structures that may be in proximity to earbud EBl. Similarly, audio integrated circuit 20B estimates acoustic path P 2 (z) combined with removing effects of an electro-acoustic path S 2 (z) that represents the response of the audio output circuits of audio integrated circuit 20B and the acoustic/electric transfer function of speaker SPKR2.

[0024] Referring now to Figure 2, circuits within earbuds EBl, EB2 and wireless telephone 10 are shown in a block diagram. The circuit shown in Figure 2 further applies to the other configurations mentioned above, except that signaling between CODEC integrated circuit 20 and other units within wireless telephone 10 are provided by cables or wireless connections when audio integrated circuits 20A, 20B are located outside of wireless telephone 10, e.g., within corresponding earbuds EBl, EB2. In such a configuration, signaling between a single integrated circuit 20 that implements integrated circuits 20A-20B and error microphones El, E2, reference microphones Rl, R2 and speakers SPKRl, SPKR2 are provided by wired or wireless connections when audio integrated circuit 20 is located within wireless telephone 10. In the illustrated example, audio integrated circuits 20A, 20B are shown as separate and substantially identical circuits, so only audio integrated circuit 20A will be described in detail below.

[0025] Audio integrated circuit 20 A includes an analog-to-digital converter (ADC) 21 A for receiving the reference microphone signal from reference microphone Rl and generating a digital representation ref of the reference microphone signal. Audio integrated circuit 20A also includes an ADC 21B for receiving the error microphone signal from error microphone El and generating a digital representation err of the error microphone signal, and an ADC 21C for receiving the near speech microphone signal from near speech microphone NS and generating a digital representation of near speech microphone signal ns. (Audio integrated circuit 20B receives the digital

representation of near speech microphone signal ns from audio integrated circuit 20A via the wireless or wired connections as described above.) Audio integrated circuit 20A generates an output for driving speaker SPKR1 from an amplifier Al, which amplifies the output of a digital-to- analog converter (DAC) 23 that receives the output of a combiner 26. Combiner 26 combines audio signals ia from internal audio sources 24, and the anti-noise signal anti-noise generated by an ANC circuit 30, which by convention has the same polarity as the noise in reference microphone signal ref and is therefore subtracted by combiner 26. Combiner 26 also combines an attenuated portion of near speech signal ns, i.e., sidetone information st, so that the user of wireless telephone 10 hears their own voice in proper relation to downlink speech ds, which is received from a radio frequency (RF) integrated circuit 22. Near speech signal ns is also provided to RF integrated circuit 22 and is transmitted as uplink speech to the service provider via an antenna ANT.

[0026] Referring now to Figure 3, details of an exemplary ANC circuit 30 within audio integrated circuits 20A and 20B of Figure 2, are shown. An adaptive filter 32 receives reference microphone signal ref and under ideal circumstances, adapts its transfer function W(z) to be P(z)/S(z) to generate the anti-noise signal anti-noise, which is provided to an output combiner that combines the anti-noise signal with the audio to be reproduced by the transducer, as exemplified by combiner 26 of Figure 2. The coefficients of adaptive filter 32 are controlled by a W coefficient control block 31 that uses a correlation of two signals to determine the response of adaptive filter 32, which generally minimizes the error, in a least-mean squares sense, between those components of reference microphone signal ref present in error microphone signal err. The signals processed by W coefficient control block 31 are the reference microphone signal ref as shaped by a copy of an estimate of the response of path S(z) provided by filter 34B and another signal that includes error microphone signal err. By transforming reference microphone signal ref with a copy of the estimate of the response of path S(z), response SE COPY (Z), and minimizing error microphone signal err after removing components of error microphone signal err due to playback of source audio, adaptive filter 32 adapts to the desired response of P(z)/S(z). In addition to error microphone signal err, the other signal processed along with the output of a filter 34B by W coefficient control block 31 includes an inverted amount of the source audio including downlink audio signal ds and internal audio ia that has been processed by filter response SE(z), of which response SE COPY (Z) is a copy. By injecting an inverted amount of source audio, adaptive filter 32 is prevented from adapting to the relatively large amount of source audio present in error microphone signal err and by transforming the inverted copy of downlink audio signal ds and internal audio ia with the estimate of the response of path S(z), the source audio that is removed from error microphone signal err before processing should match the expected version of downlink audio signal ds, and internal audio ia reproduced at error microphone signal err, since the electrical and acoustical path of S(z) is the path taken by downlink audio signal ds and internal audio ia to arrive at error microphone E. Filter 34B is not an adaptive filter, per se, but has an adjustable response that is tuned to match the response of an adaptive filter 34A, so that the response of filter 34B tracks the adapting of adaptive filter 34A.

[0027] To implement the above, adaptive filter 34A has coefficients controlled by a SE coefficient control block 33, which processes the source audio (ds+ia) and error microphone signal err after removal, by a combiner 36, of the above-described filtered downlink audio signal ds and internal audio ia, that has been filtered by adaptive filter 34A to represent the expected source audio delivered to error microphone E. Adaptive filter 34A is thereby adapted to generate a signal from downlink audio signal ds and internal audio ia, that when subtracted from error microphone signal err, contains the content of error microphone signal err that is not due to source audio (ds+ia). However, if downlink audio signal ds and internal audio ia are both absent, or have very low amplitude, SE coefficient control block 33 will not have sufficient input to estimate acoustic path S(z). Therefore, in ANC circuit 30, a source audio detector 35 detects whether sufficient source audio (ds + ia) is present, and updates the secondary path estimate if sufficient source audio (ds + ia) is present. Source audio detector 35 may be replaced by a speech presence signal if such is available from a digital source of the downlink audio signal ds, or a playback active signal provided from media playback control circuits. A selector 38 selects the output of a frequency-shaped noise generator 40 if source audio (ds+ia) is absent or low in amplitude, which provides output ds+ia/noise to combiner 26 of Figure 2, and an input to secondary path adaptive filter 34A and SE coefficient control block 33, allowing ANC circuit 30 to maintain estimating acoustic path S(z). Alternatively, selector 38 can be replaced with a combiner that adds the noise signal to source audio (ds+ia).

[0028] When source audio (ds+ia) is absent, speaker SPKR of Figure lwill actually reproduce noise injected from frequency-shaped noise generator 40, and thus it would be undesirable for the user of the device to hear the injected noise. Therefore, frequency-shaped noise generator 40 shapes the frequency spectrum of the generated noise signal by observing the error signal generated from the output of secondary path adaptive filter 34A. The error signal provides a good estimate of the spectrum of the ambient noise, which affects the amount of injected noise that the user actually hears. The injected noise heard by the listener is transformed by path S(z) Therefore, frequency-shaped noise generator 40 uses at least a portion of the coefficients of secondary-path filter response SE(z) as generated by SE coefficient control block 33 to determine an adaptive noise-shaping filter response that is applied to the injected noise generated by frequency-shaped noise generator 40. [0029] Referring now to Figure 4, details of frequency-shaped noise generator 40 are shown. A fast-fourier transform (FFT) block 41 determines frequency content of error signal e and provides information to a coefficient control block 42. Coefficient control block 42 also receives at least some of the coefficient information generated by SE coefficient control block 33, which in some implementations is only the gain of secondary path filter response SE(z) and in other

implementations is the entire secondary path filter response SE(z). The output of coefficient control 42 adaptively controls a noise-shaping filter 43 that filters the output of a noise generator 45 that generally has a uniform spectrum, e.g., white noise. In general, noise- shaping filter 43 is adapted to have the same power spectral density (PSD) as error signal e. A gain control block 46 controls an amplitude of the noise signal as provided to noise shaping filter 43, according to a control value noise level. A selector 44 selects between the output of noise shaping filter 43 and the output of gain control block 46 according to a control signal shaping enable that is set or reset according to an operating mode of the personal audio device. Further details of operation of frequency-shaped noise generator 40 are described below.

[0030] Referring now to Figure 5, a process for determining the desired frequency response of noise shaping filter 43 is illustrated, as may be performed by coefficient control block 42 of Figure 4. The power spectral density (PSD) of error signal e is determined by FFT block 41 in steps 50-51. The resulting PSD coefficients are smoothed in the time domain (step 52), by a smoothing algorithm with rise-time determined by control value PSD ATTACK and a fall-time determined by control value PSD DECAY. An example smoothing algorithm that can be used for performing the time-domain smoothing of step 52 is given by:

P(k, n) = a t P(k, n - 1) + (1 - a t ) \e(k) \ 2 ,

where P(_k, n) is the computed PSD of error signal e, a t is a time-domain smoothing coefficient and k is a frequency bin number corresponding to the FFT coefficient. The time-domain smoothed PSD is smoothed in the frequency domain (step 53) by a frequency-smoothing algorithm controlled by control value PSD SMOOTH. An example frequency smoothing algorithm may smooth the PSD spectrum from a lowest-frequency bin and proceeding to a highest-frequency bin, as in the following equation,

P'{k + 1) = a f P'(k) + (1 - a f )P(k + 1)

Where P is the PSD of error signal after time-domain smoothing, P ' is the PSD of error signal e after frequency-domain smoothing, k denotes the frequency bin and a.f is a frequency- domain smoothing coefficient. After smoothing in the frequency domain by increasing frequency bin, the PSD of error signal e is smoothed starting from the highest-frequency bin and ending at the lowest-frequency bin as exemplified by the following equation:

P" (k - 1) = a f P" k) + (1 - a f )P'(k - 1),

where P"(k) is the final frequency-smoothed PSD result for bin k. The smoothing performed in steps 52-53 ensures that abrupt changes and narrowband frequency spikes due to narrowband signals present in error signal e are removed from the resulting processed PSD.

[0031] Once frequency smoothing is complete, the time- and frequency-smoothed PSD is altered according to at least one coefficient of an estimated secondary-path response as determined by coefficients of secondary-path adaptive filter 34A of Figure 3, which may be a gain adjustment as determined by a control value SE GAIN COMPENSATION, or a frequency dependent response modeling the inverse of the estimated secondary response SE INV EQ (step 54). In one example, the smoothed PSD of error signal e, P"(k), is transformed by the inverse C SE inv of the response SE(z) in the frequency band corresponding to bin k:

P(/c) = P (/c) C SE jnv ^k) The gain of response SE(z) is also compensated for by multiplying the SE-compensated PSD

P(/c) by a gain factor G SE _gain_inv ·

P (k) = P(k) G 'SE _gain_inv

Next a predetermined parametric equalization is applied according to control values EQ O- EQ 8 (step 55), which can simplify the design of the finite impulse response (FIR) filter used to implement noise-shaping filter 43, and compression is applied to the equalized noise in order to limit the dynamic range of the resulting PSD according to a control value DYNAMIC RANGE (step 56). The resulting processed PSD of error signal e is used as the target frequency response for noise-shaping filter 43, which in the depicted embodiment is a FIR filter controlled by coefficient control 42 according to the output of FFT block 41 (step 57). The amplitude of the frequency response of the FIR filter used to implement noise-shaping filter 43 is given by:

[0032] Referring now to Figure 6, a process for determining the normalized inverse of response SE(z) is illustrated. First, an FFT of response SE(z) is computed (step 60), and the PSD of response SE(z) is computed (step 61) and smoothed in the time and frequency domains according to a rise- time control value SE COMP ATTACK and a fall-time control value SE COMP DECAY (step 62). Then the maximum component of the FFE is found for each of the bins below a cutoff frequency, e.g., 6kHz (step 63) and each frequency component is inverted (step 64). Half of the maximum value for each bin is added to the resulting response (step 65) and a limitation is applied to bound the inverse of the computed SE(z) response within ranges

[SE_COMP_MIN(k):SE_COMP_MAX(k)] for each frequency band k (step 66), providing the resulting equalization values corresponding to the inverse of SE(z) (step 67). [0033] Referring now to Figure 7, a process for normalizing the gain of the inverse of SE(z) is shown. First, the computed FFT of response SE(z) from step 60 of Figure 6 is retrieved (step 70), and the energy of the FFT is computed for particular frequency bins SE GAIN BINS (step 61) and smoothed in the time-domain according to rise-time value SE GAIN ATTACK and fall-time value SE GAIN DECAY (step 71). The resulting gain value is compared to a preset gain value (step 72) and limited according to a bounded range from SE GAIN LIMIT MIN to

SE GAIN LIMIT MAX (step 73).

[0034] Referring now to Figure 8, a process for determining when to activate the noise shaping by asserting control signal shaping enable of Figure 4 is shown in a flow chart. First, the noise level is computed (step 80) and compared to a power-down threshold (decision 82). If the noise level is below the power-down threshold (decision 82), then the noise shaping is deactivated (step 81). Also if ANC oversight system indicates muted or other error conditions (decision 83), noise shaping is deactivated (step 81). Oversight of ANC systems is described in more detail in published U.S. Patent Application US20120140943 Al entitled "OVERSIGHT CONTROL OF AN

ADAPTIVE NOISE CANCELER IN A PERSONAL AUDIO DEVICE", the disclosure of which is incorporated herein by reference. Finally, if the playback audio signal has sufficient amplitude (decision 84), then noise shaping is deactivated (step 81). If none of the above conditions apply for deactivating noise shaping, then noise shaping is activated (step 85). Until the scheme is ended or the system is shut down (decision 86), steps 80-85 are repeated.

[0035] Referring now to Figure 9, a process for throttling the process of the design of the FIR filter that implements noise-shaping filter 43 is shown in a flowchart. If noise-shaping is inactive

(decision 110), the design process shown in Figure 5 is halted (step 111). If noise-shaping is active (decision 110) and the device is on-ear (decision 112), and if response W(z) is frozen (i.e., W coefficient control block 31 of Figure 3 is actively updating response W(z) of adaptive filter 32 of Figure 3) (decision 113), then , the design process shown in Figure 5 is also halted (step 111). Otherwise, if noise-shaping is active and the device is off-ear (decision 112), or the device is on-ear (decision 112) and response W(z) is not frozen, then the filter design is updated according to the process of Figure 5 (step 114). Until the scheme is ended, or the system is shut down (decision 115), steps 110-114 are repeated.

[0036] Referring now to Figure 10, a process for determining the FIR filter coefficients for implementing the response determined by the process of Figure 5 is shown. The desired frequency- dependent amplitude response is determined (step 120), e.g., by performing the process of Figure 5. The phase information is constructed (step 121) and real and imaginary parts of the response are determined (step 122). An inverse FFT is computed (step 123), and a windowing function is applied (step 124). The filter design is then truncated to a 64-tap FIR filter (step 125) and the FIR filter coefficients are applied from the truncated filter design (step 126)

[0037] Referring now to Figure 11, a block diagram of an ANC system is shown for implementing ANC techniques as depicted in Figure 3 and having a processing circuit 140 as may be

implemented within audio integrated circuits 20A, 20B of Figure 2, which is illustrated as combined within one circuit, but could be implemented as two or more processing circuits that inter-communicate. Processing circuit 140 includes a processor core 142 coupled to a memory 144 in which are stored program instructions comprising a computer program product that may implement some or all of the above-described ANC techniques, as well as other signal processing. Optionally, a dedicated digital signal processing (DSP) logic 146 may be provided to implement a portion of, or alternatively all of, the ANC signal processing provided by processing circuit 140. Processing circuit 140 also includes ADCs 21A-21E, for receiving inputs from reference microphone Rl, error microphone El near speech microphone NS, reference microphone R2, and error microphone E2, respectively. In alternative embodiments in which one or more of reference microphone Rl, error microphone El near speech microphone NS, reference microphone R2, and error microphone E2 have digital outputs or are communicated as digital signals from remote ADCs, the corresponding ones of ADCs 21A-21E are omitted and the digital microphone signal(s) are interfaced directly to processing circuit 140. A DAC 23A and amplifier Al are also provided by processing circuit 140 for providing the speaker output signal to speaker SPKR1, including anti- noise as described above. Similarly, a DAC 23B and amplifier A2 provide another speaker output signal to speaker SPKR2. The speaker output signals may be digital output signals for provision to modules that reproduce the digital output signals acoustically.

[0038] While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that the foregoing and other changes in form, and details may be made therein without departing from the spirit and scope of the invention.