YosefAyele commited on
Commit
2fe462f
·
1 Parent(s): fea87b1

makes the model wait for 5 secs before transcription

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,11 +24,11 @@ def transcribe_audio(audio_file):
24
  temp_audio_path = "temp_audio/input_audio.wav"
25
 
26
  # Convert audio to .wav format
27
- time.sleep(5)
28
  sound = AudioSegment.from_file(audio_file)
29
  sound.export(temp_audio_path, format="wav")
30
 
31
  # Transcribe the audio
 
32
  transcription = asr_model.transcribe_file(temp_audio_path)
33
 
34
  # Clean up temporary files (optional)
 
24
  temp_audio_path = "temp_audio/input_audio.wav"
25
 
26
  # Convert audio to .wav format
 
27
  sound = AudioSegment.from_file(audio_file)
28
  sound.export(temp_audio_path, format="wav")
29
 
30
  # Transcribe the audio
31
+ time.sleep(5)
32
  transcription = asr_model.transcribe_file(temp_audio_path)
33
 
34
  # Clean up temporary files (optional)