Files
Runware-ComfyUI-Runware/modules/inputAudios.py
T
Sirshendu Ganguly 8d75a6933f Add video background removal and video upscaler nodes
- Add Runware Video Background Removal node with Bria support
- Add Runware Video Upscaler node with Bria support
- Add Runware Vectorize node for image vectorization
- Add Lightricks Provider Settings node
- Add Video Inference Inputs node for structured inputs
- Add Input Audios and Reference Videos nodes
- Update video inference with speech support and reference videos
- Add new video models: OmniHuman 1/1.5, PixVerse LipSync, LTX
- Update Bytedance provider settings with boolean controls
- Add corresponding workflow examples
2025-10-23 22:36:24 -04:00

40 lines
1.4 KiB
Python

from .utils import runwareUtils as rwUtils
from typing import List, Dict, Any
class inputAudios:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {},
"optional": {
"Audio1": ("STRING", {
"tooltip": "MediaUUID for the first audio file from Runware Media Upload node.",
}),
"Audio2": ("STRING", {
"tooltip": "MediaUUID for the second audio file from Runware Media Upload node.",
}),
"Audio3": ("STRING", {
"tooltip": "MediaUUID for the third audio file from Runware Media Upload node.",
}),
"Audio4": ("STRING", {
"tooltip": "MediaUUID for the fourth audio file from Runware Media Upload node.",
}),
}
}
DESCRIPTION = "Configure multiple audio inputs (mediaUUIDs) for video generation with audio synchronization."
FUNCTION = "createInputAudios"
RETURN_TYPES = ("RUNWAREINPUTAUDIOS",)
RETURN_NAMES = ("Input Audios",)
CATEGORY = "Runware"
def createInputAudios(self, **kwargs) -> tuple[List[str]]:
audio_list = []
for i in range(1, 5):
audio_key = f"Audio{i}"
audio_uuid = kwargs.get(audio_key)
if audio_uuid and audio_uuid.strip() != "":
audio_list.append(audio_uuid.strip())
return (audio_list,)