disagreement/docs/voice_features.md
Slipstream d710487fc2
Some checks are pending
Deploy MkDocs / deploy (push) Waiting to run
Add voice playback control (#111)
2025-06-15 20:39:30 -06:00

694 B

Voice Features

Disagreement includes experimental support for connecting to voice channels. You can join a voice channel and play audio using an :class:AudioSource.

voice = await client.join_voice(guild_id, channel_id)
await voice.play_file("welcome.mp3")
await voice.play_file("another.mp3")  # switch sources while connected
voice.pause()
voice.resume()
if voice.is_playing():
    print("audio is playing")
await voice.close()

Voice support is optional and may require additional system dependencies such as FFmpeg.

Next Steps