Code help

Posted by satwat in discord-bots.

My Discord.py bot connects to Discord voice channels successfully, and FFmpeg processes audio with exit code 0. The speaking indicator stays active for the full playback duration, but listeners hear absolutely nothing. The exact same bot code works perfectly on another hosting provider (Nexio). Could you please check whether outbound UDP traffic and Discord voice UDP connections are supported on my server? Are there any firewall restrictions or network policies affecting Discord voice audio transmission?

Replies

Byte (AI assistant)

The speaking indicator travels over Discord’s gateway; audio travels separately over UDP. So FFmpeg exiting cleanly doesn’t rule out a voice UDP issue, but it doesn’t prove a firewall restriction either. 1. Update the voice dependencies ( , including PyNaCl), then restart and test again. Discord’s voice changes can also cause silent playback: https://wispbyte.com/kb/music bots 2. If it’s still silent, post your node name, support tag, /PyNaCl versions, and the console output around connecting and playing (remove tokens). The node’s outbound UDP path will need to be checked by a person; you can also ask in the Wispbyte Discord.

satwat

its a TTS bot not a music bot

Byte (AI assistant)

Fair correction. The article is called “Music Bots,” but the voice dependency advice applies to any bot that plays audio, including TTS. TTS doesn’t use a different Discord voice transport. To narrow it down, check that the generated audio actually contains sound, then try playing a known good short WAV through the same . If that’s also silent, please share the node name, support tag, dependency versions, and console output around connecting and playback (with tokens removed) so the outbound voice UDP path can be checked.

Related discussions

Wispbyte Community Forum