You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/guide/content/docs/voice/index.mdx
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,11 @@ title: Installation
8
8
9
9
### Barebones
10
10
11
-
To add voice functionality to your discord.js bot, you will need the `@discordjs/voice` package, as well as one of the encryption packages listed below. For example:
11
+
To add voice functionality to your discord.js bot, you will need the `@discordjs/voice` package. If your system does not support aes-256-gcm you also need one of the encryption packages listed below. For example:
12
+
13
+
<Callout>
14
+
You can verify aes-256-gcm support by running `require('node:crypto').getCiphers().includes('aes-256-gcm')`.
15
+
</Callout>
12
16
13
17
```sh tab="npm"
14
18
npm install @discordjs/voice
@@ -58,6 +62,14 @@ After this, you'll be able to play Ogg and WebM Opus files without any other dep
-[`@snazzah/davey`](https://www.npmjs.com/package/@snazzah/davey) - to enable end-to-end encryption with the DAVE protocol.
68
+
69
+
<Callout>
70
+
Some Discord clients already require the DAVE protocol for end-to-end encryption in voice chat. Ensure you have `@snazzah/davey` installed to avoid compatibility issues, as `@snazzah/davey` is only set as a dev-dependency for `@discordjs/voice` and may not install in production environments without explicit installation.
71
+
</Callout>
72
+
61
73
<Callout>
62
74
If you are facing issues when installing these dependencies, make sure you ticked the box to install optional build
63
75
tools when installing Node.js or try manually installing build tools and python: ```sh winget install "Visual Studio
0 commit comments