Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have two .wav files(audio files) One file is original.wav audio file(reference

ID: 1935326 • Letter: I

Question

I have two .wav files(audio files) One file is original.wav audio file(reference file size 893679) and the second file(named new.wav size 893699 with whispering distortion) is distorted original audio file.(Original.wav with distortion). I need help on Matlab code to remove the distortion from new.wav file such that it will be exactly same as the original.wav file(no whispering distortion) by using the time and frequency domain tools. This audio sampled 44100Hz. how do i compare the original.wav vs new.wav and find the distorted lenght. As you see the two plots the original has less amplitude than new.wav audio file. Please I need complete code I can only load my files into matlab( x=wavread('original.wav'); and also (w=wavread('new.wav') I need to define variable H(e^jw) and Y(e^jw)=H*W but I don't how in matlab . I will promise that I will rate. thanks

Explanation / Answer

y is the input wav file.It will contain 893699 samples. which means it is of20.265 s duration let y1=wavread(new.wav) and y2=wavread(original.wav) L=size; %893699 NFFT = 2^nextpow2(L); % Next power of 2 from length of y1or y2 Y1 = fft(y1,NFFT)/L; Y2 = fft(y2,NFFT)/L f = Fs/2*linspace(0,1,NFFT/2); % Plot single-sided amplitude spectrum. subplot(2,1,1) ; plot(f,2*abs(Y1(1:NFFT/2))); subplot(2,1,2) ; plot(f,2*abs(Y2(1:NFFT/2))); title('Single-Sided Amplitude Spectrum of y1(t) and y2(t)') xlabel('Frequency (Hz)') ylabel('|Y(f)|') Plot FFT of both. use subgraph(2,1) plot(f,2*abs(Y1(1:NFFT/2))); Compare the FFT of both.Note the distortion components. It is usually the low frequency component where distortion occurs. Use appropriate filter to remove noise.