Ch5-Speech&Audio_Coding_Examples

Ch5-Speech&Audio_Coding_Examples - Speech...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Speech & Audio Processing Speech & Audio Coding Examples February 11, 2012 Veton Kpuska 2 A Simple Speech Coder LPC Based Analysis Structure Pre- emphasis Windowing Analysis Auto- Correlation Levinson- Durbin Linear Prediction Analysis Audio Input Analysis Filter Residual Filter Coeffs Residual Filter Coeffs Quantization February 11, 2012 Veton Kpuska 3 Windowing Analysis Stage N Length of the Analysis Window 10-30 msec February 11, 2012 Veton Kpuska 4 Some Analysis Windows February 11, 2012 Veton Kpuska 5 MATLAB Useful Functions wintool Use doc wintool for more information window Use >doc window for the list of supported windows Define your own window if needed e.g: Sine window and Vorbis window [ ] ( 29 [ ] ( 29 window vorbis 5 . sin 2 sin window sine 5 . sin 2 + = + = N n n w N n n w February 11, 2012 Veton Kpuska 6 LPC Analysis Stage LPC Method Described in: Ch5-Analysis_&_Synthesis_of_Pole- Zero_Speech_Models.ppt Summary: Perform Autocorrelation Solve system of equations with Durbin- Levinson Method MATLAB help doc lpc, etc. February 11, 2012 Veton Kpuska 7 Example of MATLAB Code function myLPCCodec(wavfile, N) % % wavfile - input MS wav file % N - LPC Filter Order % [x, fs, nbits] = wavread(wavfile); % plot(x); % Playing Original Signal soundsc(x,fs); % Performing LPC analysis using MATLAB lpc function [a, g] = lpc(x,N); % performing filtering operation on estimated filter coeffs % producing predicted samples est_x = filter([0 -a(2:end)], 1, x); % error signal e = x - est_x; % Testing the quality of predicted samples soundsc(est_x, fs); % Synthesis Stage With Zero Loss of Information syn_x = filter([0 -a(2:end)], 1, g.*e); soundsc(syn_x,fs); ( 29 ( 29 z A z H 1 = ge[n] [n] [ ] [ ] [ ] = +- = p k k n ge k n s n s 1 February 11, 2012 Veton Kpuska 8 Analysis of Quantization Errors...
View Full Document

Page1 / 37

Ch5-Speech&Audio_Coding_Examples - Speech...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online