Off the side of my desk, I’ve been working on a fun music project.
It came to a point where it would have been great to have just the vocals for DMX’s “Party Up (Up In Here)” without the instruments and drums underneath.
I have GarageBand, but with literally no experience in GarageBand, I wasn’t sure how (or if) to isolate the vocals from an MP3.
After some Googling, I found out Spleeter. Just give Spleeter an MP3 and it will automatically separate vocals, bass and drums from other instruments.
Exactly what I was looking for!
Here’s how to install and use Spleenter.
Download and install Anaconda
Anaconda is a toolkit used for building and running machine learning projects. You can download Anaconda here.
Clone Spleeter from Github
Open Terminal, enter git clone https://github.com/Deezer/spleeter
and hit enter.
Create a new Python 3.7 environment for Spleenter
In Terminal, enter conda create -n spleenter_env python=2.7
and hit enter.
Switch to your Spleenter Anaconda environment
In Terminal, type cd spleenter
and press enter.
In Terminal, type conda activate spleenter_env
and press enter.
Now, install Spleenter
In Terminal, enter conda install -c conda-forge spleeter
and press enter. This will take a couple of minutes.
Test Spleenter out by separating the built-in audio sample
In Terminal, type spleeter separate -i audio_example.mp3 -p spleeter:2stems -o output
and press enter.
In Terminal, type open .
and press enter. This will open a Finder window. Double-click on the output
folder to see your separated file.
That’s it!
Spleenter has done a good job with the tracks I’ve thrown at it today and hopefully it works as well for your projects.