Add buffered audio field pipeline seams

This commit is contained in:
Meta Vens 2026-05-18 15:56:03 +01:00
commit 2671f8b81a
13 changed files with 372 additions and 16 deletions

View file

@ -52,16 +52,18 @@ flowchart TD
D --> K["delay + SRO alignment"]
F --> K
H --> K
K --> L["aligned six-channel field"]
L --> M["FOA encoder"]
M --> N["AmbiX ACN/SN3D bus: W,Y,Z,X"]
K --> L["bounded field cache"]
L --> M["aligned six-channel blocks"]
M --> N["FOA encoder"]
N --> O["AmbiX ACN/SN3D bus: W,Y,Z,X"]
```
Ownership:
- `config/audio-field.json` owns mic/speaker identity, machine/device mapping, clock domains, field channel order, geometry, gain, delay, polarity, role/quality priority, capture policy, and Ambisonic bus format.
- `scripts/audio_field.py` owns profile validation, local device checks, calibration stimulus generation, clock-domain planning, shared-input capture helpers, and FOA encoding of already aligned six-channel WAVs.
- `audio_field/` owns unit-testable buffering, bounded-latency convergence, injectable port protocols, and pipeline orchestration.
- The camera/sensor-fusion pipeline may publish world poses later; it does not own audio clocks or channel timing.
- OBS may ingest rendered output later; it is not the authority for the Ambisonic field.
Invariant: distributed camera/Focusrite microphones must be aligned and resampled into one reference timeline before FOA encoding. The local shielded cardioid and neighbor shotgun are the high-quality dialogue anchors; camera mics provide spatial/context evidence.
Invariant: distributed camera/Focusrite microphones must be aligned and resampled into one reference timeline before FOA encoding. Latency is allowed as bounded buffering, but cache depth must converge toward real-time. The local shielded cardioid and neighbor shotgun are the high-quality dialogue anchors; camera mics provide spatial/context evidence.