Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Blocks
  2. Call Transcript
  3. API and Development

Call Transcript

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
PropTypeDefaultNotes
rowsreadonly CallTranscriptRow[]requiredThe call's lines, oldest first
copyCallTranscriptCopyrequiredEvery string, typed LocalizedMessage
audioClipsreadonly AudioPlayerClip[]The recording; enables the player and the jump action
highlightTermstringCase-insensitive text marked in every row
languagesCallTranscriptLanguage[]The languages in the language menu; with copy.language it draws the language control
languagestringThe language the reader chose, by code; undefined means detection is in charge
detectedLanguagestringThe language the host detected, by code
isDetectingLanguagebooleanThe host is still detecting; the control says so and is disabled
onLanguageChange(language, details) => voidCalled with the chosen code, or undefined for detection
navigationTargetCallTranscriptNavigationTargetControlled request to move to a row; applied when requestId changes
skipIntervalnumberMilliseconds the audio bar's skip buttons move
timeDisplayModeTimeDisplayModeHow the audio bar arranges time
localestringBCP 47 locale the audio bar formats and speaks time in
emptyContentReactNodeReplaces the empty state
liveGuidanceReactNodeA LiveGuidance panel that floats under the rows, above the composer; the rows scroll and fade behind it
composerReactNodeThe chat input, floating under the rows below the live guidance
onNavigate(event: CallTranscriptNavigationEvent) => voidThe reader jumped from a row to its moment in the audio
onReportIssue(row: CallTranscriptRow) => voidAdds the report action to every row
onTimeChange(timeMs: number) => voidThe playhead moved
onPlayingChange(playing: boolean) => voidPlayback started or stopped
classNamestringAppended to the root
idstringRoot id
refRef<HTMLDivElement>Root element
Rows
FieldTypeNotes
idstringStable; the row's key and navigationTarget.messageId
timestampMsnumberAbsolute milliseconds, on the audio's timeline
dateTimestringISO 8601 with an offset
textstringThe words as stored
speakerCallTranscriptSpeakerside is Calltaker or Caller; the host attributes speakers
translationCallTranscriptTranslationWithout it the row draws one bubble
sourceFragmentsreadonly CallTranscriptSourceFragment[]The fragments a merged row is built from
Constants
NameValueNotes
CALL_TRANSCRIPT_ACTIVE_WINDOW_MS2000A row is active within this many milliseconds of the playhead
CALL_TRANSCRIPT_ESTIMATED_ROW_SIZE80Pixels reserved for a row not yet laid out
CALL_TRANSCRIPT_JUMP_HIGHLIGHT_MS2000How long a keyword jump keeps its highlight
Development
Imports are limited to what schema.ts composes (block-composition test). Every consumer callback goes through callConsumerHandler. The contract and its decisions are in CONTRACT.md.
Previous
Call Transcript / Usage
Next
Call Transcript / Accessibility
On this page
Rows
Constants
Development