Hervé Bredin
commited on
Commit
·
78371ea
1
Parent(s):
39299f7
doc: update README
Browse files
README.md
CHANGED
|
@@ -25,10 +25,9 @@ from pyannote.audio import Pipeline
|
|
| 25 |
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
|
| 26 |
output = pipeline("audio.wav")
|
| 27 |
|
| 28 |
-
for
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
f"t={start_time}s and t={end_time}s.")
|
| 32 |
```
|
| 33 |
|
| 34 |
## Benchmark
|
|
|
|
| 25 |
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
|
| 26 |
output = pipeline("audio.wav")
|
| 27 |
|
| 28 |
+
for turn, _, speaker in output.itertracks(yield_label=True):
|
| 29 |
+
# speaker speaks between turn.start and turn.end
|
| 30 |
+
...
|
|
|
|
| 31 |
```
|
| 32 |
|
| 33 |
## Benchmark
|