Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,6 @@ def transcribe(microphone,file):
|
|
27 |
audio = audio.set_frame_rate(16000)
|
28 |
if audio.channels != 1:
|
29 |
audio = audio.set_channels(1)
|
30 |
-
file = file.split(".")[0]+".wav"
|
31 |
audio.export(file_name.split(".")[0]+".wav",format="wav")
|
32 |
except Exception as e:
|
33 |
print(e)
|
|
|
27 |
audio = audio.set_frame_rate(16000)
|
28 |
if audio.channels != 1:
|
29 |
audio = audio.set_channels(1)
|
|
|
30 |
audio.export(file_name.split(".")[0]+".wav",format="wav")
|
31 |
except Exception as e:
|
32 |
print(e)
|