Establish a gateway connection, grab the details and throw it to the connection.
Connect to the voice server, send over some details we got and select the protocol (current version being xsalsa20_poly1305.
All voice data is sent to Discord with Opus. It is sent via an RTP Header followed by the encrypted opus voice data. It uses a key supplied in the Opcode 4 Session Description payload combined w/ a 24 byte header which is used as a nonce, it is encrypted via libsodium.
Establish a gateway connection, grab the details and throw it to the connection.
Connect to the voice server, send over some details we got and select the protocol (current version being
xsalsa20_poly1305.All voice data is sent to Discord with Opus. It is sent via an RTP Header followed by the encrypted opus voice data. It uses a key supplied in the
Opcode 4 Session Descriptionpayload combined w/ a 24 byte header which is used as a nonce, it is encrypted via libsodium.