The present invention relates to digital techniques for processing speech signals. It relates more particularly to the techniques utilizing voice activity detection so as to perform different processings depending on whether the signal does or does not carry voice activity.
The digital techniques in question come under varied domains: coding of speech for transmission or storage, speech recognition, noise reduction, echo cancellation, etc.
The main difficulty with processes for detecting voice activity is that of distinguishing between voice activity and the noise which accompanies the speech signal.
The document WO99/14737 describes a method of detecting voice activity in a digital speech signal processed on the basis of successive frames and in which an a priori denoising of the speech signal of each frame is carried out on the basis of noise estimates obtained during the processing of one or more previous frames, and the variations in the energy of the a priori denoised signal are analyzed so as to detect a degree of voice activity of the frame. By carrying out the detection of voice activity on the basis of an a priori denoised signal, the performance of this detection is substantially improved when the surrounding noise is relatively strong.
In the methods customarily used to detect voice activity, the energy variations of the (direct or denoised) signal are analyzed with respect to a long-term average of the energy of this signal, a relative increase in the instantaneous energy suggesting the appearance of voice activity.
An aim of the present invention is to propose another type of analysis allowing voice activity detection which is robust to the noise which may accompany the speech signal.
According to the invention, there is proposed a method for detecting voice activity in a digital speech signal in at least one frequency band, whereby the voice activity is detected on the basis of an analysis comprising a comparison, in the said frequency band, of two different versions of the speech signal, one at least of which is a denoised version obtained by taking account of estimates of the noise included in the signal.
This method can be executed over the entire frequency band of the signal, or on a subband basis, as a function of the requirements of the application using voice activity detection.
Voice activity can be detected in a binary manner for each band, or measured by a continuously varying parameter which may result from the comparison between the two different versions of the speech signal.
The comparison typically pertains to respective energies, evaluated in the said frequency band, of the two different versions of the speech signal, or to a monotonic function of these energies.
Another aspect of the present invention relates to a device for detecting voice activity in a speech signal, comprising signal processing means designed to implement a method as defined hereinabove.
The invention further relates to a computer program, loadable into a memory associated with a processor, and comprising portions of code for implementing a method as defined hereinabove upon the execution of the said program by the processor, as well as to a computer medium, on which such a program is recorded.
The device of
A windowing module 10 puts the signal s into the form of successive windows or frames of index n, each consisting of a number N of samples of digital signal. In a conventional manner, these frames may exhibit mutual overlaps. In the remainder of the present description, the frames will be regarded, without this being in any way limiting, as consisting of N=256 samples at a sampling frequency Fe of 8 kHz, with a Hamming weighting in each window, and overlaps of 50% between consecutive windows.
The signal frame is transformed into the frequency domain by a module 11 applying a conventional fast Fourier transform algorithm (FFT) for calculating the modulus of the spectrum of the signal. The module 11 then delivers a set of N=256 frequency components of the speech signal, which are denoted Sn,f, where n designates the current frame number, and f a frequency of the discrete spectrum. Owing to the properties of digital signals in the frequency domain, only the first N/2=128 samples are used.
To calculate the estimates of the noise contained in the signal s, we do not use the frequency resolution available at the output of the fast Fourier transform, but a lower resolution, determined by a number I of frequency subbands covering the [0,Fe/2] band of the signal. Each subband i (1≦i≦I) extends between a lower frequency f(i−1) and an upper frequency f(i), with f(0)=0, and f(I)=Fe/2. This chopping into subbands can be uniform (f(i)−f(i−1)=Fe/2I). It may also be non-uniform (for example according to a barks scale). A module 12 calculates the respective averages of the spectral components Sn,f of the speech signal on a subband basis, for example through a uniform weighting such as:
This averaging reduces the fluctuations between the subbands by averaging the contributions of the noise in these subbands, and this will reduce the variance of the noise estimator. Furthermore, this averaging makes it possible to reduce the complexity of the system.
The averaged spectral components Sn,i are addressed to a voice activity detection module 15 and to a noise estimation module 16.
These long-term estimates
{circumflex over (B)}n,i=λB.{circumflex over (B)}n−1,i+(1−λB).Sn,i
with λB equal to 1 if the voice activity detector 15 indicates that subband i bears voice activity, and equal to a value lying between 0 and 1 otherwise.
Of course, it is possible to use other long-term estimates representative of the noise component included in the speech signal, these estimates may represent a long-term average, or else a minimum of the component Sn,j over a sufficiently long sliding window.
In step 180, the module 18 calculates, with the resolution of the subbands i, the frequency response Hpn,i of the a priori denoising-filter, according to:
where τ2 is a positive or zero integer delay and α′n,i is a noise overestimation coefficient. This overestimation coefficient α′n,i may be dependent on or independent of the frame index n and/or the subband index i. In a preferred embodiment, it depends both on n and i, and it is determined as described in document WO99/14737. A first denoising is performed in step 181: {circumflex over (
The voice activity detector 15 of
A module 20 of the voice activity detector 15 performs a temporal smoothing of the energies E1,n,j and E2,n,j for each of the bands of index j, this corresponding to steps 200 to 205 for
Ē1,n,j=λ.Ē1,n−1,j+(1−λ).E1,n,j
Ē2,n,j=λ.Ē2,n−1,j+(1−λ).E2,n,j
An exemplary variation over time of the energies E1,n,j and E2,n,j and of the smoothed energies Ē1,n,j, and Ē2,n,j is represented in
The voice activity detection automaton is controlled in particular by a parameter resulting from a comparison of the energies E1,n,j and E2,n,j. This parameter can in particular be the ratio dn,j=E1,n,j/E2,n,j. It may be seen in
The control of the detection automaton can also use other parameters, such as a parameter related to the signal-to-noise ratio: snrn,j=E1,n,j/Ē1,n,j, this amounting to taking into account a comparison between the energies E1,n,j and Ē1,n,j. The module 21 for controlling the automata relating to the various bands of index j calculates the parameters dn,j and snrn,j in step 210, then determines the state of the automata. The new state δn,j of the automaton relating to band j depends on the previous state δn−1,j, on dn,j and on snrn,j, for example as indicated in the diagram of
Four states are possible: δj=0 detects silence, or absence of speech; δj=2 detects the presence of voice activity; and the states δj=1 and δj=3 are intermediate states of ascent and descent. When the automaton is in the silence state (δn−1,j=0), it remains there if dn,j exceeds a first threshold α1j, and if it switches to the ascent state in the converse case. In the ascent state (δn−1,j=1), it returns to the silence state if dn,j exceeds a second threshold α2j; and it switches to the speech state in the converse case. When the automaton is in the speech state (δn−1,j=2), it remains there if snrn,j exceeds a third threshold α3j, and it switches to the descent state in the converse case. In the descent state (δn−1,j=3), the automaton returns to the speech state if snrn,j exceeds a fourth threshold α4j, and it returns to the silence state in the converse case. The thresholds α1j, α2j, α3j, and α4j may be optimized separately for each of the frequency bands j.
It is also possible for the automata relating to the various bands to be made to interact by the module 21.
In particular, it may force each of the automata relating to each of the subbands to the speech state as soon as one among them is in the speech state. In this case, the output of the voice activity detector 15 relates to the whole of the signal band.
The two appendices to the present description show a source code in the C++ language, with a fixed-point data representation corresponding to an implementation of the exemplary voice activity detection method described hereinabove. To embody the detector, one possibility is to translate this source code into executable code, to record it in a program memory associated with an appropriate signal processor, and to have it executed by this processor on the input signals of the detector. The function a_priori_signal_power presented in appendix 1 corresponds to the operations incumbent on the modules 18 and 19 of the voice activity detector 15 of
In the particular example of the appendices, the following parameters have been employed: τ1=1; τ2=0; β1i=0.3; β2i=0.001; m=3; Δ=4.953; λp=0.98; λq=0.99999; λr=0; α1j=α2j=α4j=1.221; α3j=1.649. Table 1 hereinbelow gives the correspondences between the notation employed in the above description and in the drawings and that employed in the appendix.
In the variant embodiment illustrated by
As before, various denoising processes may be applied by the module 25. In the example illustrated by steps 250 to 256 of
S′n,i=max(Sn,i−α.{circumflex over (B)}n−1,i;β.{circumflex over (B)}n−1,i)
the preliminary overestimation coefficient being for example α=2, and the fraction β possibly corresponding to a noise attenuation of the order of 10 dB.
The quantity ρ is taken equal to the ratio S′n,i/Sn,i in step 253. The overestimation factor f(ρ) varies in a nonlinear manner with the quantity ρ, for example as represented in
Êpn,i=max(Sn,i−f(ρ).{circumflex over (B)}n−1,i;β.{circumflex over (B)}n−1,i)
The voice activity detector 15 considered with reference to
This lower bound E2min,j can in particular correspond to a minimum value, over a sliding window, of the energy E2,n,j of the denoised version of the speech signal in the frequency band considered. In this case, a module 27 stores in a memory of the first-in first-out type (FIFO) the L most recent values of the energy E2,n,j of the denoised signal in each band j, over a sliding window representing for example of the order of 20 frames, and delivers the minimum energies
over this window (step 270 of
The automaton can be a simple binary automaton using a threshold Aj, possibly dependent on the band considered: If Mj≧Aj, the output bit δn,j of the detector represents a silence state of the band j, and if Mj≦Aj, it represents a speech state. As a variant, the module 28 could deliver a nonbinary measure of the voice activity, represented by a decreasing function of Mj.
As a variant, the lower bound E2min,j used in step 280 could be calculated with the aid of an exponential window, with a forget factor. It could also be represented by the energy over band j of the quantity β.{circumflex over (
In the foregoing, the analysis performed in order to decide on the presence or absence of voice activity pertains directly to energies of different versions of the speech signal. Of course, the comparisons could pertain to a monotonic function of these energies, for example a logarithm, or to a quantity having similar behavior to the energies according to voice activity (for example the power).
Number | Date | Country | Kind |
---|---|---|---|
99 10128 | Aug 1999 | FR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/FR00/02220 | 8/2/2000 | WO | 00 | 5/3/2001 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO01/11605 | 2/15/2001 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
4682361 | Selbach et al. | Jul 1987 | A |
4982341 | Laurent | Jan 1991 | A |
6427134 | Garner et al. | Jul 2002 | B1 |
6453285 | Anderson et al. | Sep 2002 | B1 |
6453289 | Ertem et al. | Sep 2002 | B1 |
6453291 | Ashley | Sep 2002 | B1 |
6477489 | Lockwood et al. | Nov 2002 | B1 |
6549586 | Gustafsson et al. | Apr 2003 | B1 |
6591234 | Chandran et al. | Jul 2003 | B1 |
6604071 | Cox et al. | Aug 2003 | B1 |
6658380 | Lockwood et al. | Dec 2003 | B1 |
6717991 | Gustafsson et al. | Apr 2004 | B1 |
Number | Date | Country |
---|---|---|
WO 9914737 | Mar 1999 | WO |