Background of the Invention
The present invention is directed to electronic devices for suppressing background noise of the type that, for example, occurs when a mobile-telephone user employs a hands-free telephone in an automobile.
A mobile-cellular-telephone user's voice often has to compete with traffic and similar noise, which tends to reduce the intelligibility of the speech that his cellular telephone set transmits from his location. To reduce this noise, a general type of noise-suppression system has been proposed in which the signal picked up by the microphone (i.e., speech plus noise) is divided into frequency bins, which are subjected to different gains before being added back together to produce the transmitted signal. (Of course, this operation can be performed at the receiving end, but for the sake of simplicity we will describe it only as occurring at the transmitter end.) The different gains are chosen by reference to estimates of the relationship between noise and voice content in the various bins: the greater the noise content in a given bin, the lower the gain will be for that bin. In this way, the speech content of the signal is emphasized at the expense of its noise content.
The noise-power level is estimated in any one of a number of ways, most of which involve employing a speech detector to identify intervals during which no speech is present and measuring the spectral content of the signal during those no-speech intervals.
Properly applied, this use of frequency-dependent gains does increase the intelligibility of the received signal. It nonetheless has certain aspects that tend to be disadvantageous. In the first place, many implementations tend to be afflicted with "flutter." A certain minimum record, or frame, of input signal is required in order to divide it into the requisite number of frequency bands, and the abrupt changes in the gain values at the end of each such record during non-speech intervals can cause a fluttering sound, which users find annoying. Methods exist for alleviating this problem, but they tend to have drawbacks of their own. For instance, some systems temporally "smooth" the gain values between input records by incrementally changing the gains, at each sample time during a frame, toward the gain dictated by the computation at the end of the last frame. This approach does largely eliminate the flutter problem, but it also reduces the system's responsiveness to changing noise conditions.
One could solve the frame problem by using a bank of parallel bandpass filters, each of which continually computes the frequency content of its respective band. But most commonly used bandpass-filter implementations would make obtaining the necessary resolution and reconstructing the gain-adjusted signals prohibitively computation-intensive for many applications.
Another drawback of conventional implementations of this general approach is that they distort the speech signal: the relative amplitudes of the frequency components in the transmitted signal are not the same as they were in the signal that the microphone received.
Summary of the Invention
The present invention reduces these effects while retaining the benefits of the frequency-dependent-gain approach.
One aspect of the present invention, which is particularly applicable to mobile-cellular-telephone installations, takes advantage of the fact that background noise in automobile environments tends to predominate in the lower-frequency part of the speech band, while the information content of the speech falls disproportionately in the higher-frequency part. According to this aspect of the invention, gains are separately determined for different bands in the lower-frequency regions, as is conventional. But in the upper-frequency bins, which carry a significant part of the intelligibility, gains for different bins are kept equal. As a result, fewer Fourier components and fewer gain values need to be computed, but most of the noise-suppression effect remains, since it is the lower bands that ordinarily contain the most noise. Moreover, this approach can avoid most of the distortion that afflicts conventional frequency-dependent-gain approaches.
In employing this approach, we favor use of a gain function that approximates the maximum-likelihood function for high signal-to-noise ratios but approaches a predetermined value between -6 db and -20 db for low signal-to-noise ratios.
In accordance with another aspect of the invention, the gains to be employed for the various frequency bins are re-computed from the current noise contents at each sample time rather than only once each frame. This largely eliminates the flutter problem without detracting from the system's responsiveness to changing conditions. Without the present invention, such an approach might prove computationally prohibitive, because the frames used to compute the contents of the various frequency bins have to be heavily overlapped. In accordance with the present invention, however, the computation is performed by virtue of the "sliding discrete Fourier transform," whereby a Fourier component for a transform of an input record that ends with a given sample is computed from that sample, the corresponding Fourier component computed for the same-length frame that ended with the previous sample, and the sample with which that same-length frame began. That is,
where X(i,k) is the kth frequency component in an N-point discrete Fourier transformation taken over a record that ends with the ith sample, and x(i) is the ith sample of an input signal x from which the transform X is computed. By employing this "sliding DFT," as it is known in some signal-processing contexts, the computational burden that would otherwise result from re-computing the gains at each sample time is greatly reduced.
In accordance with yet another aspect of the invention, the speech detector determines whether speech is present by comparing with a threshold value an average of a plurality of factors .rho..sub.k associated with respective frequency bins. Each .rho..sub.k factor is the result of computing a first average of the Fourier components associated with that factor's associated frequency bin for samples that include those taken when the speech detector has indicated the presence of speech, computing a second average of Fourier components associated with that frequency bin for samples taken when the speech detector has indicated the absence of speech, and taking .rho..sub.k as the ratio that the difference between the first and second averages bears to the first average.
Brief Description of the Drawings
The above and further advantages of the invention may be better understood by referring to the following description in conjunction with the accompanying drawings, in which:
FIG. 1 is a block diagram of the front-end audio-frequency section of a mobile cellular-telephone transmitter that embodies the teachings of the present invention;
FIG. 2 is a block diagram of the band divider that the transmitter of FIG. 1 employs;
FIG. 3 is a block diagram of one of the recursive filters employed in the band divider of FIG. 2; and
FIG. 4 is a graph that depicts the gain table by which the transmitter of FIG. 1 assigns gains to various frequency bins.
Detailed Description of Illustrative Embodiments
In the transmitter 10 of FIG. 1, a microphone 12 converts an incoming acoustic signal into electrical form, and a band-pass filter 14 restricts the spectrum of the resultant signal to a portion of the audible band in which speech ordinarily occurs. An analog-to-digital converter 16 samples the resultant, filtered signal at a rate sufficient to avoid aliasing, and it converts the samples into digital form. A band divider 18 then determines the contents of various frequency bands of the signal that the incoming digital sequence represents.
Certain previous noise-suppression arrangements of this general type perform this division into frequency bands in the analog domain; they use analog bandpass filters. For many applications, however, the size and cost penalties exacted by such an arrangement would be prohibitive, so the division into bands must be performed digitally, preferably by obtaining a discrete Fourier transform (DFT). But to obtain Fourier components spaced by, for instance, 100 Hz, the transformation computation must be performed on records that are at least 10 msec in length, and greater frequency resolution requires even longer records for each computation. In the past, this has resulted in a tendency to produce flutter, whose elimination, as was explained above, required either a reduction in responsiveness or a potentially prohibitive increase in computational burden.
In accordance with the present invention, however, the band divider 18 performs the DFT calculation by using the sliding-DFT approach based on the recursive computation defined by equation (1). FIGS. 2 and 3 depict a way of implementing this computation.
As FIG. 2 shows, the band divider 18 is a sliding-DFT circuit. It includes an N-stage delay line 20, where N is the number of samples in the record required to produce the desired frequency resolution. Block 22 in FIG. 2 represents subtraction of the N-delayed input sequence to produce a difference signal .DELTA.x(i), which is a common input to filters 24a, 24b, and 24c, each of which performs the function of recursively computing a different Fourier component X(i,k).
FIG. 3 depicts filter 24b in detail. As FIG. 3 shows, that filter is implemented simply by a single-stage delay 26, one complex multiplier 28, and one complex adder 30, which together recursively compute the contents of a frequency bin for a frame that ends with the current sample period in accordance with equation (1).
We digress at this point to note that, although FIGS. 2 and 3 depict the computations for the various frequency bins in accordance with our invention as being performed in parallel, typical embodiments of the invention will implement these filters and the other digital circuitry in FIG. 1 in a single digital signal processor so that common hardware will embody the various circuits. Many of the computations that are shown conceptually as occurring in parallel will, strictly speaking, be performed serially.
As is conventional in this general class of noise-suppression circuits, a frequency-dependent-gain circuit 32 multiplies the different frequency-bin contents by respective, typically different gain values. According to one aspect of the present invention, however, individually determined (and thus potentially different) gains are applied only to L lower-frequency bins, where L is a number of bins that spans only part of the spectrum having significant contents, whereas a conventional arrangement would compute separate gains for all such bins.
Specifically, a single multiplication block 34 applies a common gain, determined in a manner that will be described below, to the sum of the real parts of the higher-frequency bins. This sum is obtained by adder 36, which subtracts from each time-domain input sample the sum (scaled by 1/2N) of the real parts of the Fourier components corresponding to the L lowest-frequency bins. A signal-combining circuit 38 adds the result of the multiplier-34 operation to the sum of the outputs of gain circuit 32 to produce the frequency-suppressed time-domain signal, which can be converted back to analog form by means of a digital-to-analog converter 39 or, more typically, subjected to other digital-signal-processing functions, represented by block 40, required for the particular transmission protocol employed.
As was mentioned above, gain circuits 32 and 34 as well as subtraction circuit 36 all operate on only the real parts of the Fourier coefficients, and the signal combiner 38 generates the output signal merely by adding together the gain-adjusted versions of these real parts without an explicit transformation from the frequency domain to the time domain. To understand this, first consider the straightforward result of transforming the Fourier transform back into the time domain: ##EQU1## where y is the time-domain result of the inverse-transformation process and X(i,k) is the kth Fourier component computed over the N-point input record that ends at the ith sample. Without gain modification, of course, y=x. Note that, because of the particular way in which we choose to implement the sliding-DFT algorithm, the proper inverse transformation is reversed in time order from that of the usual DFT convention.
Because of filter 14, we know that at least X(i,O) and X(i,N/2) will be negligible. We can take advantage of this fact and the symmetry property X(i,k)=X*(i,N-k) that results from the fact that the input sequence x(i) is purely real to arrive at the following expression for the inverse transform: ##EQU2## We now take into account the effect of the frequency-dependent gains by multiplying each frequency component by its respective gain G(i,k) computed for the kth frequency bin at the ith time interval: ##EQU3## At each sample time, however, we are interested only in y(i), rather than the whole time-domain sequence. That is, we need to evaluate equation (4) only for p=0. This means that e.sup.j2.pi.pk/N =1, so the current output sample is simply the sum of the results of multiplying the real parts of the Fourier components by their respective gains: ##EQU4##
Thus, time-domain values can be obtained simply by adding together the (scaled) real parts of the frequency-domain values; explicit computation of the inverse transform of equation (2) is not necessary.
We now turn to the manner in which the individual gains G(i,k) are computed. The general approach is to observe the signal power that is present in the various frequency bins while speech is not present. The power thus observed will be considered the respective frequency bins' noise contents, and the gain for a frequency bin will decrease with increased noise. This is the general approach commonly used in noise-suppression arrangements of this type.
Explanation of the particular manner in which we implement this general approach begins with the assumption that a speech detector 42 has determined that speech is absent. A power-computation circuit 44 computes a power value P(i,k)=X(i,k)X*(i,k) for each frequency bin, where the asterisk denotes complex conjugation, and the absence of speech causes the P(i,k) outputs to be applied to a noise-power-update circuit 46. This circuit computes an exponential average of the power present in each bin during periods of speech absence. If the speech detector 42 indicates that speech is absent at time i but that speech was present at time i-1, then circuit 46 computes a bin noise-power level N(i,k) from the P(i,k) and the noise-power level similarly determined at the last time q at which the speech detector 42 indicated the absence of speech:
where .lambda..sub.N is a forgetting factor employed for the exponential averaging.
Otherwise, the average noise-power level N(i,k) for sample time i is computed from its value at the previous sample time and the current bin power value P(i,k):
Regardless of whether the speech detector 42 indicates that speech is present, a signal-power-update circuit 48 computes for each bin an exponential average E(i,k) of the power P(i,k) for that bin:
where .lambda..sub.s is the exponential-average forgetting factor for the signal-power computation.
Both the gain and the speech-detection determinations in the illustrated embodiment are based on a factor .rho..sub.k, which is roughly related to the signal-to-noise ratio of the kth bin: ##EQU5##
Block 50 represents the .rho..sub.k computation. The speech detector 42 makes its decision based on a comparison between a threshold value .rho..sub.th and the mean value .rho..sub.ave of the .rho..sub.k 's in the L bands for which gains are individually determined: ##EQU6## If .rho..sub.ave is less than .rho..sub.th, the speech detector 42 indicates that speech is absent. Otherwise, it indicates that speech is present.
A gain-value generator 52 determines the individual gains G(i,k) of the L low-frequency bins in accordance with a gain table that FIG. 4 depicts. For .rho..sub.k values that correspond to a high signal-to-noise ratios, the table entries approximate the maximum-likelihood values discussed, for example, in McAulay and Malpass, "Speech Enhancement Using a Soft-Decision Noise Suppression Filter," IEEE Trans. Acoustics, Speech, and Signal Processing, vol. ASSP-28, no. 2, Apr. 1980, pp. 137-145, particularly equation (31). For lower SNR values, the table departs from these values, approaching a lower limit determined empirically to produce desirable results. In the illustrated embodiment, that limit is -11 db, but this subjectively determined lower limit could assume other values between -6 db and -20 db. Again, the gain-value generator 52, as well as all of the other circuits in FIG. 1 except for the microphone 12 and bandpass filter 14, would typically be embodied in the common circuitry of a single digital-signal-processing chip.
While we employ the gain table to assign gains individually to the L lower-frequency bins, the gain applied in block 34 to the higher-frequency bins is simply the highest of any of the L gains employed at that sample time. This results from our recognition that noise in automobile environments tends to predominate in the parts of the spectrum below about 1000 Hz, while much of the information content in the speech signal occurs above that frequency level. Therefore, by computing individual spectral contents and gains for only the "noise band" below 1000 Hz, we have greatly reduced the computation required for this type of noise suppression. Rather than computing, say, twenty-one spectral components in order to achieve 125-Hz resolution, the present invention requires computing separate gains and spectral components for only six bins at that resolution and yet achieves most of the noise suppression that would result from separate computation of all bins.
Of course, the 1000-Hz value is not critical, and some of the value of the present invention can be obtained without requiring that gains for absolutely all lower-frequency bins be determined separately or that a single gain be determined for absolutely all higher-frequency bins. However, we believe that the gains for at least a plurality of the frequency bins above 800 Hz should be commonly determined and that those for at least a plurality below 1500 Hz should be determined separately.
The noise suppression is obtained with much less noticeable speech distortion than would otherwise result from the different gain values. Moreover, by employing a sliding-DFT method to obtain the various spectral components, we are able to compute the output without an explicit re-transformation into the time domain and without the potentially prohibitive computational burden that, for instance, a fast-Fourier-transform algorithm would require for the sample-by-sample gain-value updates that we perform. The present invention thus constitutes a significant advance in the art.