Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / TransitionSoundProps

Interface: TransitionSoundProps

Defined in: src/types/animation.ts:74

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: src/types/animation.ts:76

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


loop?

optional loop?: boolean

Defined in: src/types/animation.ts:82

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

Default

ts
false

name?

optional name?: string

Defined in: src/types/animation.ts:80

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


path?

optional path?: string

Defined in: src/types/animation.ts:78

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


stopPrevious?

optional stopPrevious?: boolean

Defined in: src/types/animation.ts:84

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