Nodes/ComfyUI Telegram Suite/Any To AUDIO 🔽
ComfyUI Node

Any To AUDIO 🔽

The type adapter for audio-signal ordering

By SwissCore92·Created about a year ago·Updated 2 months ago· 9
Any To AUDIO 🔽
  • any
  • AUDIO

Any To AUDIO is one of the Telegram Suite's type converters: take any input, declare the output AUDIO, pass the value through untouched. No resampling, no encoding, no waveform math. It exists solely to satisfy ComfyUI's strict type checking, and it behaves exactly like its nineteen siblings.

Why it exists

The suite's trigger mechanism - forcing a node to execute at a specific point by routing a dependency through it - passes signals through wildcard-typed (*) ports (full explanation in the Send Chat Action article). A trigger output comes out as *, and ComfyUI won't let a wildcard wire into an AUDIO port, like the one on this pack's Send Audio node or any TTS node that outputs audio. Any To AUDIO re-declares the signal so the connection works. It's the "convert back to the original type after the trigger output" step from the README, for the case where that type is audio.

The one case that actually makes sense

Audio is interesting here because this pack's own Send Audio node consumes AUDIO and carries a trigger port, and the README's trigger example is literally a TTS workflow: Send Chat Action fires recording_voice before the audio is generated, then the finished audio is sent. If you're building the same kind of pipeline and want the audio itself to carry an ordering dependency, Any To AUDIO is the bridge that gets a signal back to a typed AUDIO port after a trigger. More common in practice: a TTS pack's AUDIO output needs to travel through some wildcard-typed node (this suite's triggers, or any other pack's "any" port) and come out the other side still usable as audio.

The trap

Pure cast means no verification. Feed it a non-audio value and the downstream node will fail later with an attribute or shape error, not here. If that happens, audit what you actually fed in.

Input and output

One any input, one AUDIO output, no settings.

Install

Shared pack install:

cd ComfyUI/custom_nodes
git clone https://github.com/SwissCore92/comfyui-telegram-suite.git
cd comfyui-telegram-suite
pip install -r requirements.txt

Or "ComfyUI Telegram Suite" from ComfyUI Manager. No extra downloads - converters ship in the pack. Note the suite as a whole needs ffmpeg for its audio send nodes, but this converter specifically is just a type relabel and needs nothing beyond the pack itself.

CategoryTelegram Suite 🔽/converters

Inputs (1)

NameTypeDefaultDescription
any*

Outputs (1)

NameTypeDescription
AUDIOAUDIO