use correct sending endpoint
This commit is contained in:
parent
362e0f627f
commit
77bdf82731
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))
|
await inter.edit_original_message(content=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