ChannelLayout
Memory layout for audio sample data.
Different audio processing libraries use different conventions for storing multi-channel audio data.
Entries
Interleaved multi-channel audio. Samples from different channels alternate: L R L R L R... Shape: samples, channels
Batched interleaved audio. Shape: batch, samples, channels
Batched planar audio. Shape: batch, channels, samples
Properties
Index of the channels dimension in the shape array. Returns -1 for MONO (no channel dimension).
Returns a representation of an immutable list of all enum entries, in the order they're declared.
Expected tensor rank for this layout.
Index of the samples dimension in the shape array.
Functions
Convert to batched version of this layout.
Convert to unbatched version of this layout.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.