Skip to content

Events ​

The backend sends 13 events, plus one in development builds only. Each is emitted with app.emit, so every window receives it. Windows subscribe with listen() from src/lib/api.ts. In the browser preview, events travel on a BroadcastChannel named altar-mock.

Live and outputs ​

EventPayloadSent whenListened to by
live:frameFrameAfter every coordinator change, and when outputs open, close or are lostAudience and confidence windows (useLiveFrame in src/output/AudienceApp.tsx)
live:stateLiveStateAfter every coordinator change, and after live_previewThe control window (usePresent.init in src/state/present.ts)
live:ack{role, revision, at}An output window acknowledged a revisionNothing at present. The control window sees acknowledgements through LiveState.audience.ackRevision and .confidence.ackRevision on the next live:state.
output:lost{role, monitor}The display watch found an assigned display missingThe control window: cancels the Enter gesture and shows a 15-second warning

Listening ​

Sent by speech.rs for Listen on this computer. Every payload except speech:download carries the session from SpeechStatus, so events from a stopped session can be ignored.

EventPayloadSent whenListened to by
speech:statusSpeechStatus (see Backend commands)Listening starts, loads, stops or failsuseSpeech (src/state/speech.ts)
speech:transcript{session, utterance, text, final}Text is recognised. Partial results repeat the utterance number with the whole text so far, until final is true.useSpeech, which finds references in the text (src/lib/spokenRefs.ts) for the Heard list
speech:level{session, level, silent}Regularly while listening. level is 0–1 (−60 to 0 dBFS). silent is true after 3 seconds of digital silence (or no audio at all): microphone access blocked, or the input muted.useSpeech: the meter and the No sound warning
speech:download{id, received, total}A few times a second during speech_model_downloaduseSpeech: the download progress

Autopilot ​

Sent by autopilot.rs and autopilot_net.rs.

EventPayloadSent whenListened to by
autopilot:statusAutopilotStatus (see Backend commands)Anything in it changes: phase, connection, modes, pause, listening, track record, network modeuseAutopilot (src/state/autopilot.ts)
autopilot:request{kind: "open", requestId, passage, fromVerse, live} or {kind: "slide", requestId, itemId, index, live}Autopilot asked to open a passage, return to a Word slide, or suggest a slide. Rust has already decided Live (live: true) or Preview.src/state/autopilotBridge.ts, which lays it out and calls live_go with autopilot set to the requestId, or puts it in Preview and calls autopilot_request_done. Unanswered requests expire after 6 seconds.
autopilot:transcript{utterance, text, final}Autopilot heard text. While Autopilot is on, Listen is off, and this feeds the Heard list instead.useSpeech
autopilot:following{itemId, slide, line}Autopilot's position in the live item changed. line is the line being sung, or null.useAutopilot: the "Autopilot hears" line under the Live monitor, and the sung line
autopilot:pairedthe paired computer's namePairing with another computer succeededuseAutopilot: a "Paired with …" toast
autopilot:dev-demo"demo", "demo2" or "demo3"Development builds only, when ALTAR_AUTOPILOT_DEV asks for a demoautopilotBridge.ts: puts the sample sermon Live, then a passage or "Amazing Grace"

Sent by the control window ​

One event comes from the interface, not the backend. The control window emits it with Tauri's emit, and every window receives it.

EventPayloadSent whenListened to by
live:sung{itemId, index, slideId, line, color} or nullThe line being sung changes, while the sung-line setting is on and Autopilot follows a song (src/state/sungLine.ts). Repeated every 3 seconds while a line is coloured, so an output opened mid-song catches up.Every window (src/render/sungLine.ts): the audience screen and the Live monitor colour that line

Frame ​

What an output window draws. Defined in coordinator.rs and mirrored in src/lib/types.ts.

FieldDescription
revisionScene revision
takeCounts every Go Live and slide jump, so an output can tell a re-take of the slide already on screen (a lower third builds on again)
mode"content", "black" or "logo"
clearTextText hidden
hideOverlaysLower thirds hidden
slideThe slide to draw. During a timed transition, this is the breaker slide.
nextSlideThe next slide (for the confidence display). During a transition, the queued item's first slide.
itemId, itemTitle, index, countThe live item and position
overlaysLower-third cues on air
logoThe logo slide
transitionThe running timed transition, if any
mediaMedia transport state, including nonce and restartNonce
countdownEndCountdown end time (epoch ms)
messageStage message

LiveState ​

The full coordinator state sent to the control window.

FieldDescription
revision, takeScene revision and take count, as in Frame
preview, previewRevisionThe Preview target and its own revision counter
liveThe live target
mode, clearText, hideOverlays, overlays, logo, transition, media, countdownEnd, messageAs in Frame
audience, confidenceOutputInfo: {role, session, monitor, monitorName, ackRevision, ackAt} or null

The coordinator also keeps fields that aren't sent: when the operator and Autopilot last acted, whether the last move was Autopilot's, and the Word context. See The live coordinator for how revisions and acknowledgements fit together, and for Autopilot's rules.

Altar Studio by Milton Black. Free and open source.