spdl.io.AudioPackets

class AudioPackets[source]

Packets object containing audio samples.

Methods

clone()

Clone the packets, so that data can be decoded multiple times.

Attributes

timestamp

The window this packets covers, denoted by start and end time in second.

clone() AudioPackets[source]

Clone the packets, so that data can be decoded multiple times.

Returns:

A clone of the packets.

property timestamp: tuple[float, float] | None[source]

The window this packets covers, denoted by start and end time in second.

This is the value specified by user when demuxing the stream.