Skip to main content

phantom-audio-separation

Demucs-based stem separation plugin for phantom-audio.

Splits a stereo mix into individual stems (vocals, drums, bass, other) using Meta's Hybrid Transformer Demucs model. This package carries the heavyweight PyTorch + Demucs dependency tree (~2.5 GB) so the core phantom-audio analysis library stays lean and independent of PyTorch's release cadence and platform-support matrix.

Install

# Recommended: via the phantom-audio meta-extra
uv tool install "phantom-audio[separation]" --python 3.13

# Or directly
uv pip install phantom-audio-separation

Usage

Once installed, phantom-audio discovers this plugin automatically through the phantom.separation entry-point group -- no configuration needed. The existing APIs keep working unchanged:

from phantom import separate_stems

result = separate_stems("mix.wav", "./stems")
print(result.stems)  # {"vocals": ".../vocals.wav", "drums": ..., ...}

Or from the CLI / MCP server:

phantom separate mix.wav --output ./stems/

phantom doctor reports phantom-audio-separation as OK only when the plugin is installed and importable.

Note: First use downloads the htdemucs model (~80 MB). Subsequent calls use the cached model.

License

AGPL-3.0-or-later, same as phantom-audio. See the repository LICENSE.

Metadata

Release files for phantom-audio-separation 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phantom-audio-separation 2.0.0
File Size Uploaded Provenance Actions
phantom_audio_separation-2.0.0.tar.gz 8.4 kB Without provenance Details for phantom_audio_separation-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phantom-audio-separation 2.0.0
File Interpreter ABI Platform Actions
phantom_audio_separation-2.0.0-py3-none-any.whl Python 3 none any Details for phantom_audio_separation-2.0.0-py3-none-any.whl

Total release size: 13.5 kB

Release files / phantom_audio_separation-2.0.0.tar.gz

Download URL phantom_audio_separation-2.0.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dfd4a171a8f6edf801c3b77d4da17ea6971776e49143ffa7e6b8792c8fdbb3c7
BLAKE2b-256 checksum
How to use checksums
45e77db3b279027c86e9797fa63e7004a09247e69ff83d5067d6665f3d417d0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / phantom_audio_separation-2.0.0-py3-none-any.whl

Download URL phantom_audio_separation-2.0.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61610c90dd555dd730ae177c2497900dc3c658a0cbee0dcd446dcf9e4a3d30df
BLAKE2b-256 checksum
How to use checksums
b489b538a12fb66649e3a476a0fba7d1fb9e00afa80bd8bf765265c2045e8c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for phantom-audio-separation 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page