Skip to content

Commit caf0733

Browse files
Remove soundfile dependency. No more torchaudio load or save. (#10210)
1 parent b1fa192 commit caf0733

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

comfy_extras/nodes_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def INPUT_TYPES(s):
360360
def load(self, audio):
361361
audio_path = folder_paths.get_annotated_filepath(audio)
362362

363-
waveform, sample_rate = torchaudio.load(audio_path)
363+
waveform, sample_rate = load(audio_path)
364364
audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate}
365365
return (audio, )
366366

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ av>=14.2.0
2525
#non essential dependencies:
2626
kornia>=0.7.1
2727
spandrel
28-
soundfile
2928
pydantic~=2.0
3029
pydantic-settings~=2.0

0 commit comments

Comments
 (0)