This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
window = np.hanning(25) | |
plt.plot(window) | |
plt.title('Hanning Window') | |
plt.xlabel('Time (ms)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plot the first second of audio | |
import matplotlib | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
plt.plot(sec_audio) | |
plt.title('Sound Wave') | |
plt.xlabel('Samples') | |
plt.ylabel('Amplitude') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extract the first second of audio | |
import essentia | |
import essentia.standard | |
loader = essentia.standard.MonoLoader(filename='example.wav', sampleRate=44100) | |
audio = loader() | |
sec_audio = audio[0:44100] |
NewerOlder