Skip to content

AudioPlayOptions

Defined in: audio/src/types.ts:29

optional channel?: string

Defined in: audio/src/types.ts:30


optional loop?: boolean

Defined in: audio/src/types.ts:32


optional onEnd?: () => void

Defined in: audio/src/types.ts:40

Called once when the sound finishes on its own (its end event). NOT called when you stop() it, and never for a looping sound (it has no end). The “tell me when this clip is done” seam — e.g. gating dialogue auto-advance on a voice clip.

void


optional speed?: number

Defined in: audio/src/types.ts:33


optional volume?: number

Defined in: audio/src/types.ts:31

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/audio.md.