You are on page 1of 1

%A program to read wave file in frame by frame manner and plot the speech

segment.
close all;
clear all;
clc;
a=wavread('C:\Users\Admin\Desktop\MY_NAME.wav');
wavplay(a, 44100);
L=9660;
w=hamming(L);
wvtool(hamming(L));
subplot(2,1,1)
plot(a);
for i=1:L
w=hamming(L);
X_windowed(i)=a(i).*w(i);
end
wavplay(X_windowed,44100)
subplot(2,1,2);
wavwrite(X_windowed,44100 ,'C:\Users\Admin\Desktop\MY_NAME.wav');
plot(X_windowed);
title('windowed speech signal')

You might also like