Skip to main content

synced_lrc_source_hash

Function synced_lrc_source_hash 

Source
pub fn synced_lrc_source_hash(clip_id: &str) -> String
Expand description

A stable per-clip source sentinel for the synced .lrc sidecar.

Suno’s forced alignment for a given clip is immutable (the audio and its lyrics are fixed once generated), so the sidecar’s rewrite detection keys on the clip id plus the render SYNCED_LRC_VERSION rather than the fetched body. This lets reconcile skip an unchanged clip WITHOUT a network fetch (the timed body is resolved only when a write is actually planned), while a version bump rewrites every sidecar. It mirrors how the cover sidecars key on their source URL rather than the fetched bytes (“the hash tracks the source”).