An embodiment of the invention is related to digital signal processing techniques for automatically detecting that a first microphone has been occluded, and using such a finding to modify a noise estimate that is being computed based on signals from the first microphone and from a second microphone. Other embodiments are also described.
Mobile phones enable their users to conduct conversations in many different acoustic environments. Some of these are relatively quiet while others are quite noisy. There may be high background or ambient noise levels, for instance, on a busy street or near an airport or train station. To improve intelligibility of the speech of the near-end user as heard by the far-end user, an audio signal processing technique known as ambient noise suppression can be implemented in the mobile phone. During a mobile phone call, the ambient noise suppressor operates upon an uplink signal that contains speech of the near-end user and that is transmitted by the mobile phone to the far-end user's device during the call, to clean up or reduce the amount of the background noise that has been picked up by the primary or talker microphone of the mobile phone. There are various known techniques for implementing the ambient noise suppressor. For example, using a second microphone that is positioned and oriented to pickup primarily the ambient sound, rather than the near-end user's speech, the ambient sound signal is electronically subtracted from the talker signal and the result becomes the uplink. In another technique, the talker signal passes through an attenuator that is controlled by a voice activity detector, so that the talker signal is attenuated during time intervals of no speech, but not in intervals that contain speech. A challenge is in how to respond when one of the microphones is occluded, e.g. by accident when the user covers one with her finger.
An electronic audio processing system is described that uses multiple microphones, e.g. for purposes of noise estimation and noise reduction. A microphone occlusion detector generates an occlusion signal, which may be used to inform the calculation of a noise estimate. In particular, the occlusion detection may be used to select a 1-mic noise estimate, instead of a 2-mic noise estimate, when the occlusion signal indicates that a second microphone is occluded. This helps maintain proper noise suppression even when a user's finger has inadvertently occluded the second microphone, during speech activity, and during no speech but high background noise levels. To accommodate situations where there is both no speech activity and low or middle background noise levels, a compound occlusion detector is described. The microphone occlusion detectors may also be used with other audio processing systems that rely on the signals from at least two microphones.
The above summary does not include an exhaustive list of all aspects of the present invention. It is contemplated that the invention includes all systems and methods that can be practiced from all suitable combinations of the various aspects summarized above, as well as those disclosed in the Detailed Description below and particularly pointed out in the claims filed with the application. Such combinations have particular advantages not specifically recited in the above summary.
The embodiments of the invention are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment of the invention in this disclosure are not necessarily to the same embodiment, and they mean at least one.
Several embodiments of the invention with reference to the appended drawings are now explained. While numerous details are set forth, it is understood that some embodiments of the invention may be practiced without these details. In other instances, well-known circuits, structures, and techniques have not been shown in detail so as not to obscure the understanding of this description.
There are two audio or recorded sound channels shown, for use by various component blocks of the noise reduction (also referred to as noise suppression) system. Each of these channels carries the audio signal from a respective one of the two microphones 41, 42. It should be recognized however that a single recorded (or digitized) sound channel could also be obtained by combining the signals of multiple microphones, such as via beamforming. This alternative is depicted in the figure by the additional microphones and their connections in dotted lines. It should also be noted that in one approach, all of the processing depicted in
A pair of noise estimators 43, 44 operate in parallel to generate their respective noise estimates, by processing the two audio signals from mic1 and mic2. The noise estimator 43 is also referred to as noise estimator B, whereas the noise estimator 44 can be referred to as noise estimator A. In one instance, the estimator A performs better than the estimator B in that it is more likely to generate a more accurate noise estimate, while the microphones are picking up a near-end-user's speech and non-stationary background acoustic noise during a mobile phone call.
In one embodiment, for stationary noise, such as noise that is heard while riding in a car (which may include a combination of exhaust, engine, wind, and tire noise), the two estimators A, B should provide, for the most part, similar estimates. However, in some instances there may be more spectral detail provided by the estimator A, which may be due to a better voice activity detector, VAD, being used, as described further below, and the ability to estimate noise even during speech activity. On the other hand, when there are significant transients in the noise, such as babble (e.g., in a crowded room) and road noise (that is heard when standing next to a road on which cars are driving by), the estimator A can be more accurate in that case because it is using two microphones. That is because in estimator B, some transients could be interpreted as speech, thereby excluding them (erroneously) from the noise estimate.
In another embodiment, the noise estimator B is primarily a stationary noise estimator, whereas the noise estimator A can do both stationary and non-stationary noise estimation because it uses two microphones.
In yet another embodiment, estimator A may be deemed more accurate in estimating non-stationary noises than estimator B (which may essentially be a stationary noise estimator). Estimator A might also misidentify more speech as noise, if there is not a significant difference in voice power between a primarily voice signal at mic1 (41) and a primarily noise signal at mic2 (42). This can happen, for example, if the talker's mouth is located the same distance from each microphone. In a preferred embodiment of the invention, the sound pressure level (SPL) of the noise source is also a factor in determining whether estimator A is more accurate than estimator B—above a certain (very loud) level, estimator A may be less accurate at estimating noise than estimator B. In another instance, the estimator A is referred to as a 2-mic estimator, while estimator B is a 1-mic estimator, although as pointed out above the references 1-mic and 2-mic here refer to the number of input audio channels, not the actual number of microphones used to generate the channel signals.
The noise estimators A, B operate in parallel, where the term “parallel” here means that the sampling intervals or frames over which the audio signals are processed have to, for the most part, overlap in terms of absolute time. In one embodiment, the noise estimate produced by each estimator A, B is a respective noise estimate vector, where this vector has several spectral noise estimate components, each being a value associated with a different audio frequency bin. This is based on a frequency domain representation of the discrete time audio signal, within a given time interval or frame. A combiner-selector 45 receives the two noise estimates and generates a single output noise estimate. In one instance, the combiner-selector 45 combines, for example as a linear combination, its two input noise estimates to generate its output noise estimate. However, in other instances, the combiner-selector 45 may select the input noise estimate from estimator A, but not the one from estimator B, and vice-versa.
The noise estimator B may be a conventional single-channel or 1-mic noise estimator that is typically used with 1-mic or single-channel noise suppression systems. In such a system, the attenuation that is applied in the hope of suppressing noise (and not speech) may be viewed as a time varying filter that applies a time varying gain (attenuation) vector, to the single, noisy input channel, in the frequency domain. Typically, such a gain vector is based to a large extent on Wiener theory and is a function of the signal to noise ratio (SNR) estimate in each frequency bin. To achieve noise suppression, frequency bins with low SNR are attenuated while those with high SNR are passed through unaltered, according to a well know gain versus SNR curve. Such a technique tends to work well for stationary noise such as fan noise, far field crowd noise, car noise, or other relatively uniform acoustic disturbance. Non-stationary and transient noises, however, pose a significant challenge, which may be better addressed by the noise estimation and reduction system depicted in
Still referring to
Each of the estimators 43, 44, and therefore the combiner-selector 45, may update its respective noise estimate vector in every frame, based on the audio data in every frame, and on a per frequency bin basis. The spectral components within the noise estimate vector may refer to magnitude, energy, power, energy spectral density, or power spectral density, in a single frequency bin.
One of the use cases of the user audio device is during a mobile phone call, where one of the microphones, in particular mic2, can become occluded, due to the user's finger for example covering an acoustic port in the housing of the handheld mobile device. As a result, the 2-mic noise estimator A used in the suppression system of
In one embodiment of the invention, in the microphone occlusion detector 49, the first and second audio signals from mic1 and mic2, respectively, are processed to compute a power or energy ratio (generically referred to here as “PR”), such as in dB, of two microphone output (audio) signals x1 and x2. An occlusion function is then evaluated that is a function of PR, e.g. at the computed PR itself or a smoothed version of it—see
In one embodiment, the power ratio may be computed using the formula
PR=pow1t−pow2t(or power ratio in dB)
pow1t=10*log 10{[summation of frame_mic1(i)*frame_mic1(i)]/N},
pow2t=10*log 10{[summation of frame_mic2(i)*frame_mic2(i)]/N}
where frame_mic1 includes samples from i=1 to i=N (e.g., 256 time samples) of a band pass filtered audio signal from mid, and frame_mic2 includes samples from i=1 to i=N (e.g., 256 time samples) of a band pass filtered audio signal from mic2 (obtained in parallel). Note that the PR may also be computed as an energy ratio in the frequency domain by summing the power in frequency bins between the beginning and end of the band pass filter being used. Computing the power or energy ratio from band pass filtered signals, such as between 2000 Hz and 4000 Hz, provides more robust occlusion detection than using the entire audio frequency band. This is because microphone occlusion effects, e.g. signal attenuations, are stronger in those higher frequencies, than at lower frequencies, namely substantially below 2 kHz).
The occlusion function may be determined based on the phone form factor, as follows. In one example, when a mobile phone is being held in a normal handset position (against the ear), for clean speech, a base value of F dB is computed for the PR while mic2 is not obstructed. The F base value could be for example 12.5 dB for a given phone. A threshold value for PR is selected that should be a few dB higher than F. The exact number can be empirically selected based on experimentation involving different actual occlusion conditions of the microphone and their associated computed PR values. As shown in
In one embodiment, the occlusion function is defined as a step function (an abrupt function for example jumping from 0 to 1)—it may indicate one fixed value (e.g., 1=occluded) when the PR is greater than a threshold inflection point, and another fixed value (e.g., 0=not occluded) when the PR is less than the threshold. This is depicted by an example, as curve 61 in
Still referring to
In one embodiment, after the PR (or magnitude ratio MR) is computed, in time or frequency domain, the occlusion function is evaluated by smoothing the logistic function (LF) in time using for example an exponential filter as follows: LF(t)=alpha*LF(t−1)+(1−alpha)*PR(t) where alpha is a smoothing factor between 0 and 1. A similar expression holds when using MR(t), instead of PR(t).
An advantage of using occlusion detection in the context of noise suppression is to switch from the 2-mic noise estimator to the 1-mic noise estimator, so that the background noise is still attenuated properly during speech activity, despite a high power ratio PR (due to mic2 being occluded) which would normally be interpreted as signaling a low ambient noise level. In addition, switching to the 1-mic noise estimator in the absence of speech activity but during significant background noise allows this noise to be attenuated, again despite the high power ratio PR (which is due to mic2 being occluded).
The above described occlusion detection works well so long as there is a) speech activity with no background noise, b) speech with little to significant background noise, or c) no speech activity but significant background noise. In the particular numerical example given above, where there is no speech but there is high background noise, the logistic function (curve 62) can still detect occlusion, but only if the signal from mic2 is significantly attenuated, in particular at least 20 dB relative to mid. However, this configuration of the logistic function may not be able to detect occlusion in situations where there is no speech and essentially no background noise (in other words, a noise-only condition with just low and mid noise levels), as the PR in that case simply cannot go high enough to reach the threshold point of 20 dB. A solution here is to add another detector in parallel, which results in a “compound” occlusion detector as described below.
Referring now to
The occlusion detectors A, B may have different thresholds (inflection points), so that one of them is better suited to detect occlusions in a no speech condition in which the level of background noise is at a low or mid level, while the other can better detect occlusions in either a) a no speech condition in which the background noise is at a high level or b) in a speech condition. The former detector would be more sensitive to noise and would have a lower PR threshold, e.g. somewhere between 0 dB and substantially less than 20 dB, while the latter would have a higher PR threshold, e.g. around 20 dB. Examples of the occlusion functions that may be evaluated by such detectors are shown in
As seen in
Turning now to
The user-level functions of the mobile device 2 are implemented under the control of an applications processor 19 or a system on a chip (SoC) that is programmed in accordance with instructions (code and data) stored in memory 28 (e.g., microelectronic non-volatile random access memory). The terms “processor” and “memory” are generically used here to refer to any suitable combination of programmable data processing components and data storage that can implement the operations needed for the various functions of the device described here. An operating system 32 may be stored in the memory 28, with several application programs, such as a telephony application 30 as well as other applications 31, each to perform a specific function of the device when the application is being run or executed. The telephony application 30, for instance, when it has been launched, unsuspended or brought to the foreground, enables a near-end user of the device 2 to “dial” a telephone number or address of a communications device 4 of the far-end user (see
For wireless telephony, several options are available in the device 2 as depicted in
The uplink and downlink signals for a call that is conducted using the cellular radio 18 can be processed by a channel codec 16 and a speech codec 14 as shown. The speech codec 14 performs speech coding and decoding in order to achieve compression of an audio signal, to make more efficient use of the limited bandwidth of typical cellular networks. Examples of speech coding include half-rate (HR), full-rate (FR), enhanced full-rate (EFR), and adaptive multi-rate wideband (AMR-WB). The latter is an example of a wideband speech coding protocol that transmits at a higher bit rate than the others, and allows not just speech but also music to be transmitted at greater fidelity due to its use of a wider audio frequency bandwidth. Channel coding and decoding performed by the channel codec 16 further helps reduce the information rate through the cellular network, as well as increase reliability in the event of errors that may be introduced while the call is passing through the network (e.g., cyclic encoding as used with convolutional encoding, and channel coding as implemented in a code division multiple access, CDMA, protocol). The functions of the speech codec 14 and the channel codec 16 may be implemented in a separate integrated circuit chip, some times referred to as a baseband processor chip. It should be noted that while the speech codec 14 and channel codec 16 are illustrated as separate boxes, with respect to the applications processor 19, one or both of these coding functions may be performed by the applications processor 19 provided that the latter has sufficient performance capability to do so.
The applications processor 19, while running the telephony application program 30, may conduct the call by enabling the transfer of uplink and downlink digital audio signals (also referred to here as voice or speech signals) between itself or the baseband processor on the network side, and any user-selected combination of acoustic transducers on the acoustic side. The downlink signal carries speech of the far-end user during the call, while the uplink signal contains speech of the near-end user that has been picked up by the primary microphone 8. The acoustic transducers include an earpiece speaker 6 (also referred to as a receiver), a loud speaker or speaker phone (not shown), and one or more microphones including the primary microphone 8 that is intended to pick up the near-end user's speech primarily, and a secondary microphone 7 that is primarily intended to pick up the ambient or background sound. The analog-digital conversion interface between these acoustic transducers and the digital downlink and uplink signals is accomplished by an analog audio codec 12. The latter may also provide coding and decoding functions for preparing any data that may need to be transmitted out of the mobile device 2 through a connector (not shown), as well as data that is received into the device 2 through that connector. The latter may be a conventional docking connector that is used to perform a docking function that synchronizes the user's personal data stored in the memory 28 with the user's personal data stored in the memory of an external computing system such as a desktop or laptop computer.
Still referring to
The downlink signal path receives a downlink digital signal from either the baseband processor (and speech codec 14 in particular) in the case of a cellular network call, or the applications processor 19 in the case of a WLAN/VOIP call. The signal is buffered and is then subjected to various functions, which are also referred to here as a chain or sequence of functions. These functions are implemented by downlink processing blocks or audio signal processors 21, 22 that may include, one or more of the following which operate upon the downlink audio data stream or sequence: a noise suppressor, a voice equalizer, an automatic gain control unit, a compressor or limiter, and a side tone mixer.
The uplink signal path of the audio signal processor 9 passes through a chain of several processors that may include an acoustic echo canceller 23, an automatic gain control block, an equalizer, a compander or expander, and an ambient noise suppressor 24. The latter is to reduce the amount of background or ambient sound that is in the talker signal coming from the primary microphone 8, using, for instance, the ambient sound signal picked up by the secondary microphone 7. Examples of ambient noise suppression algorithms are the spectral subtraction (frequency domain) technique where the frequency spectrum of the audio signal from the primary microphone 8 is analyzed to detect and then suppress what appear to be noise components, and the two microphone algorithm (referring to at least two microphones being used to detect a sound pressure difference between the microphones and infer that such is produced by speech of the near-end user rather than noise). The functional unit blocks of the noise suppression system depicted in
While certain embodiments have been described and shown in the accompanying drawings, it is to be understood that such embodiments are merely illustrative of and not restrictive on the broad invention, and that the invention is not limited to the specific constructions and arrangements shown and described, since various other modifications may occur to those of ordinary skill in the art. For example, the 2-mic noise estimator can also be used with multiple microphones whose outputs have been combined into a single “talker” signal, in such a way as to enhance the talkers voice relative to the background/ambient noise, for example, using microphone array beam forming or spatial filtering. This is indicated in
This non-provisional application claims the benefit of the earlier filing date of provisional application No. 61/657,655 filed Jun. 8, 2012, and provisional application No. 61/700,265 filed Sep. 12, 2012.
Number | Date | Country | |
---|---|---|---|
61657655 | Jun 2012 | US | |
61700265 | Sep 2012 | US |