# Patent

## Title
Externally estimated SNR based modifiers for internal MMSE calculations

## Abstract

Acoustic noise in an audio signal is reduced by calculating a speech probability presence (SPP) factor using minimum mean square error (MMSE). The SPP factor, which has a value typically ranging between zero and one, is modified or warped responsive to a value obtained from the evaluation of a sigmoid function, the shape of which is determined by a signal-to-noise ratio (SNR), which is obtained by an evaluation of the signal energy and noise energy output from a microphone over time. The shape and aggressiveness of the sigmoid function is determined using an extrinsically-determined SNR, not determined by the MMSE determination.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is related to the following applications: Accurate Forward SNR Estimation Based On MMSE Speech Probability Presence, invented by Guillaume Lamy and Bijal Joshi, filed on the same day as this application, and identified by Ser. No. 14/074,423; and Speech Probability Presence Modifier Improving Log-MMSE Based Noise Suppression Performance, invented by Guillaume Lamy and Jianming Song, filed on the same day as this application, and identified by Ser. No. 14/074,495.
BACKGROUND
Numerous methods and apparatus have been developed to suppress or remove noise from information-bearing signals. A well-known noise suppression method uses a noise estimate obtained using a calculation of a minimum mean square error or “MMSE.” MMSE is described in the literature. See for example Alan V. Oppenheim and George C. Verghese, “Estimation With Minimum Mean Square Error,” MIT Open CourseWare, http://ocw.mit.edu, last modified, Spring, 2010, the content of which is incorporated herein by reference in it is entirety.
While Log-MMSE is an established noise suppression methodology, improvements have been made to it over time. One improvement is the use of the speech probability presence or “SPP” as an exponent to the log-MMSE estimator, {circumflex over (q)} which is also known as the optimal log-spectral amplitude based estimator or “OLSA” approach, which makes the MMSE algorithm effectively reach its maximum allowed amount of attenuation.
The OLSA modification of the Log-MMSE noise estimation suffers from two known problems. One problem is that it increases so called musical noise in low signal-to-noise ratio situations. Another and more significant problem is that it also over-suppresses weak speech in noisy conditions. An MMSE-based noise estimation that reduces or avoids the problems known to exist with the prior art, OLSE modification of an MMSE-based noise estimate determination would be an improvement over the prior art.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a plot of a single waveform, representative of a clean, speech signal;
FIG. 2 is a plot of a background acoustic noise signal;
FIG. 3 is a plot representing a noisy speech signal, i.e., a clean speech signal such as the one shown in FIG. 1 and a background acoustic noise signal, such as the one shown in FIG. 2;
FIG. 4 depicts samples of the noisy speech signal shown in FIG. 3;
FIG. 5A depicts a first frame of data samples, which in a preferred embodiment comprises ten consecutive samples of a noisy speech signal;
FIG. 5B depicts a second frame of data samples, which comprises ten samples that occur after the first ten shown in FIG. 5A;
FIG. 6A and 6B depict the relative amplitudes of multiple frequency component bands or ranges, which represent respectively the first and second frames in the frequency domain;
FIG. 7 is a block diagram of a wireless communications device, configured to have an enhanced MMSE determiner;
FIG. 8A is a block diagram of an enhanced MMSE determiner;
FIG. 8B is a block diagram of a preferred implementation of an MMSE determiner;
FIG. 9 is a flow chart/block diagram depiction of the operation of the enhanced MMSE determiner;
FIG. 10A and FIG. 10B show first and second parts, respectively, of a flow chart depicting steps of a method for warping or modifying a speech presence probability (SPP) and de-noising a warped SPP;
FIG. 11 depicts four sigmoid curves; and
FIG. 12 depicts steps of a method for determining a signal-to-noise ratio.



DETAILED DESCRIPTION
Noise is considered herein to be an unwanted, non-information-bearing signal in a communications system. White noise or random noise is random energy, which has a uniform distribution of energy. It is most commonly generated by electron movement, such as current through a semiconductor, resistor, or a conductor. Shot noise is a type of un-random noise, which can be generated when an electric current flows abruptly across a junction or connection. Acoustic noise is either an unwanted or an undesirable sound. In a motor vehicle, acoustic noise includes, but is not limited to, wind noise, tire noise, engine noise, and road noise.
Acoustic noise is readily detected by microphones that must be used with communications equipment. Acoustic noise is thus “added” to information-bearing speech signals that are detected by a microphone.
Suppressing acoustic noise thus requires selectively attenuating audio-frequency signals, which are determined to be, or are believed to be, unwanted or undesirable, non-information bearing signals. Unfortunately, many acoustic noises are not continuous and can be difficult to suppress.
As used herein, the term, “band-limited” refers to a signal, the power spectral density of which is zero or “cut off,” above a certain, pre-determined frequency. The pre-determined frequency for most telecommunications systems including both cellular and wire line is eight-thousand Hertz (8 KHz).
FIG. 1 is a depiction of a short period of a single, clean, band-limited audio signal 100, such as voice or speech, which varies over time, t. For clarity and simplicity purposes only one waveform corresponding to one signal is shown. As those of ordinary skill in the art know, the audio signal 100 is somewhat “bursty” over short periods of time, measured in milliseconds. The signal 100 thus inherently includes short periods of time 102 during which the audio signal is missing.
The signal 100 depicted in FIG. 1 varies in amplitude over time. The signal 100, including the periods of silence or quiet 102 is thus known to those of ordinary skill in the art as being a signal that is in the time domain.
FIG. 2 depicts a few hundred millisecond of an acoustic noise signal 200. Unlike the audio signal 100 shown in FIG. 1, the noise signal 200 is depicted as substantially constant over at least the few hundred millisecond depicted in FIG. 2. The noise signal 200, could, however, be constant over long periods of time, as will happen when the noise signal is from wind noise, road noise, and the like.
As is well known, in a motor vehicle, speech and noise are usually co-existent which is to say, when a speech signal 100 and an acoustic noise signal 200 are detected at the same time by the same microphone, as happens when a person is using a microphone in a vehicle while the vehicle is moving along at a relatively high speed with a driver's window open, the noise 200 and speech 100, the microphone will add the speech and noise together.
FIG. 3 is a simplified depiction of the speech signal 100 of FIG. 1 when the noise signal 200 shown in FIG. 2 is added to the speech, as happens when a microphone transduces both a speech signal 100 and acoustic background noise 200. As shown in FIG. 3, the resultant signal 300 is a “noisy,” band-limited audio signal 300, which is a combination of clean, band-limited audio signal 102, such as the one shown in FIG. 1 and an acoustic noise signal 200, such as the one shown in FIG. 2 The noise signal 200 can be seen to have been “added to” the clean speech signal 100. Note too that in FIG. 3, time periods of relative quiet 102 or speech absence 102 are “filled” with background noise 200. In FIG. 3, the time period identified by reference numeral 302 shows where the background noise signal shown in FIG. 2 occupies the otherwise quiet period 102 of the signal shown in FIG. 1.
The voice or audio communications provided by most telecommunications systems including cellular systems are actually provided by the transmission and reception of digital data that represents time-varying or analog signals, such as those shown in FIGS. 1 and 2. The process of converting an analog signal to a digital form is well-known and requires sampling a band-limited signal at rate that is at least two-times, or double, the highest frequency that is present in the band-limited signal. Once the samples of an analog signal are taken, the samples are converted to digital values or “words” which represent the samples. The digital values representing a sample of an analog signal are transmitted to a destination where the digital values are used to re-create the samples of an analog signal from which the original samples were taken. The re-created samples are then used to re-create the original analog signal at the destination.
FIG. 4 depicts samples 400 of the noisy, band-limited audio signal 300 shown in FIG. 3. Some of the samples 404 of a noisy signal 300 will be samples of only the acoustic noise 200, which was “added” by a microphone. Other samples 403 will represent an information-bearing audio signal 100 and noise 200.
Regardless of whether the samples 400 represent a clean signal 100 and noise 200 or only noise 200, all of the samples 400 are converted to binary values for transmission to a destination. As set forth below, however, at least some of the noise 200 comprising the noisy signal 300 can be suppressed or removed if components of the noisy signal 300 due to the noise 200 are suppressed. It is thus desirable to identify or determine whether a sample of a noisy signal actually represents or is at least likely to represent a signal 100 or noise 200.
The term Fast Fourier Transform (FFT) refers to a process, well-known to those of ordinary skill in the digital signal processing art, by which a time domain signal, including digital signals, can be converted to the frequency domain. Stated another way, the FFT provides a method by which a time domain signal is represented mathematically using a set of individual signals of many different frequencies, which when combined together will re-form or re-construct the time domain signal. Put simply, a signal in the frequency domain is simply a numeric representation of various sinusoidal signals, each being of a different frequency, which when added together, will re-constitute the time-domain signal.
Those of ordinary skill in the digital signal processing art know that the manipulation and processing of both analog and digital signals is preferably done in the frequency domain. Those of ordinary skill in the digital signal processing art also know that samples of an analog signal and digital representations of such samples can also be converted to and processed in the frequency domain using the FFT. Further description of FFT techniques are therefore omitted for brevity.
FIG. 5A depicts the first ten consecutive samples 400 shown in FIG. 4 and which comprise a first frame of samples, Frame 0, representing a noisy audio signal, such as the noisy signal 300 shown in FIG. 3. As such, the frame of samples shown in FIG. 5A includes samples of a clean signal 100 that was combined with noise 200.
FIG. 5B depicts a second group of ten consecutive samples 404 shown in FIG. 4, taken during the interval identified by reference numeral 402 and which comprise a second frame of samples, Frame 1, representing only noise 200.
FIGS. 6A and 6B depict relative amplitudes of various different frequencies in different frequency bands B1-B8 of the ten samples shown in FIGS. 5A and 5B. The frequency components shown in FIGS. 6A and 6B represent the results of a conversion of the frames, which are in the time domain, to the frequency domain.
Different bands of component frequencies, B1-B8, which comprise a FFT of the ten samples of each frame are shown on the vertical axes of each graph; the relative amplitude, Amp, of each frequency band B1-B8 component present in the FFT of a frame is displayed along the “x” axis. FIG. 6A and 6B thus show how ten consecutive samples or a frame of a signal can be represented in the frequency domain by the relative amplitudes of different frequencies. The audio plus noise as well as the noise alone can thus be represented by different frequencies of differing amplitudes.
Those of ordinary skill in the digital signal processing art know that methods exist by which time domain frames of samples of a noisy signal 300, such as the frames shown in FIG. 5A and 5B, can be converted to and digitally processed in the frequency-domain. Once the samples are converted to the frequency domain, the frequencies representing the time-domain samples, which represent the original noisy signal 300, can be selectively attenuated in order to suppress or attenuate frequency components identified, or at least believed, to be noise 200. Stated another way, when a frame of samples 402 is converted from the time domain to the frequency domain and FFT representations of the frame are selectively processed to determine whether the frame is likely to contain voice or noise, individual frequencies representing the noise 200 can be attenuated in the frequency domain such that when the original, time domain signal is reconstructed, the noise content 302 present in the original, noisy signal 300 will be reduced or eliminated.
For computational efficiency, the apparatus and method described herein evaluates digital representations of signal samples, ten at a time. Ten such representations are referred to herein as a “frame.” The processing is preferably performed by a digital signal processor (DSP), but can also be performed by an appropriately-programmed general-purpose processor.
FIG. 7 is a simplified block diagram of a wireless communications device 700. The device 700 comprises a conventional microphone 702, which transduces audio-frequency signals that include a speech signal 704 and a background acoustic noise signal 706 to an electrical analog signal 708. The output signal 708 from the microphone 702 is thus an information-bearing speech signal 704 that is combined with background noise 706 that the microphone 702 also picked up.
The noisy speech 708 output from the microphone 702 is converted to a digital format signal 714 by a conventional analog-to-digital (A/D) converter 712. As is well known, the A/D converter 712 samples the analog signal at a predetermined rate and converts the samples to binary values, i.e., digital values.
The digital values from the A/D converter 712, which are representations 714 of the samples of the noisy speech signal 708 are filtered digitally in a conventional, digital, band pass filter 716, which band-limits the digital signal 714 and thus effectively band-limits signals from the microphone 702. Digital filtering is well known to those of ordinary skill in the art.
The band-limited digital representations 718 of noisy speech signal 708 are converted to the frequency domain 722 by a conventional FFT converter 720. Several methods of computing a Fast Fourier Transform (FFT) are well known to those of ordinary skill in the digital signal processing art. A description of FFT determinations is therefore omitted for brevity.
Frequency domain signals 722 from the FFT converter 720 are provided to an MMSE determiner 740. The MMSE determiner 740 processes frequency domain representations of samples in frames, i.e., ten samples at a time, to determine whether the frames are likely to represent speech or noise. The MMSE determiner 740 attenuates frames likely to be noise. Frames from the MMSE determiner 740 are provided to a conventional inverse Fast Fourier Transform (iFFT) converter 750. It re-constructs digital representations of the original samples, minus at least some of the background noise picked up by the microphone 702. A conventional digital-to-analog converter (DIA) 760 reconstructs the original noisy audio signal, but as a noise-reduced signal 762, which is transmitted from a conventional transmitter 770. Noise suppression thus takes place in the frequency domain processing performed by the MMSE determiner 740.
As described below, digital signal processing in the frequency domain by the MMSE determiner 740 provides contemporaneous and adaptive probabilities or estimates of whether signal(s) coming from the microphone 702 are speech or noise. The MMSE determiner 740 also provides attenuation factors that are used to selectively attenuate components of each sub-band, examples of which are the sub-bands B1-B8 depicted in FIGS. 6A and 6B. It is therefore important to accurately estimate whether a frequency domain representation of a signal is one that represents speech or noise.
As used herein, “real time” refers to a mode of operation in which a computation is performed during the actual time that an external process occurs, in order that the computation results can be used to control, monitor, or respond in a timely manner to the external process. Determining whether a frequency-domain representation of a signal sample might represent voice or noise is well-known, but non-trivial, and requires numerous computations to be made in real time, or nearly real time. For computational-efficiency purposes, the determination of whether a sample might contain, or represent, speech or noise is not performed on a sample-by-sample basis, but is, instead, performed on multiple consecutive samples comprising a frame. In a preferred embodiment, the determination of whether signals from a microphone contain speech or noise is based on analyses of data representing multiple different frequency bands in ten consecutive samples, the ten samples being referred to herein as a frame of data.
Put simply, the MMSE determiner is configured to analyze frequency-domain representations of frames of a noisy audio signal data to determine an improved likelihood, or probability, that they represent a signal or noise. As used herein, speech presence probability, or SPP, and the symbol {circumflex over (q)} are used interchangeably. The MMSE determiner 740 thus comprises an embellishment of a prior art process for determining a speech presence probability or “SPP” described by Ephraim and Cohen, “Recent Advancements in Speech Processing,” May 17, 2004, referred to hereafter as “Ephraim and Cohen,” the content of which is incorporated herein by reference. See also Y. Ephraim and D. Malah, “Speech enhancement using a minimum mean square error short time spectral amplitude estimator,” IEEE Trans. Acoust., Speech, Signal Processing, vol. 32, pp. 1109-1121, Dec. 1984; P. J. Wolfe and S. J. Godsill, “Efficient alternatives to Ephraim and Malah suppression rule for audio signal enhancement,” EURASIP Journal on Applied Signal Processing, vol. 2003, Issue 10, Pages 1043-1051, 2003; Y. Ephraim and D. Malah, “Speech enhancement using a minimum mean square error Log-spectral amplitude estimator,” IEEE Trans. Acoust., Speech, Signal Processing, vol. 33, pp. 443-445, Dec. 1985, the contents of all of which are incorporated herein by reference in their entireties.
As used herein, the term, gain actually refers to an attenuation. As the term is used herein, a gain is therefore negative. In Ephraim and Cohen and the figures herein, gain is represented by the variable “G,” as in Gmmse.
The MMSE determiner 740 determines an SPP, which, as described above, is an estimate, or probability, that a frame contains speech. The MMSE determiner 740 also determines an attenuation, or gain factor, to be applied to the components of each of the various frequency sub-bands in each frame, as disclosed by Ephraim and Cohen.
The SPP, or {circumflex over (q)}, and attenuation, Gmmse, provided by the MMSE methodology espoused by Ephraim and Cohen are determined adaptively, frame-by-frame. The SPP determined for a first frame is used in the determination of an SPP for a subsequent frame.
The MMSE espoused by Ephraim and Cohen also requires an estimate of a signal-to-noise ratio (SNR). Unfortunately, when the value of the SNR used by the MMSE method of Ephraim and Cohen goes low, the resultant SPP and Gmmse values will be incorrect. As a result, noise, and hence voice accompanied by noise, will be increasingly over-suppressed. Stated another way, the MMSE calculation as described by Ephraim and Cohen relies on an estimate of a signal-to-noise ratio (SNR), which is typically inaccurate.
In the preferred embodiment of the MMSE determiner 740 disclosed herein, the SPP determined using the method of Ephraim and Cohen is modified after it is calculated. The modification is performed responsive to an externally-provided, and externally-determined, signal-to-noise ratio in order to reduce, or eliminate, the over-attenuation of speech when a signal-to-noise ratio is low, i.e., below about 1.5:1. In a preferred embodiment and as described below, under certain SNR conditions, the SPP modification is non-linear, and, under other SNR conditions, the SPP modification is linear.
FIG. 8A is a block diagram of an enhanced MMSE determiner 800 for use in a communications device, such as the device shown in FIG. 7. The MMSE determiner 800 comprises a speech probability (SPP) determiner 802, a multiplier 804, and an SPP modifier 806.
The SPP determiner 802 provides an SPP 806, as described by Ephraim and Cohen. The multiplier 804 modifies the SPP 806 by an SPP modification factor 810, which is a value between zero and a number obtained from the SPP modifier 806. The output 812 of the multiplier 804 is a “warped SPP,” so named because the modification factor 810 obtained from the SPP modifier 806 is a value that varies non-linearly.
In the preferred embodiment, the SPP modifier provides an SPP modification factor 810 by evaluating a non-linear function, preferably a sigmoid function, parameters of which represent an externally-provided signal-to-noise ratio (SNR), preferably determined in real-time and from actual signal values. The enhanced MMSE determiner 800 thus provides an SPP that is inherently more accurate than is possible using Ephraim and Cohen because the SPP from the MMSE determiner 800 is determined responsive to a real-time SNR.
As can be seen in FIG. 8B, the MMSE determiner 800 is preferably embodied as a digital signal processor (DSP) 850, which is coupled to a non-transitory memory device 860, which stores executable instructions. The DSP 850 is coupled to the memory device 860 via a conventional bus 870. The DSP outputs values of SPP and frames of data representing ten consecutive voice samples, the frequency components of which are attenuated as described herein in order to reduce, or eliminate, noise 200 from a noisy audio signal 300.
Executable instructions in the non-transitory memory cause the DSP to perform operations on frames of data, as shown in FIG. 9, which is a block diagram depicting a preferred method of improving a log-MMSE based noise suppression by the determination of an SPP from a real-time, or near-real time, SNR obtained from an external source, i.e., not the MMSE itself.
Referring now to FIG. 9, which depicts the operation of the MMSE determiner 800, at step 902, samples of a noisy signal that comprise a “frame,” and which are, therefore, considered to be of an identical occurrence time, t, are processed by the speech probability determiner 802 to provide an SPP for each of the frequency bands, k, for a frame. The processing provided at step 902 provides an SPP, or {circumflex over (q)}, by evaluating Eq. 3.11, as taught by Ephraim and Cohen, a copy of which is inset below.




  
    
      
        
          
            q
            ^
          
          tk
        
        =
        
          
            [
            
              1
              +
              
                
                  
                    1
                    -
                    
                      
                        q
                        ^
                      
                      
                        tk
                        |
                        
                          t
                          -
                          1
                        
                      
                    
                  
                  
                    
                      q
                      ^
                    
                    
                      tk
                      |
                      
                        t
                        -
                        1
                      
                    
                  
                
                ⁢
                
                  (
                  
                    1
                    +
                    
                      
                        ξ
                        ^
                      
                      tk
                    
                  
                  )
                
                ⁢
                
                  exp
                  ⁡
                  
                    (
                    
                      -
                      
                        
                          ∂
                          ^
                        
                        tk
                      
                    
                    )
                  
                
              
            
            ]
          
          
            -
            1
          
        
      
    
    
      
        (
        3.11
        )
      
    
  




In Eq. 3.11, and in the MMSE determiner 800, “k” is a frequency sub-band, i.e., a range of frequencies provided by evaluation of a Fast Fourier Transform; “t” is a frame of data, i.e., ten or more consecutive frequency-domain representations of samples taken from a noisy voice signal, which are “lumped” together. ξ is a signal-to-noise (SNR) ratio estimate of a first frame; u is a SNR estimate of a subsequent frame. SPP, or {circumflex over (q)}, is thus determined adaptively, frame after frame. See Eprhaim and Cohen, p. 10.
As can be seen in Eq. 3.11, the value of {circumflex over (q)} for a particular frame of data is obtained using a previously-determined {circumflex over (q)}, i.e., a {circumflex over (q)} for a previous frame, which is denominated as {circumflex over (q)}tk|t−1. SPPs change over time responsive to changes in the values of ξ and u, which depend on a SNR. The accuracy of SPP will thus depend on a SNR.
The SPP, or {circumflex over (q)}, resulting from a computation of Eq. 3.11 is a scalar, the value of which ranges between zero and one with zero and values there between. A zero indicates a zero probability that a particular band of frequencies of a frame data, contains speech data; one indicates a virtual certainty that a corresponding band of frequencies of a frame of data contains speech.
As can also be seen in Eq. 3.11, when a signal-to-noise ratio, {circumflex over (ξ)}, is small, i.e., close to 1:1, as will happen when a channel is noisy, the SPP will, as a result, also be small. A small-valued SPP means that a sample is unlikely to represent speech, which will trigger attenuation of a frame's component frequencies. Eq. 3.11 thus provides at least one unfortunate characteristic of the MMSE espoused by Ephraim and Cohen, which is an unwanted over-attenuation of speech when a SNR approaches one. Incorrect SNR values can provide unacceptable speech attenuation.
In order to reduce, or eliminate, the over-suppression speech signals in noisy conditions, the MMSE determiner 800 shown in FIG. 8 is configured to modify the value of {circumflex over (q)} that is determined from Eq. 3.11, responsive to receipt of a SNR, on a frame-by-frame basis. As shown in FIG. 8 and FIG. 9, the {circumflex over (q)} provided by Eq. 3.11 of Ephraim and Cohen is modified by “multiplying” that value of {circumflex over (q)} by a number obtained by the evaluation of a non-linear function, preferably a sigmoid function, the form of which is:




  
    
      
        y
        =
        
          1
          
            1
            +
            
              e
              
                -
                
                  c
                  ⁡
                  
                    (
                    
                      x
                      +
                      b
                    
                    )
                  
                
              
            
          
        
      
    
    
      
        (
        
          Eq
          .
          
            
          
          ⁢
          1
        
        )
      
    
  




the general shape of which is provided in FIG. 11, which shows three sigmoid curves 1102, 1104, 1106, the shapes of which are substantially the same.
In general, a sigmoid curve has two characteristics: a slope or non-linearity, c, and a mid-point, b. The output of the sigmoid function, y, is considered herein to be a warp factor. The value of y that is obtained when values of “x,” are away from the mid-point, b and in the non-linear regions 1108 of the curves, non-linearly change, or warp, an SPP determined using the MMSE obtained using the methodology of Ephraim and Cohen.
In a sigmoid equation, “b” is the mid-point of the sigmoid curve. In the Applicant's preferred embodiment, the value of “x” is a signal-to-noise ratio or SNR. Unlike the SNR used in the conventional MMSE methodology, in the Applicant's preferred embodiment, a SNR is preferably obtained from an external source, as described below. The midpoint, b, is also determined by the externally-provided SNR.
The values of the mid-point, b, of the sigmoid curve, the slope, c, and x or SNR determine the value of y, the value of which may be referred to as a warping factor. The value of the warp factor, y, determines the degree to which the SPP determined by the SPP determiner 802 is warped or modified. For a given SNR and slope, c, changing the midpoint, b will change the aggressiveness of the sigmoid function.
In a preferred embodiment of the Applicant's invention, the warping tends to decrease when noise becomes overwhelming, i.e., when the SNR is low. It is, therefore, desirable to reduce the sigmoid warping to be less aggressive in high noise situations in order to maintain a speech probability presence even though it might be unreliable. Modifying the sigmoid warping, and hence it aggressiveness, is accomplished by “shifting” the sigmoid curve left and right along the x axis. In so doing, the mid-point of the sigmoid curve will also shift. Conversely, shifting the midpoint of a sigmoid curve will also shift the sigmoid left and right and change the aggressiveness of the sigmoid warping.
Referring now to FIG. 11, which shows four sigmoid curves 1102, 1104, 1106, and 1108, the determination of a mid-point, P, for a sigmoid curve evaluated by the SPP modifier 662 is made according to the following equation:




  
    
      
        
          
            Warp
            factor
          
          ⁡
          
            (
            realSNR
            )
          
        
        =
        
          {
          
            
              
                1
              
              
                
                  realSNR
                  ≤
                  
                    SNR
                    1
                  
                
              
            
            
              
                
                  
                    realSNR
                    -
                    
                      SNR
                      0
                    
                  
                  
                    
                      SNR
                      1
                    
                    -
                    
                      SNR
                      0
                    
                  
                
              
              
                
                  
                    SNR
                    1
                  
                  <
                  realSNR
                  <
                  
                    SNR
                    0
                  
                
              
            
            
              
                0
              
              
                
                  realSNR
                  ≥
                  
                    SNR
                    0
                  
                
              
            
          
        
      
    
    
      
        (
        
          Eq
          .
          
            
          
          ⁢
          2
        
        )
      
    
  




In the equation above, SNR0 and SNR1 are experimentally-determined constants, preferably about 2.0 (1.6 dB) and 10.0 (10 dB), respectively. Warpfactor(realSNR) varies between 0.0 and 1.0. The determination of realSNR is explained below.
Using a predetermined, or desired, Warpfactor, the midP for the curves shown in FIG. 11, which is also bin a sigmoid function, is computed as:

midP=Warpfactor·(midPmin−midPmax)+midPmax   (Eq. 3)

The limits, midPmax and midPmin, are experimentally determined limits for midP, preferably about 0.5 and about 0.3, respectively. They limit or define the range of values that the warp factor can attain.
In Eq. 3 above, selecting values for midPmin, midPmax and Warpfactor will move the value of the mid-point, b, along the x axis. By moving the value of, midP, rightward toward midPmax the non-linear warping is reduced, or minimized, when the SNR goes low. Moving the midpoint, midP, left towards midPmin increases the non-linear warping (more effect) when SNR gets high in order to maintain speech in noisy conditions while cleaning musical noise in less noisy conditions.
The slope, c, of the sigmoid curves can be selectively made either very aggressive or neutral, i.e., linear or almost linear. In FIG. 11, the curves identified by reference numerals 1102, 1104, and 1106 have different midpoints and slopes that are essentially the same. The curve identified by reference numeral 1108, however, has the same midpoint as the curve identified by reference numeral 1104 but a reduced or less aggressive slope. When a sigmoid curve slope is aggressive, such as the curve identified by reference numeral 1108, the value of the SPP becomes more discriminative between noise and speech portions of the current frame's spectrum. When the sigmoid curve slope is linear, or nearly linear, SPP, as calculated by the MMSE, is essentially unchanged. In a preferred embodiment, the slope, c, and the midpoint are determined by signal-to-noise ratios.
An objective, or goal, in selecting a sigmoid curve shape is to make SPP neutral when in low SNR conditions in order to maintain as much speech as possible and to make SPP more discriminative when a SNR is relatively high, i.e., a maximum noise suppression, Gmin, is realized.
The Sigmoid warping slope c(Warp_factor) is a linear function of the Warp_factor:

c(Warpfactor·)=a·Warpfactor+b  (Eq. 4)

As set forth above, however, a warp factor is a function of SNR. The coefficients “a” and “b” are calculated as:

a=(CMIN−CMAX),b=CMIN−a  (Eq. 5)

CMIN=1 and CMAX=15 are determined, or selected, experimentally and define maximum and minimum degrees of non-linear warping.
It was determined experimentally that the mid-point b, should be held between a maximum value bmax equal to about 0.8 and a minimum value burin, equal to about 0.3, in order to limit the degree by which the SPP 806 can be attenuated or warped responsive to a SNR.
Referring again to FIG. 8, the product of {circumflex over (q)}, obtained using Eq. 3.11 and provided by the SPP determiner 802, and the value of a sigmoid function, as set forth above, is a warped SPP. It is also the value substituted for {circumflex over (q)} in the computation of {circumflex over (q)} for the next frame of data.
As shown in FIG. 9, the warped SPP is determined using two SNRs. Stated another way, the Applicant's method and apparatus adaptively updates the calculation of an SPP, or {circumflex over (q)} using a sigmoid function, the shape of which is controlled, or determined, responsive to a signal to noise ratio in order to smooth, or reduce, attenuation of voice when SNR is low and to increase the attenuation when the value of {circumflex over (q)} output from Eq. 3.11 is high.
Still referring to FIG. 9, the determination of an SPP and a warped SPP is performed for all frequency bands of a frame. In the preferred embodiment, after the warped SPPs are calculated at step 904 for all frequency bands of a frame, the SPP's are “de-noised” at step 906, the details of which are shown in FIG. 10, which shows steps of a method 1000 of de-noising warped SPPs.
At a first step 1002, described above, an SPP or {circumflex over (q)} is calculated by the evaluation of Ephraim and Cohen's Eq. 3.11. After a SNR as described herein is received at step 1004, an SPP modifier is determined at step 1006, which in the preferred embodiment is a value obtained by the evaluation of a sigmoid function, the “shape” of which is determined by the SNR received at step 1004. At step 1008, the SPP determined at step 1002 is modified to produce a warped SPP' or warped {circumflex over (q)}.
After warped SPPs are determined for all frequency bands comprising a frame of data, an average of the warped {circumflex over (q)} values (q) is determined at step 1010. After the average of all warped {circumflex over (q)} values is determined at step 1010, at step 1012, each of the previously-calculated warped SPPs is compared to a first, minimum warped SPP threshold, TH1, to identify warped SPP values that might be aberrant. TH 1 is predetermined and is preferably a value equal to the mean or average value for all warped {circumflex over (q)} values, (q), increased by two standard deviations of q.
An arithmetic comparison is made at step 1014 wherein the value of a warped SPP is compared to TH 1. If the value of a warped SPP is determined to be greater than TH 1, the warped SPP is considered to be an aberration. At steps 1016 and 1018, the mean SPP)is substituted for aberrant warped SPP values to provide a set of warped SPPs, the value of each indicating the probability that speech is present in a corresponding frequency band of a corresponding frame obtained from a time-varying signal.
At step 1020, a SNR estimate for each frequency band, as espoused by Ephraim and Cohen, is modified using the warped SPP value. A revised signal to noise ratio, SNR′ is calculated at step 1022, the result of which at step 1024 provides a first gain function, Gmmse, which is to be multiplied against the frequency-domain frame data.
A minimum gain factor, Gmin, is determined at step 1026.
In the last step 1028, a final gain factor is determined by multiplying the first modified gain function by the minimum gain raised to a power equal to one minus the warped SPP to provide a final gain factor that is applied to the received signal, which is to say applied to the frequency component of the received signal.
In a preferred embodiment, the speech probability presence factor that is generated by evaluation of the first stage of the MMSE calculation ranges between a first minimum value equal to zero and up to 1.0. The SPP factor is modified by an output of a sigmoid function the value of which preferably ranges from zero through one. In an alternate embodiment, the value of the speech probability presence factor output from the MMSE calculation can be values other than zero and one so long as they are all less than one. Similarly the values between which the SPP gain factor is modified can be values between zero and one so long as the values are less than one.
The signal-to-noise ratios used to determine the shape of the sigmoid function and hence the warp factors and warped SPPs, are preferably determined using a methodology graphically depicted in FIG. 12.
In a preferred embodiment, determining a signal-to-noise ratio estimation actually relies on two SNR estimations and a new measure of reliability of speech probability presence. The first SNR estimation is referred to herein as a “softSNR.” It is an SNR estimation that tends towards 0 dB very quickly over time when an audio signal is accompanied by a high level of acoustic noise, as will happen in noisy environments. A passenger compartment of a motor vehicle traveling at a relatively high speed with the windows lowered is a noisy environment. The second SNR estimate is referred to herein as a “realSNR,” which is a fairly accurate SNR estimation that tends to be reliable even in noisy environments.
The new measure of speech probability presence reliability is referred to herein as “qRel.” FIG. 12 shows how these components, softSNR, real SNR and qRel, interact with one another and result in the determination of a fairly accurate actual SNR that is used to determine the shape of the sigmoid function by which the Ephraim and Cohen determination of SPP is warped. FIG. 12 shows that various determinations are made simultaneously or in parallel with other determinations. Stated another way, the methodology depicted in FIG. 12 is not entirely sequential.
At steps 1202 and 1204, a SPP or 4 for a first frame of data is computed using the prior art method of Ephraim and Cohen. A sigmoid function of the form set forth above is evaluated, the mid-point P determined and a warp factor generated at steps 1206 and 1208.
At step 1210, the warp factor generated at step 1208 is modified. But the warp factor of step 1210 stays within or between threshold values for the warp factor received at step 1212. The thresholds are now computed as such




  
    
      
        
          Denoise
          thresh
        
        =
        
          {
          
            
              
                
                  Denoise
                  
                    ma
                    ⁢
                    
                      
                    
                    ⁢
                    x
                  
                
              
              
                
                  
                    Denoise
                    thresh
                  
                  ≥
                  
                    Denoise
                    
                      ma
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                
              
            
            
              
                
                  
                    1
                    2
                  
                  ⁢
                  
                    (
                    
                      1
                      -
                      qRel
                    
                    )
                  
                
              
              
                
                  
                    Denoise
                    
                      m
                      ⁢
                      
                        
                      
                      ⁢
                      i
                      ⁢
                      
                        
                      
                      ⁢
                      n
                    
                  
                  <
                  
                    Denoise
                    thresh
                  
                  <
                  
                    Denoise
                    
                      ma
                      ⁢
                      
                        
                      
                      ⁢
                      x
                    
                  
                
              
            
            
              
                
                  Denoise
                  
                    m
                    ⁢
                    
                      
                    
                    ⁢
                    i
                    ⁢
                    
                      
                    
                    ⁢
                    n
                  
                
              
              
                
                  
                    Denoise
                    thresh
                  
                  ≤
                  
                    Denoise
                    
                      m
                      ⁢
                      
                        
                      
                      ⁢
                      i
                      ⁢
                      
                        
                      
                      ⁢
                      n
                    
                  
                
              
            
          
        
      
    
    
      
        (
        
          Eq
          .
          
            
          
          ⁢
          6
        
        )
      
    
  




Where qRel is a reliability factor of the speech probability presence. qRel trends towards 0 when high reliability is expected and towards 1 when unreliable.
Denoise max and Denoise min are experimentally-determined constants, typically about 0.3 and about 0.0, respectively, and are maximum and minimum values for the SPP warp factors. The Denoise threshold, Denoisethresh therefore trends toward Denoise_max when the SPP reliability, qRel, is high and trends toward Denoise_min when reliability, qRel, is low.
After adjusting the SPP at step 1210, a “re-warped” SPP is output at step 1212 for use in calculating SPP for the 11 ext frame of data. At step 1214, a “re-warped” SPP is used to calculate a “softSNR” and a “realSNR history modifier,” α.
In determining a signal-to-noise ratio, it is helpful to consider a history of signal-to-noise values over a relatively short period of recent time. In determining a softSNR and realSNR, a SPP history modifier, ∝hist, is introduced. Its value is calculated based on the mean and standard deviation of the speech probability presence as computed above.
The history modifier, ∝hist, is computed in two steps. The first step is the linear transformation of the mean and standard deviation of SPP, limited between two values, k_1 and k_2, then expanded again between 0 and 1, as such:




  
    
      
        
          ∝
          hist
        
        ⁢
        
          =
          
            {
            
              
                
                  
                    
                      
                        k
                        1
                      
                    
                    
                      
                        
                          ∝
                          hist
                        
                        ≥
                        
                          k
                          1
                        
                      
                    
                  
                  
                    
                      
                        
                          mean
                          ⁡
                          
                            (
                            q
                            )
                          
                        
                        +
                        
                          2
                          *
                          
                            std
                            ⁡
                            
                              (
                              q
                              )
                            
                          
                        
                      
                    
                    
                      
                        
                          k
                          2
                        
                        <
                        
                          ∝
                          hist
                        
                        <
                        
                          k
                          1
                        
                      
                    
                  
                  
                    
                      
                        k
                        2
                      
                    
                    
                      
                        
                          ∝
                          hist
                        
                        ≤
                        
                          k
                          2
                        
                      
                    
                  
                
                ⁢
                
                  

                
                ⁢
                
                  ∝
                  hist
                
              
              =
              
                
                  
                    ∝
                    hist
                  
                  ⁢
                  
                    -
                    
                      k
                      2
                    
                  
                
                
                  
                    k
                    1
                  
                  -
                  
                    k
                    2
                  
                
              
            
          
        
      
    
    
      
        (
        
          Eq
          .
          
            
          
          ⁢
          7
        
        )
      
    
  




In the equation above, k1 and k2 are experimentally-determined constants and typically about 0.2 and about 0.8, respectively. Companding and expanding empirically amplifies a differentiation between speech and noise and accelerates the SNR value changes or SNR “movement.” The history modifier, ∝hist, thus tends toward the value of 1.0 when mostly speech is present and tends toward the value 0.0 when mostly noise is detected.
A softSNR computation requires the computation of a long term speech energy, ltSpeechEnergy, which is preferably updated every frame, and the computation of a long term energy, ltNoiseEnergy. The update rate is based on an exponentially decreasing factor.

ltSpeechEnergy=ALPHALT∝hist·ltSpeechEnergy+(1−ALPHALT∝hist)·Mic  (Eq. 8)

ltNoiseEnergy=ALPHALT(1−∝hist)·ltNoiseEnergy+(1−ALPHALT(1−∝hist))·Mic  (Eq. 9)

In the equations above, “Mic” is energy in joules, output from a microphone that detects speech and background acoustic noise. The equations above represent speech and noise energy as a function of the microphone output and ALPHA_LT, which is an experimentally-determined constant the value of which is typically 0.93, which corresponds to a microphone's fairly quick adaptation rate.
When ∝hist tends towards 1, as will happen when mostly speech is present, the long term speech energy ltSpeechEnergy, is updated according to a normal exponentially decreasing factor, while ltNoiseEnergy tends to keep its historical value.
When ∝hist tends towards 0, the opposite is true. At step 1218, a “softSNR” is determined from the long term speech energy and the long term noise energy. The soft SNR is thus determined using the long term speech energy and long term noise energy that are determined from Eq. 8 and 9 set forth above. The SNRsoft can therefore be expressed as:




  
    
      
        
          SNR
          soft
        
        =
        
          ltSpeechEnergy
          ltNoiseEnergy
        
      
    
    
      
        (
        
          Eq
          .
          
            
          
          ⁢
          10
        
        )
      
    
  




The SNR value, SNRsoft is so called because its value is not fixed or rigid. Which is to say, it is continuously updated, and it tends to reach 0 dB when speech is not present due to unreliable speech probability estimation in very noisy environments.
At step 1218, the quantity, “qRel,” is computed, which is a speech probability presence reliability estimation. qRel has a direct linear relationship with the softSNR value as set forth in the following equation.




  
    
      
        
          qRel
          ⁡
          
            (
            
              SNR
              soft
            
            )
          
        
        =
        
          {
          
            
              
                1
              
              
                
                  
                    SNR
                    soft
                  
                  ≤
                  
                    SNR
                    1
                  
                
              
            
            
              
                
                  
                    
                      SNR
                      soft
                    
                    -
                    
                      SNR
                      0
                    
                  
                  
                    
                      SNR
                      1
                    
                    -
                    
                      SNR
                      0
                    
                  
                
              
              
                
                  
                    SNR
                    1
                  
                  <
                  
                    SNR
                    soft
                  
                  <
                  
                    SNR
                    0
                  
                
              
            
            
              
                0
              
              
                
                  
                    SNR
                    soft
                  
                  ≥
                  
                    SNR
                    0
                  
                
              
            
          
        
      
    
    
      
        (
        
          Eq
          .
          
            
          
          ⁢
          11
        
        )
      
    
  




The form of Equation 11 above is identical to Eq. 3, although its purpose is different. According to Eq. 11, when softSNR goes low, the reliability factor, qRel, trends toward 1; when softSNR goes high, the reliability factor, qRel, trends toward 0.
At step 1220, a “decision flag” for a realSNR is computed. The decision flag, which is used to update the realSNR, is actually the same variable used as a decreasing threshold seen in Eq. 6 for Denoisethresh. When Denoisethresh is less than Denoisemax the reliability of the SPP estimator shows it isn't “safe” to update the long term speech energy. It is however “safe” to update the noise energy because in high noise, the signal energy plus the noise energy is approximately equal to the noise energy by itself.
Finally, at step 1222, the realSNR is computed. Similarly to softSNR, realSNR uses the same history modifier on its exponential constant, but hard logic is now in place to enforce the update only when required, as the logic sequence in FIG. 12, shows, the speech and noise energy computation follow these equations:

ltSpeechEng=ALPHALTreal∝hist·ltSpeechEng+(1−ALPHALTreal∝hist)·Mic  (Eq. 12)

ltNoiseEng=ALPHALTreal(1−∝hist)·ltNoiseEng+(1−ALPHALTreal(1−∝hist))·Mic  (Eq. 13)

The computation of ∝hist is as shown in Eq. 7 above. “Mic” is microphone energy. ALPHA_LT real is an experimentally-determined constant, typically about 0.99 (slow adaptation rate).
The realSNR, which is used to determine the sigmoid function shape, is computed using the long term speech energy and long term noise energy computed using Eq. 12 and 13 respectively. SNR real can thus be expressed as:




  
    
      
        
          SNR
          real
        
        =
        
          ltSpeechEng
          ltNoiseEng
        
      
    
    
      
        (
        
          Eq
          .
          
            
          
          ⁢
          14
        
        )
      
    
  




It is important to note that initial values are assigned to softSNR and realSNR. Both are initially set to about 20 dB. Similarly, long term speech energy, ltSpeechEng is initially set to 100. Long term noise energy, ltNoiseEng, is also set to 1.0.
The foregoing description is for purposes of illustration. The true scope of the invention is set forth in the following claims.

## Claims

1. A method of reducing noise in a received audio signal, the signal being represented by a plurality of frames of data, each frame representing a plurality of samples of the received signal, the method comprising:
determining a warped speech probability presence (SPP) factor for a first frame using a minimum mean square error (MMSE) calculation, which uses a SPP factor determined for the first frame, multiplied by a sigmoid function having a shape, the warped SPP factor for the first frame being determined using a first signal-to-noise ratio obtained from the MMSE calculation for the first frame of data;
determining if the warped SPP factor is between pre-determined maximum and minimum values for the warped SPP factor;
determining a re-warped SPP factor by adjusting the warped SPP factor responsive to the determination of whether the warped SPP factor is between the first and second pre-determined maximum and minimum values for the warped SPP factor;
changing the shape of the sigmoid function responsive to the re-warped SPP factor;
determining a SPP factor for a second frame based on the changed shape of the sigmoid function, the second frame following the first frame;
reducing noise content in the second frame by adjusting gain applied to the second frame based on the SPP factor for the second frame;
re-converting the reduced-noise content second frame to an audio signal; and
providing the reduced noise content second frame to a speech-processing device.

2. The method of claim 1, wherein the step of determining the warped SPP factor further comprises: evaluating the sigmoid function such that it has a midpoint and a slope, the midpoint of the sigmoid function being selected to reduce the value of the warped SPP factor when a second signal-to-noise ratio is below a first, predetermined limit.

3. The method of claim 2, wherein the midpoint of the sigmoid function is determined responsive to a second, signal-to-noise ratio determined from an actual audio signal.

4. The method of claim 1, wherein the step of determining the warped SPP factor further comprises: evaluating the sigmoid function such that it has a midpoint and a slope, the midpoint of the sigmoid function being selected to increase the value of the warped SPP factor when the second signal-to-noise ratio is above a second, predetermined limit.

5. An apparatus for reducing noise in a received audio signal, the signal being represented by a plurality of frames of data, each frame representing a plurality of samples of the received signal, the apparatus comprising:
a warped speech probability presence (SPP) determiner, the warped SPP determiner comprises a digital signal processor (DSP) and a non-transitory memory device coupled to the DSP, the non-transitory memory device storing executable program instructions, which when executed cause the DSP to: determine a warped speech probability presence (SPP) factor for a first frame using a minimum mean square error (MMSE) calculation, which uses a SPP factor determined for the first frame, multiplied by a sigmoid function having a shape, the warped SPP factor for the first frame being determined using a first signal-to-noise ratio obtained from the MMSE calculation for the first frame of data;
determine if the warped SPP factor is between pre-determined maximum and minimum values for the warped SPP factor;
determine a re-warped SPP factor by adjusting the warped SPP factor responsive to the determination of whether the warped SPP factor is between the first and second pre-determined maximum and minimum values for the warped SPP factor;
change the shape of the sigmoid function responsive to the re-warped SPP factor;
determine a SPP factor for a second frame based on the changed shape of the sigmoid function, the second frame following the first frame;
reduce noise content in the second frame by adjusting gain applied to the second frame based on the SPP factor for the second frame;
re-convert the reduced-noise content second frame to an audio signal; and
provide the reduced noise content second frame to a speech-processing device.

6. The apparatus of claim 5, wherein the non-transitory memory device stores additional instructions, which when executed cause the DSP to: evaluate the sigmoid function such that it has a midpoint and a slope, the midpoint of the sigmoid function being selected to reduce the value of the warped SPP factor when a second signal-to-noise ratio is below a first, predetermined limit.

7. The apparatus of claim 6, wherein the non-transitory memory device stores additional instructions, which when executed cause the DSP to: determine a midpoint of the sigmoid function responsive to the second, signal-to-noise ratio.

8. The apparatus of claim 6, wherein the non-transitory memory device stores additional instructions, which when executed cause the DSP to: evaluate the sigmoid function such that it has a midpoint and a slope, the midpoint of the sigmoid function being selected to increase the value of the warped SPP factor when the second signal-to-noise ratio is above a second, predetermined limit.