Skip to content
Sign upLog in
← Back to Community
Can't play audio using discord.py
Profile icon
romainkarpinski

Hi, when i try to play audio using discord.py, the bot correctly connects to the voice channel, but then nothing happens, and i dont get any error message... Here is my code:
if msg.startswith("!join"):
channel = message.author.voice.channel
voice = await channel.connect()
voice.play(discord.FFmpegPCMAudio("TEST.wav"))

have i done sthg wrong?

Voters
Profile icon
romainkarpinski
Comments
hotnewtop
Profile icon
VulcanWM
Profile icon
romainkarpinski

@VulcanWM

this code isnt working, i get the error YouTube said: Unable to extract video data

Profile icon
romainkarpinski

@VulcanWM

this code isnt working, i get the error:
YouTube said: Unable to extract video data