BinkanSalaryman / Discord-Audio-Stream-Bot

A simple discord audio streaming bot.
229 stars 39 forks source link

Bitrate higher than 128kbps? #84

Open cjunekim opened 9 months ago

cjunekim commented 9 months ago

You know, with discord nitro, you can go higher than 128kbps in voice channels. Does this bot support higher bitrate?

I have looked into the source code but couldn't find any part that specifies the audio bitrate, though.

BinkanSalaryman commented 9 months ago

Isn't nitro audio bit rate a thing of the past? I don't see it listed as a nitro benefit on discords site... The discord api doesn't take any bitrate into account: https://discord.com/developers/docs/topics/voice-connections#encrypting-and-sending-voice. Though, after encrypting to opus it does have some bit rate, except that part is handled by JDA (java discord api library). If I have some time I could dig their code to find out what bit rate it resolves to...

cjunekim commented 9 months ago

Sorry. It is called server boosting. https://support.discord.com/hc/en-us/articles/11635925354775-Audio-Bitrate-FAQ Currently, my server supports audio bitrate of 384 Kbps.

As per bitrate parameter, have a look at this commit https://github.com/Rapptz/discord.py/pull/2232/commits/220c3caa6e462f376f50850f11bea17c69101382 It is for python client library though.