Skip to content

API Interface AudioCaptionEvent

github-actions[bot] edited this page Nov 28, 2026 · 2 revisions

Interface: AudioCaptionEvent

Defined in: src/plugins/audio/runtime/localisation/captions.ts:16

Audio.onCaption's event.

Properties

duration

duration: number | null;

Defined in: src/plugins/audio/runtime/localisation/captions.ts:26

Seconds; null for a looping or open-ended instance.


key

key: string;

Defined in: src/plugins/audio/runtime/localisation/captions.ts:20


pan

pan: number | null;

Defined in: src/plugins/audio/runtime/localisation/captions.ts:28

-1..1 relative to the listener for a positioned instance, else null.


phase

phase: "start" | "end";

Defined in: src/plugins/audio/runtime/localisation/captions.ts:17


playlist

playlist: string;

Defined in: src/plugins/audio/runtime/localisation/captions.ts:19

The playlist's project path.


text

text: string | null;

Defined in: src/plugins/audio/runtime/localisation/captions.ts:22

In the subtitle language; null when the captions table has no text for the key.


time

time: number;

Defined in: src/plugins/audio/runtime/localisation/captions.ts:24

Heard time (Audio.time's base).

Clone this wiki locally