Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
39 |
-
transcript = asr_pipe("interval_audio.
|
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
|