1. Field of the Invention
The present invention relates to a voice activity detector, and a process for detecting a voice signal.
2. Description of the Related Art
In a number of speech processing applications it is important to determine the presence or absence of a voice component in a given signal, and in particular, to determine the beginning and ending of voice segments. Detection of simple energy thresholds has been used for this purpose, however, satisfactory results only tend to be obtained where relatively high signal to noise ratios are apparent in the signal.
Voice activity detection generally finds applications in speech compression algorithms, karaoke systems and speech enhancement systems. Voice activity detection processes typically dynamically adjust the noise level detected in the signals to facilitate detection of the voice components of the signal.
The International Telecommunication Union (ITU) prescribes the following standards for a voice activity detector (VAD):
1. ITU-T G.723.1 Annex A, Series G: Transmission Systems and Media, “Silence compression scheme”, 1996.
2. ITU-T G.729 Annex B, Series G: Transmission Systems and Media, “A silence compression scheme for G.729 optimized for terminals conforming to recommendation V.70”, 1996.
The European Telecommunication Standards Institute (ETSI) prescribes the following standard for a VAD:
1. ETSI EN 301 708 V7.1.1, Digital cellular telecommunications system (Phase 2+); “Voice Activity Detector (VAD) for adaptive Multi-Rate (AMR) speech traffic channels: general description”, 1999.
The basic function of the ETSI VAD is to indicate whether each 20 ms frame of an input signal sampled at 16 kHz contains data that should be transmitted, i.e., speech, music or information tones. The ETSI VAD sets a flag to indicate that the frame contains data that should be transmitted. A flow diagram of the processing steps of the ETSI VAD is shown in
The input signal is initially pre-emphasized and windowed into frames of 320 samples. Each windowed frame is then transformed into the frequency domain using a Discrete Time Fourier Transform (DTFT).
The channel energy estimate for the current sub-frame is then calculated based on the following:
1. the minimum allowable channel energy;
2. a channel energy smoothing factor;
3. the number of combined channels; and
4. elements of the respective low and high channel combining tables.
The channel Signal to Noise Ratio (SNR) vector is used to compute the voice metrics of the input signal. The instantaneous frame SNR and the long-term peak SNR are used to calibrate the responsiveness of the ETSI VAD decision.
The quantized SNR is used to determine the respective voice metric threshold, hangover count and burst count threshold parameters. The ETSI VAD decision can then be made according to the following process:
To avoid being over-sensitive to fluctuating, non-stationary, background noise conditions, a bias factor may be used to increase the threshold on which the ETSI VAD decision is based. This bias factor is typically derived from an estimate of the variability of the background noise estimate. The variability estimate is further based on negative values of the instantaneous SNR. It is presumed that a negative SNR can only occur as a result of fluctuating background noise, and not from the presence of voice. Therefore, the bias factor is derived by first calculating the variability factor. The spectral deviation estimator is used as a safeguard against erroneous updates of the background noise estimate. If the spectral deviation of the input signal is too high, then the background noise estimate update may not be permitted.
The ETSI VAD needs at least 4 frames to give a reliable average speech energy with which the speech energy of the current data frame can be compared.
A typical problem faced by a VAD is misclassification of the input signal into voice/silence regions. Some standard algorithms vary the noise threshold dynamically across a number of frames and produce more accurate VAD estimates with time. However, the complexity of these VADs is relatively high. The complexity of the ETSI VAD may be given as follows:
ETSI VAD={2·O(L)+O(M·log2(M)+4·O(Nc)} operations
where
Windowing and pre-emphasis both have an order of O(L). The Discrete Time Fourier Transform has an order of O(M·log2(M)). The channel energy estimator, Channel SNR estimator, voice metric calculator and Long-term Peak SNT calculator each have complexity of the order of O(Nc).
These VADs are typically not efficient for applications that require low-delay signal dependant estimation of voice/silence regions of speech. Such applications include pitch detection of speech signals for karaoke. If a noisy signal is determined to be a speech track, the pitch detection algorithm may return an erroneous estimate of the pitch of the signal. As a result, most of the pitch estimates will be lower than expected, as shown in
An object of the present invention is to overcome or ameliorate one or more of the above mentioned difficulties, or at least provide a useful alternative.
In accordance with the present invention, there is provided a method for determining whether a data frame of a coded speech signal corresponds to voice or to noise, including the steps of:
determining the cross-correlation of the data of said data frame;
determining the periodicity of the cross-correlation;
determining the variance of the periodicity;
determining said data frame corresponds to noise if the cross-correlation is lower than a predetermined cross-correlation value; and
determining the data corresponds to voice if the variance is less than a predetermined variance value.
The present invention also provides a method for determining whether a data frame of a coded speech signal corresponds to voice or to noise, including the steps of:
determining an energy of said frame;
determining an average speech energy of the coded speech signal;
if the data frame is one of a predetermined number of initial data frames of the coded speech signal, performing the method referred to above; and
else, comparing the energy of the frame with the average speech energy, and the data frame corresponds to speech if the average speech energy is less than or equal to that of the energy of the frame.
The present invention also provides a voice activity detector for determining whether a data frame of a coded speech signal corresponds to voice or to noise, including:
means for determining the cross-correlation of the data of said data frame;
means for determining the periodicity of the cross-correlation;
means for determining the variance of the periodicity;
means for determining said data frame corresponds to noise if the cross-correlation is lower than a predetermined cross-correlation value; and
means for determining the data corresponds to voice if the variance is less than a predetermined variance value.
Preferred embodiments are hereafter described, by way of non-limiting example only, with reference to the accompanying drawings in which:
A voice activity detector (VAD) 10, as shown in
Colored noise has the following fundamental properties:
1. White noise: the power of the noise is randomly distributed over the entire frequency spectrum and the correlation is very low.
2. Brown noise: the frequency spectrum, (1/f2), is mostly dominant in the very low frequency regions. Brown noise has a high cross correlation like speech signals.
3. Pink noise: the frequency spectrum, (1/f), is mostly present in the low frequencies. The cross-correlation values of Pink noise are not comparable to those of speech signals.
The VAD 10 takes into account the above-described statistical parameters to improve the estimate of the initial frames. The cross-correlation of the signal is determined to obtain a VAD estimate in the initial frames of the input. Speech samples are highly correlated and the correlation is periodic in nature due to harmonics in the signal.
After a certain number of frames, the energy threshold estimator also helps to improve the distinction between the voiced and silenced sections of the speech signal. The short-term energy signal is determined to adaptively improve the voiced/silence detection across a large number of frames.
The VAD 10 receives, at step 20 of the process shown in
The VAD 10 then determines, at step 22, the amount of short-term energy in the input signal. The short-term energy is higher for voiced than un-voiced speech and should be zero for silent regions in speech. Short-term energy is calculated using the following formula:
The energy in the lth analysis frame of size N is El. If m frames of the signal have been classified as voice, the average energy thresholds are determined, at step 22, as follows:
where
Esa is the average speech energy over m frames classified as speech and
Ena is the average noise energy over (l-m) frames classified as noise.
If at step 22A the current data frame being processed is an kth data frame or greater in a series of data frames, the VAD 10 compares, at step 23, the energy of the current frame with the average speech energy Esa to determine whether it contains speech or noise. In one embodiment, the kth data frame is the fifth data frame, however the scope of the present invention covers any value for the kth data frame. If yes, then the current data frame contains voice (step 23A). If no, then the current data frame contains noise (step 23B).
Otherwise, the VAD 10 determines, at step 24, the cross-correlation, Y(τ), of the first and second sub frames of the data frame under consideration as follows:
where,
τ is the lag between the sequences,
x1(n) is the first half of the input frame under consideration
x2(n) is the second half of the input frame under consideration and
N is the size of the frame.
Input signals with cross-correlation lower than a predetermined cross-correlation value (step 25) are considered as noise (step 23B). In one embodiment, the predetermined cross-correlation value is 0.4. This test therefore detects the presence of either white or pink noise in the data frame under consideration. Further tests are conducted to determine whether the current data frame is speech or brown noise.
As discussed above, the cross-correlation of speech samples is highly periodic. The periodicity of the cross-correlation of the current data frame is determined, at step 26, to segregate speech and noisy signals. The periodicity of the cross-correlation can be measured, with reference to
1. Distance between positive peaks: Diffpp
2. Distance between negative peaks: Diffnn
3. Distance between consecutive positive and negative peaks: Diffpn
4. Distance between consecutive negative and positive peaks: Diffnp
The peaks can be identified by using:
Y(τ−1)<Y(τ)>Y(τ+1) for maxima and
Y(τ−1)>Y(τ)<Y(τ+1) for minima.
To ensure spurious peaks are not chosen, the process is extended to cover five lags on either side of a trial peak lag. Doing so makes the peak detection criteria stringent and does not entail a risk of leaving out genuine peaks in the cross correlation.
The variance of periodicity is determined at step 28. The variance σ2 is a measure of how spread out a distribution is and is defined as the average squared deviation of each number in the sequence from its mean, i.e.,
where
The estimate is normalized by L as the number of peaks in the correlation of speech and noisy samples will be different. To obtain an accurate estimate of the variance of the periodicity, a linear combination of the variances of the Diffxx is taken.
From
Equation 5 varies according to 0<ε<1. The variance of the periodicity of the cross-correlation of speech signals is therefore lower than that of noise. The content of the relevant data frame may be considered to be voice (step 30) if the normalized variance ε is less than a predetermined variance value (step 29). For example, in one embodiment of the invention, the predetermined variance value is 0.2.
The VAD 10 experiences a delay of one data frame, i.e., the time taken for the first 2048 bits of sampled input signal to fill the first data frame. With a sampling frequency of 12 kHz, the VAD 10 will experience a lag of 0.17 seconds. The computation of the cross-correlation values for different lags takes minimal time. The VAD 10 may reduce the lag by reducing the frame size to 1024 samples. However, the reduced lag comes at the expense of increasing the error margin in the computation of the variance of the periodicity of the cross-correlation. This error can be reduced by overlapping the sub-frames used for the correlation.
The number of computations required for the computation of the correlation values initially, reduce with higher number of frames, which dynamically adapt to the SNR of the input signal. The initial order of computational complexity is:
O(N)+O(N2/2)+5·O(K) (7)
where
N is the number of samples in a frame; and
K is the number of peaks detected in the auto-correlation function.
In the steady state, when the energy thresholds have been determined, the order of complexity of the process VAD 10 reduces to 2·O(N).
The VAD 10 may alternatively execute a VAD process 50, as shown in
The VAD 10 determines, at step 54, the cross-correlation, Y(τ), of the first and second sub frames of the data frame under consideration using Equation (3). Input signals with cross-correlation lower than 0.4 (step 55) are considered as noise (step 55A). This test therefore detects the presence of either white or pink noise in the data frame under consideration. Further tests are conducted to determine whether the current data frame is speech or brown noise.
As discussed above, the cross-correlation of speech samples is highly periodic. If the cross-correlation is high, the periodicity of the cross-correlation of the current data frame is determined, at step 56, to segregate speech and noisy signals. The periodicity of the cross-correlation can be measured in the above-described manner with reference to
The variance of periodicity is determined at step 58 in the above-described manner. The estimate is normalized by L as the number of peaks in the correlation of speech and noisy samples will be different. To obtain an accurate estimate of the variance of the periodicity, a linear combination of the variances of the Diffxx is taken.
From
In one embodiment, the VAD 10 sets a flag indicating whether the contents of the relevant data frame is voice.
All of the above U.S. patents, U.S. patent application publications, U.S. patent applications, foreign patents, foreign patent applications and non-patent publications referred to in this specification and/or listed in the Application Data Sheet, are incorporated herein by reference, in their entirety.
From the foregoing it will be appreciated that, although specific embodiments of the invention have been described herein for purposes of illustration, various modifications may be made without deviating from the spirit and scope of the invention. Accordingly, the invention is not limited except as by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
200305524-1 | Sep 2003 | SG | national |
Number | Name | Date | Kind |
---|---|---|---|
5485522 | Solve et al. | Jan 1996 | A |
5699477 | McCree | Dec 1997 | A |
5749067 | Barrett | May 1998 | A |
6049766 | Laroche | Apr 2000 | A |
6188981 | Benyassine et al. | Feb 2001 | B1 |
6279379 | Logue et al. | Aug 2001 | B1 |
6332143 | Chase | Dec 2001 | B1 |
6427134 | Garner et al. | Jul 2002 | B1 |
6453285 | Anderson et al. | Sep 2002 | B1 |
6691092 | Udaya Bhaskar et al. | Feb 2004 | B1 |
20030110029 | Ahmadi et al. | Jun 2003 | A1 |
20030142750 | Oguz et al. | Jul 2003 | A1 |
20040064314 | Aubert et al. | Apr 2004 | A1 |
Number | Date | Country | |
---|---|---|---|
20050182620 A1 | Aug 2005 | US |