Commit
·
4cb5d58
1
Parent(s):
4a37b1f
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="
|
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')
|