Skip to main content

Local vocal removal

Project description

PyPI version

audio-separation

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

Requirements

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

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

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.5.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.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: audio_separation-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 ba9779295fc45c1fde2e93b45d9ad71652ba862a0f27d37b04eff9656fbc59f2
MD5 aedbaadf9f5fe8ce3c566c706814316d
BLAKE2b-256 e6a18a20895a334bb3f1a16a21e2f3613c56932ef8722e80250fb78d9a934f97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: audio_separation-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 04d8b501697f7e85dc22c37f6177abcb72c0bd5dae57dec20f4be75d56ee9d9b
MD5 640c5e1d273c8bc9e43213ed5a8a12c5
BLAKE2b-256 97138f9fe14435ea33fc06c275ecab1de791d212793c4bf530fe19a703ec63d7

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