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 (…


This content originally appeared on DEV Community and was authored by manish srivastava

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:
   sudo apt update
  1. Install Python and Pip (if not already installed):
   sudo apt install python3 python3-pip
  1. Install Spleeter:
   pip install spleeter
  1. Install Additional Dependencies: To ensure compatibility, install a specific version of NumPy:
   pip install 'numpy<2'
  1. Upgrade Spleeter (if necessary):
   pip install --upgrade spleeter

Step 2: Install FFmpeg

Spleeter requires FFmpeg for audio processing. Install it using:

sudo apt install ffmpeg

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

Step 4: Run Spleeter to Separate Vocals

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

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

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.


This content originally appeared on DEV Community and was authored by manish srivastava


Print Share Comment Cite Upload Translate Updates
APA

manish srivastava | Sciencx (2024-09-10T20:14:42+00:00) Removing Vocals & Music from Audio Songs (easy peasy). Retrieved from https://www.scien.cx/2024/09/10/removing-vocals-music-from-audio-songs-easy-peasy/

MLA
" » Removing Vocals & Music from Audio Songs (easy peasy)." manish srivastava | Sciencx - Tuesday September 10, 2024, https://www.scien.cx/2024/09/10/removing-vocals-music-from-audio-songs-easy-peasy/
HARVARD
manish srivastava | Sciencx Tuesday September 10, 2024 » Removing Vocals & Music from Audio Songs (easy peasy)., viewed ,<https://www.scien.cx/2024/09/10/removing-vocals-music-from-audio-songs-easy-peasy/>
VANCOUVER
manish srivastava | Sciencx - » Removing Vocals & Music from Audio Songs (easy peasy). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/10/removing-vocals-music-from-audio-songs-easy-peasy/
CHICAGO
" » Removing Vocals & Music from Audio Songs (easy peasy)." manish srivastava | Sciencx - Accessed . https://www.scien.cx/2024/09/10/removing-vocals-music-from-audio-songs-easy-peasy/
IEEE
" » Removing Vocals & Music from Audio Songs (easy peasy)." manish srivastava | Sciencx [Online]. Available: https://www.scien.cx/2024/09/10/removing-vocals-music-from-audio-songs-easy-peasy/. [Accessed: ]
rf:citation
» Removing Vocals & Music from Audio Songs (easy peasy) | manish srivastava | Sciencx | https://www.scien.cx/2024/09/10/removing-vocals-music-from-audio-songs-easy-peasy/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.