Skip to main content

Natural Perspective Spatial Audio

Turn any recording into a 7.1 surround mix. After a song is split into its instrument stems, a model invents a scene and decides where each instrument sits around you — then a deterministic renderer builds a lossless 8-channel (7.1) FLAC for your media server.

Natural Perspective — a different soundstage designed per song

One real mix: every stem placed on the stage, the crowd behind you.

See it — no install

Open examples/index.html in any browser, on any OS. It's a finished mix's scene, soundstage, routing, and stem levels — the actual output of the tool.

Run it

Easiest — install from PyPI with pipx, no clone needed. Needs Python 3.10+ and a system FFmpeg:

brew install ffmpeg                   # macOS; Linux: sudo apt install ffmpeg
pipx install 'natural-perspective-spatial-audio[full]'
pipx ensurepath                       # first pipx app only — then open a new terminal
spatial-standards-gui                # or:  spatial-standards song.flac

Or from a clone — one command (macOS/Linux) sets up a private virtualenv and installs everything; on a Mac with Homebrew it installs Python for you too:

./install.sh
./gui                                # the GUI   (or: .venv/bin/spatial-standards song.flac)
Manual / Windows

Needs Python 3.10+ (3.12 recommended — widest wheel coverage):

python3 -m venv .venv && source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install '.[full]'                # quote it — the [..] is a shell glob otherwise
spatial-standards song.flac          # also: a folder, a URL, or a YouTube playlist URL
spatial-standards-gui                # or the GUI

The GUI uses Tkinter: it ships with the python.org installer (recommended on macOS), with Homebrew add python-tk, on Debian/Ubuntu apt install python3-tk.

[full] brings the Python-side tools — Demucs, the crowd model (audio-separator), and yt-dlp with the JavaScript runtime YouTube needs — so with a system FFmpeg installed, one install is the whole setup. It's CPU by default; for an NVIDIA GPU install a CUDA build of PyTorch from pytorch.org and pip install 'audio-separator[gpu]' (much faster). The first run downloads model weights (a few hundred MB).

Prefer your own tools? pip install . has no required Python packages and just calls ffmpeg, demucs, audio-separator, and yt-dlp from your PATH.

The model layer needs an ANTHROPIC_API_KEY — paste it into the GUI (it is saved to ~/.config/spatial-standards/.env) or put it in .env; without one the tool falls back to a built-in mix and runs fully offline.

Output drops straight into Plex/Jellyfin/Kodi:

<Artist>/Natural Perspective Spatial Audio/<Title> [...].flac   (+ per-album index.html)

YouTube stopped working?

YouTube changes every few weeks and breaks the yt-dlp release before it, and a yt-dlp installed by pip/pipx cannot update itself. So the app looks after its own copy: before a download it checks PyPI (at most once a day) and upgrades if there is a newer release, and if a download fails it updates and retries once. You can also force it — Update yt-dlp in the GUI, or spatial-standards --update-ytdlp — and turn it off with SPATIAL_STANDARDS_NO_YTDLP_UPDATE=1 (or --no-ytdlp-update). A yt-dlp you installed some other way (Homebrew, apt) is never touched; the error message tells you how to update that one.

How it works

Separate stems → measure each stem's level → a model invents a scene and emits a full mix configuration → a safety-clamped renderer builds the 7.1 FLAC. No audio is uploaded — only metadata, cover art, and the measured stem levels inform the design. Every track saves its config and an index.html documenting the scene, routing, and the exact model prompt/response.

Your responsibility, and credits

By processing a file or URL you affirm you have the right to it. This tool hosts no content and ships no audio. See NOTICE for that and full credit to the projects it builds on — FFmpeg, Demucs, audio-separator, yt-dlp, and the Mel-Band RoFormer crowd model.

License

Apache-2.0 — see LICENSE and NOTICE. Provided as is, without warranty of any kind.

Metadata

Release files for natural-perspective-spatial-audio 0.2.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 natural-perspective-spatial-audio 0.2.0
File Size Uploaded Provenance Actions
natural_perspective_spatial_audio-0.2.0.tar.gz 69.2 kB With provenance Details for natural_perspective_spatial_audio-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for natural-perspective-spatial-audio 0.2.0
File Interpreter ABI Platform Actions
natural_perspective_spatial_audio-0.2.0-py3-none-any.whl Python 3 none any Details for natural_perspective_spatial_audio-0.2.0-py3-none-any.whl

Total release size: 144.0 kB

Release files / natural_perspective_spatial_audio-0.2.0.tar.gz

Download URL natural_perspective_spatial_audio-0.2.0.tar.gz
Size 69.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fffd51d7978190bb68ba8e60209d626239fcd2980075fb2765681666c01ebb6d
BLAKE2b-256 checksum
How to use checksums
8976c43951828eb3a0fafab8eb084a25d2bb7c7e27a4e997a6b31511479beb6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / natural_perspective_spatial_audio-0.2.0-py3-none-any.whl

Download URL natural_perspective_spatial_audio-0.2.0-py3-none-any.whl
Size 74.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34fb21dbc6dee023e6e29b5e37cd6b40ccf1347951c18eb471330cdc90f24426
BLAKE2b-256 checksum
How to use checksums
6c71f1229dd3e2c1bfca1e33e40ab3403ee3f7615b20cc4f84905da06269ca6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Security for natural-perspective-spatial-audio 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for natural_perspective_spatial_audio-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

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

0.2.0 This release

2 release files Full 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