mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-09 05:54:24 +08:00
Remove soundfile dependency. No more torchaudio load or save. (#10210)
This commit is contained in:
parent
b1fa1922df
commit
caf07331ff
@ -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, )
|
||||
|
||||
|
||||
@ -25,6 +25,5 @@ av>=14.2.0
|
||||
#non essential dependencies:
|
||||
kornia>=0.7.1
|
||||
spandrel
|
||||
soundfile
|
||||
pydantic~=2.0
|
||||
pydantic-settings~=2.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user