A spectrogram, or sonogram, is a visual representation of the spectrum of frequencies in a sound, at each time. Spectrograms are also called spectral waterfalls, voiceprints, or voicegrams. Spectrograms are used extensively in the development of the fields of music, sonar, radar, and speech processing, seismology, etc.
Questions tagged [spectrogram]
502 questions
0
votes
1 answer
Methodology of FFT for Matlab spectrogram / short time Fourier transform functions
I'm trying to figure out how MATLAB does the short time Fourier transforms for its spectrogram function (and related functions like specgram, or stft in Octave). What is curious to me is that you can apparently specify the length of the window and…

Sesquipedal
- 228
- 2
- 11
0
votes
1 answer
How can I get a frequency-time array in matlab.
I have a wav file, and I wanted to get frequency-time array of the file .
for getting, I tried STFT in matlab.
[s f t]= spectrogram(x,window,overlap,N,FS);
figure(1)
imagesc(t,f,log10(abs(s)));
[X,Y]=meshgrid(t,f);
Z=log10(abs(s));
mesh(X,Y,Z);
I…

Yoon Heejun
- 3
- 3
0
votes
1 answer
Change colour scale increments in Python
I have created a frequency time spectrogram plot seen below.
I want to edit the colour scale so that the higher frequencies shown from 20 seconds are more prominent. I think having smaller increments at the lower end of the colour scale (blues)…

HL123
- 101
- 1
- 2
- 6
0
votes
0 answers
Is there a way to subtract from spectrogram (stored as a figure) from another in MATLAB?
I have 2 figures (spectrograms) in MATLAB and I would like to subtract them from one another in order to test their similarity. Is there a way to do this?

Michi
- 125
- 3
- 11
0
votes
2 answers
How can I find the best matching sound file(s) to a sample sound file?
I'm working on a very simplistic speech recognition project. I currently have 2 sets of wav files. Each set has 1-second long recordings of a set of words spoken by the same person at 2 different instances. For example, one set has the words "one",…

Michi
- 125
- 3
- 11
0
votes
0 answers
Spectrograms - Am I missing something?
I have the following signal:
I'm trying to compute a Spectrogram algorithm, but, don't think I'm doing it right..
I have computed the following:
1) STFT (size 256 with an overlap of 128)
2) Computed the logs using: '10 * log10(sqrt(re * re + im…

Phorce
- 4,424
- 13
- 57
- 107
0
votes
0 answers
Matching a wav converted into a spectrogram to its best fit spectrogram
I have ~200 spectrograms of different words. I want to be able to (or at the very least, try) record a word as wav (like I did with the original words), convert it to a spectrogram, and then try to find the best match.
Unfortunately, many of these…

Michi
- 125
- 3
- 11
0
votes
1 answer
Spectrogram from Complex Morlet wavelet ( recreating article result from data)
I am trying to recreate the following results:
from the following data:
https://www.dropbox.com/s/mi3szqgzgku29rn/FS40.dat
the time is in milliseconds (frequency is 40000 Hz)
The article state that they used Complex Morlet wavelet to create the…

Oren
- 4,711
- 4
- 37
- 63
0
votes
2 answers
MP3 Audio Spectrogram?
Been looking for a way to do this all day with no hope.
I'm creating a project with MP3 playback functionality and I'm trying to include a spectrogram (or spectrum analyser.. not sure what the proper name for it is) similar to this…

Sakuya
- 660
- 5
- 23
0
votes
1 answer
Spectrogram between indices matlab
I have a signal that is 507150 samples long and I want a spectrogram between samples 202336 and 234398 only. How should I format the spectrogram function? Or is there another method?

Matt1993
- 105
- 1
- 3
- 8
0
votes
1 answer
Matlab spectrogram Hann window
My task
I have a signal in .wav format with sampling frequency as 44100Hz. I want to get its power spectrum. I would like to do the STFT with a Hann window with size as 200ms and the window period as 50Hz. The frequency range that I am forcing is…

sflee
- 1,659
- 5
- 32
- 63
0
votes
1 answer
Smooth surf plot of spectrogram in Matlab
I want a 3d spectrogram This is what I have done so far.
urlwrite('http://goo.gl/D1uAn','sample.wav');
%reads from web and saves the wav file in local folder with name sample.wav
%this might not save the file if so please download the file from the…

Sunil Shahi
- 641
- 2
- 13
- 31
0
votes
1 answer
Matplotlib mlab: change psd() maximum frequency?
I only just discovered the awesome that is matplotlib.mlab.psd(), but I am having one issue, that is: how can I change the frequency range used by the method?
This has two return values: freqs, which is pretty much the histogram bins for various…

Magsol
- 4,640
- 11
- 46
- 68
0
votes
1 answer
Draw Spectrogram STFT in C#, what function can I use?
Assume that I have STFT (short time fourier transform) data, how would these can be displayed on the picture box as spectrogram of frequency vs time, what function in C# can I use ?

Thuc-Tram Ngo
- 37
- 2
- 5
0
votes
1 answer
Finding peaks from a spectrogram picture
So, i have this code:
[sound,fs,bits] = wavread(file);
[S,F,T] = spectrogram(sound, 256, 200, 256, fs);
plot(F,abs(S));
[sorted index] = sort(list,'descend');
Now i need to find the highest 3 peaks of the amplitudes in S (between the…

user2300158
- 45
- 1
- 5