pls help me with matlab code for STFT of audio signal in wav format and to plot pitch contour

2 views (last 30 days)
I am working on analysis of baby cry signal. fundamental frequency(Fo) of signal is already estimated using auto correlation and cepstrum analysis. cry signal is inputted in .wav format. now i want to do short time fourier transform analysis of same signal in order to find variations in fundamental frequency over the time and plot its "pitch contour". i.e. Fo v/s t. its like finding Fo value for each small interval and plotting over time to see its variability. pls, can anybody help me with the matlab code? image is uploaded for reference
.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 5 Apr 2015
Have a look at the help for:
spectrogram
That function should give you the stft with a load of options about windowing and the like. From there on it will depend a lot on your baby's cry...
HTH
  2 Comments
Bjorn Gustavsson
Bjorn Gustavsson on 14 Apr 2015
Just take the output from the spectrogram function (T, F and P or S) and feed them to the contour function. For information about how to use the contour function look at:
help contour
HTH

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!