Load Audio (Upload)π₯π ₯π π ’
VHS_LoadAudioUploadLoad Audio (Upload) π₯π ₯π π ’<div style="font-size: 0.8em"><div id=VHS_shortdesc>Loads an audio file from the input directory</div></div><div style="font-size: 0.8em">Very similar in functionality to the built-in LoadAudio. It was originally added before VHS swapped to use Comfy's internal AUDIO format, but provides the additional options for start time and duration</div><div style="font-size: 0.8em"><div vhs_title="Outputs" style="display: flex; font-size: 0.8em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">Outputs: <div vhs_title="audio" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">audio: The loaded audio</div></div></div></div><div vhs_title="Widgets" style="display: flex; font-size: 0.8em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">Widgets: <div vhs_title="audio" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">audio: The audio file to be loaded.</div></div><div vhs_title="start_time" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">start_time: An offset from the start of the sound file that the audio should start from</div></div><div vhs_title="duration" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">duration: A maximum limit for the audio. Disabled if 0</div></div><div vhs_title="choose audio to upload" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">choose audio to upload: An upload button is provided to upload an audio file to the input folder</div></div></div></div></div>
Example
{
"class_type": "VHS_LoadAudioUpload",
"inputs": {
"audio": "https://example.com/input-audio.wav"
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
audio | ENUM0 options | required | - | - |
start_time | FLOAT | optional | min: 0, max: 10000000, step: 0.01 | 0 |
duration | FLOAT | optional | min: 0, max: 10000000, step: 0.01 | 0 |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | audio | AUDIO | No | ["{node_id}", 0] |
1 | duration | FLOAT | No | ["{node_id}", 1] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this VHS_LoadAudioUpload node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
audio (AUDIO):["5", 0]duration (FLOAT):["5", 1]