minor changes
This commit is contained in:
parent
77bdf82731
commit
9cf7985f35
1 changed files with 0 additions and 1 deletions
|
@ -13,7 +13,6 @@ bot = commands.Bot(command_prefix='.')
|
||||||
@bot.message_command(name="Transcrible")
|
@bot.message_command(name="Transcrible")
|
||||||
async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disnake.Message):
|
async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disnake.Message):
|
||||||
await inter.response.defer(ephemeral='true')
|
await inter.response.defer(ephemeral='true')
|
||||||
# Reversing the message and sending it back.
|
|
||||||
await message.attachments[0].save("audio.ogg")
|
await message.attachments[0].save("audio.ogg")
|
||||||
mp3file = AudioSegment.from_ogg("audio.ogg")
|
mp3file = AudioSegment.from_ogg("audio.ogg")
|
||||||
mp3file.export("audio.wav", format="wav")
|
mp3file.export("audio.wav", format="wav")
|
||||||
|
|
Loading…
Reference in a new issue