Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.gateway.voice-session

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.
raw docstring

abort-acknowledged!clj

(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.
sourceraw docstring

close!clj

(close! session reason)

Invalidate media and release devices. Leave all agent tasks intact.

Invalidate media and release devices. Leave all agent tasks intact.
sourceraw docstring

commit-speech!clj

(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.
sourceraw docstring

control!clj

(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.
sourceraw docstring

createclj

(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.
sourceraw docstring

end-utterance!clj

(end-utterance! session generation utterance-id)
source

expired?clj

(expired? session)
source

fail!clj

(fail! session code message)

Fail closed without cancelling agent work.

Fail closed without cancelling agent work.
sourceraw docstring

final!clj

(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.
sourceraw docstring

generated!clj

(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.
sourceraw docstring

input-frame!clj

(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.
sourceraw docstring

interrupt!clj

(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.
sourceraw docstring

interrupt-turn!clj

(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.
sourceraw docstring

mute!clj

(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.
sourceraw docstring

output-current?clj

(output-current? session epoch)
source

output-finished!clj

(output-finished! session segment-id epoch)
source

owns-running-task?clj

(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.
sourceraw docstring

partial!clj

(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.
sourceraw docstring

playback!clj

(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.
sourceraw docstring

reap!clj

(reap! session)

Close an expired lease even when no client traffic arrives.

Close an expired lease even when no client traffic arrives.
sourceraw docstring

receiptsclj

(receipts session)
source

reserve-output!clj

(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.
sourceraw docstring

snapshotclj

(snapshot session)

Return independent public states, without audio or authentication material.

Return independent public states, without audio or authentication material.
sourceraw docstring

start-utterance!clj

(start-utterance! session generation utterance-id)
source

task-input!clj

(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.
sourceraw docstring

task-state!clj

(task-state! session turn-id status)
source

task-steered!clj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close