Audio Signal in Spectrogram

1 vue (au cours des 30 derniers jours)
Lena Kaz
Lena Kaz le 31 Mai 2017
Modifié(e) : Lena Kaz le 31 Mai 2017
Hello, I am new member in the community and I don't have experience in matlab. I want to produce a spectrogram for an audio file with the below characteristics: Each spectrogram matrix is composed of 333 consecutive spectrograms derived from 96 ms windows with a frame advance of 3 ms. Each spectrogram matrix has 333 frames × 257 frequency bins, one spectrogram matrix computed every 24 ms. Window size is 1-sec (frame length) with 24 ms frame advance. Can somebody help me with the spectrogram matrix?
Here is my code ('fs' is the Sample rate in hertz and 'signal' is the audio file):
x=round(0.096*fs); %samples taken over 96 msec
window=hamming(x);
noverlap=round(0.003*fs);
nfft=2^nextpow2(length(signal));
[S,f,t,P]=spectrogram(signal,window,noverlap,nfft,fs,'yaxis');

Réponses (0)

Catégories

En savoir plus sur Time-Frequency Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by