diart icon indicating copy to clipboard operation
diart copied to clipboard

extracting unique speaker embeddings from pipeline

Open Aduomas opened this issue 1 year ago • 1 comments

have not found a way to extract unique speaker embeddings from the pipeline after running it.

it would allow to similarity function against existing saved speaker embeddings to identify speakers.

Aduomas avatar Oct 28 '24 12:10 Aduomas

Hi @Aduomas, you could get to the centroids (averaged embeddings) of the pipeline in this way:

pipeline = SpeakerDiarization()
# inference over your stream
centroids = pipeline.clustering.centers

juanmc2005 avatar Dec 13 '24 09:12 juanmc2005