Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine exact the numbers of speakers in diarization pipeline #1781

Open
shron1010 opened this issue Nov 6, 2024 · 1 comment
Open

Determine exact the numbers of speakers in diarization pipeline #1781

shron1010 opened this issue Nov 6, 2024 · 1 comment

Comments

@shron1010
Copy link

shron1010 commented Nov 6, 2024

If we know exact speakers in wav file (i.e. 2), is it some way to provide it to diarization pipeline?
Because library often determine an additional speakers - speaker02, speaker03 and so on.
Something like max_num_speakers .

@FrenchKrab
Copy link
Contributor

Check out the pipeline.apply method

def apply(
self,
file: AudioFile,
num_speakers: Optional[int] = None,
min_speakers: Optional[int] = None,
max_speakers: Optional[int] = None,
return_embeddings: bool = False,
hook: Optional[Callable] = None,
) -> Annotation:

The docstring explains how to use num_speakers and max_speakers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants