Nodes/ComfyUI_IndexTTS/Multi Line Text
ComfyUI Node

Multi Line Text

A proper text box for your IndexTTS scripts

By billwuhao·Created about a year ago·Updated 9 months ago· 537
Multi Line Text
    • text
    multi_line_prompt

    There's no mystery to this one, and that's the point. MultiLinePromptIndex - labeled "Multi Line Text" on the canvas - is a small standalone node whose entire job is holding a block of text and passing it out the other side. You'd reach for it when you're scripting a two-speaker IndexTTS2 dialogue ([S1] line one / [S2] line two) or writing a longer paragraph for a clone to read, and you want a proper resizable text box sitting off to the side instead of typing directly into IndexTTSRun's or IndexTTS2Run's own text field. It's a convenience node, not a functional one - but in a graph that's otherwise all model loaders and sampling knobs, having your actual script live in its own clearly labeled box is worth something.

    How it works

    There isn't a mechanism to explain. It takes a string in, hands the same string out. No parsing, no validation, no formatting checks - if you're writing a dialogue script and forget a [S2] tag, this node won't catch it, because it has no idea what IndexTTS's dialogue syntax even looks like. That job belongs to whichever run node actually reads the text downstream.

    The inputs and outputs that matter

    • multi_line_prompt - a multiline STRING widget. Type or paste your script here.
    • text - the single output, a STRING you wire straight into IndexTTS2Run's or IndexTTSRun's text input.

    That's the whole node. Its usefulness comes from reuse and readability, not logic: keep one script here and wire it to more than one run node if you're comparing settings side by side, or just pull the text out of the run node so the node graph doesn't get visually cluttered with a paragraph of dialogue crammed into a tiny field.

    How to install it

    It ships inside the same pack as the other IndexTTS nodes, so there's nothing separate to do. Install ComfyUI_IndexTTS via ComfyUI Manager, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/billwuhao/ComfyUI_IndexTTS.git
    cd ComfyUI_IndexTTS
    pip install -r requirements.txt
    

    then restart. This node doesn't touch a model or a GPU, so once the pack is installed it works immediately - no downloads, no dependency you specifically need for it.

    Common issues & troubleshooting

    Because it has no logic, there's not much to break here in isolation. The one real gotcha: ComfyUI custom node packs register all of their nodes together when the pack loads. If a heavier node in this same pack fails to import - for instance the transformers version conflict that occasionally hits IndexTTS2Run and IndexTTSRun - this simple text node silently fails to register too and won't show up in the node search, even though the actual problem has nothing to do with it. If you're specifically hunting for "the multiline text node" and can't find it, check your console log for an import error from the pack as a whole before assuming you searched wrong.

    Beyond that: remember this node doesn't enforce dialogue formatting. If your two-speaker script isn't splitting into separate voices the way you expect, the bug is almost certainly a malformed [S1]/[S2] tag in the text itself, not this node dropping characters - it passes your string through unmodified, character for character.

    Category🎤MW/MW-IndexTTS

    Inputs (1)

    NameTypeDefaultDescription
    multi_line_promptSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING