Nodes/ComfyUI_RH_API/πŸ“€ RH Upload Audio
ComfyUI Node

πŸ“€ RH Upload Audio

Get your audio onto RunningHub β€” RH Upload Audio

By xuchenxu168Β·Created 9 months agoΒ·Updated 9 months agoΒ· 7
πŸ“€ RH Upload Audio
  • config
  • previous_params
  • filename
  • params
β—„audio_pathβ–Ί
β—„node_idβ–Ί
β—„field_nameaudioβ–Ί
β—„custom_field_nameβ–Ί

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, .flac or whatever audio file you want to send. The node checks os.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.

CategoryKen-Chen/RH-API

Inputs (6)

NameTypeDefaultDescription
configRH_CONFIGβ€”
audio_pathSTRINGβ€”
node_idoptSTRINGβ€”
field_nameoptCOMBOaudio4 options: audio, init_audio, reference, custom
custom_field_nameoptSTRINGβ€”
previous_paramsoptRH_PARAMSβ€”

Outputs (2)

NameTypeDescription
filenameSTRINGβ€”
paramsRH_PARAMSβ€”