Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting to a voice channel and sending audio in Discord.net

After looking for hours I still can't find how should I set up sending an audio using Discord.net 1.0. All of the solutions I encountered have been for pre-1.0 relases and as far as I can see, new API is completly different.

So my question is: How do i join voice channel and send music through? Do I need external libraries (NAudio)?

like image 599
Kamil Rutkowski Avatar asked Jan 02 '26 02:01

Kamil Rutkowski


1 Answers

If someone is looking for Audio example it's here. You also need opus and libsodium in bot running directory. You can get this libraries on Discord "Discord API" sever with command ?tag voice-natives.

like image 112
Kamil Rutkowski Avatar answered Jan 03 '26 16:01

Kamil Rutkowski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!