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

我与影子孤独终老i 提交于 2020-01-04 18:56:39

问题


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)?


回答1:


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.



来源:https://stackoverflow.com/questions/45380658/connecting-to-a-voice-channel-and-sending-audio-in-discord-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!