https://github.com/seanghay/vocal
A vocal source separation
https://github.com/seanghay/vocal
background-remover source-separation vocal
Last synced: 3 months ago
JSON representation
A vocal source separation
- Host: GitHub
- URL: https://github.com/seanghay/vocal
- Owner: seanghay
- License: mit
- Created: 2024-08-31T09:29:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-02T09:33:42.000Z (8 months ago)
- Last Synced: 2025-07-11T20:52:31.729Z (3 months ago)
- Topics: background-remover, source-separation, vocal
- Language: Python
- Homepage: https://pypi.org/project/vocal/
- Size: 14.6 KB
- Stars: 21
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vocal
A vocal source separation
```
pip install vocal
``````python
import librosa
import soundfile as sf
from vocal import get_model, separate_vocaldevice = "cuda" # or cpu
audio, sr = librosa.load("audio.wav", sr=44100, mono=False)
model = get_model(device) # download model from HF
audio_data = separate_vocal(model, audio, device, silent=False)
sf.write("vocal.mp3", format="MP3", data=audio_data.T, samplerate=sr)
```## CLI
Sinlge file
```shell
vocali -i audio.mp3 -o output.mp3
```Folder
```shell
vocali -i audio/ -o output --recursive
```