spdl.io.AudioPackets¶
- class AudioPackets¶
Packets object containing audio samples.
See Packets and Frames for information about the Packets base concept.
Attributes
Clone the packets, so that data can be decoded multiple times.
The codec.
The number of channels.
The sample rate of the audio.
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.