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