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

25 lines
694 B
Markdown

# Voice Features
Disagreement includes experimental support for connecting to voice channels. You can join a voice channel and play audio using an :class:`AudioSource`.
```python
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
- [Components](using_components.md)
- [Slash Commands](slash_commands.md)
- [Caching](caching.md)
- [HTTP Client Options](http_client.md)