pub fn build_dialogue_layer( plans: &[StemPlan], timeline: &IndexMap<i64, i64>, total_ms: i64, cast: &IndexMap<String, Voice>, vintage_scenes: &[String], ) -> Result<(Segment, Vec<Label>)>