ass_karaoke_split
Splits a karaoke line into syllables using marker, character, word, or regex modes to enable precise timing and editing in ASS subtitles.
Instructions
Split a karaoke line into syllables.
Arguments
text / index + doc_id
Either the raw override text, or a 0-based line index in an open
document. "text_source" in the result says which was used.
mode "marker" (split on marker, the usual | workflow),
"char" (one visible character per syllable, combining marks
stay attached to their base character), "word" (whitespace)
or "regex" (split on pattern).
marker the marker string for mode="marker". Default "|".
pattern regex for mode="regex" (a capture-free split pattern).
keep_bom keep a leading U+FEFF in the text (default: strip it).
Returns
{"text_source": "text"|"line", "index", "doc_id", "mode", "marker", "pattern", "had_bom", "plain_text", "expected_visible_text", "reconstruction": {"ok", "reconstructed", "expected"}, "syllable_count", "syllables": [{"index", "raw", "text", "prefix", "prefix_tags", "leading_whitespace", "trailing_whitespace", "char_count"}]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | marker | |
| text | No | ||
| index | No | ||
| doc_id | No | ||
| marker | No | | | |
| pattern | No | ||
| keep_bom | No |