#🔒 discord.py VC audio playing issue

7 messages · Page 1 of 1 (latest)

lime sphinx
#

Hi, I have an issue with my Discord bot: I can't make it play audios. It connects to VC, although the audio doesn't go off.
This is the code:

audio = FFmpegPCMAudio("RadioMoskauShort.mp3"); # played on bot VC join
@bot.command()
async def connect(ctx):
    channel = ctx.message.author.voice.channel;
    if channel != None:
        vc = await channel.connect();
        vc.play(audio);
    else:
        await ctx.reply("You're not in a channel.");
    await ctx.message.delete();```

No errors. Just this output: ```
2025-04-11 20:08:06 INFO     discord.player ffmpeg process 9604 successfully terminated with return code of 4294967294.       
2025-04-11 20:08:14 INFO     discord.voice_state The voice handshake is being terminated for Channel ID 1342508076749815828 (Guild ID 1310208278411608156)```
burnt trailBOT
#

@lime sphinx

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

lime sphinx
#

I don't understand.

#

Here the full output:

#
to voice...
2025-04-11 20:20:13 INFO     discord.voice_state Starting voice handshake... (connection attempt 1)
2025-04-11 20:20:13 INFO     discord.voice_state Voice handshake complete. Endpoint found: milan10044.discord.media     
2025-04-11 20:20:13 INFO     discord.voice_state Voice connection complete.
2025-04-11 20:20:13 INFO     discord.player ffmpeg process 4740 successfully terminated with return code of 4294967294. 
2025-04-11 20:20:20 INFO     discord.voice_state The voice handshake is being terminated for Channel ID 1342508076749815828 (Guild ID 1310208278411608156)```
burnt trailBOT
#

@lime sphinx

Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.