minor mistake, minor fix

This commit is contained in:
insert-usernamehere 2023-04-15 20:05:19 -04:00
parent 113333fd89
commit 9e92a0c509

View file

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