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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
66 views

Log Mel Spectrogram vs Log Mel Power Spectrogram

I'm doing some feature extraction on audio signals. $M$ being a mel filterbank matrix, and $S$ being the spectrogram (extracted from the Short Time Fourier Transform of my audio signal), we can ...
  • 1,033
0 votes
1 answer
48 views

Spectrogram of a shock event

I have measured data of a vibration with chirp input were I suspect unwanted shock events occurred. I therefore thought about computing the spectrogram of my time histories to check the frequency ...
  • 393
0 votes
0 answers
15 views

Alternatives for background subtraction in frequency space

I have a time series from which I compute a spectrogram in order to get the frequency-time dependence which is the quantity of interest. Unfortunately, the signal is polluted by a "predictable ...
7 votes
1 answer
108 views

Can I "reverse" spectral leakage by solving a linear system?

When I compute a spectrogram of (say) a piece of music, there is a lot of frequency "smearing." Often we can reasonably expect that the "true" generating process is much sparser in ...
0 votes
1 answer
49 views

What make sample rate affect QspectrumAnalyzer output?

Use QspectrumAnalyzer to analyze signal,set sample rate as 8M and 32M. I get different output as below,32M sample rate cause ...
  • 175
0 votes
1 answer
31 views

How to modify spectrograms so that there is no effect of amplitude on their classification?

Is there any way to bring different classes of spectrograms to comparable amplitude levels so that when they are used for classification, the deep learning algorithm focuses on other aspects (like the ...
  • 63
3 votes
3 answers
159 views

Using spectogram to speed up a signal - Time Scaling/Phase Vocoder

Background About half a year ago, while learning about spectograms as part of an Image Processing course I took, I was told you can speed up audio using spectograms as follows: Calculate the ...
1 vote
0 answers
196 views

Spectrogram of x,y,z data from accelerometer

Using scipy.signal.spectrogram for creating spectrogram and matplotlib's pcolormesh for plotting. I'm working on a project where I'm using a spectrogram to visualize the frequencies of the ...
  • 11
0 votes
1 answer
71 views

what the difference between spectral density and the power spectral density?

What is the difference between the spectral density and the power spectral density, Or they are the same thing? In fact, I find this term in the book of GODA 2000.
0 votes
0 answers
23 views

How is 76 frames calculated mfcc for 1 sec signal with 25 msec window and 10 msec overlap?

I was studying about keyword detection and while doing some reading, I read we take 1 sec audio signal. We then divide it into 25msec sub sections with and overlap of 10msec. We apply mel filter bank ...
2 votes
1 answer
106 views

Performing STFT after Butterworth Filter Seems Lower in Resolution

I have a signal recorded at 2MHz sampling rate. Before any decimation might be required, I first looked for peaks in my periodic recorded signal using STFT/spectrogram. From here, I can clearly see ...
  • 77
-1 votes
1 answer
99 views

Why does using a log scale ruin (warp) my scaleograms?

I'm trying to make a scaleogram of neural data using the continuous wavelet transform (with Morlet wavelets). As a starting point, I use just a simple sine wave built from two frequencies, 50 and 80 ...
1 vote
2 answers
86 views

Good interpolation functions for downscaling magnitude spectrums

I'm trying to downscale a 1D FFT (for displaying an audio spectrogram, like this: My question is: assuming I have a 512 bands spectrum, what would be the recommended interpolation algorithm to ...
1 vote
2 answers
131 views

Reconstructing Audio From Spectrogram (Using it as a filter)

Given a spectrogram calculated using the following code: ...
  • 77
1 vote
1 answer
91 views

Artifacts on frequency spectrum

I made a spectograpm in C that takes in a wav file (44.1kHz), converts it to 8bit pcm(can't go higher because of memory constraints) and does 1024 sample FFT on a number of bins, using Welch method. I ...
  • 43
1 vote
3 answers
137 views

How to do high-resolution FFT on just the lower frequencies in a signal?

Description of the data and problem: I have a signal sampled at 1000 Hz. I'm low-pass filtering it at 120 Hz, and want to make spectrograms of the frequencies below this threshold. I'm using the scipy ...
0 votes
1 answer
94 views

How to select parameters suitable parameters for a spectrogram

I have a limited background in DSP but I need to generate a spectrogram of an electrocardiography (ECG). I am using the scipy.signal.spectrogram and I need to set ...
0 votes
0 answers
175 views

Spectrogram normalizaion to train a Fully Convolutional Model for Audio dereverberation

I'm trying to implement a deep learning based dereverberation algorithm. The network I am using is inspired by the U-net. The idea is to supply the reverberated spectrogram as input and 'clean' it ...
0 votes
1 answer
106 views

spectrogram of a (strongly) downsampled file

I downsampled an audio file to a very low sampling rate, 48hz. This is because I stored some information in the file, that are not really audio information but the audio format was convenient to use. ...
  • 23
2 votes
0 answers
102 views

Black dots in spectrogram

Whenever I zoom in on the spectrogram of a recording I made with my phone I see these strange dark dots, unfortunately I cannot try another phone. What is causing them? They seem randomly distributed ...
4 votes
1 answer
130 views

Audio Processing - How to create a spectral pitch display?

I want to create an application that analyzes human voice pitch, but spectrograms are very noisy. However, in Adobe Audition, there is a feature called the spectral pitch display, and it successfully ...
2 votes
2 answers
78 views

Computable Time-Frequency Distribution without Cross-Terms

Context: I have a single receiver that is receiving multiple signals. Each signal has a few strong harmonics, but I don't know the fundamental frequency. I would like to display them on a spectrogram ...
  • 600
3 votes
3 answers
588 views

scipy.signal.spectrogram() - how to handle gaps in the timeseries data

Looking at the magnitude of variable stars - the dataset is from here: https://dogwood.physics.mcmaster.ca/Cepheid/URL/MW/BD-10d4669.html The magnitude plot: ...
0 votes
1 answer
496 views

scipy.signal.spectrogram() with noverlap=nperseg-1, what are the possible side-effects?

I'm using a simulated data set which can be downloaded from the link in the fist paragraph on this page (it's an Excel file): https://www.analyticbridge.datasciencecentral.com/forum/topics/challenge-...
0 votes
2 answers
106 views

Can i represent a Time series signal as a spectogram image with desired shape

I am trying to represent sensor data in spectrogram form. The data set consists of multiple 1D time series with a constant frequency of 1024 Hz taken from observations, cut into 1-minute sequences. ...
1 vote
0 answers
89 views

Wrong amplitude in the FFT for 10 seconds measured signal

I measured a signal with the Osziliscope that I generated with a signal generator. The signal is a pure sine wave with a frequency of 1 kHz and a peak amplitude of 2.5 V, I measured the signal for ...
4 votes
1 answer
101 views

log(conv) vs conv(log)

Suppose an arbitrary, strictly positive $x[n]$, transformed as $$ x_l[n] = \log(1 + C x[n]) \tag{0} $$ where $C$ is freely chosen. Given the following, where $h[n]$ is a Gaussian lowpass filter (or ...
1 vote
1 answer
66 views

Do mel-spectrograms of two audios have linear property?

Suppose I have an audio and some noise, and want to do data augmentation for analysis. Since each audio and noise can have corresponding mel-spectrogram, instead of computing the mel-spectrogram of ...
1 vote
2 answers
42 views

Middle C spectrogram in RavenPro

I've been trying to perform a cross-correlation analysis between a Middle C sound (C4) and C5. I'm using the software RavenPro by Cornell to do the analysis. However, I've been unable to see a ...
1 vote
2 answers
669 views

What is the advantage of overlapping windows while evaluating Spectrogram?

I've seen many documents that refer to calculate spectrogram through overlapping windows but haven't found clear documents on why this is done and how to calculate the number of points that need to be ...
0 votes
3 answers
87 views

Why Matlab Spectrogram of slow and rarely sampled signal shows high frequencies

I have a signal, which was measured for 14.4 minutes (= 864 seconds). There are 192 measurements, so one measurement was done in every 4.5 seconds, which results in a 0.22 Hz sampling frequency if I ...
-1 votes
1 answer
98 views

How to get rid of noise in audio files?

Is there any method to get rid of noise in wite circles of the spectrogram? I have done the high pass filter for a cut-off frequency of 1 kHz. And I'v also done a adptive noise reduction in adbobe ...
  • 1
-1 votes
1 answer
104 views

How to get coordinates(x(time),y(frequency),z(intensity(db))) from spectrogram?

I have created this spectrogram from a wav file. Please have a look: I want to get the x = time, y= frequency, z=intensity(db) of every pixel of the spectrogram. How can I get these coordinates? I am ...
  • 1
1 vote
2 answers
218 views

STFT with varying window lengths (like the continuous wavelet transform)

I was wondering if it is possible to use windows of varying lengths when making a spectrogram based on the short-time Fourier transform (STFT). That is, for higher frequencies I would use shorter ...
4 votes
4 answers
3k views

What is really the Mel-filterbank?

After applying STFT to a signal, you typically need to convert the frequencies to the Mel scale. Typically the frequency values range from $0$ to $N/2$, where $N$ is the width of each sliding window. ...
0 votes
1 answer
675 views

generating log mel spectrogram using librosa

I have come across 2 different ways of generating log-mel spectrograms for audio files using librosa and I don't know why they differ in the final output, which one is "correct" or how ...
3 votes
2 answers
198 views

Why does Matlab spectrogram look stripy when windowed input is zero-padded?

I am working on a little project, and stumpled upon something I cannot understand yet. I am learning cognitive science, and don't have DSP knowledge background, only learning from what I find on the ...
2 votes
0 answers
44 views

Tell a recording of Martian wind from a recording of Earth's wind

Perseverance Rover's SuperCam Records Wind on Mars, sol 11 (Credit: NASA/JPL-Caltech/LANL/CNES/CNRS/ISAE-Supaero) How do I interpret an image of a spectrogram of an audio wind signal? (Credit: ...
  • 1,425
1 vote
1 answer
237 views

How do I interpret an image of a spectrogram of an audio wind signal?

I am running the following code in python to get the spectrogram of a audio signal of wind: ...
2 votes
0 answers
402 views

Welch Method FFT Python - Scaling factor?

I've been implementing a Welch method FFT and I am trying to work out the correct scaling factor that should be applied to the output of the function so the PSD is accurate because at the moment it's ...
2 votes
1 answer
72 views

Spectrogram without using stft

Can I use any kind of transform to make spectrogram, not just stft? Is it possible to get the spectrograms of a signal without using stft? What difference does it make if I calculate the frequency ...
0 votes
2 answers
47 views

Stft of sinusoids

I have a sinusoidal signal of 10 minutes. For the first 5 minutes, the signal has a frequency of 100 Hz and for the next 5 minutes, the signal has a frequency of 200 Hz. 1 - If I look at the ...
0 votes
0 answers
840 views

Python: How to generate log-frequency spectrogram from an audio?

I want to make a log-frequency spectrogram out of this audio. Later, I need this spectrogram for pitch sequence analysis. This is a sample sequence I want to achieve: ...
1 vote
0 answers
40 views

Get Spectrogram from Filtered Power Spectrum

My objective is to get the higher resolution of spectrogram on the high-frequency area (2000 Hz - 5000 Hz) for a section of speech audio. I know that we typically apply Mel-scaled filter bank to get ...
  • 11
0 votes
0 answers
82 views

Confusion about spectrograms: conceptual problem

The following code generates a spectrogram as shown in the image. The matrix s which is the spectrogram is of size 129x40 for a ...
  • 656
0 votes
0 answers
96 views

FM modulation - recovering bits

I'm trying to complete one task: Download some FM modulated signals from page http://www.w1hkj.com/modes/index.htm. Calculate their spectrograms, i.e. short-time Fourier transform. Observe different ...
0 votes
1 answer
586 views

How to find peak frequency in an audio frequency spectrum?

I have a audio file consisting of multiple frequencies, I need to find all the frequency peaks in the frequency spectrum after doing FFT. But the issue is how can I be able to set the threshold line ...
2 votes
2 answers
2k views

Spectrum of FM signal?

If a carrier ($f_c$) is FM modulated by a single sine wave ($f_m$), its spectrum is composed of frequencies at $f_c + kf_m$ ($k \in \mathbb{Z}$) whose amplitudes are weighted by $J_n(\beta)$, the $k$-...
  • 73
1 vote
1 answer
424 views

revert back to stft from abs and phase

I have the following code on python ...
-1 votes
1 answer
147 views

Power Spectral Density Reconstruction

I am from an ML background and I am working on MP3 audio reconstruction and I have managed some amount of spectrogram reconstruction but I have noticed that the higher frequency end of the generated ...

1
2 3 4 5 6