Last active
October 14, 2019 19:54
-
-
Save dmastropole/42ad524983b6b0aa41c98a0a12e3500d to your computer and use it in GitHub Desktop.
Extract Audio
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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment