medkit.core.audio.span#

Classes#

Span

Boundaries of a slice of audio.

Module Contents#

class medkit.core.audio.span.Span#

Bases: NamedTuple

Boundaries of a slice of audio.

Attributes:
start: float

Starting point in the original audio, in seconds.

end: float

Ending point in the original audio, in seconds.

start: float#
end: float#
property length#

Length of the span, in seconds.

to_dict() dict[str, Any]#
classmethod from_dict(data: dict[str, Any]) Span#