Web Audio API Silent Output: `AudioContext` Was Not Allowed to Start (`suspended`)
AudioContext created before user interaction starts in `"suspended"` state.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Web Audio API Silent Output
Platform: Web
Common Root Causes:
- AudioContext created before user interaction starts in `"suspended"` state.
Interactive Diagnostic Checklist
Verified Solutions:
- Call `await audioCtx.resume()` inside a user `click` or `keydown` event listener.
Safe Diagnostic Command:
Log `audioCtx.state` in console
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
AudioContext created before user interaction starts in `"suspended"` state. Recommended diagnostic: `Log `audioCtx.state` in console`. Remediation: Call `await audioCtx.resume()` inside a user `click` or `keydown` event listener.
Worked Examples
- Run `Log `audioCtx.state` in console` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-web-audiocontext-suspended · Independently verified: 2026-11-25