Skip to content

Commit a4fd10d

Browse files
committedJun 1, 2021
Update speaker_labels docstring
1 parent 0cb9eda commit a4fd10d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎paderbox/visualization/plot.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,11 @@ def activity(
965965
`speaker_labels`. The activity of a single speaker can be an
966966
`pb.array.interval.ArrayInterval` or a list of tuples of start and
967967
stop times (`[(start1, stop1), (start2, stop2), ...]`).
968-
speaker_labels: Speaker labels. Has to be `None` when
969-
`activity_intervals` is a `dict`.
968+
speaker_labels: Speaker labels. If it is `None` and `activity_intervals`
969+
is a `dict`, `speaker_labels` is set to `activity_intervals.keys()`.
970+
If `activity_intervals` is a `dict` and `speaker_labels` is given,
971+
`speaker_labels` are used to select speakers from
972+
`activity_intervals`.
970973
segment_boundary_intervals: Intervals that indicate boundaries of
971974
segments. These are drawn with alpha channel. The format has to be
972975
the same as `activity_intervals`.

0 commit comments

Comments
 (0)
Please sign in to comment.