diff --git a/docs/audio-field.md b/docs/audio-field.md index 6634a6b..fa450ba 100644 --- a/docs/audio-field.md +++ b/docs/audio-field.md @@ -162,7 +162,10 @@ contains 10.000 s of 640x480 30 fps Kiyo video and 10.000 s of mono AAC from the Faust dialogue stem. Run `20260601-051044` estimated the cardioid 359.398 samples late at 48 kHz (7487.452 us), applied holdback 359.398/0.000 samples to shotgun/cardioid before cleanup, wrote a residual WAV, and reported dialogue -RMS `0.002678`. The hot owner is +RMS `0.002678` before receipt normalization. The first muxed receipt was almost +inaudible because `NormalizePeak` only attenuated hot samples; the regenerated +latest MP4 now peaks the dialogue WAV at -0.724 dBFS with RMS -14.202 dBFS. The +hot owner is `faust/mimir_dual_mic_dialogue_cleaner.dsp`: a two-input/two-output Faust graph for aligned shotgun/cardioid witnesses that emits a dialogue composite stem and a rejected residual witness using smooth multiband voice shaping, witness diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 2cce94e..19eb1fc 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -331,7 +331,10 @@ receipt. The fresh 2026-06-01 receipt at has 10.000 s of 640x480 30 fps Kiyo video and 10.000 s of 48 kHz mono AAC from the Faust dialogue stem. It estimated the cardioid 359.398 samples late (7487.452 us), applied holdback 359.398/0.000 samples to shotgun/cardioid, and -wrote both dialogue and residual WAVs. The actual denoise authority is Faust: +wrote both dialogue and residual WAVs. The first muxed receipt was nearly +silent because `NormalizePeak` only attenuated hot samples; after the helper was +fixed to amplify quiet receipts too, the regenerated dialogue WAV peaks at +-0.724 dBFS with RMS -14.202 dBFS. The actual denoise authority is Faust: `faust/mimir_dual_mic_dialogue_cleaner.dsp` compiles as a two-input/two-output aligned shotgun/cardioid dialogue cleaner with smooth multiband voice shaping, witness subtraction, and slow downward expansion. `MimirRuntime` queues it as diff --git a/src/Mimir.BufferSmoke/Program.cs b/src/Mimir.BufferSmoke/Program.cs index 1faf2a0..cee0e01 100644 --- a/src/Mimir.BufferSmoke/Program.cs +++ b/src/Mimir.BufferSmoke/Program.cs @@ -4868,7 +4868,7 @@ static double NoiseEstimate(IReadOnlyList samples) static float[] NormalizePeak(IReadOnlyList samples, float peak) { var max = samples.Select(static sample => Math.Abs(sample)).DefaultIfEmpty(0.0f).Max(); - if (max <= peak || max <= 1.0e-9f) + if (max <= 1.0e-9f) { return samples.ToArray(); } diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 81dc958..9c97191 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -323,3 +323,4 @@ {"ts": "2026-06-01T04:46:01+01:00", "type": "decision", "status": "ok", "note": "Corrected the Faust cleaner wiring after user caught the prerequisite: dual-mic cleanup must consume post-alignment audio. The runtime no longer queues dual-mic-dialogue-cleaner from raw rolling buffers in parallel with the actuator. It now waits for the alignment actuator's published aligned_source_* stem frame from Fensalir's audio stem bus, then queues that aligned pair into the cleaner profile on the next tick. Alignment is a structural precursor to cleanup."} {"ts": "2026-06-01T04:54:24+01:00", "type": "verification", "status": "ok", "note": "Added and verified --dialogue-cleaner-routing-smoke. The smoke publishes a synthetic post-alignment aligned_source_* stem frame into MimirRuntime's Fensalir audio stem bus, then verifies Mimir queues the dual-mic-dialogue-cleaner Faust program and a two-channel cleaner StreamingAudioBlock sourced from asio-ch0-shotgun and asio-ch1-cardioid. Runtime publication now treats alignment frames as the cleaner input boundary and cleaner frames as NativeProgram stem publication, so host_voice is the publishable program stem rather than raw aligned_source lanes."} {"ts": "2026-06-01T05:14:25+01:00", "type": "verification", "status": "ok", "note": "Recorded a fresh 10s Kiyo + Scarlett live receipt through the actual offline Faust chain. scripts/record-kiyo-dual-mic-composite.ps1 now calls --asio-dual-mic-faust-cleaner-wav, which compiles/runs faust/mimir_alignment_actuator.dsp before faust/mimir_dual_mic_dialogue_cleaner.dsp. Fresh run artifacts/runtime/kiyo-dual-mic-composite/20260601-051044 measured cardioid delay 359.398 samples (7487.452 us), applied holdback 359.398/0.000 to shotgun/cardioid, wrote dialogue and residual WAVs, and muxed artifacts/runtime/kiyo-dual-mic-composite/kiyo-dual-mic-composite-latest.mp4. ffprobe verified 10.000 s 640x480@30 H.264 plus 10.000 s 48 kHz mono AAC."} +{"ts": "2026-06-01T05:34:59+01:00", "type": "fix", "status": "ok", "note": "Fixed BufferSmoke NormalizePeak so offline audio receipts can amplify quiet Faust/C# diagnostic output instead of only attenuating hot samples. The earlier Kiyo+Faust receipt was valid DSP execution but the written WAV peaked around -38 dBFS because NormalizePeak returned quiet samples unchanged. Regenerated artifacts/runtime/kiyo-dual-mic-composite/kiyo-dual-mic-composite-latest.mp4 from run 20260601-051044; the Faust dialogue WAV now measures peak -0.724 dBFS and RMS -14.202 dBFS, with ffprobe verifying 10.000 s 640x480@30 H.264 plus 10.000 s 48 kHz mono AAC."} diff --git a/state/map.yaml b/state/map.yaml index 46f79be..1868228 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -662,7 +662,10 @@ accepted_design: has 10.000 s of 640x480 30 fps Kiyo video and 10.000 s of 48 kHz mono AAC from the Faust dialogue stem; the report estimated the cardioid 359.398 samples late (7487.452 us), applied holdback 359.398/0.000 samples to - shotgun/cardioid, and wrote both dialogue and residual WAVs. + shotgun/cardioid, and wrote both dialogue and residual WAVs. The first mux + was nearly silent because `NormalizePeak` only attenuated hot samples; after + fixing it to amplify quiet receipts too, the regenerated dialogue WAV peaks + at -0.724 dBFS with RMS -14.202 dBFS. Faust/native DSP now has the first actual cleaner socket: `faust/mimir_dual_mic_dialogue_cleaner.dsp` compiles as a smooth two-input shotgun/cardioid dialogue cleaner and Mimir queues it as