stop sending audo files
This commit is contained in:
parent
258db180a7
commit
362e0f627f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disn
|
||||||
convertemessage = sr.AudioFile("audio.wav")
|
convertemessage = sr.AudioFile("audio.wav")
|
||||||
with convertemessage as sounds:
|
with convertemessage as sounds:
|
||||||
transcribeaudo = st.record(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.ogg")
|
||||||
os.remove("audio.wav")
|
os.remove("audio.wav")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue