Voice calls require an active lobby with participants. You must create or join a lobby before starting a voice call. See Managing Lobbies for details.
Prerequisites
Before starting a voice call:- Complete OAuth2 authorization with the required communications scopes
- Create or join a lobby using
Client::CreateOrJoinLobby - Keep voice calls to 25 members or fewer for optimal performance (lobbies technically support up to 1,000 members)
Starting and joining voice calls
BothClient::CreateOrJoinLobby and Client::StartCall handle existing and new scenarios automatically — you don’t need to check whether a lobby or call already exists.
Client::CreateOrJoinLobby— joins an existing lobby with the given secret, or creates a new oneClient::StartCall— joins an active call in the lobby, or starts a new one; returnsnullif already in this voice channel
Controlling voice settings
Global controls
These apply across all active calls via theClient object:
| Method | Description |
|---|---|
Client::SetSelfMuteAll | Mute your microphone across all calls |
Client::SetSelfDeafAll | Deafen yourself across all calls |
Client::SetInputVolume | Set microphone volume |
Client::SetOutputVolume | Set speaker volume |
Per-call controls
These apply to a specificCall object:
| Method | Description |
|---|---|
Call::SetSelfMute | Mute your microphone in this call |
Call::SetSelfDeaf | Deafen yourself in this call |
Call::SetParticipantVolume | Adjust volume of a specific participant |
Call::SetVADThreshold | Control voice activity detection sensitivity |
Advanced audio processing
UseClient::StartCallWithAudioCallbacks to access raw audio data for real-time manipulation or external audio system integration (e.g., FMOD, Wwise).
- In-place modification
- External audio pipeline
Ending voice calls
Checking voice call status
UseLobbyHandle::GetCallInfoHandle() to check if an active call exists and inspect participant states:
VoiceStateHandle provides:
SelfMute—trueif the user has muted themselvesSelfDeaf—trueif the user has deafened themselves
Next steps
Managing Lobbies
Create and manage lobbies that host voice calls.
How-To Guides
Additional guides for moderation, Discord APIs, and more.