Transport-neutral live voice state. Effects never run native inference on the caller.
Transport-neutral live voice state. Effects never run native inference on the caller.
(abort-acknowledged! session epoch)Acknowledge only an output worker that has actually exited and released its state.
Acknowledge only an output worker that has actually exited and released its state.
(close! session reason)Invalidate media and release devices. Leave all agent tasks intact.
Invalidate media and release devices. Leave all agent tasks intact.
(commit-speech! session {:keys [turn-id text source iteration]})Queue only an immutable projection from an owned, unsuppressed turn.
Queue only an immutable projection from an owned, unsuppressed turn.
(control! session control)Apply validated controls from the socket owner. Raw transcripts are not a client command.
Apply validated controls from the socket owner. Raw transcripts are not a client command.
(create {:keys [voice-session-id client-id muted now emit persist admit
cancel-task open-input feed-input finish-input abort-input speak
abort-output close]
:or {now (fn* [] (quot (System/nanoTime) 1000000))
emit (constantly nil)
persist (constantly nil)
close (constantly nil)}})Create one exclusive owner. Effects must enqueue bounded work without blocking.
Create one exclusive owner. Effects must enqueue bounded work without blocking.
(fail! session code message)Fail closed without cancelling agent work.
Fail closed without cancelling agent work.
(final! session utterance-id {:keys [text revision]})Commit one immutable final through normal idempotent admission. Ignore late engine callbacks.
Commit one immutable final through normal idempotent admission. Ignore late engine callbacks.
(generated! session segment-id epoch sample-count)Count native PCM before playback credit can block its delivery.
Count native PCM before playback credit can block its delivery.
(input-frame! session frame)Accept only contiguous current audio. Old or repeated audio cannot reach an engine.
Accept only contiguous current audio. Old or repeated audio cannot reach an engine.
(interrupt! session expected-epoch reason)Invalidate output immediately. Do not change capture or task state.
Invalidate output immediately. Do not change capture or task state.
(interrupt-turn! session turn-id reason)Suppress speech from an owned current turn without cancelling its work.
Suppress speech from an owned current turn without cancelling its work.
(mute! session muted)Stop input on mute. Speech from before the mute stays valid, and the mute ends an open utterance. Unmute invalidates unfinished input. It comes only from an authenticated client control.
Stop input on mute. Speech from before the mute stays valid, and the mute ends an open utterance. Unmute invalidates unfinished input. It comes only from an authenticated client control.
(owns-running-task? session turn-id)Report whether this voice session owns the running task. Ignore playback suppression.
Report whether this voice session owns the running task. Ignore playback suppression.
(partial! session utterance-id {:keys [text revision]})Publish replacement revisions. A provisional transcript never admits a task.
Publish replacement revisions. A provisional transcript never admits a task.
(playback! session {:keys [output-epoch segment-id played]})Accept a played position that does not go back and does not pass the sent samples.
Accept a played position that does not go back and does not pass the sent samples.
(reap! session)Close an expired lease even when no client traffic arrives.
Close an expired lease even when no client traffic arrives.
(reserve-output! session segment-id epoch sample-count)Wait for played-sample credit. Return one frame header, or nil after interruption.
Wait for played-sample credit. Return one frame header, or nil after interruption.
(snapshot session)Return independent public states, without audio or authentication material.
Return independent public states, without audio or authentication material.
(task-input! session turn-id view-id opened?)Observe authenticated input views. Never answer a form or change task authority.
Observe authenticated input views. Never answer a form or change task authority.
(task-steered! session turn-id queued-turn-ids iteration)Transfer consumed voice requests to their running task. Never revive an older output epoch.
Transfer consumed voice requests to their running task. Never revive an older output epoch.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |