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.
Install spleeter using pip.
pip install spleeter
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()
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