ass_karaoke_remove
Strip \k, \kf, \ko, and \kt karaoke tags from ASS subtitle lines, with options to drop | syllable markers and keep or retighten line start and end times.
Instructions
Remove \k/\kf/\ko/\kt tags (karaoke.remove_karaoke).
drop_markers=True also removes the | syllable markers — they are kept
by default because they are the source data :func:ass_karaoke_generate
re-splits on.
keep_times controls the line's own times. True leaves Start/
End exactly as they were; False (default) retightens the line's
End to Start + karaoke extent when the karaoke extent is shorter
than the line (the trailing silence the karaoke timing defined is dropped).
Returns {"doc_id", "drop_markers", "keep_times", "lines": [{"index", "old_text", "text", "removed_tags": n, "old_start_ms", "old_end_ms", "start_ms", "end_ms", "times_retightened"}], "lines_changed": n, "tags_removed": n}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| selection | Yes | ||
| keep_times | No | ||
| drop_markers | No |