Skip to main content

render_synced_lrc

Function render_synced_lrc 

Source
pub fn render_synced_lrc(
    clip: &Clip,
    lineage: &LineageContext,
    aligned: &AlignedLyrics,
) -> Option<String>
Expand description

Render a synced (timed) .lrc sidecar for clip from Suno’s aligned lyrics, or None when there is nothing to time (an instrumental).

Same header as render_clip_lrc; the body is the line-level form from AlignedLyrics::lrc_body, one [mm:ss.xx] stamp per line. Word-level timing rides the MP3 SYLT frame, not the .lrc. Returns None when there are no timed lines.