@@ -370,6 +370,8 @@ def diarize(
370370 turn_level_confidence : bool = False ,
371371 exclusive : bool = False ,
372372 model : str = "precision-2" ,
373+ transcription : bool = False ,
374+ transcription_config : dict | None = None ,
373375 ** kwargs ,
374376 ) -> str :
375377 """Initiate a diarization job on the pyannoteAI web API
@@ -394,6 +396,10 @@ def diarize(
394396 Enable exclusive speaker diarization.
395397 model : str, optional
396398 Defaults to "precision-2"
399+ transcription : bool, optional
400+ Enable STT orchestration.
401+ transcription_config : dict, optional
402+ STT configuration parameters, including model selection.
397403 **kwargs : optional
398404 Extra arguments to send in the body of the request.
399405
@@ -416,7 +422,10 @@ def diarize(
416422 "confidence" : confidence ,
417423 "turnLevelConfidence" : turn_level_confidence ,
418424 "exclusive" : exclusive ,
425+ "transcription" : transcription ,
426+ "transcriptionConfig" : transcription_config or dict (),
419427 }
428+
420429 # add extra arguments to the request body
421430 json .update (kwargs )
422431
0 commit comments