Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix EmptyAudio node input types (#11149)

Jukka Seppänen7ac7d69d948e
diff --git a/comfy_extras/nodes_audio.py b/comfy_extras/nodes_audio.py
index 812301fb7..c7916443c 100644
--- a/comfy_extras/nodes_audio.py
+++ b/comfy_extras/nodes_audio.py
@@ -573,12 +573,14 @@ class EmptyAudio(IO.ComfyNode):
step=0.01,
tooltip="Duration of the empty audio clip in seconds",
),
- IO.Float.Input(
+ IO.Int.Input(
"sample_rate",
default=44100,
tooltip="Sample rate of the empty audio clip.",
+ min=1,
+ max=192000,
),
- IO.Float.Input(
+ IO.Int.Input(
"channels",
default=2,
min=1,