Nodes/ComfyUI-Dia/Input Dia Text
ComfyUI Node

Input Dia Text

The boring node that makes Dia's text box tolerable

By Yuan-ManX·Created about a year ago·Updated about a year ago· 6
Input Dia Text
    • text
    textEnter your speech text here...

    Input Dia Text is the least exciting node in ComfyUI-Dia, and you'll still use it on every run. It's a multiline text box that outputs a string. That's it. No transcription, no token counting, no formatting magic. Text goes in, the exact same text comes out, ready to feed Dia TTS.

    So why does it exist? Because Dia TTS's own text_input field is a single-line string in the UI, and writing multi-sentence dialogue - the whole point of a dialogue model - in a one-line box is miserable. Input Dia Text gives you a big, resizeable, labeled multiline field where you can draft your transcript, and it wires straight into the TTS node. It's also handy if you're building workflows where the same text feeds other things, since it's a clean, reusable STRING output.

    Input and output

    • text - the multiline string field, prefilled with "Enter your speech text here..." as a hint. Type your transcript.
    • text (output) - a plain STRING. Wire it to Dia TTS's text_input.

    That's the entire surface area. One of the few nodes in ComfyUI where there is genuinely nothing else to configure.

    Installing

    It ships with the ComfyUI-Dia pack, so it's installed the same way as everything else:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Yuan-ManX/ComfyUI-Dia.git
    cd ComfyUI-Dia
    pip install -r requirements.txt
    

    Or grab it via ComfyUI Manager (search "ComfyUI-Dia"), then restart.

    Common issues

    Since this node is a pure passthrough, it's rarely the source of a problem - which is why issues that look like its fault are usually upstream. A few honest things to keep in mind:

    • The model is English-only. Whatever you type here gets fed to Dia's byte-level tokenizer, which was trained on English. Non-English text comes out as noise or silence, and this node won't warn you. Keep your script in English.
    • What you type is what it reads. No auto-punctuation, no normalization. If you want a pause or a nonverbal sound like a laugh or cough, you write it into the script (Dia handles those in-text).
    • Empty text won't error loudly. If you queue with a blank box, Dia TTS prints a warning to the console and generates silence. Check the terminal, not just the canvas.
    CategoryDia-TTS

    Inputs (1)

    NameTypeDefaultDescription
    textSTRINGEnter your speech text here...

    Outputs (1)

    NameTypeDescription
    textSTRING