Install spleeter

In [ ]:
!apt install ffmpeg
In [ ]:
pip install spleeter
In [ ]:
from IPython.display import Audio

Separate from command line

In [ ]:
!wget https://github.com/deezer/spleeter/raw/master/audio_example.mp3
In [ ]:
Audio('audio_example.mp3')
In [ ]:
!spleeter separate -h
In [ ]:
!spleeter separate -o output/ audio_example.mp3
In [ ]:
!ls output/audio_example
In [ ]:
Audio('output/audio_example/vocals.wav')
In [ ]:
Audio('output/audio_example/accompaniment.wav')