Subtitles · Speech-to-Text(SubtitleGenStage)
The Subtitles · Speech-to-Text node (class SubtitleGenStage, category ComfyTV/Video) turns spoken content in a video or an audio track into text.
Subtitle Gen Stage
Description
The Subtitles · Speech-to-Text node (class SubtitleGenStage, category ComfyTV/Video) turns spoken content in a video or an audio track into text. Rather than performing recognition itself, it delegates the work to a speech-to-text workflow that already exists in your ComfyUI setup: you select that workflow with the workflow widget, and the node passes the supplied media through it and returns the resulting text.
Because the recognition behaviour lives in the selected workflow, the exact model, language handling, and formatting of the result are determined by that workflow rather than by this node. Swap the workflow to change the transcription engine or its settings, and keep this node as the fixed entry and exit point in your graph.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
workflow | COMBO | Yes | Which speech-to-text workflow to run. |
video | COMFYTV_VIDEO | No | Video input whose audio track is transcribed. |
audio | COMFYTV_AUDIO | No | Audio input to transcribe. |
— | — | — | (no additional inputs) |
workflow
Selects the speech-to-text workflow that will be executed. The dropdown is populated from the workflows available to the node, so the correct workflow needs to be installed and present before it appears here. This choice has the largest effect on the output, since it controls the transcription model and any post-processing applied to the text.
video
An optional COMFYTV_VIDEO input. Connect a video when the speech you want transcribed is already inside a clip; the node feeds it to the selected workflow so the spoken audio can be recognised. Leave it unconnected if you are supplying a separate audio track instead.
audio
An optional COMFYTV_AUDIO input for cases where the audio already exists on its own, for example an extracted voice track or a recording that has no video counterpart. Leaving it unconnected is fine when video carries the speech.
Outputs
| Output | Type | Description |
|---|---|---|
| text | COMFYTV_TEXT | The text produced by the selected speech-to-text workflow. |
The single COMFYTV_TEXT output carries the recognised speech, typically a transcript of the clip that can be formatted into subtitles or passed to any downstream node that accepts text.
Usage Notes
- Both
videoandaudioare optional, so the node does not enforce an input for you. A meaningful run requires at least one of them to be connected; connect the one that actually holds the speech you want transcribed. - If your source is a video and you also want to keep the picture, there is no need to extract the audio first: connect the video and let the workflow handle it.
- If you already have a clean audio track, prefer the
audioinput. It avoids any video decoding and keeps the graph easier to reason about. - The node is a thin wrapper around the chosen workflow. When results look wrong (missing speech, wrong language, odd punctuation), check the workflow's own settings first, then the media going into this node.
- To transcribe several clips with different engines, add one Subtitles · Speech-to-Text node per engine and point each at a different
workflow, rather than switching the widget back and forth.
Comments
Sign in with GitHub to join the discussion.