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