Kleber commited on
Commit
08901ff
1 Parent(s): 00eb299

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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)