spdl.io.AudioPackets

class AudioPackets

Packets object containing audio samples.

See Packets and Frames for information about the Packets base concept.

Attributes

clone

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

codec

The codec.

num_channels

The number of channels.

sample_rate

The sample rate of the audio.

timestamp

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

__len__
clone

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

Returns:

A clone of the packets.

property codec

The codec.

property num_channels

The number of channels.

property sample_rate

The sample rate of the audio.

property timestamp

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

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