Fix CSP blocking Silero VAD WASM compilation #39

Merged
bvandeusen merged 0 commits from dev into main 2026-04-16 20:24:01 -04:00
bvandeusen commented 2026-04-16 20:23:54 -04:00 (Migrated from git.fabledsword.com)

Summary

  • Add wasm-unsafe-eval to CSP script-src so onnxruntime-web can compile Silero VAD WASM
  • Add blob: to CSP worker-src for VAD audio worklet
  • Surface VAD init errors as UI toast instead of silent console log

Test plan

  • VAD mic works on HTTPS prod (no CSP errors in console)
  • Speech detected, auto-stop, correct transcript
## Summary - Add `wasm-unsafe-eval` to CSP `script-src` so onnxruntime-web can compile Silero VAD WASM - Add `blob:` to CSP `worker-src` for VAD audio worklet - Surface VAD init errors as UI toast instead of silent console log ## Test plan - [ ] VAD mic works on HTTPS prod (no CSP errors in console) - [ ] Speech detected, auto-stop, correct transcript
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledScribe#39