cues.json it is a spoken phrase to find in a section’s
narration. In the page it is an id that reveals elements or runs a handler. The beats
stage joins the two by turning each phrase into seconds after the section starts.
cues.json
Keys
Every section key must exist in
decktalk.toml, and a section may have no cues at all.
A page section with no cues plays its autoplay timing from the page.
Matching rules
- The phrase is split into words. Case is ignored unless
case_sensitiveis true, and punctuation is ignored on both sides. - The section’s words are scanned in order for a run that matches the phrase word for word. The
occurrencekey picks which run. - The cue time is the start of the first word of that run, plus
offset. $startis zero.$endis the end of the last spoken word in the section.
2x, and the cue says “two x”. A number written as
digits in the script comes back from ElevenLabs in the form it chose to say, so digits in
a cue phrase are fragile.
Unresolved cues
Thebeats stage prints phrase not found for a cue it cannot match and exits with
status 1. The build command stops at that point, because a step whose only cues are
unresolved would never appear on screen. Fix the phrase, or pass --allow-unresolved to
build without that cue. The page then ignores the missing cue, and an element waiting for
it reveals at its data-at time after its step mounts.
A silent build estimates word times from the word count. Cues resolve, but their times
are placeholders, and the report says so.
Cue ownership in the page
A cue belongs to one step, and the step mounts at its earliest cue. The runtime resolves the owner in this order.- The step with the same id as the cue.
- The step whose
cueslist or object names the cue. - The step whose id is the longest prefix of the cue id. The cue
4.2b1belongs to step4.2, and9abelongs to9.
Sound on cues
A sound effect in[[mix.sfx]] names a section and a cue, and DeckTalk places the
effect where that cue resolved. An underscore marker in the markers file uses the same
on, occurrence, case_sensitive, and offset keys to swell or mute the music at a
phrase. Sound has both formats.