How to use drewThomasson/segmentation with pyannote.audio:
from pyannote.audio import Model, Inference model = Model.from_pretrained("drewThomasson/segmentation") inference = Inference(model) # inference on the whole file inference("file.wav") # inference on an excerpt from pyannote.core import Segment excerpt = Segment(start=2.0, end=5.0) inference.crop("file.wav", excerpt)
The community tab is the place to discuss and collaborate with the HF community!