Skip to content

sizumita/discord-ext-songbird

Repository files navigation

discord-ext-songbird

GitHub License GitHub Release PyPI - Version PyPI - Python Version

Library to replace the voice backend of discord.py with Songbird.

Installation

$ python -m pip install discord-ext-songbird

Quick Example

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.

Todo

  • Voice Sending
    • Multi Codec Support
      • Wav
    • Sharded Bot Support
    • Stream input
  • Voice Receiving
    • Sink Model
      • Multi ssrc stream

About

Voice backend for discord.py with Songbird.

Resources

License

Stars

Watchers

Forks

Packages

No packages published