For End For End: "Sp01.wav"
For End For End: "Sp01.wav"
For End For End: "Sp01.wav"
%% framing
frame=[];
for i= 1:no_frames
frame = [frame data(frame_length * (i-1) +1 : frame_length * i)];
end
% % windowing
f_win=[];
for j=1:no_frames
f_win= [f_win frame(:,j) .* hamming(length(frame(:,j)))];
end
end
voicedpart = voiced(:);
end
% SEPEARTING FRAMES OF VOICED PART
voice=[];
for i= 1:no_frames
voice = [voice voicedpart(frame_length * (i-1) +1 : frame_length * i)];
end
% REMOVING ZEROS FRAMES
voiced_sep=voice( :, all(voice,1) );
% fft
FFT=[];
for s=1:length(voiced_sep)
FFT=[FFT fft(voiced_sep(:,s))];
mag=abs( FFT);% magnitude
phase=angle(FFT);
end
% logarithm
LOG=[];
for s=1:length(mag)
LOG=[LOG log(mag(:,s))];
end
figure
plot(voice_dct);