Published November 12, 2026 | Version v1.0.0

Musaddiq625/spatial_audio_sandbox: Spatial Audio Sandbox v1.0.0

Authors/Creators

Description

Spatial Audio Sandbox 🦀 🎧 (v1.0.0)

Initial public release of Spatial Audio Sandbox, a cross-platform Flutter and Rust application that transforms natural-language scene descriptions into live, head-tracked binaural 3D audio environments.

Core Architecture & Pipeline

  • LLM Scene Planning: Integrates a schema-enforced Gemma model (hosted on Render) to convert plain-text prompts into structured spatial audio screenplays with movement trajectories and timing cues.
  • Deterministic SceneCompiler (Dart): Grounds generated sources against user prompts, resolves timed transitions and end events, and repairs truncated JSON outputs in real time.
  • AI Sound Synthesis: Connects to ElevenLabs with a 4-layer caching system (memory, disk, bundled assets, and API) alongside built-in procedural audio fallbacks for offline demo playback.
  • Real-Time Rust HRTF Mixer (sas_engine): Lock-free audio callback engine featuring synthetic HRTF convolution, physically modeled head shadow (ILD/ITD), room reverb, and pose seqlock synchronization.

Key Features

  • Live Spatial Radar & Telemetry: Visualizes moving sound sources with trails, elevation stalks, L/R stereo output meters, ILD readouts, and an interactive timeline score.
  • Head Tracking: Supports real-time orientation tracking via Android game-rotation-vector sensors and interactive virtual head rotation on macOS desktop.
  • Keyless Offline Demo Pack: Includes pre-recorded scene runs and procedural audio stand-ins for immediate testing without API keys.

Files

Musaddiq625/spatial_audio_sandbox-v1.0.0.zip

Files (1.1 MB)

Name Size
md5:1872d311a083ee7074152b81a6067720
1.1 MB Preview Download

Additional details

Related works