From ab0b36a261c153bccf62488abaef1b51ed51ceb6 Mon Sep 17 00:00:00 2001 From: superkc2026 Date: Fri, 14 Aug 2026 17:36:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(captioning):=20correct=20web-demuxer.wasm?= =?UTF-8?q?=20URL=20=E2=80=94=20transcription=20always=20failed=20with=20"?= =?UTF-8?q?Failed=20to=20fetch"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The captioning demuxer resolved web-demuxer.wasm from `../exporter/wasm/`, but the asset ships in `public/wasm/` and is emitted at `dist/wasm/` next to the renderer entry — so the resolved URL 404s in both dev and packaged builds, and every transcription run fails at wasm fetch. The two other consumers (streamingAudioPeaks.ts, streamingDecoder.ts) already use `./wasm/`; this aligns the last one. --- src/lib/captioning/extractMono16kWebDemuxer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/captioning/extractMono16kWebDemuxer.ts b/src/lib/captioning/extractMono16kWebDemuxer.ts index 641f26351..0d1a2ba78 100644 --- a/src/lib/captioning/extractMono16kWebDemuxer.ts +++ b/src/lib/captioning/extractMono16kWebDemuxer.ts @@ -7,7 +7,7 @@ const SOURCE_LOAD_TIMEOUT_MS = 60_000; const READ_END_PADDING_SEC = 0.5; function webDemuxerWasmUrl(): string { - return new URL("../exporter/wasm/web-demuxer.wasm", window.location.href).href; + return new URL("./wasm/web-demuxer.wasm", window.location.href).href; } /** Mixes one WebCodecs AudioData frame down to mono (averaged across channels). */