ComfyUI > Nodes > TrentNodes > Mouth Shape Preview

ComfyUI Node: Mouth Shape Preview

Class Name

MouthShapePreview

Category
Trent/LipSync
Author
TrentHunter82 (Account age: 0days)
Extension
TrentNodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install TrentNodes

Install this extension via the ComfyUI Manager by searching for TrentNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter TrentNodes 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

Mouth Shape Preview Description

Converts mouth shape sequences to text for verifying phoneme mapping in lip-syncing tasks.

Mouth Shape Preview:

The MouthShapePreview node is designed to provide a textual representation of mouth shape sequences, which are crucial in lip-syncing applications. This node is particularly useful for debugging and verifying the sequence of mouth shapes that correspond to phonemes in a given audio track. By converting the sequence into a readable text format, it allows you to easily visualize and confirm the correct mapping of phonemes to mouth shapes, ensuring that the lip-syncing process is accurate and effective. This node is an essential tool for artists and developers working on animation and video projects where precise lip synchronization is required, as it simplifies the process of checking and adjusting mouth shape sequences.

Mouth Shape Preview Input Parameters:

mouth_sequence

The mouth_sequence parameter is a crucial input that represents the sequence of mouth shapes derived from phoneme processing. This sequence is used to map each frame of a video to a specific mouth shape, ensuring accurate lip-syncing. The parameter expects a sequence of indices corresponding to different mouth shapes, typically ranging from A to H and X. This input allows the node to generate a textual preview of the sequence, making it easier to debug and verify the accuracy of the lip-syncing process.

max_display

The max_display parameter determines the maximum number of frames to display in the textual preview. It allows you to control the length of the sequence shown, which can be particularly useful when dealing with long sequences. The default value is 100, with a minimum of 10 and a maximum of 1000. Adjusting this parameter helps manage the amount of information presented, making it easier to focus on specific sections of the sequence for detailed analysis.

Mouth Shape Preview Output Parameters:

preview

The preview output parameter provides a string representation of the mouth shape sequence. This output is a textual format that lists the mouth shape letters (A-H, X) for each frame, allowing you to easily visualize and verify the sequence. The preview is essential for debugging and ensuring that the mouth shapes align correctly with the phonemes, facilitating accurate lip-syncing in animation and video projects.

Mouth Shape Preview Usage Tips:

  • Use the max_display parameter to limit the number of frames shown in the preview, which can help focus on specific parts of the sequence for detailed analysis.
  • Regularly check the preview output to ensure that the mouth shapes align correctly with the intended phonemes, which is crucial for achieving accurate lip-syncing.

Mouth Shape Preview Common Errors and Solutions:

Sequence Index Out of Range

  • Explanation: This error occurs when the mouth_sequence contains indices that are not within the expected range of mouth shapes (0-8).
  • Solution: Verify that the mouth_sequence only includes valid indices corresponding to the available mouth shapes.

Invalid Max Display Value

  • Explanation: This error arises when the max_display parameter is set to a value outside the allowed range (10-1000).
  • Solution: Ensure that the max_display value is within the specified range to avoid this error. Adjust the value to suit your needs while staying within the limits.

Mouth Shape Preview Related Nodes

Go back to the extension to check out more related nodes.
TrentNodes
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 Models, enabling artists to harness the latest AI tools to create incredible art.

Mouth Shape Preview