Method and audio noise suppressor using nonlinear gain smoothing for reduced musical artifacts

Information

  • Patent Grant
  • 10043530
  • Patent Number
    10,043,530
  • Date Filed
    Thursday, February 8, 2018
    7 years ago
  • Date Issued
    Tuesday, August 7, 2018
    6 years ago
Abstract
A noise suppressor has a band extractor to separate signal by frequency band; and per-band units for each of band including noise estimator and SNR computation units. The per-band unit has a histogrammer to give histograms of current and past SNRs, and a gain-curve updater computes gain curves from the histogram. Gain curves are used to determine raw gains from current SNRs, raw gain is filtered and controls a variable gain unit to provide band-specific gain-adjusted, signals that are recombined into a noise-reduced frequency-domain output. Raw gain filtering may include finite-impulse-response filtering and weighted averaging of intermediate gains of a current and adjacent-band per-band unit. The method includes separating an input into frequency bands, estimating in-band noise, and deriving a band SNR. Then, histogramming the SNR and updating a gain curve from the histogram, and finding a raw gain using the gain curve and current SNR.
Description
BACKGROUND

Many communication channels are noisy; this channel noise is added to intended signals and transmitted to a receiver. Further, many communications devices, including cell phones, are used in noisy environments such as crowds, cars, stores, and other places where background music or noise exists; background noises are often picked up by microphones and are effectively added to the intended voice signal and, unless suppressed at the transmitting device, are transmitted to the receiver.


When either or both channel noise or background noise reaches a receiver, this noise can impair intelligibility of intended voice signals unless a noise suppressor is used.


A typical communications system 200 in which an audio noise suppressor may be used is illustrated in FIG. 2. Audio from a human speaker 202 and background noise sources 204 are picked up by a microphone 206, audio from microphone 206 may be processed by a noise suppressor 208 before being transmitted by transmitter 210 into channel 212. Channel noise may be injected into channel 212 by channel noise sources 214, where channel noise may add to a transmitted signal and received by receiver 216 to provide a noisy signal that may be processed by noise suppressor 218 before driving a speaker 220 and being presented to a listener 222.


A conventional noise suppressor 100 (FIG. 1), useable as noise suppressor 208 at the transmitter end of channel 212 or as noise suppressor 218 at the receiver end of channel 212, receives an audio input 102 into a frequency-domain conversion unit 104. Frequency domain signals are divided into separate signals 108 each representing a frequency band of multiple frequency bands by band extractor 106; these separate frequency band signals are provided to a speech detector 110 that determines from the separate frequency band signals if speech is present in the incoming audio. Each frequency band signal is processed further by a separate per-band unit 112 having a noise estimator 114 and signal-to-noise ratio estimator 116 that provides an estimated signal-to-noise ratio 118 to a gain calculator 120. Gain calculator 120 provides a band-specific gain 122 to a variable gain unit 124 that applies band-specific gain 122 to the separate signals 108 representing that frequency band to provide a band-specific gain-adjusted signal 126. The band-specific gain-adjusted signals 126 are collected by a recombiner 128 and converted by an analog or time domain convertor 130 to either an analog domain or a digital time domain audio output signal 132.


While noise suppressors according to FIG. 1 in systems according to FIG. 2 work well under some conditions of noise from noise sources 204, 214, under other conditions they may prove objectionable “musical” artifacts. These artifacts result from inappropriate gains applied to one or a few frequency bands, such that noise in those bands is amplified, or insufficiently suppressed, when it should not be.





BRIEF DESCRIPTION OF THE FIGURES


FIG. 1 is a block diagram of a prior-art audio noise suppressor.



FIG. 2 is a block diagram of a system that may embody one or more audio noise suppressors.



FIG. 3 is a block diagram of an enhanced noise suppressor.



FIG. 4 is a current and past noise magnitude histogram showing a single peak.



FIG. 5 is a plot of an adapted gain curve derived using the histogram of FIG. 4.



FIG. 6 is a current and past noise magnitude histogram showing two peaks.



FIG. 7 is a plot of an adapted gain curve derived using the histogram of FIG. 6.



FIG. 8 is a flowchart of a method of reducing noise in a communications system.





DETAILED DESCRIPTION OF THE EMBODIMENTS

An improved noise suppressor 300 (FIG. 3), useable as noise suppressor 208 at the transmitter end of channel 212 or as noise suppressor 218 at the receiver end of channel 212, receives an audio input 302 into a frequency-domain conversion unit 304. If analog signals are provided to the noise suppressor, they are translated to pulse code modulation (PCM) format with an analog-to-digital converter. In an embodiment, frequency-domain conversion unit 304 performs a Fast Fourier Transform (FFT), Discrete Fourier Transform (DFT), or a Discrete Cosine Transform (DCT) on a timeslice or frame containing multiple sequential samples of input audio in PCM format.


Frequency domain signals from the frequency domain conversion unit 304 are divided into separate signals or signal groups 308 each representing a frequency band of multiple frequency bands by band extractor 306; these separate frequency band signals are provided to a speech detector 310 that determines from the separate frequency band signals if speech is present in the incoming audio and provides a speech-detected flag 312 by looking for patterns of frequencies associated with speech.


These separate frequency band signals are processed further by separate, per-band, gain-derivation and gain-application units 314.


An adaptive gain curve calculation unit 320 and a nonlinear post-filtering unit 322 are provided within each separate per-band gain-derivation and application unit 314. The adaptive gain curve calculation unit 320 adjusts the suppression gain curve from frame to frame based on the input signal power to that adaptive gain curve calculation unit 314 and estimated noise power as determined by a noise estimator 316 of that gain derivation and application unit.


The nonlinear post-filtering unit 322 provides further smoothing using the current raw gain computed for the current frame and recent previous raw gains from the gain curve calculation unit 320. It assumes raw gains are corrupted by noise and thus computes smoothed gains so smoothed gain for a particular frequency band is a nonlinear combination of the current gain and gains determined in prior timeslices.


Adaptive Gain Curve


The input instantaneous signal power and noise power estimate, denoted as σY2(n, k) and σN2(n, k), where n and k are the frame index and frequency band index, are used in the SNR estimator 318 of the adaptive gain curve calculation unit 320 to compute the signal-to-noise ratio (SNR) for the current frame. In describing the computation, we omit k, the frequency band index, in the following equations for convenience. The current SNR is

ξ(n)=10 log 10(σY2(n)/σN2(n))  (1)

and is used to update the SNR histogram in SNR histogram unit 324 for noise-only periods determined by speech detector 310. We discretize the range of ξ(n) into Q intervals equally spaced between ξmin and ξmax. In a particular embodiment, ξmin and ξmax are 0 and 6, respectively.


The values of the histogram of all the current and recent past SNRs are initialized to 1/Q. The probabilities of all bins of the histogram when there is no speech for the current frame is











p
ξ



(

n
,
i

)


=

{





1
-

α
ξ

+


α
ξ




p
ξ



(


n
-
1

,
i

)




,


if






ξ


(
n
)







falls





within





the





i

-

th





invertal










α
ξ




p
ξ



(


n
-
1

,
i

)



,
otherwise









(
2
)








for i=1, 2, . . . Q, where αξ is a constant controlling how rapidly we update the histogram, in an embodiment αξ is 0.98. Since the sum of the histogram equals one, we use it as an approximated probability distribution of the SNR when there is only noise. For ξ(n) less than ξmin or greater than ξmax, we skip updating the histogram.


The histogram is used to derive a gain curve starting from 0 and increasing monotonically toward 1, as ξ(n) increases in gain curve updater 326. The histogram alters the curve such that for ξ(n) with high probabilities, the curve increases with a less steep slope whereas for ξ(n) with low probabilities, the slope is steeper. The result is gain changes less rapidly for values of ξ(n) that occur more frequently and thus reducing the overall fluctuations of the gains over time.


Letting raw gain be gR (n), we use a parameterized mapping function, that maps instantaneous SNR ξ(n) to gR (n)











g
R



(
n
)


=

{




1
,


if






ξ


(
n
)



>

ξ

ma





x










T


(



p
ξ



(
n
)


,
i

)


,


if






ξ


(
n
)







falls





within





the





i

-

th





interval





of







p
ξ



(
n
)










0
,


if






ξ


(
n
)



<

ξ

m





i





n












(
3
)








where T(pξ(n), i) is a parameterized function defined as










T


(



p
ξ



(
n
)


,
i

)


=





k
=
1

i



1
/


p
ξ



(

n
,
k

)








k
=
1

Q



1
/


p
ξ



(

n
,
k

)









(
4
)







Essentially we use the inverse of the probability of the SNR as the slope of a piece-wise linear curve that starts from 0 and ends at 1. The following figures illustrate two examples of gR (n) with different SNR distributions. In FIG. 4, it can be seen that ξ(n) is generally centered around 1 dB. As a result, the corresponding gain curve of FIG. 5 has smaller slope in this region compared to other areas, e.g., 4 to 6 dB.


In an example gain curve where there are two peaks in the probability distribution of SNR, as shown in FIG. 6, the gain curve adapts to have two flat areas around 0 dB and 3 dB, respectively, as shown in FIG. 7.


The updated gain curve is applied to the current-frame SNR in a raw-gain finder 328, and past raw gains are save in a gain history buffer 330.


Nonlinear Post Filtering


Once the current and historical raw gains are computed, we denote them gR (n). We further smooth the current gain gI in gain smoother 340 using historical gain values in history b buffer 330; the gain smoother 340 is essentially a low-pass finite-impulse-response (FIR) digital filter with adaptive weights. In a particular embodiment, we save eight historical raw gains in history buffer 330. We compute weights along the time-axis and calculate an intermediate gain gI(n) as











g
I



(
n
)


=




i
=
0


T
-
1






w
T



(
i
)





g
R



(

n
-
i

)








(
5
)








i.e., gR (n) is a weighted sum of the current and past gain values. To determine the weights wT(i), we use:











w
T



(
i
)


=


Z
w



exp


(


-





g
R



(
n
)


-


g
R



(

n
-
i

)







γ
T


)




exp


(

-

γ
S


)







(
6
)








where γT and γs are predefined constants and Zw is a normalization factor defined as:










Z
w

=




i
=
0


T
-
1





exp


(


-





g
R



(
n
)


-


g
R



(

n
-
i

)







γ
T


)





exp


(

-

γ
S


)


.







(
7
)







Eq. (6) shows that we would put more weight on recent past gains. We also use time decay exp(−γs) to make sure we emphasize recent gains over older ones. In an embodiment γT and γs are 4 and 0.78, respectively. In (5) and (6) we perform a nonlinear filtering using raw gain values on the time-frequency domain plane to provide an intermediate gain gI.


The final smoothed gain gO(n) is obtained in a multiband gain smoother 342 by filtering each intermediate gain gI(n) with a predefined filter in frequency domain, using raw gains filtered by prior gain history from the same and adjacent-band gain derivation and application units, as












g
O



(

n
,
k

)


=





i
=
0


M
-
1






g
I



(

n
,
i

)




h


(

i
-
k

)







for





k


=
0


,
1
,


2











N

-
1





(
8
)








where k is the frequency band index. h(i) is a predefined filter having low pass characteristics.


The smoothed gains g0 are then applied to the frequency-domain converted input signal or signal group 308 in a per-band variable gain unit 350 to provide band-specific gain-adjusted, noise-reduced, frequency-domain signals 352.


The band-specific gain-adjusted, noise-reduced, frequency-domain signals 352 are collected by a recombiner 354 into a noise-reduced frequency-domain signal, and converted by an analog or time domain convertor 356 to either an analog domain or a digital time domain audio output signal 358. In an embodiment, analog or time domain converter 356 performs an inverse of the function of frequency domain converter 304.


A method 400 (FIG. 4) of reducing noise in a communications system, as implemented by the hardware of FIG. 3, begins by converting 402 incoming analog or digital signals to frequency domain input, and determining 404 if speech is present. The frequency domain input is then separated 405 into separate frequency bands for further processing.


Each frequency band in the frequency domain input is processed separately 406, beginning with estimating 408 the in-frequency-band noise, and computing 410 an in-band signal-to-noise ratio (SNR). Current and recent past SNR's, as determined when speech is not present, are histogrammed 412. The histogram is used to update 414 a gain curve. The gain curve is used 416 with the SNR to find a raw gain. The raw gain is then filtered 418 in time using a finite impulse response digital low-pass filter to give an intermediate gain. The intermediate gain is then filtered 420 against gains determined in adjacent and nearby frequency bands to give a final gain. The final gain is applied 422 in a variable gain unit to produce a noise-reduced signal for this frequency band.


The noise reduced signals from all frequency bands are recombined 424 to generate a noise-reduced audio in frequency domain form, which is then reconverted 426 to time or analog domain.


Combinations of Features


The features herein disclosed may be combined in a variety of ways. Particular combinations anticipated include:


A noise suppressor designated A has a band extractor adapted to separating a frequency domain input by frequency band. The suppressor has at least one per-band unit with a noise estimator coupled to receive a per-band output of the band extractor, a signal to noise ratio (SNR) computation unit coupled to receive an output of the noise estimator and the per-band output of the band extractor and to provide a current SNR, a histogramming unit coupled to provide a histogram of the current and past SNRs, a gain-curve updater configured to derive a gain curve from the histogram of the current and past SNRs, a raw-gain finder configured to use the gain curve and the current SNR to determine a raw gain, a post-filtering unit coupled to receive the raw gain and to provide a filtered gain, and a variable gain unit coupled to receive the per-band output of the band extractor and apply the filtered gain to provide a band-specific gain-adjusted, signal. The noise suppressor also has a combiner configured to combine the band-specific, gain-adjusted, signals into a noise-reduced frequency-domain signal.


A noise suppressor designated AA including the noise suppressor designated A wherein the post-filtering unit of the at least one per-band unit includes a low-pass finite-impulse-response digital filter.


In a noise suppressor designated AB including the noise suppressor designated A or AA the at least one per-band unit further includes a multiband smoother that performs a weighted-average of a current-band and adjacent-band intermediate gains to provide the filtered gain.


A noise suppressor designated AC including the noise suppressor designated A, AA, or AB further including a frequency domain converter adapted to perform a fast Fourier transform (FFT), discrete Fourier transform (DFT) or discrete cosine transform (DCT) to translate an input into the frequency domain input.


A method of noise suppression designated B includes separating a frequency domain input by frequency band into frequency band signals. For each frequency band signal, the method includes estimating noise of the frequency band signal, deriving a signal to noise ratio from the estimated noise and the frequency band signal to provide a current SNR, histogramming the SNR to provide a histogram of the current and past SNRs, updating a gain curve from the histogram of the current and past SNRs, finding a raw gain using the gain curve and the current SNR, filtering the raw gain to provide a filtered gain, and applying the filtered gain to the frequency band signal to provide band-specific gain-adjusted, signals. The method includes recombining the band-specific, gain-adjusted, signals into a noise-reduced frequency-domain signal.


A method of suppressing noise designated BA including the method designated B and wherein filtering the raw gain includes low-pass finite-impulse-response filtering.


A method of suppressing noise designated BB including the method designated B or BA wherein filtering the raw gain of a first frequency band of the frequency bands includes performing a weighted-average of a current-band and adjacent-band intermediate gains.


A method of suppressing noise designated BC including the method designated B, BA, or BB further includes performing a fast Fourier transform (FFT), discrete Fourier transform (DFT) or discrete cosine transform (DCT) to translate an input into the frequency domain input.


Changes may be made in the above methods and systems without departing from the scope hereof. It should thus be noted that the matter contained in the above description or shown in the accompanying drawings should be interpreted as illustrative and not in a limiting sense. The following claims are intended to cover all generic and specific features described herein, as well as all statements of the scope of the present method and system, which, as a matter of language, might be said to fall therebetween.

Claims
  • 1. A noise suppressor comprising: a band extractor adapted to separating a frequency domain input by frequency band;at least one per-band unit comprising: a noise estimator coupled to receive a per-band output of the band extractor,a signal to noise ratio (SNR) computation unit coupled to receive an output of the noise estimator and the per-band output of the band extractor and to provide a current SNR,a histogramming unit coupled to provide a histogram of the current and past SNRs,a gain-curve updater configured to derive a gain curve from the histogram of the current and past SNRs,a raw-gain finder configured to use the gain curve and the current SNR to determine a raw gain,a post-filtering unit coupled to receive the raw gain and to provide a filtered gain, anda variable gain unit coupled to receive the per-band output of the band extractor and apply the filtered gain to provide a band-specific gain-adjusted, signal; anda combiner configured to combine the band-specific, gain-adjusted, signals from each per-band unit into a noise-reduced frequency-domain signal.
  • 2. The noise suppressor of claim 1 wherein the post-filtering unit of the at least one per-band unit further comprises a low-pass finite-impulse-response digital filter.
  • 3. The noise suppressor of claim 2 the at least one per-band unit further comprising a multiband smoother that performs a weighted-average of a current-band and adjacent-band intermediate gains to provide the filtered gain.
  • 4. The noise suppressor of claim 3 further comprising a frequency domain converter adapted to perform a fast Fourier transform (FFT), discrete Fourier transform (DFT) or discrete cosine transform (DCT) to translate an input into the frequency domain input.
  • 5. The noise suppressor of claim 1 the at least one per-band unit further comprising a multiband smoother that performs a weighted-average of a current-band and adjacent-band intermediate gains to provide the filtered gain.
  • 6. A method of noise suppression comprising: separating a frequency domain input by frequency band into frequency band signals;for each frequency band signal, estimating noise of the frequency band signal,deriving a signal to noise ratio from the estimated noise and the frequency band signal to provide a current SNR,histogramming the SNR to provide a histogram of the current and past SNRs,updating a gain curve from the histogram of the current and past SNRs,finding a raw gain using the gain curve and the current SNR,filtering the raw gain to provide a filtered gain, andapplying the filtered gain to the frequency band signal to provide band-specific gain-adjusted, signals; andcombining the band-specific, gain-adjusted, signals into a noise-reduced frequency-domain signal.
  • 7. The method of claim 6 wherein filtering the raw gain includes low-pass filtering.
  • 8. The method of claim 7 wherein filtering the raw gains of a first frequency band of the frequency bands includes performing a weighted-average of a current-band and adjacent-band intermediate gains.
  • 9. The method of claim 8 further comprising performing a fast Fourier transform (FFT), discrete Fourier transform (DFT) or discrete cosine transform (DCT) to translate an input into the frequency domain input.
US Referenced Citations (17)
Number Name Date Kind
20090281800 LeBlanc et al. Nov 2009 A1
20100104113 Liu Apr 2010 A1
20100207689 Shimada Aug 2010 A1
20110081026 Ramakrishnan Apr 2011 A1
20110235553 Andersson Sep 2011 A1
20130013304 Murthy et al. Jan 2013 A1
20140316775 Furuta Oct 2014 A1
20150127331 Lamy et al. May 2015 A1
20160066087 Solbach Mar 2016 A1
20160086618 Neoran Mar 2016 A1
20160087658 Weissman Mar 2016 A1
20170213539 Magrath Jul 2017 A1
20170236526 Choo et al. Aug 2017 A1
20170337932 Iyengar Nov 2017 A1
20170365275 Lee Dec 2017 A1
20180102135 Ebenezer Apr 2018 A1
20180122399 Janse May 2018 A1
Non-Patent Literature Citations (1)
Entry
Notice of Allowance in U.S. Appl. No. 15/892,219 dated May 25, 2018, 6 pp.