Professional Documents
Culture Documents
673random Signal Analysi Final1
673random Signal Analysi Final1
ECE 673
PROJECT REPORT
UCID: fd77@njit.edu
ID: 31350061
SIDDHARTH
UCID: sn363@njit.edu
ID: 31340426
Under Professor
Dr.ALI ABDI
Dept of Electrical and Computer Engineering
MATLAB CODE:
close all;
clear all;
disp(start speaking)
start speaking
recordblocking(recObj, 5); % records voice for 5 seconds
disp(end of recording);
end of recording
myrec=getaudiodata(recObj);
audiowrite(proverb.wav,myrec,8000); % saves a wave file
[spch_sample, fs, nbits, opts] = wavread(proverb.wav);
sample_len=length(spch_sample);
time=0: (1/(sample_len-1)):1;
plot(time,spch_sample); % plots recorded wave
grid on
xlabel(time(s));
ylabel(amplitude x(t));
title(WAVEFORM FOR THE SOUND UTTERED);
startTIME=0.91;
xseg=wave(startTIME*fs:startTIME*fs+159);
n=0:159; % length of the sample
figure
stem(n,xseg) % plots a 20msec segment of the waveform
grid on
xlabel(n);
ylabel(x(n));
title(sample of Data from Audio);