LC Load Audio π
Load a track, trim it, preview it β without leaving the graph
- audio
- duration
Every soundtrack workflow starts the same way: get a sound file into ComfyUI. LC Load Audio is that step, and it bundles in the two things you usually need right after loading - a trim and a listen. You pick a file, set a start_time and end_time in seconds, and it hands you the cut as an AUDIO output plus its duration, with an on-node preview so you can hear exactly the slice you're about to work with.
If you've used ComfyUI's core Load Audio, this will feel familiar and then some. Files upload to the same input/ folder and appear in the dropdown; the author's version also scans output/ and temp/, and the file list covers common audio and video containers - handy when the "soundtrack" you want is actually the audio track inside an mp4 or webm you generated elsewhere. Under the hood it tries torchaudio, then soundfile, then a plain WAV reader as a fallback, so it survives environments missing the fancier decoders.
How it works
The dropdown lists files on disk; pick one and the loader decodes it. The real feature is the trim + preview loop:
start_time(seconds) - where the cut begins. Preview and the AUDIO output both start here.end_time(seconds) - where it ends.0means "play through the end of the file."- The
durationoutput reports the length of the cut in seconds - not the source file.
The timeline bit is where people get confused, so read it twice: you get draggable handles on the node's waveform after the first preview run - the node needs to have played the file once before it knows the total length, which is when the handles appear. Click preview, let it load the length, then drag the left/right handles to your cut points.
The inputs and outputs that matter
audio(combo) - file picker; uses the Load audio button to upload.start_time/end_time- the cut, in seconds (defaults0/0, i.e. whole file).- Outputs:
audio(the trimmed AUDIO) andduration(FLOAT, cut length in seconds).
Feed audio onward into EQ, volume, or crop nodes, or straight to LC Save Video's audio input. The duration FLOAT is gold for matching a track to a clip's length - compare it to a video's duration from an LC_AV_PIPE.
How to install it
Part of lonecatone23/ComfyUI_LC_AV_nodes (LC Audio_Video nodes, MIT - companion to the image-side ComfyUI_LC123_nodes; keep the repos separate):
- ComfyUI Manager: search "LC Audio_Video" or
ComfyUI_LC_AV_nodes. - Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/lonecatone23/ComfyUI_LC_AV_nodes, restart ComfyUI (console:[LC AV] total 16 nodes).
No model downloads. Decoding non-WAV files may lean on torchaudio or soundfile already in your environment; plain WAVs work regardless.
Where people get stuck
The two classic snags: forgetting that duration is the cut length (reload the same file with a shorter cut and the number shrinks - that's correct), and expecting the timeline handles to exist before you've previewed once. If the dropdown feels empty, put the file in ComfyUI's input/ folder and refresh the node list. And if you're loading audio from a video file and only get part of it, check your end_time - 0 plays to EOF, but an accidental tiny value cuts almost everything out.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| audio | COMBO | File in Comfy input/ (also checks output/ and temp/). Use the Load audio button to upload. Combo lists audio and common video containers. | |
| start_timeopt | FLOAT | 0.000β10000000 | Start of the cut in seconds. Preview and the AUDIO output both begin here. Drag the left timeline handle after one preview so file length is known. |
| end_timeopt | FLOAT | 0.000β10000000 | End of the cut in seconds. 0 = play through the end of the file. Preview stops here; output duration is end minus start. Drag the right timeline handle. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| audio | AUDIO | β |
| duration | FLOAT | β |