Postprocessing API¶
Relating the experiment's recordings to each other, once the pipeline has run over each of them on its own.
Speaker Attribution¶
body_eye_sync.postprocessing.attribution
¶
Who was speaking, decided by whose glasses video microphone heard them loudest.
AttributionCancelled
¶
Levels
dataclass
¶
How loud every recording is compared to its own quiet baseline.
Source code in src/body_eye_sync/postprocessing/attribution.py
live
cached
property
¶
Which recordings are carrying speech at each moment.
loudest
cached
property
¶
The row of the loudest live recording at each moment, or -1 if unclear.
live_share(name, start, end)
¶
How much of [start, end) one recording is live for.
Unlike :meth:share this doesn't depend on the other recordings: a
microphone can be live while another is louder, which is what two people
talking at once looks like.
Source code in src/body_eye_sync/postprocessing/attribution.py
share(name, start, end)
¶
How much of [start, end) one recording is the loudest for, ignoring silent stretches.
Source code in src/body_eye_sync/postprocessing/attribution.py
attribute_segments(transcripts, levels, timelines, settings, words=None, *, progress=None)
¶
Give each transcribed segment to the wearer whose microphone won it.
Source code in src/body_eye_sync/postprocessing/attribution.py
measure_levels(loudness, timelines, settings)
¶
Put every recording's measured loudness on the experiment clock.