feat: update README e4aa6b9
Hervé BREDIN commited on
How to use collinbarnwell/pyannote-segmentation-30 with pyannote.audio:
from pyannote.audio import Model, Inference
model = Model.from_pretrained("collinbarnwell/pyannote-segmentation-30")
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)