How can we differentiate between MALES ,FEMALE,ANIMALS sounds by looking at its graphs plotted in time domain or frequency domain ?

2 views (last 30 days)
We are working on a project about " COMPRESSION OF AUDIO BY WAVELET TRANSFORMS" Our teacher told us to record different sounds of animals, females and males and plot them in MATLAB using FFT (Fast Fourier transform) Wavelet transform and Z-transform and tell me what you analyse? we have graphs in time domain, frequency domain, phase and ower spectral density spectrogram but we can't differ b/w sounds ...Any one please help me ?
  3 Comments
Ismail Khan
Ismail Khan on 6 May 2015
Edited: Walter Roberson on 6 May 2015
This is FFT %read sound files
%'Audio' is the vector holding the original samples & 'fs' refers to the sampling frequency
[Audio,fs] = wavread('sheep_bleating.wav');
DFT = fft(Audio); %fft to transform the original signal into frequency domain
n = length (Audio); %length of the original signal
% Audio has even length
DFT = DFT(1:length(Audio)/2+1);
% create a frequency vector
freq = 0:fs/length(Audio):fs/2;
shiftfreq = fftshift(freq);
%plot original signal in time domain;
figure;
plot ((1:n)/fs, Audio);
title('.wav in time domain');
xlabel ('second');
grid on;
% plot magnitude in frequency domain
figure;
plot(freq,abs(DFT));
title('.wav in frequency domain');
xlabel ('Hz');
ylabel('Magnitude');
grid on;
% plot phase in frequency domain
figure;
plot(freq,unwrap(angle(DFT)));
title ('.wav in frequency domain');
xlabel ('Hz');
ylabel ('Phase');
grid on;
figure;
grid on;
psd(spectrum.periodogram,DFT,'Fs',fs);%power spectral density spectrogram

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 6 May 2015
I suggest you look at http://www.mathworks.com/help/signal/spectral-analysis.html In particular, spectrogram and periodogram . For example see some speech diagrams on another site

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!