Nodes/Audio Batch/Audio Channel Conv and Resampler
ComfyUI Node

Audio Channel Conv and Resampler

Applies channel conversion and resampling to audio.

By set-soft·Created about a year ago·Updated about a year ago· 7
Audio Channel Conv and Resampler
  • audio
  • audio_out
channel_conversionkeep
target_sample_rate0
downmix_methodstandard_gain
n_fft2048
hop_length512
Categoryaudio/conversion

Inputs (6)

NameTypeDefaultDescription
audioAUDIO
channel_conversionCOMBOkeepkeep: maintain same channels, stereo_to_mono/force_mono: 1 channel, mono_to_stereo/force_stereo: 2 channels
target_sample_rateINT00–192000Output sample rate, 0 is same as input
downmix_methodCOMBOstandard_gainMethod for stereo/multi-channel to mono conversion: - average: Simple average ((L+R)/2). Can reduce volume. - standard_gain: Sums channels with -3 dB gain (0.707). Better preserves perceived loudness.- spectral: Averages frequency magnitudes to prevent phase cancellation.
n_fftoptINT2048256–8192FFT size for spectral downmixing. Higher values give better frequency resolution but worse time resolution.
hop_lengthoptINT51264–4096Hop length for STFT. Typically n_fft / 4. Controls time resolution.

Outputs (1)

NameTypeDescription
audio_outAUDIO