ysharma HF Staff commited on
Commit
399ecae
·
1 Parent(s): 4e291ae
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -104,7 +104,7 @@ def engine(text_input):
104
  speech = text2speech(text_input)
105
 
106
  #getting audio clip's duration
107
- audio_length = int(WAVE("alarm.wav").info.length)
108
 
109
  #Calculate the desired frame per second based on given audio length and entities identified
110
  fps= entities_num / audio_length #19 #length of audio file #13 / 19
 
104
  speech = text2speech(text_input)
105
 
106
  #getting audio clip's duration
107
+ audio_length = int(WAVE(speech).info.length)
108
 
109
  #Calculate the desired frame per second based on given audio length and entities identified
110
  fps= entities_num / audio_length #19 #length of audio file #13 / 19