0% found this document useful (0 votes)
19 views

DSP Project

The document records an audio sample, adds Gaussian noise, and then filters the noisy signal to remove some of the noise.

Uploaded by

haider ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

DSP Project

The document records an audio sample, adds Gaussian noise, and then filters the noisy signal to remove some of the noise.

Uploaded by

haider ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Fs=300000;

recObj = audiorecorder;
disp('Start speaking.')
recordblocking(recObj, 5);
disp('End of Recording.');
y = getaudiodata(recObj);
filename= 'audio.wav';
audiowrite (filename,y,Fs);
subplot(221)
plot(y);title('Voice');
audioinfo('audio.wav')
A=audioread('audio.wav');
%sound(A);

Mean=0.0;
Var=0.018;
z=imnoise(A,'Gaussian',Mean,Var);
% sound(z)

noisysignal=z+A;
filename='noisy.wav';
audiowrite(filename,noisysignal,4000);
audioinfo('noisy.wav')
%sound (noisysignal);
subplot(222)
plot(noisysignal);title('Noisy signal');

filtered=filter(low,noisysignal);
subplot(223);plot(filtered);
sound (filtered);

You might also like