Answer the question
In order to leave comments, you need to log in
How can I download a lossless audio spectrogram?
Good afternoon. I get the spectrogram of an audio file like this:
import librosa
import numpy as np
# write wav file from the amplitude
import soundfile as sf
path = '/content/drive/MyDrive/originalputin/2.mp3.wav'
audio, sr = librosa.load(path)
audio_stft = librosa.stft(audio)
import matplotlib.pyplot as plt
import librosa.display
fig, ax = plt.subplots()
img = librosa.display.specshow(audio_stft, y_axis='log', x_axis='time', ax=ax)
ax.set_title('Spectrogram')
fig.colorbar(img, ax=ax, format="%+2.0f")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question