Skip to content

Instantly share code, notes, and snippets.

@dmastropole
Last active October 14, 2019 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmastropole/42ad524983b6b0aa41c98a0a12e3500d to your computer and use it in GitHub Desktop.
Save dmastropole/42ad524983b6b0aa41c98a0a12e3500d to your computer and use it in GitHub Desktop.
Extract Audio
# 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