Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spectrogram]

A spectrogram is a time-varying spectral representation (forming an image) that shows how the spectral density of a signal varies with time.

17
votes
4answers
19k views

Reconstruction of audio signal from Spectrogram

I have a set of songs for which I extracted the magnitude spectrogram using a Hamming Window with 50% overlap. After extracting the spectrogram, I did some dimensionality reduction using Principal ...
4
votes
3answers
5k views

Reconstruction of Audio Signal from its Absolute Spectrogram

I have the absolute Spectrogram of an audio signals. I lost the phase data of the Spectogram because of various processing applied on the original spectrogram of the signal. I'm trying to reconstruct ...
7
votes
1answer
2k views

Converting mel spectrogram to spectrogram

I have a set of songs for which I extracted the STFT (Short-Time Fourier Transform) and used the magnitude spectrum $|S|$ to calculate the mel spectrogram by using a mel filterbank matrix $M$, so $X=\...
4
votes
3answers
18k views

FFT to spectrum in decibel

Here is a 10 seconds-long 440hz sine wave normalized at $0\textrm{ dBFS}$. When computing the STFT (with the code below) of this audio file, I noticed that ...
1
vote
1answer
3k views

scipy.signal.spectrogram

I want to do time-frequency analysis of a signal. So i decided to use spectrogram function from scipy. This function returns, three parameters f,t,Sxx. I am using below arguements: x : my signal fs : ...
0
votes
3answers
954 views

STFT multiplied with Gaussian window vs STFT multiplied by rectangular window

I am currently analysing my signal by looking at its spectrogram to determine the sinusoidal frequency content at the local sections of my signal overtime. I can do my spectrogram in 2 ways: Directly ...
-1
votes
1answer
353 views

relationship of column of spectrogram to original signal

We can get the spectrograms of a signal which is a 2D matrix. How do I get back from the columns of the spectrogram to the time stamps in original signal? For example, what time stamp does the columns ...
10
votes
1answer
3k views

What is the maximal frequency resolution for Matlab's STFT implementation spectrogram()?

Matlab's spectrogram() function calculates the STFT of a signal. It describes its NFFT argument as follows: ...
3
votes
3answers
3k views

Why do we get ripples in the frequency spectrum of a chirp, and how do I remove it?

The ripples in the amplitude spectrum of a linear spectrum is undesirable. I desire to obtain a flat spectrum response. Hence, how can I remove these ripples? Also, which factors (like time bandwidth ...
2
votes
1answer
409 views

What are best practices to compute an audio spectrogram?

The spectrogram if generally defined with the squared magnitude of the fft. However, in lots of implementation, it seems that people just use the magnitude without square. Moreover an audio signal is ...
2
votes
1answer
5k views

Please help me analyse spectrogram

I am working on noise reduction and I need to learn how to analyze spectrograms I mixed a pure speech file with violet noise in audacity and got the following spectrograms: Matlab version Sonogram ...
2
votes
1answer
499 views

Why is the DFT used for spectrograms rather than the DCT?

Related to Could a DCT be used for an audio magnitude spectrum rather than DFT?, but more on the (audio) spectrogram side of things I've been reading about the DCT (such as from here) and it ...
1
vote
1answer
281 views

Spectrogram with square or non-square magnitude of STFT: power vs. magnitude

As seen in this question and answer, to do a spectrogram, it's common to plot either: the square magnitude $|\text{STFT}(\text{frame}, \text{bin})|^2$ ("power spectrum") the magnitude $|\text{STFT}(\...
-1
votes
1answer
115 views

Making a mesh out of the parameters from a STFT

I do not possess much knowledge about signal processing, so i hope to do a find an answer. I am reading a wav-file and then apply a fft on it. In theory, i think i have a 3 parameters i can use. Time ...