minor mistake, minor fix
This commit is contained in:
parent
113333fd89
commit
9e92a0c509
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ bot = commands.Bot(command_prefix='.')
|
||||||
|
|
||||||
def prepaudio(audiofile):
|
def prepaudio(audiofile):
|
||||||
oggfile = AudioSegment.from_ogg(audiofile)
|
oggfile = AudioSegment.from_ogg(audiofile)
|
||||||
oggfile.export(audiofile, format="wav")
|
oggfile.export("audio.wav", format="wav")
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue