Free use of Python to solve the separation of audio vocals and background music

If MP4 uses commands for audio separation, the commands are as follows:

ffmpeg -i dadada.mp4  -ac 2 -ar 44100 -acodec pcm_s16le dadada.wav

Install docker on the computer, remove the python environment, and pull the image:

deezer/spleeter:3.8-5stems

Download model, network disk address:
link: https://pan.baidu.com/s/1Pw-CDO5Chd4_bVPsVaDE1A?pwd=qkth

Command for vocal separation:

docker run --rm -v /Users/zhaohaiyuan/Desktop/111/output:/output -v /Users/zhaohaiyuan/Desktop/111/input:/input -v /Users/zhaohaiyuan/Downloads/work2023/spleeter/pretrained_models:/model deezer/spleeter:3.8-5stems separate  /input/dadada.wav  -p spleeter:2stems -o /output

Guess you like

Origin blog.csdn.net/zhaohaiyuan123/article/details/132025273