Components to build and maintain voice connections.
Interface Summary Interface Description VoiceChannelRetrieveTaskA supplier to obtain a channel ID. VoiceConnectionAllows for manipulation of an already-established voice connection. VoiceConnectionFactory VoiceConnectionRegistryA centralized registry to hold
VoiceDisconnectTaskA task to encapsulate actions needed to terminate a voice connection on a given guild. VoiceGatewayEventMarker interface for Discord voice Gateway events. VoiceReceiveTaskFactoryA factory to create a task that receives audio packets from a source and processes them through a given
VoiceSendTaskFactoryA factory to create a task that reads audio packets from an
AudioProvider, encodes them and then sends them through a given raw packet sink.
VoiceServerUpdateTaskA listener to derive a potentially new
VoiceServerOptionsfrom a VOICE_SERVER_UPDATE gateway event.
VoiceStateUpdateTaskA listener to derive a potentially new session ID from a VOICE_STATE_UPDATE gateway event.
Class Summary Class Description AudioProviderUsed to send audio. AudioReceiver Deprecated.Discord does not officially support bots receiving audio. DefaultVoiceConnectionFactoryDefault implementation for a
DefaultVoiceGatewayClientA default implementation for client that is able to connect to Discord Voice Gateway and establish a
VoiceConnectioncapable of sending and receiving audio.
LocalVoiceConnectionRegistry LocalVoiceReceiveTaskA receive task that can locally consume audio packets and pass them to an
LocalVoiceReceiveTaskFactoryA local implementation of a
VoiceReceiveTaskFactory, performing all actions in the same JVM instance.
LocalVoiceSendTaskA send task that can derive packets from an
AudioProviderand submit audio packets locally.
LocalVoiceSendTaskFactoryA local implementation of a
VoiceSendTaskFactory, performing all actions in the same JVM instance.
OpusOpus constants. VoiceGatewayOptionsA set of options required to establish and customize building
VoiceReactorResourcesProvides an extra level of configuration for
ReactorResources, tailored for the Voice Gateway operations.
VoiceServerOptionsA set of options required to identify a voice server, for identifying. VoiceSocketA UDP client abstraction dedicated to handling the transport of raw voice packets. VoiceWebsocketHandlerRepresents a WebSocket handler specialized for Discord voice gateway operations.
Enum Summary Enum Description VoiceConnection.StateStates of a voice connection.