Hunzla commited on
Commit
64bceb8
1 Parent(s): fa31f81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,8 +35,8 @@ def transcribe_with_diarization(audio_path):
35
  print(waveform)
36
  interval_audio = waveform[:,start_sample:end_sample]
37
  # Export the interval audio as a temporary WAV file
38
- torchaudio.save("interval_audio.mp3", interval_audio,sample_rate)
39
- transcript = asr_pipe("interval_audio.mp3")
40
  print(transcript)
41
  start_time = segment.start
42
  end_time = segment.end
 
35
  print(waveform)
36
  interval_audio = waveform[:,start_sample:end_sample]
37
  # Export the interval audio as a temporary WAV file
38
+ torchaudio.save("interval_audio.wav", interval_audio,sample_rate)
39
+ transcript = asr_pipe("interval_audio.wav")
40
  print(transcript)
41
  start_time = segment.start
42
  end_time = segment.end