Skip to content

ORB 2.0.0: sound as code

Latest

Choose a tag to compare

@stdevMac stdevMac released this 03 Dec 01:37
· 2 commits to main since this release
dc2c576

ORB v2.0.0

Sound as code — 15M-parameter text-to-Spec planner, six recording-fitted physical DSP engines, acoustic spaces, broadcast mastering, and seamless game-audio export.

48 kHz stereo out from plain text or JSON Spec, pure NumPy at render time, no sample library, no pretrained weights, Apache-2.0.

Highlights

  • Planner v11 (weights/planner.pt, 15.03M params, 675 frozen tokens):
    • 8-layer decoder-only transformer (d=384, 6 heads, ctx=1536), trained from scratch on 414,240 leak-checked synthetic rows with GPU EMA (58.4 MB fp32; 15.1 MB int8 in the browser with 48/48 parity vs PyTorch).
    • Plans 147 roles, 31 ambience beds, 8 acoustic rooms + outdoor spaces + distance, compositional act events (action/object/material/on + calibrated force/size/tone/rate/pitch), and explicit unknown refusals for unsupported/vocal sounds.
    • v11_natural_dev (1,664): 67.2% exact (vs v9 4.8%), roles 91.2%, n_events 94.1%, texture 99.3%, space 99.8%, 0 decode failures.
    • heldout_v8 (500): 78.6% exact (mean |t| err 11.0 ms, mean |dur| err 12.9 ms).
    • One-shot blind sets (never tuned on): freetext_blind (40) 72.5% pass (90.0% present, 97.2% counts); freetext_blind_v2 (200) 50.0% pass (79.5% present, 92.5% counts, 92.3% duration, 91.7% typos); freetext_blind_v3 (649) 14.5% full-row pass (60.4% present, 84.4% counts, 94.0% bed level, 93.1% mood, 80.2% space, 74.1% unknown refusal, 70.3% fields).
  • Six recording-fitted DSP engines & evidence-gated resolver:
    • core (fitcore phase 5), air, rotary, granular, liquids, and solids (77 object/action presets) routed through src/orb/render/resolve_table.tsv with calibrated per-engine LEVEL_CONTROLS and far stand-ins removed.
  • 31 ambience beds: 18 new layered place beds (orb.render.beds), with 11 active by evidence against real recordings (office_hvac, server_room, airplane_cabin, car_interior, blizzard, cafe, kitchen, workshop, subway, cave, campfire).
  • Acoustic rooms & distance (orb.render.space): 8 indoor rooms (closet, bathroom, kitchen, living_room, corridor, stairwell, hall, cathedral), tunnel, cave, car, next_room, and outdoor spaces (street, forest, field) with distance attenuation and air absorption (eval_space.py: targets: OK).
  • Mastering (orb.render.master): ITU-R BS.1770 integrated LUFS + oversampled true-peak limiter (streaming, mobile, ebu, atsc, game).
  • Game audio export & Web Audio runtime: python -m orb.export writes seamless dry loops (31/31 beds pass eval_pack.py --after) and non-repeating variation sets, paired with the zero-dependency JS runtime runtime/orb-audio.js (24/24 Node tests passing).
  • Browser / Pyodide bundle (site/): site/py/orb.zip (172 files, 850 KB) with pure-NumPy fallbacks so Pyodide runs with zero scipy dependency, plus the 15.1 MB int8 web planner (site/assets/planner/planner.q8.bin).

Honest capability boundaries

  • Strong at single and multi-event SFX cues, ambience beds, room/distance spatialization, counted sequences, duration control, and game-audio packs.
  • Multi-sentence narrative scripts with complex relative ordering or inter-event panning remain future work (freetext_blind_v3 full-row pass is 14.5% even though per-field accuracy is 60–94%).
  • No voices, speech, walla, or vocal animal calls (refused via unknown).
  • Music generation remains deferred.

Verification

  • scripts/eval_noise.py: targets: OK
  • scripts/eval_space.py: targets: OK
  • scripts/eval_pack.py --after & --pack: pack targets: OK (31/31 loops)
  • tests/test_render_baseline.py: bit-identical
  • Full pytest suite: 2,836 tests, 0 failures
  • scripts/check_web_planner.py: 48/48 int8 numpy-vs-torch parity
  • node --test: 24/24 Web Audio runtime & game-demo tests passing