Enabling Sound
Add thesound field to your config:
polished and demo both enable click and key effects:
Sound Effects
Effects are triggered by step actions:click effects play on click steps, and key effects play on type and press steps.
Built-in Variants
Each effect type has 4 built-in variants (numbered 1-4):Custom Audio Files
Instead of a variant number, pass a file path to use your own sound:Effects Volume
Control the overall volume of sound effects witheffectsVolume (0 to 1, default 0.5):
Background Audio Track
Add a background music or ambient audio track with thetrack field:
The track is trimmed to the video duration and fades out over the last 2 seconds.
Combining Effects and Track
You can use both effects and a background track together:Full Sound Config Reference
Sound encoding requires ffmpeg. Effects are mixed using ffmpeg’s filter_complex pipeline and
encoded as AAC (MP4) or Opus (WebM). GIF output does not support audio.
Presets with Sound
Two built-in presets include sound effects:
The
minimal and silent presets do not include sound.