fix message sending effect
This commit is contained in:
parent
88b1268483
commit
9e0bb1e5fd
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.response.send_message(st.recognize_sphinx(transcribeaudo), file=disnake.File("audio.mp3"))
|
await inter.response.send_message(st.recognize_sphinx(transcribeaudo), file=disnake.File("audio.wav"))
|
||||||
os.remove("audio.ogg")
|
os.remove("audio.ogg")
|
||||||
os.remove("audio.wav")
|
os.remove("audio.wav")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue