<< Chapter < Page Chapter >> Page >
Speech analysis and synthesis with Linear Predictive Coding (LPC) exploit the predictable nature of speech signals. Cross-correlation, autocorrelation, and autocovariance provide the mathematical tools to determine this predictability. If we know the autocorrelation of the speech sequence, we can use the Levinson-Durbin algorithm to find an efficient solution to the least mean-square modeling problem and use the solution to compress or resynthesize the speech.

Introduction

Linear predictive coding ( LPC ) is a popular technique for speech compression and speech synthesis.The theoretical foundations of both are described below.

Correlation coefficients

Correlation, a measure of similarity between two signals, is frequently used in the analysis of speech and other signals.The cross-correlation between two discrete-time signals x n and y n is defined as

r x y l n x n y n l
where n is the sample index, and l is the lag or time shift between the two signals Proakis and Manolakis ( pg. 120 ). Since speech signals are not stationary, we are typically interested in the similaritiesbetween signals only over a short time duration ( 30 ms). In this case, the cross-correlation is computed only over a window of time samples and for only afew time delays l 0 1 P .

Now consider the autocorrelation sequence r s s l , which describes the redundancy in the signal s n .

r s s l l N n 0 N 1 s n s n l
where s n , n -P -P 1 N 1 are the known samples (see [link] ) and the 1 N is a normalizing factor.

Computing the autocorrelation coefficients

Another related method of measuring the redundancy in a signal is to compute its autocovariance

r s s l 1 N 1 n l N 1 s n s n l
where the summation is over N l products (the samples s -P s -1 are ignored).

Linear prediction model

Linear prediction is a good tool for analysis of speech signals. Linear prediction models the human vocaltract as an infinite impulse response ( IIR ) system that produces the speech signal. For vowel sounds and other voiced regions of speech, whichhave a resonant structure and high degree of similarity over time shifts that are multiples of their pitch period, thismodeling produces an efficient representation of the sound. [link] shows how the resonant structure of a vowel could be captured by an IIR system.

Linear Prediction (IIR) Model of Speech

The linear prediction problem can be stated as finding the coefficients a k which result in the best prediction (which minimizes mean-squared prediction error) of the speech sample s n in terms of the past samples s n k , k 1 P . The predicted sample s ^ n is then given by Rabiner and Juang

s ^ n k 1 P a k s n k
where P is the number of past samples of s n which we wish to examine.

Next we derive the frequency response of the system in terms of the prediction coefficients a k . In [link] , when the predicted sample equals the actual signal ( i.e. , s ^ n s n ), we have s n k 1 P a k s n k s z k 1 P a k s z z k

s z 1 1 k 1 P a k z k
The optimal solution to this problem is Rabiner and Juang a a 1 a 2 a P r r s s 1 r s s 2 r s s P R r s s 0 r s s 1 r s s P 1 r s s 1 r s s 0 r s s P 2 r s s P 1 r s s P 2 r s s 0
a R r
Due to the Toeplitz property of the R matrix (it is symmetric with equal diagonal elements), an efficient algorithm is available for computing a without the computational expense of finding R . The Levinson-Durbin algorithm is an iterative method of computing the predictor coefficients a Rabiner and Juang ( p.115 ).

Initial Step: E 0 r s s 0 , i 1

for i 1 to P .

    Steps

  1. k i 1 E i - 1 r s s i j 1 i 1 α j , i - 1 r s s i j
    • α j , i α j , i - 1 k i α i - j , i - 1 j 1 i 1
    • α i , i k i
  2. E i 1 k i 2 E i - 1

Lpc-based synthesis

It is possible to use the prediction coefficients to synthesize the original sound by applying δ n , the unit impulse, to the IIR system with lattice coefficients k i , i 1 P as shown in [link] . Applying δ n to consecutive IIR systems (which represent consecutive speech segments) yields a longer segment of synthesizedspeech.

In this application, lattice filters are used rather than direct-form filters since the lattice filter coefficientshave magnitude less than one and, conveniently, are available directly as a result of the Levinson-Durbinalgorithm. If a direct-form implementation is desired instead, the α coefficients must be factored into second-order stages with very small gains to yield a more stableimplementation.

IIR lattice filter implementation.

When each segment of speech is synthesized in this manner, two problems occur. First, the synthesized speech ismonotonous, containing no changes in pitch, because the δ n 's, which represent pulses of air from the vocal chords, occur with fixed periodicity equal to the analysissegment length; in normal speech, we vary the frequency of air pulses from our vocal chords to change pitch. Second,the states of the lattice filter ( i.e. , past samples stored in the delay boxes) are cleared at thebeginning of each segment, causing discontinuity in the output.

To estimate the pitch, we look at the autocorrelation coefficients of each segment. A large peak in the autocorrelation coefficient atlag l 0 implies the speech segment is periodic (or, more often, approximately periodic) with period l . In synthesizing these segments, we recreate the periodicity by using an impulse train as input and varyingthe delay between impulses according to the pitch period. If the speech segment does not have a large peak in theautocorrelation coefficients, then the segment is an unvoiced signal which has no periodicity. Unvoiced segmentssuch as consonants are best reconstructed by using noise instead of an impulse train as input.

To reduce the discontinuity between segments, do not clear the states of the IIR model from one segment to the next.Instead, load the new set of reflection coefficients, k i , and continue with the lattice filter computation.

Additional issues

  • Spanish vowels (m o p, a ce, ea sy, g o , b u t) are easier to recognize using LPC.
  • Error can be computed as a R a , where R is the autocovariance or autocorrelation matrix of a test segment and a is the vector of prediction coefficients of a template segment.
  • A pre-emphasis filter before LPC, emphasizing frequencies of interest in the recognition or synthesis, can improveperformance.
  • The pitch period for males ( 80 - 150 kHz) is different from the pitch period for females.
  • For voiced segments, r s s T r s s 0 0.25 , where T is the pitch period.

Questions & Answers

Discuss the differences between taste and flavor, including how other sensory inputs contribute to our  perception of flavor.
John Reply
taste refers to your understanding of the flavor . while flavor one The other hand is refers to sort of just a blend things.
Faith
While taste primarily relies on our taste buds, flavor involves a complex interplay between taste and aroma
Kamara
which drugs can we use for ulcers
Ummi Reply
omeprazole
Kamara
what
Renee
what is this
Renee
is a drug
Kamara
of anti-ulcer
Kamara
Omeprazole Cimetidine / Tagament For the complicated once ulcer - kit
Patrick
what is the function of lymphatic system
Nency Reply
Not really sure
Eli
to drain extracellular fluid all over the body.
asegid
The lymphatic system plays several crucial roles in the human body, functioning as a key component of the immune system and contributing to the maintenance of fluid balance. Its main functions include: 1. Immune Response: The lymphatic system produces and transports lymphocytes, which are a type of
asegid
to transport fluids fats proteins and lymphocytes to the blood stream as lymph
Adama
what is anatomy
Oyindarmola Reply
Anatomy is the identification and description of the structures of living things
Kamara
what's the difference between anatomy and physiology
Oyerinde Reply
Anatomy is the study of the structure of the body, while physiology is the study of the function of the body. Anatomy looks at the body's organs and systems, while physiology looks at how those organs and systems work together to keep the body functioning.
AI-Robot
what is enzymes all about?
Mohammed Reply
Enzymes are proteins that help speed up chemical reactions in our bodies. Enzymes are essential for digestion, liver function and much more. Too much or too little of a certain enzyme can cause health problems
Kamara
yes
Prince
how does the stomach protect itself from the damaging effects of HCl
Wulku Reply
little girl okay how does the stomach protect itself from the damaging effect of HCL
Wulku
it is because of the enzyme that the stomach produce that help the stomach from the damaging effect of HCL
Kamara
function of digestive system
Ali Reply
function of digestive
Ali
the diagram of the lungs
Adaeze Reply
what is the normal body temperature
Diya Reply
37 degrees selcius
Xolo
37°c
Stephanie
please why 37 degree selcius normal temperature
Mark
36.5
Simon
37°c
Iyogho
the normal temperature is 37°c or 98.6 °Fahrenheit is important for maintaining the homeostasis in the body the body regular this temperature through the process called thermoregulation which involves brain skin muscle and other organ working together to maintain stable internal temperature
Stephanie
37A c
Wulku
what is anaemia
Diya Reply
anaemia is the decrease in RBC count hemoglobin count and PVC count
Eniola
what is the pH of the vagina
Diya Reply
how does Lysin attack pathogens
Diya
acid
Mary
I information on anatomy position and digestive system and there enzyme
Elisha Reply
anatomy of the female external genitalia
Muhammad Reply
Organ Systems Of The Human Body (Continued) Organ Systems Of The Human Body (Continued)
Theophilus Reply
what's lochia albra
Kizito
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Dsp laboratory with ti tms320c54x. OpenStax CNX. Jan 22, 2004 Download for free at http://cnx.org/content/col10078/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Dsp laboratory with ti tms320c54x' conversation and receive update notifications?

Ask