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
Librosa feature extraction methods with PySpark
I've been searching long time but can't see any implementation about music feature extraction techniques (like spectral centroid, spectral bandwidth etc.) integrated with Apache Spark. I am working with these feature extraction techniques and the…

Hilmi Bilal Çam
- 139
- 2
- 3
0
votes
1 answer
Problems in the implementation of a multiclass CNN
Disclaimer: newbie to Keras and Python.
Hello everybody, I am trying to implement a neural network in Keras following the specs presented in this paper: https://arxiv.org/pdf/1605.09507.pdf.
First of all, I have some doubts regarding the network…

skateskate
- 3
- 3
0
votes
0 answers
What is a difference between FFT in LabView and in Python (SciPy)
The following is puzzling me: I have a signal (8 bit integer) and two spectrograms computed from it: one in LabView and another in Python.
The shapes of the obtained spectra are identical, however the magnitude is very different. In the example I…

Dmitry Moseev
- 9
- 1
0
votes
1 answer
Inverse STFT of spectrogram without phase information
Trying to train a neural network to deal with audio data, I would like to assess some of its inner representations. One of them is very much a magnitude spectrogram without phase information, but with high overlap between Hann windows.
Is there a…

Anaphory
- 6,045
- 4
- 37
- 68
0
votes
2 answers
Scipy.signal.spectrogram output lengths
I am trying to analyze the frequencies of a song at certain points of time held inside an array.
I am using the scipy.signal.spectrogram function to generate those frequencies. the length of the song is 2:44, or 164 seconds, and the sampling rate of…

Blahmastah
- 7
- 3
0
votes
2 answers
Creating an amplitude vs frequency spectrogram of an audio file in Python
I am trying to create an amplitude vs frequency spectrogram of an audio file in Python. what is the procedure to do so?
Some sample code would be of great help.

listener
- 59
- 1
- 9
0
votes
0 answers
How to plot a Spectrogram with very small values?
I am using librosa to read a sound file and matplotlib.pyplot.specgram to plot its spectrogram and return its frequency and time bins in spectrum.
Code:
import librosa
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.pyplot import…

Beginner
- 1,202
- 2
- 20
- 29
0
votes
1 answer
How to convert a mel spectrogram to log-scaled mel spectrogram
I was reading this paper on environmental noise discrimination using Convolution Neural Networks and wanted to reproduce their results. They convert WAV files into log-scaled mel spectrograms. How do you do this? I am able to convert a WAV file to a…

Ajay H
- 794
- 2
- 11
- 28
0
votes
1 answer
Matlab cos signal from defined frequency course
how come the spectrogram of this code is at its max at approximately 4400Hz instead of 2400Hz in the last timestep of the stft? (frequencyCourse(end) = 100, meshingOrder = 24 -> f = 2400)
startTime = 0; %s
endTime = 30; %s
startIAS = 15; %Hz
endIAS…

hnes
- 13
- 1
0
votes
1 answer
How to find peaks in a spectrogram Python
Introduction
I am trying to find peaks in amplitude within a spectrogram I have produced that plots frequency against time and amplitude as the third axis.
I have looked through and attempted to code a solution using scipy.signal.find_peaks_cwt…

Daanish Karim
- 21
- 1
- 5
0
votes
1 answer
Parameters required for Scipy Spectrogram
Given a 40 Hz non-stationary signal, with a total of 4800 samples, I want to generate a spectrogram with appropriate parameters, and I was wondering how best to set the parameters in scipy.signal.spectrogram to use a window of 5 seconds and a 2.5…

geeb.24
- 527
- 2
- 7
- 25
0
votes
1 answer
Python - how to get the same number of rows from a spectrogram output?
lets say i have a datasetset of seven columns and i just take one column (xyz_magnitude) of size 1,415,684 rows and i feed it to calculate the spectrogram of that column, i expected to get the spectrogram of one column with the same size as the…

Hadeer El-Zayat
- 281
- 5
- 20
0
votes
0 answers
How to remove 'AxesImage' from the list?
this is the output of a spectrogram calculated from the magnitude of three axis (x, y and z)
(array([[ 1.52494154e+11, 1.52811638e+11, 1.52565040e+11, ...,
1.47778892e+11, 1.46781213e+11, 1.46678951e+11],
[ …

Hadeer El-Zayat
- 281
- 5
- 20
0
votes
1 answer
Python - how to store multiple lists in one list?
this is the output of multiple lists and i want to store them in one list or array
(array([[ 1.52494154e+11, 1.52811638e+11, 1.52565040e+11, ...,
1.47778892e+11, 1.46781213e+11, 1.46678951e+11],
[ …

Hadeer El-Zayat
- 281
- 5
- 20
0
votes
1 answer
Python - How to save spectrogram output in a text file?
My code calculates the spectrogram for x, y and z.
I calculate the magnitude of the three axis first, then calculate the spectrogram.
I need to take the spectrogram output and save it as one column in an array to use it as an input for a deep…

Hadeer El-Zayat
- 281
- 5
- 20