









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










The speech recognition is the process by which a computer or a system identifies the spoken words. The speech recognition can be either speaker dependent or speaker independent. They are also classified on the basis whether they recognize the isolated words or the continuous speech.
Figure 1.1: Taxonomy of Speech Recognition
The two main aspects involved are Feature extraction It is the method of retrieving the information that distinguishes each phoneme. Words are distinguished from each other due to the differences in the certain characteristics of the sound. The characteristics of the sounds are pitch, timing and frequency. Classification It is the process of matching the two sets of features, identifying whether they are identical or not. The two main phases of the system development will be Training the system
Speech Recognition
Speaker Dependent Speaker Independent
Isolated Speech Continuous Speech
In training, we will take speech samples from different people. Using these samples the system will be trained. Testing the system In this phase, speech signal will be given to the system and it will try to identify the word.
Speech signals are composed of sequences of sounds. These sounds and transformation between them act as symbolic representation of information, which is governed by the rules of a language [6]. Speech sounds can be classified into 3 classes. Voiced Sounds Fricative/ Unvoiced Sounds Plosive sounds Most of the languages can be expressed as a set of distinctive sounds called “ phonemes ”. In English there are about 42 phonemes including vowels, diphthongs, semivowels and consonants. These phonemes can be classified as either a constituent or a non-constituent.
Figure 2.2 Low Pass Filter High Pass Highpass filters stops low frequencies, letting higher frequencies through.
Figure 2.3 High Pass Filter BandPass Letting through only frequencies in a certain range
Figure 2.4 Band Pass Filter Band Stop Stopping frequencies in a certain range
Figure 2.5 Band Stop
In IIR filters are in which the output at a certain instant depends upon the current and previous inputs and outputs on or prior to that instant.
There is wide variety of designs available for IIR filters. Common types of IIR are
FIR filters are those in which the output depends on the present and past values of input at any discrete value and not on the current and past values of output. These filters are famous for their infinite duration responses where the impulse response of an FIR filter is nonzero. Also, they are very stable and can have linear phase where a nonlinear phase system can distort the input signal [7].
The major difference between the FIR and IIR filter is that IIR filters cannot be designed to have exact linear phase while FIR filters can be. FIR filters are always stable. FIR filters require high order, which is the disadvantage of the FIR filters.
For removing the noise from the signal, a Butterworth low pass IIR filter was designed with order 4 and cutoff frequency 1500Hz and sampling frequency 22050[13].
Figure 2.8 Speech Signal after applying filter
2.2 Endpoint detection
Endpoint detection, distinguishes the speech and non-speech segments from digital speech signal. We can also say that it removes the silent period. A good endpoint detector can improve the accuracy and speed of a speech recognition system. Accurate end point detection reduces processing load as a result it increases the accuracy of a speech recognition system.
The basic technique of end point detection is to find the energy level of a signal. Signal energy level is calculated in frames, where each frame consists of N samples. The frames are usually overlapped with the adjacent frames in order to produce a smooth energy line [11].
There are two famous endpoint detection algorithms. First algorithm uses signal features based on energy levels and second algorithm uses signal features based on the rate of zero crossings.
2.3 Fourier Transform
Fourier transform of a time function tells us about the frequencies contained in the time function. The Figure 2.8 shows the transform of the word” Gorgeous”.
Figure 2.9 FFT of the filtered signal
Practically, it involves
3.2 Method
LPC model assumes that speech signal can be modeled by an excitation, passed through a time varying all-pole filter. This filter corresponds to the effect that the shape of the throat and mouth has on the signal produced by the voice box. This assumption corresponds fairly with our model of the vocal tract. The model used in LPC for speech generation is shown in Figure 3.1[2]. In LPC, the excitation signal is taken as train of impulses for voiced sounds or as a random noise for unvoiced sounds.
Figure 3.1: LPC model for speech generation [2]
Vocal tract is roughly stationary for windows of 20 to 30ms. Therefore, we use 20 to 30 ms of data, often called the analysis window to estimate the coefficients of the all-pole model at a given time instance. Then, window is shifted by about 10 ms and we find another set of LPC coefficients. In this way, we analyze the speech signal to find the spectral envelope.
Using an all zero FIR filter of order N we can predict the next output sample u’ [N+1] from the previous n samples [2] [5].
1
N i
u N u N i a i
(^)
We have to find the parameters a[1] through a[n]. We can also predict the value of u that follows as well
1
N i
u n u n i a i
(^)
The error between the predicted next value and the real next value is given by
1
N i
e n u n u n e n u n u n i a i
(^)
We want to find the values of a[i] which minimizes this expression. This can be done by minimizing the square of the error signal, that is minimize the expression given below
2 2 1
j N j i
E e j
E u j u j i a i
Taking the N partial derivatives ∂E /∂ a[n] and setting them equal to zero. This results in N equations.
1
1
N j i N j i j
E (^) for n N a n u j u j k u j i u j n a i
u j u j n a i u j i u j n
These equations (5) and (6) can be simplified using auto-correlation which is defined as
n [ ] [^ ]^ (7) j
R u j u j n
(^)
Where Rn defines the auto-correlation of u[i] for an interval of n. then the equation (7) becomes
1
N i ^ Rn^ i a i^^ ^ Rn^ for^ n^ N
For a speech signal “Gorgeous” the values of coefficients are shown in the Figure 3.2.
Figure 3.2 Coefficient values for speech signal “Gorgeous”
MFCC’s are based on the known variation of the human ear’s critical bandwidths with frequency; filters spaced linearly at low frequencies and logarithmically at high frequencies have been used to capture the phonetically important characteristics of speech. This is expressed in the mel-frequency scale, which is linear frequency spacing below 1000 Hz and a logarithmic spacing above 1000 Hz [14].
MFCC’s are coefficients that represent a speech signal. Technique of computing MFCC is based on the short-term analysis, and thus from each frame a MFCC vector is computed [12]. MFCCs are commonly derived as follows:
They are not very robust in the presence of additive noise. The influence of low-energy components can be reduced by raising the log-mel-amplitudes to a suitable power before taking the DCT.
The mel scale is based on pitch comparison and has an analytical form:
where f is the frequency in Hz and m is the resulting mel scaled frequency.