Skip to content

Commit 4ac4c21

Browse files
committed
Update audio_recording.py
Updated audio recording exaple. Using MP3Sink() instead of MP4Sink() on mp3 file type
1 parent 0b0c162 commit 4ac4c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/audio_recording.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def start(ctx: ApplicationContext,
2222
bot.connections.update({ctx.guild.id: vc})
2323

2424
if encoding == "mp3":
25-
sink = discord.sinks.MP4Sink()
25+
sink = discord.sinks.MP3Sink()
2626
elif encoding == "wav":
2727
sink = discord.sinks.WaveSink()
2828
elif encoding == "pcm":

0 commit comments

Comments
 (0)