From ce920af76bef5d03e6b89fc02025e02b63aaf171 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 5 Jan 2026 00:41:13 +0200 Subject: [PATCH] Update nodes_wan.py --- comfy_extras/nodes_wan.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/comfy_extras/nodes_wan.py b/comfy_extras/nodes_wan.py index 2a8bbdeb2..90deb0077 100644 --- a/comfy_extras/nodes_wan.py +++ b/comfy_extras/nodes_wan.py @@ -1340,6 +1340,12 @@ class WanInfiniteTalkToVideo(io.ComfyNode): if previous_frames is not None and previous_frames.shape[0] < motion_frame_count: raise ValueError("Not enough previous frames provided.") + + if mode["mode"] == "two_speakers": + audio_encoder_output_2 = mode["audio_encoder_output_2"] + mask_1 = mode["mask_1"] + mask_2 = mode["mask_2"] + if audio_encoder_output_2 is not None: if mask_1 is None or mask_2 is None: raise ValueError("Masks must be provided if two audio encoder outputs are used.")