Appearance
@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:stSnd → p: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?
optionaldata?: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?
optionalloop?:boolean
Defined in: src/types/animation.ts:82
Loop the sound until the next sound starts (<p:stSnd loop="1">).
Default
ts
falsename?
optionalname?: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?
optionalpath?:string
Defined in: src/types/animation.ts:78
Path to a sound file, read at export time (alternative to data).
stopPrevious?
optionalstopPrevious?: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.