Update README.md
Browse files
README.md
CHANGED
|
@@ -40,7 +40,10 @@ pipeline = Pipeline.from_pretrained(
|
|
| 40 |
'pyannote/speaker-diarization-precision-2',
|
| 41 |
token="{pyannoteAI-api-key}")
|
| 42 |
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
| 44 |
for turn, _, speaker in output.speaker_diarization.itertracks(yield_label=True):
|
| 45 |
print(f"start={turn.start:.1f}s stop={turn.end:.1f}s speaker_{speaker}")
|
| 46 |
```
|
|
|
|
| 40 |
'pyannote/speaker-diarization-precision-2',
|
| 41 |
token="{pyannoteAI-api-key}")
|
| 42 |
|
| 43 |
+
# run speaker diarization on pyannoteAI cloud
|
| 44 |
+
output = pipeline("/path/to/audio.wav")
|
| 45 |
+
|
| 46 |
+
# enjoy state-of-the-art speaker diarization
|
| 47 |
for turn, _, speaker in output.speaker_diarization.itertracks(yield_label=True):
|
| 48 |
print(f"start={turn.start:.1f}s stop={turn.end:.1f}s speaker_{speaker}")
|
| 49 |
```
|