From e2c3c3e95b6a9e53b4631b271640bb9914f8c95e Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 5 Mar 2026 10:03:32 +0100 Subject: fix(audio): OLA encoder never ran; version never propagated to decoder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two bugs kept the v2 OLA path permanently disabled: 1. SpectrogramResourceManager::load_asset() never set spec.version from SpecHeader::version — all .spec assets loaded with version=0, so ola_mode was always false in the voice. 2. spectool analyze_audio() used non-overlapping chunks (stride=DCT_SIZE), hamming_window_512, and hardcoded header.version=1 — OLA analysis was never implemented in the encoder. Fixes: propagate header->version in load_asset(); switch spectool to OLA_HOP_SIZE stride, hann_window_512, and SPEC_VERSION_V2_OLA. Regenerated all .spec files. handoff(Gemini): OLA enc/dec chain now correct end-to-end. .spec files are v2 (50% overlap, Hann). No API changes; 33/34 tests pass (WavDumpBackendTest pre-existing failure unrelated). Co-Authored-By: Claude Sonnet 4.6 --- TODO.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'TODO.md') diff --git a/TODO.md b/TODO.md index c0f8bb1..45623e8 100644 --- a/TODO.md +++ b/TODO.md @@ -21,14 +21,7 @@ Reduce weights from f16 (~3.2 KB) to i8 (~1.6 KB). --- -## Priority 3: Regenerate .spec files as v2 [REQUIRED] - -Existing `.spec` files in `workspaces/main/music/` were encoded with v1 (no overlap). -Rebuild with the MP3 assets to produce v2 (OLA, Hann, hop=256) — click-free output. - ---- - -## Priority 4: Test Infrastructure Maintenance [ONGOING] +## Priority 3: Test Infrastructure Maintenance [ONGOING] **Status:** 34/34 tests passing -- cgit v1.2.3