MCPcopy Create free account
hub / github.com/AIFSH/ComfyUI-WhisperX / LoadAudioPath

Class LoadAudioPath

nodes.py:166–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 return (srt_path,srt_path)
165
166class LoadAudioPath:
167 @classmethod
168 def INPUT_TYPES(s):
169 files = [f for f in os.listdir(input_path) if os.path.isfile(os.path.join(input_path, f)) and f.split('.')[-1] in ["wav", "mp3","WAV","flac","m4a", "mp4"]]
170 return {"required":
171 {"audio": (sorted(files),)},
172 }
173
174 CATEGORY = "AIFSH_WhisperX"
175
176 RETURN_TYPES = ("AUDIOPATH",)
177 FUNCTION = "load_audio"
178
179 def load_audio(self, audio):
180 audio_path = folder_paths.get_annotated_filepath(audio)
181 return (audio_path,)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected