Skip to content

API Interface AudioLineEvent

github-actions[bot] edited this page Dec 1, 2026 · 2 revisions

Interface: AudioLineEvent

Defined in: src/plugins/audio/runtime/localisation/lines.ts:76

Audio.onLine's event (ADR 0354 §5, 0357 §1, 0355 §5).

Properties

duration

duration: number;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:84


event?

event?: string;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:92

The dialogue event that said it (absent for Audio.line).


key

key: string;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:78


language

language: string | null;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:80


marker?

marker?: AudioMarkerEvent;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:88

Phase marker: a Cue marker of the line's file.


phase

phase: "start" | "end" | "marker";

Defined in: src/plugins/audio/runtime/localisation/lines.ts:77


reason?

reason?: "ended" | "stopped" | "interrupted";

Defined in: src/plugins/audio/runtime/localisation/lines.ts:90

Phase end.


speaker

speaker: string | null;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:79


text

text: string | null;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:81


textKey

textKey: string | null;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:83

The subtitle's string key, so a display can re-resolve it on a language change; null when never subtitled.


time

time: number;

Defined in: src/plugins/audio/runtime/localisation/lines.ts:86

Heard time (Audio.time's base).

Clone this wiki locally