medkit.core.audio.annotation
medkit.core.audio.annotation#
Classes:
|
Audio segment referencing part of an |
- class Segment(label, audio, span, attrs=None, metadata=None, uid=None)[source]#
Audio segment referencing part of an
AudioDocument.- Variables
uid (str) – Unique identifier of the segment.
label (str) – Label of the segment.
audio (medkit.core.audio.audio_buffer.AudioBuffer) – The audio signal of the segment. It must be consistent with the span, in the sense that it must correspond to the audio signal of the document at the span boundaries. But it can be a modified, processed version of this audio signal.
span (medkit.core.audio.span.Span) – Span (in seconds) indicating the part of the document’s full signal that this segment references.
attrs (medkit.core.attribute_container.AttributeContainer) – Attributes of the segment. Stored in a :class:{~medkit.core.AttributeContainer} but can be passed as a list at init.
metadata (Dict[str, Any]) – Metadata of the segment.
keys (Set[str]) – Pipeline output keys to which the annotation belongs to.