stop sending audo files

This commit is contained in:
insert-usernamehere 2023-04-15 10:16:16 -04:00
parent 258db180a7
commit 362e0f627f

View file

@ -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")