Skip to main content

Local vocal removal

Project description

audio-separation

Local audio source separation. Drums, Bass, Vocal and other.

Install

pip install audio-separation

Usage

audio-separation "track.mp3" ./outputs/
audio-separation "track.mp3" ./outputs/ --device cuda
audio-separation "track.mp3" ./outputs/ --device mps

Output files are saved as <track>_<stem>.mp3 in the specified directory.

Arguments

Argument Description
input_file Path to the input audio file
output_dir Directory where the output MP3 will be saved

Options

Flag Default Description
--device cpu Inference device: cpu, cuda, mps

Requirements

  • Python 3.11–3.14
  • FFmpeg (brew install ffmpeg / apt install ffmpeg)

Development

git clone https://github.com/felipeinfantino/audio-separation
cd audio-separation
poetry install
poetry run audio-separation "inputs/Alucinados.mp3" "outputs"

Extending with a new package

poetry add [packagename]

# Check the CLI is still working
poetry run audio-separation "inputs/Alucinados.mp3" "outputs"

# Verify lockfile is clean
poetry lock

# Bump version
poetry version patch   # or minor / major

Git build versioning

Let x.y.z be the new bumped version:

git tag v[x.y.z]
git push origin main --tags

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audio_separation-0.1.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audio_separation-0.1.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file audio_separation-0.1.4.tar.gz.

File metadata

  • Download URL: audio_separation-0.1.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.15 Linux/6.14.0-1017-azure

File hashes

Hashes for audio_separation-0.1.4.tar.gz
Algorithm Hash digest
SHA256 aa83125e65029132426ec30cdad2b28bd60cdf8a564049d3fec809e2737d6955
MD5 72a4ce3b14859a1c6a0591fd9b5c8586
BLAKE2b-256 8f310e147b2a25966a6cc68460ab74457dd2c383e4454722a7716f7c2f4bd91d

See more details on using hashes here.

File details

Details for the file audio_separation-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: audio_separation-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.15 Linux/6.14.0-1017-azure

File hashes

Hashes for audio_separation-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a8fd5cd1916b6542edee518edff65b73b5f4bc6507d63ca141dae9cef8a34566
MD5 821da2888e1b43d2c7a7069f60452955
BLAKE2b-256 bcb0e27d9787d53862df2f841b293ad01ae69d369da063289f5fef4b9fc8d011

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page