ass_karaoke_auto_timings
Propose karaoke timings for one ASS subtitle line from its duration, splitting by syllable, character, or word. Optionally apply the generated \k tags to the line.
Instructions
Propose karaoke timings for one line from its duration (no write by default).
Arguments
index the line to analyse (0-based).
mode "syllable" (split on marker), "char", "word" or
"regex" (needs pattern).
weights "char_class" (default), "char" or "even".
start_ms / end_ms
span to distribute; both default to the line's own times.
apply False (default) only proposes the timings and the text that
would be written. True writes the generated \k tags to
the line (after workspace.snapshot). apply is a documented
extension of the required signature: the default is a pure read.
kind tag kind to generate when applying.
Returns
{"doc_id", "index", "mode", "split_mode", "weights", "kind", "applied", "start_ms", "end_ms", "span_ms", "span_cs", "syllables": [{"index", "text", "weight", "duration_cs", "duration_ms"}], "durations_cs", "duration_sum_cs", "line_duration_cs", "discrepancy_cs", "matches_line_duration", "message", "proposed_text", "old_text"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | k | |
| mode | No | syllable | |
| apply | No | ||
| index | Yes | ||
| doc_id | No | ||
| end_ms | No | ||
| marker | No | | | |
| pattern | No | ||
| weights | No | char_class | |
| start_ms | No |