Skip to content
Natural Perspective Spatial Audio

Natural Perspective Spatial Audio

github.com • December 1, 2026

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.

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

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.

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

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:

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

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:

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.

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

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