

It is also possible to send raw opus frames, bypassing ffmpeg, if desired. The most common of which are probably http or simply reading a file from the filesystem. Of file on a remote server - ffmpeg supports a ton of protocols,

When playing from a url, the url can be a name of a file on the filesystem or a url Remote, or via raw data that gets piped to stdin of the ffmpeg process. The function /4 allows sound to played via files, local or If the executable is elsewhere, the path may be configured viaĬonfig :nostrum, :ffmpeg, "/path/to/ffmpeg". Nostrum uses the powerful ffmpeg command line utility toĮncode any audio (or video) file for sending to Discord's voice servers.īy default Nostrum will look for the executable ffmpeg in the system path. Main Discord gateway websocket connections do. The websocket connection should reconnect automatically the same way that the One websocketĬonnection will be opened and maintained for each voice channel the bot joins. Discord voice channels allow audio data to be sent to the voice servers over UDP.Ī bot is able to connect to up to one voice channel per guild.
