Crates.io | skua-voice |
lib.rs | skua-voice |
version | 0.4.0 |
source | src |
created_at | 2024-02-13 15:54:34.149678 |
updated_at | 2024-02-13 15:54:34.149678 |
description | Custom fork of Songbird for KenaBot. |
homepage | https://github.com/KenaBot/skua-voice |
repository | https://github.com/KenaBot/skua-voice |
max_upload_size | |
id | 1138611 |
size | 614,813 |
Skua is a fork of Songbird, an async, cross-library compatible voice system for Discord, written in Rust. The library offers:
"gateway"
and "[skua/twilight]"
plus "[rustls/native]"
features. You can even run
driverless, to help manage your lavalink sessions."driver"
feature. If you can create
a ConnectionInfo
using any other gateway, or language for your bot, then you
can run the songbird voice driver."receive"
feature."simd-json"
feature.Songbird's gateway functionality requires you to specify the GUILD_VOICE_STATES
intent.
Songbird supports all codecs and formats provided by Symphonia (pure-Rust), with Opus support provided by audiopus (an FFI wrapper for libopus).
By default, Songbird will not request any codecs from Symphonia. To change this, in your own project you will need to depend on Symphonia as well.
# Including songbird alone gives you support for Opus via the DCA file format.
[dependencies.songbird]
version = "0.4"
features = ["builtin-queue"]
# To get additional codecs, you *must* add Symphonia yourself.
# This includes the default formats (MKV/WebM, Ogg, Wave) and codecs (FLAC, PCM, Vorbis)...
[dependencies.symphonia]
version = "0.5.2"
features = ["aac", "mp3", "isomp4", "alac"] # ...as well as any extras you need!
Songbird needs a few system dependencies before you can use it.
apt install libopus-dev
on Ubuntu or pacman -S opus
on Arch Linux.
If you do not have it installed it will be built for you. However, you will need a C compiler and the GNU autotools installed.
Again, these can be installed with apt install build-essential autoconf automake libtool m4
on Ubuntu or pacman -S base-devel
on Arch Linux.This is a required dependency. Songbird cannot work without it.
pip install youtube_dl
.
Alternatively, you can install it with your system's package manager, apt install youtube-dl
on Ubuntu or pacman -S youtube-dl
on Arch Linux.This is an optional dependency for users, but is required as a dev-dependency. It allows Songbird to download audio/video sources from the Internet from a variety of webpages, which it will convert to the Opus audio format Discord uses.
Full examples showing various types of functionality and integrations can be found in [this crate's examples directory].
If you want to help out or file an issue, please look over our contributor guidelines!
Songbird's logo is based upon the copyright-free image "Black-Capped Chickadee" by George Gorgas White.