I want to sketch the power spectrum of an audio file but i get wrong answer.human speech should be in range of 50 to 300 hz
[x Fs] = audioread('v0.mp3');nf=length(x);Y = fft(x,nf);Y = Y-mean(Y);f = Fs/2*linspace(0,1,nf/2+1);plot(f,abs(Y(1:nf/2+1)));
i should get this:
but instead i get this:
Best Answer