Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / TransitionSoundProps

Interface: TransitionSoundProps

Defined in: core-interfaces.ts:3297

A transition sound (p:sndAc). Either a start sound — an embedded WAV played when the transition runs (p:stSndp:snd), optionally looped — or the stop-previous form (p:endSnd) that silences a still-playing transition sound. Built-in PowerPoint sounds embed identically to a custom file, so there is no separate built-in path: supply the WAV bytes via data or path. See docs/animations-and-transitions.md.

Properties

data?

optional data?: string

Defined in: core-interfaces.ts:3299

Embedded sound bytes as a base64 data URI (e.g. data:audio/wav;base64,…) or raw base64.


loop?

optional loop?: boolean

Defined in: core-interfaces.ts:3305

Loop the sound until the next sound starts (<p:stSnd loop="1">).

Default

ts
false

name?

optional name?: string

Defined in: core-interfaces.ts:3303

Display name emitted on <p:snd @name> (e.g. ding.wav); defaults to the file name.


path?

optional path?: string

Defined in: core-interfaces.ts:3301

Path to a sound file, read at export time (alternative to data).


stopPrevious?

optional stopPrevious?: boolean

Defined in: core-interfaces.ts:3307

Emit the stop-previous form (<p:endSnd/>) instead of a start sound. Mutually exclusive with data/path.