Removing Vocals & Music from Audio Songs (easy peasy)

Introduction

Spleeter is an open-source tool developed by Deezer for source separation, allowing users to isolate vocals and accompaniment from audio tracks. This guide outlines the steps to set up Spleeter in a Windows Subsystem for Linux (WSL) environment and use it to remove vocals from an audio file.

Prerequisites

  • WSL: Ensure you have WSL installed on your Windows machine.
  • Python: Python 3 should be installed in your WSL environment.
  • Pip: The Python package manager should be available.

Step-by-Step Guide

Step 1: Install Required Packages

  1. Update Package List:
<span>sudo </span>apt update
   <span>sudo </span>apt update
sudo apt update

Enter fullscreen mode Exit fullscreen mode

  1. Install Python and Pip (if not already installed):
<span>sudo </span>apt <span>install </span>python3 python3-pip
   <span>sudo </span>apt <span>install </span>python3 python3-pip
sudo apt install python3 python3-pip

Enter fullscreen mode Exit fullscreen mode

  1. Install Spleeter:
pip <span>install </span>spleeter
   pip <span>install </span>spleeter
pip install spleeter

Enter fullscreen mode Exit fullscreen mode

  1. Install Additional Dependencies: To ensure compatibility, install a specific version of NumPy:
pip <span>install</span> <span>'numpy<2'</span>
   pip <span>install</span> <span>'numpy<2'</span>
pip install 'numpy<2'

Enter fullscreen mode Exit fullscreen mode

  1. Upgrade Spleeter (if necessary):
pip <span>install</span> <span>--upgrade</span> spleeter
   pip <span>install</span> <span>--upgrade</span> spleeter
pip install --upgrade spleeter

Enter fullscreen mode Exit fullscreen mode

Step 2: Install FFmpeg

Spleeter requires FFmpeg for audio processing. Install it using:

<span>sudo </span>apt <span>install </span>ffmpeg
<span>sudo </span>apt <span>install </span>ffmpeg
sudo apt install ffmpeg

Enter fullscreen mode Exit fullscreen mode

Step 3: Prepare Your Audio File

Ensure your audio file is accessible from WSL. For example, if your audio file is located at E:\path\audio.mp3, you can access it in WSL at:

/mnt/e/path/audio.mp3
/mnt/e/path/audio.mp3
/mnt/e/path/audio.mp3

Enter fullscreen mode Exit fullscreen mode

Step 4: Run Spleeter to Separate Vocals

Use the following command to separate the vocals from the audio file:

python3 <span>-m</span> spleeter separate <span>-i</span> /mnt/e/path/audio.mp3 <span>-o</span> /mnt/e/path/output
python3 <span>-m</span> spleeter separate <span>-i</span> /mnt/e/path/audio.mp3 <span>-o</span> /mnt/e/path/output
python3 -m spleeter separate -i /mnt/e/path/audio.mp3 -o /mnt/e/path/output

Enter fullscreen mode Exit fullscreen mode

Step 5: Check the Output

After running the command, check the output directory (/mnt/e/path/output). You should find two audio files:

  • vocals.wav: Contains the isolated vocals.
  • accompaniment.wav: Contains the instrumental part.

Conclusion

You have successfully set up Spleeter in a WSL environment and used it to remove vocals from an audio file. This powerful tool can be used for various audio processing tasks, making it a valuable resource for musicians, producers, and audio enthusiasts.

原文链接:Removing Vocals & Music from Audio Songs (easy peasy)

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
You must learn a new way to think before you can master a new way to be.
在掌握新方法之前,你必须要先换一种思考方法
评论 抢沙发

请登录后发表评论

    暂无评论内容