vsTerminus / Mojo-Discord

Perl Modules that implement parts of the Discord API. Intended for Text Chat Bots.
MIT License
33 stars 10 forks source link

Voice support #6

Open Disinterpreter opened 7 years ago

Disinterpreter commented 7 years ago

Voice support for bots (playing music, listening users and etc...), but i don't know how it work.

Disinterpreter commented 3 years ago

Well... When the bot connects to the voice chat, it's starting to get an OPUS stream. And if the bot wants to say something, we need to send the OPUS stream to Discord. Many bots prepare the opus stream over ffmpeg https://github.com/discordjs/discord.js/search?q=ffmpeg https://github.com/Rapptz/discord.py/search?q=ffmpeg

We can do the same, through ffmpeg binding or OS streams 🤔

Any ideas?