Instructions to use sli521/speaker-diarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- pyannote.audio
How to use sli521/speaker-diarization with pyannote.audio:
from pyannote.audio import Pipeline pipeline = Pipeline.from_pretrained("sli521/speaker-diarization") # inference on the whole file pipeline("file.wav") # inference on an excerpt from pyannote.core import Segment excerpt = Segment(start=2.0, end=5.0) from pyannote.audio import Audio waveform, sample_rate = Audio().crop("file.wav", excerpt) pipeline({"waveform": waveform, "sample_rate": sample_rate}) - Notebooks
- Google Colab
- Kaggle
stevenNZ commited on
Commit ·
3068d59
1
Parent(s): 4a92916
update config with segmentation model
Browse files- config.yaml +1 -1
config.yaml
CHANGED
|
@@ -7,7 +7,7 @@ pipeline:
|
|
| 7 |
embedding: pyannote/wespeaker-voxceleb-resnet34-LM
|
| 8 |
embedding_batch_size: 32
|
| 9 |
embedding_exclude_overlap: true
|
| 10 |
-
segmentation:
|
| 11 |
segmentation_batch_size: 32
|
| 12 |
|
| 13 |
params:
|
|
|
|
| 7 |
embedding: pyannote/wespeaker-voxceleb-resnet34-LM
|
| 8 |
embedding_batch_size: 32
|
| 9 |
embedding_exclude_overlap: true
|
| 10 |
+
segmentation: sli521/segmentation
|
| 11 |
segmentation_batch_size: 32
|
| 12 |
|
| 13 |
params:
|