Decoded audio samples with a checked sample rate.
Signature
type AudioBlock { samples: Tensor[f32]; sample_rate: u32; }Samples have shape [sample_frames, channels] and finite f32 values. The SDK validates channel count and sample rate. This is a decoded block; playback, capture and scheduling belong to the host.
Fields
sample_rate: u32- Samples per second, from 1 through 384000.
Examples
Construct AudioBlock
Inspect the typed payload and metadata.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
[4, 1] 48000
Rust definition
A checked language record delegating decoded media validation to konjure_sdk::data.
View Rust documentation →Support: runtime