π€ RH Upload Audio
Get your audio onto RunningHub β RH Upload Audio
- config
- previous_params
- filename
- params
RH Upload Audio uploads a local audio file to RunningHub so a cloud workflow - voice cloning, music generation, audio-to-video - can consume it. In the ComfyUI_RH_API family this is the plain-Jane version: it takes a path to an audio file on disk, not an audio tensor. That's the one thing to internalize before you reach for it.
Inputs
config- from RH Config. Required.audio_path- a filesystem path to a.wav,.mp3,.flacor whatever audio file you want to send. The node checksos.path.exists; give it garbage and it politely skips the upload and returns empty strings instead of crashing.
The optional quartet is the pack standard: node_id (target node inside the RunningHub workflow), field_name (audio, init_audio, reference, custom), custom_field_name (when you pick custom), and previous_params for chaining into a params list.
How to actually get a path into it
This is where the two-node dance comes in. A raw audio_path means you need the file's full path, which is annoying to type. That's exactly what RH Load Audio Path exists for: it gives you a proper file-picker button in the node UI, uploads your chosen file into ComfyUI's input folder through the browser, and hands you a clean audio_path string. Wire that straight into this node's audio_path input and you've got a picker-to-cloud flow that's actually pleasant.
Outputs and behavior
Two outputs: filename (the server-assigned name from RunningHub) and params (the chain, with an audio parameter entry appended if you set node_id). Feed params into RH Execute.
One deliberate quirk: the upload is lazy about failure. If audio_path is empty or the file doesn't exist, it returns ("", previous_params) - empty filename, params passed through - rather than raising. That's friendly for graphs that might not have audio every run, but it means a typo'd path silently uploads nothing. Watch the console for the "No valid audio path provided" message.
The actual upload goes to /task/openapi/upload with fileType: audio and the same retry/backoff as the other uploaders. Install is pack-wide: ComfyUI Manager (search ComfyUI_RH_API) or git clone https://github.com/xuchenxu168/ComfyUI_RH_API.git into custom_nodes + pip install -r requirements.txt, restart.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| config | RH_CONFIG | β | |
| audio_path | STRING | β | |
| node_idopt | STRING | β | |
| field_nameopt | COMBO | audio | 4 options: audio, init_audio, reference, custom |
| custom_field_nameopt | STRING | β | |
| previous_paramsopt | RH_PARAMS | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| filename | STRING | β |
| params | RH_PARAMS | β |