Skip to content
Konjure / spatial intelligence

AudioStream

← Builtin reference

A live audio input request with a gain value.

Signature

type AudioStream { source: Str = "microphone"; volume: Number = 1; }

The host owns microphone permission, capture lifecycle, and stream routing; this declaration does not open a microphone.

Fields

source: Str
Host-defined live-audio selector; defaults to microphone.
Default"microphone"
volume: f64
Requested linear gain; defaults to 1 and is interpreted by the host.
Default1

Examples

Request audio input

A host must grant permission and create any actual stream.

Tick 0 · 0.00 s⌘ / Ctrl + EnterThis device
main.kj
Loading the language runtime…
Output 0
No output.
Expected output
microphone

Rust definition

Interpreter RecordValue stream schema, not a microphone session or audio buffer.

See also