Library to replace the voice backend of discord.py with Songbird.
$ python -m pip install discord-ext-songbird
import discord
from discord.ext.songbird import SongbirdClient
client = discord.Client()
@client.event
async def on_ready():
print("ready")
channel: discord.VoiceChannel = client.get_channel(CHANNEL_ID)
voice_client: SongbirdClient = await channel.connect(cls=SongbirdClient)
source = songbird.RawBufferSource(...) # passes io.BufferIOBase
track = songbird.Track(source).set_volume(0.8)
await voice_client.queue.enqueue(track)
client.run(...)
More examples are on examples
folder.
- Voice Sending
- Multi Codec Support
- Wav
- Sharded Bot Support
- Stream input
- Multi Codec Support
- Voice Receiving
- Sink Model
- Multi ssrc stream
- Sink Model