Commit
·
64848e1
1
Parent(s):
a1f9bbc
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def create_spectrogram_and_get_info(audio_file):
|
|
42 |
|
43 |
# Create the spectrogram
|
44 |
plt.specgram(audio_data, Fs=sample_rate / 1, NFFT=4096, sides='onesided',
|
45 |
-
cmap="Reds_r", scale_by_freq=True, scale='dB', mode='magnitude', window=np.hanning)
|
46 |
|
47 |
# Save the spectrogram to a PNG file
|
48 |
plt.savefig('spectrogram.png')
|
|
|
42 |
|
43 |
# Create the spectrogram
|
44 |
plt.specgram(audio_data, Fs=sample_rate / 1, NFFT=4096, sides='onesided',
|
45 |
+
cmap="Reds_r", scale_by_freq=True, scale='dB', mode='magnitude', window=np.hanning(4096))
|
46 |
|
47 |
# Save the spectrogram to a PNG file
|
48 |
plt.savefig('spectrogram.png')
|