How to divide wav file into frames uding MATLAB -
i have .wav file , need perform stft on it. dont know length of file. how can break smaller frames , perform stft??
it has been long time since last worked on matlab, think general algo should be:
- take input signal.
- multiply point-by-point windowing function (say rectangular of 'n' samples). means have frame of 'n' samples.
- take fft of frame.
- move window 'm' samples (m = shift, 25% of 'n'). steps 2 , 3.
- if end of signal reached, take many samples of signal , fill rest zeros. steps 2 , 3.
- you have 3d plot - frequency, amplitude , time. plot stft.
on side note: there no stft functions in matlab? have checked?
Comments
Post a Comment