Vihang28 commited on
Commit
0aefd0d
1 Parent(s): 08f3107

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,7 +12,8 @@ def record_text(audio_file):
12
  r = sr.Recognizer()
13
 
14
  sound = audio_file
15
- sound_type = sound.split(".")
 
16
  if sound_type[-1] == 'mp3':
17
  input_file = sound
18
  output_file = "con_sound.wav"
 
12
  r = sr.Recognizer()
13
 
14
  sound = audio_file
15
+ str_sound = str(sound)
16
+ sound_type = str_sound.split(".")
17
  if sound_type[-1] == 'mp3':
18
  input_file = sound
19
  output_file = "con_sound.wav"