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
0 answers
scipy.signal.spectrogram resolution
So I wanted to fix the resolution to: number of frequencies is 56 and time-localised point is 3
Hoever I cannot understand the arguments of the function scipy.signal.spectrogram:
scipy.signal.spectrogram(x, fs=1.0, window=('tukey', 0.25),…

Chaine
- 1,368
- 4
- 18
- 37
0
votes
1 answer
Convert imshow object to image directly for edge detection?
Is there a way to convert the imshow object to an image directly in python 2.7 code? I'm trying to obtain the spectrogram of a wav file and use the image to detect edges in it.
I have the code to get the spectrogram, I have the code to detect…

Dinesh
- 889
- 14
- 34
0
votes
2 answers
How long should audio samples be for music/speech discrimination?
I am working on a convolutional neural net which takes an audio spectrogram to discriminate between music and speech using the GTZAN dataset
If single samples are shorter, then this gives more samples overall. But if samples are too short, then they…

Androbin
- 991
- 10
- 27
0
votes
1 answer
No module called spectrogram
Hi I am having a little trouble with the module spectrogram which I need to use in order to create spectrograms from my wav files.
I repeatedly get the error message No module named spectrogram when importing on my Windows which is running Python…
user6002417
0
votes
0 answers
Plot/overlay formants on matplotlib's specgram a la Praat
I have a specgram plotted via the matplotlib library. Everything looks great with it. However, I found myself wanting to overlay formant points on top of the specgram, the same as can be done in Praat (in the spectrogram, under Formant [menu] ->…

whatisit
- 219
- 3
- 12
0
votes
0 answers
Extracting sample rate from spectrogram
I have a set of spectrograms as numpy arrays. Is there any way that I could find their sample rates? I don't have any other information, for example the original sound files.

Qubix
- 4,161
- 7
- 36
- 73
0
votes
1 answer
Customize output of MATLAB's spectrogram function
I would like to know whether it is possible to customize the plot generated by MATLAB's spectrogram function in such a way that its x-axis does not represent the time but another physical signal y2captured simultaneously with the input signal y1…

Rickson
- 1,040
- 2
- 16
- 40
0
votes
0 answers
Array Incompatiability with PColorMesh
So I am trying to use pcolormesh to help develop a spectrogram for some data I'm trying to present for my research group. In short, it's level 3 data from the RBSPICE and HOPE (it'll give you some privacy error but just mull over that) instruments…

anabstudent
- 61
- 1
- 1
- 9
0
votes
1 answer
How to properly nomalisation an array to plot spectrogram
I have already obtain a 2D array of amplitudes for each time and frequency. However, to plot a spectrogram, the pixel intensity should be according to the level of amplitude (ex. Red highest green lowest).
(I got the amplitude from FFT and…

Aung
- 253
- 1
- 5
- 15
0
votes
0 answers
Make a spectrogram of existing data in python
I have some data that I'd like to represent as a spectrogram or heat-map in python 2.7. At the moment, I have an array of three columns (time, channel number and flux), and thousands of rows that represent each data point. How would I be able to…

Emma
- 1
0
votes
1 answer
Properly finding peaks in MATLAB in 3D spectrogram
I am trying to do a spectrogram analysis on a song. Currently I have about a 10 second clip from a song and am attempting to find the local peaks.
All I really want is to have a scatter plot showing local maxima within some NxN neighborhood worth of…

Chrispresso
- 3,660
- 2
- 19
- 31
0
votes
1 answer
How to create an mp3 out of a spectrogram in python?
I have spectrograms which I acquired without the original sound files. Those are greyscale images, where the x axis represents time and the y axis represents frequency, which each pixel value represents volume (or so I believe).
I am pretty certain…

Gilthans
- 1,656
- 1
- 18
- 23
0
votes
1 answer
Understanding Spectrogram parameters
I came across this coding while learning:
[S,F,T,y] = spectrogram(samples, WINDOW, NOVERLAP, nfft, fs);
What exactly is being assigned to S,F,T and y?

cathy305
- 57
- 1
- 1
- 8
0
votes
1 answer
Matlab: selected values of spectrogram
I have calculated the spectrogram of a file .wav using the code reported here:
https://www.dsprelated.com/freebooks/sasp/Matlab_listing_myspectrogram_m.html
Now, I want select elements of this spectrogram under a determinated threshould of…

user3582433
- 469
- 1
- 8
- 24
0
votes
0 answers
How to map FFT spectral amplitude values to grayscale(0-255)
I have calculated the fft values and stored them in a cell array with each vector containing the fft values corresponding to each input audio signal.This is my code :
for k=1 : length(rseg)
rfft{k} = fft(rseg{k});
end
for k=1 : length(rotate)
…