ComfyUI > Nodes > MW-ComfyUI_MegaTTS3 > Multi Line Prompt

ComfyUI Node: Multi Line Prompt

Class Name

MultiLinePromptMG

Category
🎤MW/MW-MegaTTS3
Author
mw (Account age: 2258days)
Extension
MW-ComfyUI_MegaTTS3
Latest Updated
2025-05-03
Github Stars
0.08K

How to Install MW-ComfyUI_MegaTTS3

Install this extension via the ComfyUI Manager by searching for MW-ComfyUI_MegaTTS3
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter MW-ComfyUI_MegaTTS3 in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Multi Line Prompt Description

Facilitates handling multi-line text prompts within MegaTTS3 framework for streamlined input processing.

Multi Line Prompt:

The MultiLinePromptMG node is designed to facilitate the handling of multi-line text prompts within the MegaTTS3 framework. This node is particularly useful for applications that require the processing of text inputs that span multiple lines, such as scripts or dialogues. By providing a structured way to input and manage these multi-line prompts, the node ensures that the text is properly formatted and ready for further processing or conversion into audio. The primary goal of this node is to streamline the input process for complex text data, making it easier for you to work with extensive text inputs without worrying about formatting issues.

Multi Line Prompt Input Parameters:

multi_line_prompt

The multi_line_prompt parameter is a string input that allows you to enter text spanning multiple lines. This parameter is crucial for feeding complex text data into the node, ensuring that each line is preserved and processed correctly. The function of this parameter is to capture and maintain the integrity of the text input, which is essential for applications like text-to-speech where the structure of the text can impact the output. There are no explicit minimum or maximum values for this parameter, but it is designed to handle extensive text inputs efficiently. The default value is an empty string, allowing you to start with a blank slate and input your desired text.

Multi Line Prompt Output Parameters:

STRING

The output of the MultiLinePromptMG node is a single string, which is the processed version of the input multi_line_prompt. This output is important because it represents the cleaned and formatted text that is ready for subsequent processing steps, such as conversion into speech. The output ensures that any extraneous whitespace or formatting issues are resolved, providing a streamlined text input for further use in the MegaTTS3 system.

Multi Line Prompt Usage Tips:

  • Ensure that your multi-line text input is well-structured and free of unnecessary whitespace to optimize the node's performance.
  • Use this node when dealing with scripts or dialogues that require precise text formatting to maintain the intended structure and flow.

Multi Line Prompt Common Errors and Solutions:

"Prompt must be less than MAX_PROMPT_LENGTH_IMAGE_GEN characters"

  • Explanation: This error occurs when the input text exceeds the maximum allowed length for processing.
  • Solution: Break down your input text into smaller segments and process them individually to stay within the character limit.

"latent_file not found"

  • Explanation: This error indicates that a required latent file for processing is missing.
  • Solution: Ensure that the latent file is correctly specified and accessible in the expected directory before running the node.

Multi Line Prompt Related Nodes

Go back to the extension to check out more related nodes.
MW-ComfyUI_MegaTTS3
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.