The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Remove soundfile dependency. No more torchaudio load or save. (#10210)
comfyanonymouscaf07331ff1b
diff --git a/comfy_extras/nodes_audio.py b/comfy_extras/nodes_audio.pyindex 51c8b9dd9..1c868fcba 100644--- a/comfy_extras/nodes_audio.py+++ b/comfy_extras/nodes_audio.py@@ -360,7 +360,7 @@ class RecordAudio:def load(self, audio):audio_path = folder_paths.get_annotated_filepath(audio)- waveform, sample_rate = torchaudio.load(audio_path)+ waveform, sample_rate = load(audio_path)audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate}return (audio, )diff --git a/requirements.txt b/requirements.txtindex 588c5dcf0..6c28f9478 100644--- a/requirements.txt+++ b/requirements.txt@@ -25,6 +25,5 @@ av>=14.2.0#non essential dependencies:kornia>=0.7.1spandrel-soundfilepydantic~=2.0pydantic-settings~=2.0