Sound is opt-in in Tuireel. You can add click and keypress effects that sync to your scripted actions, play a background audio track, or use a preset that includes sound.Documentation Index
Fetch the complete documentation index at: https://tuireel.micr.dev/llms.txt
Use this file to discover all available pages before exploring further.
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:
| Field | Type | Default | Description |
|---|---|---|---|
track | string | - | Path to audio file (relative to working directory) |
trackVolume | number | 0.3 | Track volume, 0 to 1 |
Combining Effects and Track
You can use both effects and a background track together:Full Sound Config Reference
| Field | Type | Default | Description |
|---|---|---|---|
effects.click | 1-4 or string | - | Click effect variant or custom audio path |
effects.key | 1-4 or string | - | Key effect variant or custom audio path |
effectsVolume | number | 0.5 | Effects volume (0-1) |
track | string | - | Background audio file path |
trackVolume | number | 0.3 | Track volume (0-1) |
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:| Preset | Effects |
|---|---|
polished | click variant 1, key variant 1 |
demo | click variant 1, key variant 1 |
minimal and silent presets do not include sound.