Voice Activity Detection
pyannote.audio
pyannote
pyannote-audio-pipeline
audio
voice
speech
speaker
speaker-diarization
speaker-change-detection
overlapped-speech-detection
Instructions to use pyannote/speaker-diarization-precision-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- pyannote.audio
How to use pyannote/speaker-diarization-precision-2 with pyannote.audio:
from pyannote.audio import Pipeline pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization-precision-2") # 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
Hervé BREDIN commited on
Commit ·
9bc673d
1
Parent(s): 0f126b1
feat: update README
Browse files
README.md
CHANGED
|
@@ -44,7 +44,7 @@ pipeline = Pipeline.from_pretrained(
|
|
| 44 |
output = pipeline("/path/to/audio.wav")
|
| 45 |
|
| 46 |
# enjoy state-of-the-art speaker diarization
|
| 47 |
-
for turn,
|
| 48 |
print(f"start={turn.start:.1f}s stop={turn.end:.1f}s speaker_{speaker}")
|
| 49 |
```
|
| 50 |
|
|
|
|
| 44 |
output = pipeline("/path/to/audio.wav")
|
| 45 |
|
| 46 |
# enjoy state-of-the-art speaker diarization
|
| 47 |
+
for turn, speaker in output.speaker_diarization:
|
| 48 |
print(f"start={turn.start:.1f}s stop={turn.end:.1f}s speaker_{speaker}")
|
| 49 |
```
|
| 50 |
|