Audio Signal in Spectrogram
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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');
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Time-Frequency Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!