Addition of noise to speech

MATLAB CODE: clc; close all; clear all; [Data,fs,nbits]=audioread('speechfilename.wav');  % input wav file Data=Data(:,1); NoiseData=Data+0.05*randn(size(Data));  %defining Noise data wavplay(NoiseData,fs); X=fft(Data);      %FFT of data file X=abs(X); subplot(2,1,1); plot(X); grid on; y=fft(NoiseData);   %FFT of noise in data Y=abs(Y); subplot(2,1,1); plot(Y); audiowrite(filename,Y,fs);    %filename= output file

Powered by WordPress.com.

Up ↑