Audio Signal in Spectrogram

4 ビュー (過去 30 日間)
Lena Kaz
Lena Kaz 2017 年 5 月 31 日
編集済み: Lena Kaz 2017 年 5 月 31 日
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 件)

カテゴリ

Help Center および File ExchangeTime-Frequency Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by