Simple terminal-based audio separation tool that splits songs into vocals and instrumentals (karaoke) using AI.
- 🎵 Separates vocals from instrumentals (karaoke)
- 🖥️ Simple terminal interface
- 🎯 Single-purpose, focused tool
- 🚀 Fast and efficient
- 📁 Organized output
Make sure you have Python 3.8 or higher installed.
pip install -r requirements.txtOr install manually:
pip install demucs torch torchaudiomacOS:
brew install ffmpegLinux:
sudo apt-get install ffmpegWindows: Download from https://ffmpeg.org/download.html
Put your audio files (MP3, WAV, FLAC, OGG, M4A) in the input folder.
python track_split.pyChoose a file from the numbered list.
Processing takes 1-3 minutes per song.
Find separated files in:
output/vocals/- Vocal tracksoutput/karaoke/- karaoke tracks
$ python track_split.py
╔════════════════════════════════════════╗
║ TRACK SPLITTER v1.0 ║
║ AI-Powered Audio Separation ║
╚════════════════════════════════════════╝
ℹ Checking dependencies...
✓ All dependencies installed
✓ Directories ready
Available audio files:
1. my_song_1.mp3 (8.5 MB)
2. my_song_2.wav (45.2 MB)
0. Exit
Select file (1-2) or 0 to exit: 1
Processing: my_song.mp3
ℹ This may take 1-3 minutes depending on file length...
[Progress bar appears here]
✓ Vocals saved: my_song_vocals_timestamp.wav
✓ Instrumental (karaoke) saved: my_song_karaoke_timestamp.wav
✓ Separation complete!
ℹ Output files saved in 'output' folder
Process another file? (y/n): n
ℹ Goodbye!
track_split/
├── track_split.py # Main program
├── requirements.txt # Dependencies
├── README.md # This file
├── input/ # Place audio files here
└── output/
├── vocals/ # Separated vocals
└── karaoke/ # Separated instrumentals
- Format: WAV (uncompressed)
- Sample Rate: 44.1 kHz
- Bit Depth: 16-bit
- Channels: Stereo
pip install demucsInstall ffmpeg (see Installation section)
Try processing shorter files or close other applications
Normal on CPU. Processing takes 1-3 minutes per 3-minute song.
- AI Model: Demucs (Facebook Research)
- Algorithm: Hybrid Transformer model
- Quality: Professional-grade separation
- Speed: ~1-2 minutes per song (CPU)
MIT License
- Audio separation: Demucs by Facebook Research
- Created for simple, focused audio processing
For issues or questions, check:
- Demucs documentation: https://github.com/facebookresearch/demucs
- ffmpeg documentation: https://ffmpeg.org/documentation.html