From 362e0f627f270ad395a3b494d3ca52040c2ac309 Mon Sep 17 00:00:00 2001 From: insert-usernamehere Date: Sat, 15 Apr 2023 10:16:16 -0400 Subject: [PATCH] stop sending audo files --- transcribebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcribebot.py b/transcribebot.py index ad71532..24b9eec 100644 --- a/transcribebot.py +++ b/transcribebot.py @@ -20,7 +20,7 @@ async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disn convertemessage = sr.AudioFile("audio.wav") with convertemessage as sounds: transcribeaudo = st.record(sounds) - await inter.edit_original_message(st.recognize_sphinx(transcribeaudo), file=disnake.File("audio.wav")) + await inter.edit_original_message(st.recognize_sphinx(transcribeaudo)) os.remove("audio.ogg") os.remove("audio.wav")