Skip to main content
Declares an audio track. Samples are int16 of shape (channels, samples), mono at 48 kHz.
int
default:"48000"
The track’s native rate. Subclass to declare a different one. On an output track this does not change what goes out live, which is always 48 kHz; it tells the recorder what rate to encode at, which is what keeps a recorded clip’s pitch and duration right. On an input track it is the rate the samples reach your model at, on every transport.
float | None
default:"None"
How many seconds of audio an input track buffers before it drops the oldest frames. Leave it unset and the track buffers 128 frames. The buffer also holds at most one frame per millisecond of the bound, and a read() for more frames than that raises ValueError. An output track ignores it.