Get ready to add diarization to openvino backend.

This commit is contained in:
2026-07-23 00:05:02 -04:00
parent 06ec02445d
commit 17b1639a9b
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ jiwer
evaluate
numpy>=1.26.4,<2.5
openai-whisper==20250625
pyannote.audio
tokenizers==0.20.3
transformers[torch]
sentencepiece
+3
View File
@@ -28,6 +28,7 @@ class ServeClientOpenVINO(ServeClientBase):
no_speech_thresh=0.45,
clip_audio=False,
same_output_threshold=10,
diarization=None,
):
"""
Initialize a ServeClient instance.
@@ -56,6 +57,8 @@ class ServeClientOpenVINO(ServeClientBase):
no_speech_thresh,
clip_audio,
same_output_threshold,
None, # translation_queue — OpenVINO backend does not support translation
diarization, # speaker diarization — passed through to base class
)
self.language = "en" if language is None else language
if not self.language.startswith("<|"):
+1
View File
@@ -258,6 +258,7 @@ class TranscriptionServer:
no_speech_thresh=options.get("no_speech_thresh", 0.45),
clip_audio=options.get("clip_audio", False),
same_output_threshold=options.get("same_output_threshold", 10),
diarization=self._create_diarizer(options),
)
logging.info("Running OpenVINO backend.")
except Exception as e: