I want to create a karaoke sound source by separating instruments and vocals using Python

I want to create a karaoke sound source by separating vocals and instruments using Python

I'm new to Python, but I've been able to easily separate instruments and vocals using Python tools, so I'll share them.

First install Python

Install Python by referring to the following article

$ brew install pyenv
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ exec $SHELL -l

Since the project uses Python3, install anaconda3

$ pyenv install anaconda3-2019.10
$ pyenv global anaconda3-2019.10

https://qiita.com/aical/items/2d066801a7464a676994

Install spleeter

The tool used this time is spleeter https://github.com/deezer/spleeter Reference video https://www.youtube.com/watch?v=HqanOjPBRAQ

$ git clone https://github.com/Deezer/spleeter
$ conda install -c conda-forge spleeter

This completes the preparation.

Try to separate instrument and vocal

Put the sound source you want to divide in the spleeter folder of the project file.

$ spleeter separate -i spleeter/(File name of the sound source you want to divide).mp3 -p spleeter:2stems -o output

When this command is executed and the process is completed, an output folder will be created in the same directory as spleetr. If the instrument and vocal files are included in it, it is successful.

Summary

Male vocals were a little difficult to divide. The female vocal was missing better. According to a friend, before separating the instrument and vocals with this software, it seems easier to remove the bass by using the equalizer in the composition software.

Recommended Posts

I want to create a karaoke sound source by separating instruments and vocals using Python
I want to create a window in Python
I tried to create a sample to access Salesforce using Python and Bottle
I want to make a web application using React and Python flask
I want to make a voice changer using Python and SPTK with reference to a famous site
I want to create a pipfile and reflect it in docker
I want to build a Python environment
I want to easily create a Noise Model
I want to email from Gmail using Python.
I want to make a game with Python
Create a web map using Python and GDAL
I want to create a plug-in type implementation
I want to sell Mercari by scraping python
Create a Mac app using py2app and Python3! !!
I want to write to a file with Python
I want to create a nice Python development environment for my new Mac
I want to create a priority queue that can be updated in Python (2.7)
I want to exe and distribute a program that resizes images Python3 + pyinstaller
I want to output a path diagram of distributed covariance structure analysis (SEM) by linking Python and R.
I want to embed a variable in a Python string
I want to iterate a Python generator many times
I want to generate a UUID quickly (memorandum) ~ Python ~
I want to handle optimization with python and cplex
I want to write in Python! (2) Let's write a test
I want to randomly sample a file in Python
[Python] I want to make a nested list a tuple
I want to manually create a legend with matplotlib
I want to run a quantum computer with Python
I tried to make a real-time sound source separation mock with Python machine learning
I want to use a python data source in Re: Dash to get query results
How to create a Python 3.6.0 environment by putting pyenv on Amazon Linux and Ubuntu
I want to write a triple loop and conditional branch in one line in python
I tried to create a RESTful API by connecting the explosive Python framework FastAPI to MySQL.
[Python] I want to get a common set between numpy
I want to start a lot of processes from python
I want to send a message from Python to LINE Bot
I want to know the features of Python and pip
I tried to make a stopwatch using tkinter in python
I want Sphinx to be convenient and used by everyone
I want to make input () a nice complement in python
I made a Chatbot using LINE Messaging API and Python
I want to create a Dockerfile for the time being.
I want to create a histogram and overlay the normal distribution curve on it. matplotlib edition
I tried to create a Power BI report by processing CSV / JSON logs using Azure Databricks
I want to clear up the question of the "__init__" method and the "self" argument of a Python class.
I want to record the execution time and keep a log.
I tried to create a simple credit score by logistic regression.
I want to solve APG4b with Python (only 4.01 and 4.04 in Chapter 4)
Process Splunk execution results using Python and save to a file
I tried to make a regular expression of "time" using Python
Qiskit: I want to create a circuit that creates arbitrary states! !!
I tried to make a regular expression of "date" using Python
I want to do a full text search with elasticsearch + python
Create a simple scheduled batch using Docker's Python Image and parse-crontab
I want to create a system to prevent forgetting to tighten the key 1
I tried to make a periodical process with Selenium and Python
I want to use both key and value of Python iterator
Scraping and tabelog ~ I want to find a good restaurant! ~ (Work)
[Introduction] I want to make a Mastodon Bot with Python! 【Beginners】
I tried to create Bulls and Cows with a shell program
How to update a Tableau packaged workbook data source using Python