ass_karaoke_shift
Shift every karaoke duration in selected lines by a millisecond amount; negative values trim, and optionally move line Start/End by the same offset. Durations never drop below zero.
Instructions
Shift every karaoke duration by shift_ms (negative trims, floor 0).
shift_times=True also moves the line's own Start/End by the same
amount. Returns {"doc_id", "shift_ms", "shift_times", "lines": [{"index", "old_text", "text", "syllables": [{"index", "text", "kind", "before_cs", "after_cs"}], "duration_sum_cs", "line_duration_cs", "discrepancy_cs", "matches_line_duration", "message", "start_ms", "end_ms"}], "lines_changed": n, "clamped_cs": n} — durations never go below zero, so
the sum is reported rather than stretched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| shift_ms | Yes | ||
| selection | Yes | ||
| shift_times | No |