[PYTHON] I tried spleeter

** Introduction **

I was looking for a tool that could separate the vocals and instruments of a song for lip sync I found out that a tool called spleeter was recently released and tried it immediately.

** Preparation **

Install spleeter using pip.

pip install spleeter

I've tried

It seems that this is enough if you just push the song and separate it. If there is no description of ʻif name =='main'` due to using multiprocessing It seems to loop forever. (I left it spinning for about an hour without noticing it ↓ ↓ ↓)

from spleeter.separator import Separator


def test():
    separator = Separator('spleeter:2stems')
    separator.separate_to_file(r"Music file path", r"Destination directory")


if __name__ == '__main__':
    test()

** Impression **

It can be separated quite nicely. There are some places that can't be separated, but I wonder if it can be helped ~ It feels good. It seems that various parameters can be adjusted.

Recommended Posts

I tried spleeter
I tried scraping
I tried PyQ
I tried AutoKeras
I tried papermill
I tried django-slack
I tried Django
I tried cgo
I tried using parameterized
I tried using argparse
I tried using mimesis
I tried using anytree
I tried competitive programming
I tried running pymc
I tried ARP spoofing
I tried using aiomysql
I tried Python> autopep8
I tried using coturn
I tried using Pipenv
I tried using matplotlib
I tried using "Anvil".
I tried using Hubot
I tried using ESPCN
I tried PyCaret2.0 (pycaret-nightly)
I tried using openpyxl
I tried using Ipython
I tried to debug.
I tried Kivy's mapview
I tried using ngrok
I tried using face_recognition
I tried to paste
I tried using Jupyter
I tried using PyCaret
I tried shell programming
I tried using Heapq
I tried using doctest
I tried Python> decorator
I tried running TensorFlow
I tried Auto Gluon
I tried using folium
I tried AWS Iot
I tried Bayesian optimization!
I tried using folium
I tried using time-window
I tried Value Iteration Networks
I tried fp-growth with python
I tried scraping with Python
I tried AutoGluon's Image Classification
I tried to learn PredNet
I tried Learning-to-Rank with Elasticsearch!
[I tried using Pythonista 3] Introduction
I tried using easydict (memo).
I tried to organize SVM.
I tried face recognition using Face ++
I tried using Random Forest
I tried clustering with PyCaret
I tried "K-Fold Target Encoding"
I tried to implement PCANet
I tried using Amazon Glacier
[I tried] Nand2 Tetris Chapter 6
I tried the changefinder library!