Package discord4j.voice
Components to build and maintain voice connections.
-
Interface Summary Interface Description VoiceChannelRetrieveTask A supplier to obtain a channel ID.VoiceConnection Allows for manipulation of an already-established voice connection.VoiceConnectionFactory A factory to createVoiceConnection
instances using a set ofVoiceGatewayOptions
.VoiceConnectionRegistry A centralized registry to holdVoiceConnection
instances.VoiceDisconnectTask A task to encapsulate actions needed to terminate a voice connection on a given guild.VoiceGatewayEvent Marker interface for Discord voice Gateway events.VoiceReceiveTaskFactory A factory to create a task that receives audio packets from a source and processes them through a givenAudioReceiver
.VoiceSendTaskFactory A factory to create a task that reads audio packets from anAudioProvider
, encodes them and then sends them through a given raw packet sink.VoiceServerUpdateTask A listener to derive a potentially newVoiceServerOptions
from a VOICE_SERVER_UPDATE gateway event.VoiceStateUpdateTask A listener to derive a potentially new session ID from a VOICE_STATE_UPDATE gateway event. -
Class Summary Class Description AudioProvider Used to send audio.AudioReceiver Deprecated. Discord does not officially support bots receiving audio.DefaultVoiceConnectionFactory Default implementation for aVoiceConnectionFactory
.DefaultVoiceGatewayClient A default implementation for client that is able to connect to Discord Voice Gateway and establish aVoiceConnection
capable of sending and receiving audio.LocalVoiceConnectionRegistry A simpleVoiceConnectionRegistry
that tracks localVoiceConnection
instances.LocalVoiceReceiveTask A receive task that can locally consume audio packets and pass them to anAudioReceiver
.LocalVoiceReceiveTaskFactory A local implementation of aVoiceReceiveTaskFactory
, performing all actions in the same JVM instance.LocalVoiceSendTask A send task that can derive packets from anAudioProvider
and submit audio packets locally.LocalVoiceSendTaskFactory A local implementation of aVoiceSendTaskFactory
, performing all actions in the same JVM instance.Opus Opus constants.VoiceGatewayOptions A set of options required to establish and customize buildingVoiceConnection
instances.VoiceReactorResources Provides an extra level of configuration forReactorResources
, tailored for the Voice Gateway operations.VoiceReactorResources.Builder Builder forVoiceReactorResources
.VoiceServerOptions A set of options required to identify a voice server, for identifying.VoiceSocket A UDP client abstraction dedicated to handling the transport of raw voice packets.VoiceWebsocketHandler Represents a WebSocket handler specialized for Discord voice gateway operations. -
Enum Summary Enum Description VoiceConnection.State States of a voice connection.