How to change parameters of segmentation model in diarization pipeline #1105
-
I'm really enjoying how easy it is to do diarization with the pipeline in I couldn't find any examples on how to change these parameters in a pipeline. Is this something that's easily doable or do I essentially have to recreate the pipeline? Ideally I'm looking for something similar to the snippet below. from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
# change things like `min_duration_off` for the segmentation part of the pipeline
diarization = pipeline(AUDIO_FILE, num_speakers=4) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
pipeline.segmentation.min_duration_off = FILL_GAPS_SHORTER_THAN_THAT_MANY_SECONDS
should do the trick.