fix(denoise): stop DeepFilterNet silently passing raw audio through #64

Merged
jared merged 2 commits from fix/dfn-model-bytes into lotus 2026-10-30 15:16:25 -04:00
Showing only changes of commit 283b231c7a - Show all commits
+1 -3
View File
@@ -192,9 +192,7 @@ export async function normalizeDfnModelBytes(
throw new Error(
`denoise: DeepFilterNet model is neither gzip nor tar (${u8.length} bytes)`,
);
const gz = new Response(u8).body!.pipeThrough(
new CompressionStream("gzip"),
);
const gz = new Response(u8).body!.pipeThrough(new CompressionStream("gzip"));
return new Response(gz).arrayBuffer();
}