Last active
March 13, 2021 17:06
-
-
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
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
# 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