-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
@discordjs/voice 0.19.0: DAVE audio receive decryption fails — DecryptionFailed(UnencryptedWhenPassthroughDisabled)
Note: This may be a duplicate of or related to #11419. Filing with additional diagnostic data.
Bug
After successfully connecting to a DAVE-enabled voice channel with @snazzah/davey installed, incoming audio packets cannot be decrypted. All voice capture attempts result in empty transcription because the raw audio is corrupted/undecryptable.
Error
discord voice: opus decode failed: Failed to decrypt: DecryptionFailed(UnencryptedWhenPassthroughDisabled)
[discord] voice: DAVE decrypt failures detected; voice receive may be unstable (upstream: discordjs/discord.js#11419)
What Works
- Voice WebSocket connection ✅
- DAVE negotiation (max_dave_protocol_version=1) ✅
- Identify → Ready → Session Description → DAVE Transition ✅
- Heartbeat exchange ✅
- Speaking detection (VoiceReceiver detects user speaking) ✅
- Audio capture start ✅
What Fails
- Decryption of incoming audio packets ❌
- Opus decode (because decryption fails) ❌
- Audio transcription (empty result) ❌
- TTS reply (never triggers because transcription is empty) ❌
Analysis
The error DecryptionFailed(UnencryptedWhenPassthroughDisabled) suggests incoming packets may be arriving unencrypted during a DAVE protocol transition, but the receiver has passthrough mode disabled and rejects them.
The decryptionFailureTolerance option (set to 24) prevents reconnect loops but doesn't solve the underlying decryption failure.
Comparison
Per #11419, py-cord (Python) handles DAVE correctly on the same voice channels, confirming the issue is in the JavaScript implementation, not Discord's servers.
Environment
- @discordjs/voice: 0.19.0
- @snazzah/davey: 0.1.10
- Node.js: v22.22.0
- OS: Ubuntu 25.10 (x64)
- libsodium-wrappers: 0.8.2
- opusscript: 0.0.8
Voice Connection Trace
22:44:04.683 — Identify (max_dave=1)
22:44:04.684 — Hello (op=8)
22:44:04.704 — Ready (op=2) ✅
22:44:04.744 — Session Description (op=4) ✅
22:44:04.747 — DAVE transition (op=15) ✅
22:44:04.749 — Connected ✅
22:45:22.707 — Capture start (user speaking)
22:45:23.629 — DAVE decrypt failures detected
22:45:23.630 — DecryptionFailed(UnencryptedWhenPassthroughDisabled)
22:45:40.443 — Reply empty (zero usable audio)