ComfyUI Node
PSN Audio Loader (Validation)
Validates audio file parameters and computes metadata for a standardized audio load. This node does NOT perform file I/O. It validates inputs and returns a payload that a backend loader (using soundfile/librosa) can use to perform the actual load. Outputs: - audio_payload (STRING): JSON string with validated parameters for the backend. - duration (FLOAT): Estimated duration in seconds (requires by
PSN Audio Loader (Validation)
- audio_payload
- duration
- valid
- reason
◄file_path►
◄sample_rate44100►
◄channels1►
◄byte_count0►
◄bits_per_sample16►
CategoryParametric/Audio
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| file_path | STRING | File path. | |
| sample_rate | INT | 441001–192000 | Sample rate. From 1 to 192000. Default 44100. |
| channels | INT | 11–2 | Channels. From 1 to 2. Default 1. |
| byte_countopt | INT | 00–1000000000000 | Byte count. From 0 to 1e+12. Default 0. |
| bits_per_sampleopt | INT | 168–32 | Bits per sample. From 8 to 32. Default 16. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| audio_payload | STRING | — |
| duration | FLOAT | — |
| valid | BOOLEAN | — |
| reason | STRING | — |