@@ -340,21 +340,21 @@ def diarize(
340
340
media_url : str
341
341
media://{...} URL created with the `upload` method or
342
342
any other public URL pointing to an audio file.
343
- model : str, optional
344
- Defaults to "precision-2"
345
343
num_speakers : int, optional
346
344
Force number of speakers to diarize. If not provided, the
347
345
number of speakers will be determined automatically.
348
346
min_speakers : int, optional
349
- Minimum number of speakers. Has no effect when `num_speakers` is provided.
347
+ Minimum number of speakers.
350
348
max_speakers : int, optional
351
- Maximum number of speakers. Has no effect when `num_speakers` is provided.
349
+ Maximum number of speakers.
352
350
confidence : bool, optional
353
- Defaults to False
351
+ Enable confidence scores.
354
352
turn_level_confidence: bool, optional
355
- Defaults to False
353
+ Enable turn-based confidence scores.
356
354
exclusive: bool, optional
357
- Defaults to False
355
+ Enable exclusive speaker diarization.
356
+ model : str, optional
357
+ Defaults to "precision-2"
358
358
**kwargs : optional
359
359
Extra arguments to send in the body of the request.
360
360
@@ -425,7 +425,6 @@ def identify(
425
425
self ,
426
426
media_url : str ,
427
427
voiceprints : dict [str , str ],
428
- model : str = "precision-2" ,
429
428
exclusive_matching : bool = True ,
430
429
matching_threshold : float = 0.0 ,
431
430
num_speakers : int | None = None ,
@@ -434,6 +433,7 @@ def identify(
434
433
confidence : bool = False ,
435
434
turn_level_confidence : bool = False ,
436
435
exclusive : bool = False ,
436
+ model : str = "precision-2" ,
437
437
** kwargs ,
438
438
) -> str :
439
439
"""Initiate an identification job on the pyannoteAI web API
@@ -444,8 +444,7 @@ def identify(
444
444
media://{...} URL created with the `upload` method or
445
445
any other public URL pointing to an audio file.
446
446
voiceprints : dict
447
- model : str, optional
448
- Defaults to "precision-2".
447
+ Voiceprints.
449
448
exclusive_matching : bool, optional
450
449
Prevent multiple speakers from being matched to the same voiceprint.
451
450
Defaults to True.
@@ -456,11 +455,17 @@ def identify(
456
455
Force number of speakers to diarize. If not provided, the
457
456
number of speakers will be determined automatically.
458
457
min_speakers : int, optional
459
- Minimum number of speakers. Has no effect when `num_speakers` is provided.
458
+ Minimum number of speakers.
460
459
max_speakers : int, optional
461
- Maximum number of speakers. Has no effect when `num_speakers` is provided.
460
+ Maximum number of speakers.
462
461
confidence : bool, optional
463
- Defaults to False
462
+ Enable confidence scores.
463
+ turn_level_confidence: bool, optional
464
+ Enable turn-based confidence scores.
465
+ exclusive: bool, optional
466
+ Enable exclusive speaker diarization.
467
+ model : str, optional
468
+ Defaults to "precision-2"
464
469
**kwargs : optional
465
470
Extra arguments to send in the body of the request.
466
471
0 commit comments