Documentation Index
Fetch the complete documentation index at: https://docs.devimorris.tech/llms.txt
Use this file to discover all available pages before exploring further.
VoiceManager manages voice connections per guild. Accessible via client.voice.
FluxerVoiceConnection is returned on join and used for audio playback.
VoiceManager
join
VOICE_SERVER_UPDATE, then establishes a LiveKit WebRTC connection.
If a live connection for the given channel_id already exists, returns it immediately without reconnecting.
Example
Example
disconnect
channel_id and sends opcode 4 with channel_id: null to notify the Gateway.
disconnect_guild
disconnect_all
stop_guild
get_connection
None if not connected.
is_connected
true if a live connection exists for the given channel_id.
FluxerVoiceConnection
Fields
| Field | Type | Description |
|---|---|---|
guild_id | String | Guild the connection belongs to. |
channel_id | String | Voice channel the connection is bound to. |
connection_id | String | Connection ID from the voice server response. |
play_file
symphonia for decoding. The format is detected automatically from the file extension. Publishes an audio track on the first call if not already published.
Example
Example
Supported formats
Supported formats
| Format | Extension | ✓ / ✗ |
|---|---|---|
| MP3 | .mp3 | ✓ |
| OGG Vorbis | .ogg | ✓ |
| FLAC | .flac | ✓ |
| WAV / PCM | .wav | ✓ |
| AAC | .aac | ✓ |
| ALAC | .m4a (lossless) | ✓ |
| MP4 / M4A | .mp4, .m4a | ✓ |
| ADPCM | .wav (adpcm) | ✓ |
| Opus | .opus | ✗ |
| WMA | .wma | ✗ |
| AC-3 / EAC-3 | .ac3 | ✗ |
play_bytes
play_file — data must be a valid encoded audio file (MP3, OGG, WAV, etc.), not raw PCM samples.
Example
Example
stop
play_file or play_bytes again afterwards.
disconnect
is_connected
true if the LiveKit room state is Connected.
VoiceError
| Variant | Description |
|---|---|
Timeout | Gateway did not send VOICE_SERVER_UPDATE within 60 seconds. |
ConnectionFailed(String) | Failed to parse the voice server response or establish the connection. |
GatewayUnavailable | VoiceManager has no gateway sender — client is not ready. |
NotConnected | Operation requires an active connection, but none exists. |
PlaybackError(String) | Error during audio streaming or task execution. |
LiveKit(String) | Underlying LiveKit / WebRTC error. |
