From d27fafbb003badd19246b05049dd0caca483a2a1 Mon Sep 17 00:00:00 2001 From: Chengwei Ouyang Date: Thu, 22 May 2025 14:54:40 +0800 Subject: [PATCH] fix shellagent save audio for new version comfyui --- comfy-nodes/input_audio.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/comfy-nodes/input_audio.py b/comfy-nodes/input_audio.py index df02294..7e5997f 100644 --- a/comfy-nodes/input_audio.py +++ b/comfy-nodes/input_audio.py @@ -169,6 +169,11 @@ class ShellAgentSaveAudios(SaveAudio): results = super().save_audio(audio, filename_prefix, prompt, extra_pnginfo) results["shellagent_kwargs"] = extra_kwargs return results + + def save_flac(self, audio, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None, **extra_kwargs): + results = super().save_flac(audio, filename_prefix, "flac", prompt, extra_pnginfo) + results["shellagent_kwargs"] = extra_kwargs + return results class ShellAgentSaveAudio(ShellAgentSaveAudios):