Noisefilter.pdf

  • Uploaded by: yahya sogodok
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Noisefilter.pdf as PDF for free.

More details

  • Words: 100
  • Pages: 1
% Read the speech file that contain the noise [x, fs]= audioread('sound.mp3'); len=length(x); % Apply simple averaging which help to reduce the intensity of the high frequency % noise if contains for i=1:2 for j=2:len-1 x(j,i) = (x(j-1,i) + x(j,i) + x(j+1,i))/3 ; end end % Creating Gaussian window of size 20 g = gausswin(20); % Apply convolution using Gaussian filter g = g/sum(g); y= conv(x(:,1), g, 'same'); % Apply signal smoothing using Savitzky-Golay smoothing filter. result=sgolayfilt(y,1,17); % resultant signal can be write to the new file audiowrite('result.wav',result,fs); % plot the resultant and original signal plot(x);title('original'); figure; plot(result); title('resultant signal');

More Documents from "yahya sogodok"