. .
.
Linear Prediction Analysis
.
.

 

Basics of LP analysis

 

  1. Write a Scilab program for computing the Linear Prediction Coefficients (LPCs) by autocorrelation method using direct matrix solving approach. The inputs should be the windowed segment of speech and order of prediction, and the output will be the computed LPCs.
  2.  

  3. Take a 20 ms segment of voiced speech sampled at 8 kHz. Hamming window the speech segment. Compute the LPCs using direct matrix solving for 10th order prediction. Plot the poles of all-pole transfer function obtained using the LPCs of each case and comment on the stability of the resulting LP filters.
  4.  

  5. Write a Scilab program for computing the LP residual. The input to the program should be the windowed segment of speech and its LPCs. Take a 20ms segment of voiced speech, hamming window it, compute its LPCsusing 10th order prediction. Pass the speech segment and its LPCs to the LP residual computation program and obtain the LP residual. Comment on the nature of LP residual plot obtained. Plot the speech segment, its residual, LP magnitude spectrum, inverse filter magnitude spectrum and STFT magnitude spectrum. Comment on the various speech parameters observed in each of the case.
  6.  

  7. Write a scilab program to show the effect of a range of values of P, the LP order, on the lpc log magnitude spectrum. Select a voiced speech frame of 40 ms sampled at 8 kHz and then perform LP analysis for a range of P={4, 8, 12, 16, 20, 24, 30}. Plot the log magnitude spectrum (in dB) for the original speech frame, along with the LP log magnitude spectrums for different values of P. What happens to the spectrum as P increases?

 

Formants and Pitch Estimation

 

  1. Write a Scilab program for estimating the formants from a given segment of speech using LP analysis. The input to the program will be a windowed segment of speech and the order of prediction. The LPCs are first estimated. The transfer function H(z) is constructed using the LPCs. The frequency response of the LP filter is obtained by using z=ejw in H(z) and the magnitude response is plotted to get what is known is LP spectrum. A peak picking algorithm may be used to pick 4 largest peaks, which are assumed as estimated formant values. Obtain the formant bandwidths, which is the range of frequencies 3dB down from the formant frequency peak.
  2.  

  3. Verify the formant frequency and bandwidth estimated from the LP spectrum with that obtained from LP-pole representation of the all-pole model where formant frequency is the angle that a conjugate pair of pole makes with the positive real axis and bandwidth is computed from the magnitude of the respective complex conjugate pole.
  4.  

  5. Write a Scilab program for estimating the pitch from a given voiced segment of speech using LP analysis. The input to the program will be a windowed voiced segment of speech and the order of prediction. The LPCs are the first estimated and LP residual is then obtained using the inverse filter. The LP residual is subjected to autocorrelation analysis to estimate the pitch. The location of the first largest peak from the center peak gives the estimate of pitch period.

 

 

Cite this Simulator:

.....
..... .....

Copyright @ 2024 Under the NME ICT initiative of MHRD

 Powered by AmritaVirtual Lab Collaborative Platform [ Ver 00.13. ]