Voice Support¶
So you want to start playing some 🎵tunes🎶 in voice channels? Well let's get that going for you.
First you're going to want to get the voice dependencies installed:
1 |
|
Then you'll need to download FFmpeg and place it in your project directory or PATH.
Now you've got those; let's make a simple play command to get you started.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Now just join a voice channel, and type run the "play" slash command with a song of your choice.
Congratulations! You've got a music-bot.
But what about local music?¶
If you want to play your own files, you can do that too! Create an AudioVolume
object and away you go.
Note
If your audio is already encoded, use the standard Audio
object instead. You'll lose volume manipulation, however.
1 2 3 4 5 6 7 8 |
|
Check out Active Voice State for a list of available methods and attributes.