Skip to content

Commit 3b0b05e

Browse files
Update the docs for speaking updates (discord#5576)
1 parent ac361cf commit 3b0b05e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/topics/Voice_Connections.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ Voice data sent to discord should be encoded with [Opus](https://www.opus-codec.
208208

209209
## Speaking
210210

211-
To notify clients that you are speaking or have stopped speaking, send an [Opcode 5 Speaking](#DOCS_TOPICS_OPCODES_AND_STATUS_CODES/voice) payload:
211+
Speaking updates are used to update the **speaking modes** used by the client. This speaking mode is set using a [Opcode 5 Speaking](#DOCS_TOPICS_OPCODES_AND_STATUS_CODES/voice) payload. The client must send this at least once before sending audio to update the SSRC and set the initial speaking mode.
212212

213-
The following flags can be used as a bitwise mask. For example `5` would be priority and voice.
213+
The following flags can be used as a bitwise mask. For example `5` would be priority and voice. The speaking mode should not be 0 to allow sending audio.
214214

215215
| Flag | Meaning | Value |
216216
|------------|----------------------------------------------------------------|--------|
@@ -234,6 +234,9 @@ The following flags can be used as a bitwise mask. For example `5` would be prio
234234
> warn
235235
> You must send at least one [Opcode 5 Speaking](#DOCS_TOPICS_OPCODES_AND_STATUS_CODES/voice) payload before sending voice data, or you will be disconnected with an invalid SSRC error.
236236
237+
> info
238+
> The `delay` property should be set to `0` for bots that use the voice gateway.
239+
237240
### Voice Data Interpolation
238241

239242
When there's a break in the sent data, the packet transmission shouldn't simply stop. Instead, send five frames of silence (`0xF8, 0xFF, 0xFE`) before stopping to avoid unintended Opus interpolation with subsequent transmissions.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy