From 9e92a0c5098bef4c6c3eb1652b5ac1263cc0769d Mon Sep 17 00:00:00 2001 From: insert-usernamehere Date: Sat, 15 Apr 2023 20:05:19 -0400 Subject: [PATCH] minor mistake, minor fix --- transcribebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcribebot.py b/transcribebot.py index 061e520..bf7ca2a 100644 --- a/transcribebot.py +++ b/transcribebot.py @@ -12,7 +12,7 @@ bot = commands.Bot(command_prefix='.') def prepaudio(audiofile): oggfile = AudioSegment.from_ogg(audiofile) - oggfile.export(audiofile, format="wav") + oggfile.export("audio.wav", format="wav") convertemessage = sr.AudioFile("audio.wav") with convertemessage as sounds: transcribeaudo = st.record(sounds)