AIIA Subtitle Preview
Check Subtitles Against the Audio Before You Commit to Rendering
- audio
Subtitles are easy to generate and annoying to trust. Timestamps drift, a line lands a beat late, and you only find out after burning them into a final render. AIIA Subtitle Preview is the cheap safety net for that: it's an output node that plays your audio in a web player and scrolls the subtitle text in sync, so you can eyeball whether the timing actually holds before committing.
How it works
Two inputs, both of them forgiving:
subtitle_content- the subtitle text, normally wired from AIIA Subtitle Gen'ssrt_contentorass_content.audio(optional) - the matching audio track.
When you run it, the node hands the subtitle text to ComfyUI's UI and, if audio was connected, writes the waveform to a temp file and sends it along too. The result is an interactive web player that renders the subtitles against the audio timeline - with ASS styling attempted (colors, outlines) so what you see is closer to the final burn-in than a plain-text dump would be.
Because it's a pure UI/preview node, it has no outputs and returns nothing to the graph - it's a terminal node you add purely to look at the result. If you don't connect audio, you still get the subtitle content displayed, which is handy for a quick text check; the sync check is what the audio is for.
Why you'd use it
It's the verification step in the AIIA subtitle pipeline: Subtitle Gen → Preview. Render your SRT, feed it and the audio in, and scrub through a few handoffs. If a line appears late or a speaker change is mistimed, you catch it here and adjust calibration_info or gap_duration upstream - rather than discovering it after a ten-minute encode. It also beats gluing two preview nodes together when you just want to sanity-check that the ASS output doesn't have broken styling.
The inputs that matter
subtitle_content- wire from the Gen node. Both SRT and ASS text are accepted.audio- connect it for the sync playback. Leave it out and you get a static subtitle view, which is occasionally exactly what you want.
One honest caveat: it's a preview renderer, not a video encoder. It won't tell you how the subtitles look composited on your footage - that's a burn-in step downstream. What it does well is catch timing and text errors early, which is most of the battle.
Install
Standard pack install: havvk/ComfyUI_AIIA via ComfyUI Manager or git clone https://github.com/havvk/ComfyUI_AIIA.git into custom_nodes/, restart. No models, no dependencies - pure UI. If the audio player doesn't appear, restart the frontend; the temp-audio path is handled at runtime.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| subtitle_content | STRING | — | |
| audioopt | AUDIO | — |
Outputs (0)
No outputs