Spaces:
Running
on
Zero
Running
on
Zero
liuyang
commited on
Commit
·
2db48ee
1
Parent(s):
9a3b106
remove wav convert
Browse files
app.py
CHANGED
@@ -385,17 +385,17 @@ class WhisperTranscriber:
|
|
385 |
#self.setup_models()
|
386 |
|
387 |
# Convert audio format
|
388 |
-
wav_path = self.convert_audio_format(audio_file)
|
389 |
|
390 |
try:
|
391 |
# Transcribe audio
|
392 |
transcription_segments, detected_language = self.transcribe_audio(
|
393 |
-
|
394 |
)
|
395 |
|
396 |
# Perform diarization
|
397 |
diarization_segments, detected_num_speakers = self.perform_diarization(
|
398 |
-
|
399 |
)
|
400 |
|
401 |
# Merge transcription and diarization
|
|
|
385 |
#self.setup_models()
|
386 |
|
387 |
# Convert audio format
|
388 |
+
#wav_path = self.convert_audio_format(audio_file)
|
389 |
|
390 |
try:
|
391 |
# Transcribe audio
|
392 |
transcription_segments, detected_language = self.transcribe_audio(
|
393 |
+
audio_file, language, translate, prompt
|
394 |
)
|
395 |
|
396 |
# Perform diarization
|
397 |
diarization_segments, detected_num_speakers = self.perform_diarization(
|
398 |
+
audio_file, num_speakers
|
399 |
)
|
400 |
|
401 |
# Merge transcription and diarization
|