Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use the Matlab command FFT to convert voice time domian to frequency domain?

Status
Not open for further replies.
fft matlab example

Really I don't understand this just make sure you did write the code rightly and please can you upload the wave file?
 

matlab fft remove dc component

I used to used single tone to verify my matlab scripts. hope it help.
 

matlab negative part

Ok try this code I think it does work. I tried it with your wav file and this what it gives

[x fs]=wavread('D:\voice\stop8');
Fs=fs/2;
dt=1/Fs;%% time interval
t=(1:length(x))*dt; %%time vector

X=fft(x);
df=1/(length(x)*dt); %% frequency interval
f=(1:length(X))*df;%% frequency vector

%%
%%% time domain plot, time in seconds
figure
plot(t,x)
xlabel('Time (s)');
ylabel('Amplitude');
grid on

f1=f(1:length(X)/2+1);
Y=X(1:length(X)/2+1);

%% frequency domain plot, freq in hertz
figure
semilogy(f1,abs(Y));
title('stop')
xlabel('frequency(hz)');
ylabel('amplitude');
grid on

%%
figure
semilogy(f1,20*log10(abs(Y(1:length(Y)))+eps));
title('stop')
xlabel('frequency(hz)');
ylabel('amplitude(db)');
legend('fft');
grid on;
 

fft voice

u already try my wav file?

Added after 7 minutes:

28_1163431416.JPG

i saw the website, they got his frequency..

Added after 5 minutes:

thank jakjoud, u helping me alot...
can u plot the freq same like this?

Added after 3 minutes:

jakjoud, i think your correct, anyway thank you very much...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top