diff --git a/apps/guide/content/docs/voice/index.mdx b/apps/guide/content/docs/voice/index.mdx index 0b30d7c6c84a..d59addcc9ff2 100644 --- a/apps/guide/content/docs/voice/index.mdx +++ b/apps/guide/content/docs/voice/index.mdx @@ -8,7 +8,11 @@ title: Installation ### Barebones -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: +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: + + + You can verify aes-256-gcm support by running `require('node:crypto').getCiphers().includes('aes-256-gcm')`. + ```sh tab="npm" npm install @discordjs/voice @@ -58,6 +62,15 @@ After this, you'll be able to play Ogg and WebM Opus files without any other dep - [`@noble/ciphers`](https://www.npmjs.com/package/@noble/ciphers) - [`libsodium-wrappers`](https://www.npmjs.com/package/libsodium-wrappers) +#### DAVE Protocol Support + +- [`@snazzah/davey`](https://www.npmjs.com/package/@snazzah/davey) - to enable end-to-end encryption with the DAVE protocol. + + + 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. + + If you are facing issues when installing these dependencies, make sure you ticked the box to install optional build tools when installing Node.js or try manually installing build tools and python: ```sh winget install "Visual Studio @@ -91,6 +104,9 @@ Encryption Libraries FFmpeg - version: 4.2.4-1ubuntu0.1 - libopus: yes + +DAVE Protocol +- @snazzah/davey: 0.1.6 -------------------------------------------------- */ ``` @@ -104,3 +120,5 @@ FFmpeg - **FFmpeg** - If you want to play audio from many different file types, you will need to have FFmpeg installed. - If `libopus` is enabled, you will be able to benefit from increased performance if real-time volume alteration is disabled. +- **DAVE Protocol** + - Required for enabling end-to-end encryption in voice channels.