Skip to content

Instantly share code, notes, and snippets.

@gomesfellipe
Last active March 13, 2021 17:06
Show Gist options
  • Save gomesfellipe/5f59af79667d0e77a8c7a79d286ebc74 to your computer and use it in GitHub Desktop.
Save gomesfellipe/5f59af79667d0e77a8c7a79d286ebc74 to your computer and use it in GitHub Desktop.
Script used to obtain instruments for a music using the spleeter library from deezer
# Referencias:
# https://github.com/deezer/spleeter
# !conda install -c conda-forge ffmpeg libsndfile
# !pip install spleeter
from spleeter.separator import Separator
separator = Separator('spleeter:5stems')
audio_file = 'musica.mp3'
destination = 'output/musica'
separator.separate_to_file(audio_file, destination)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment