Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > MaskVidExperiments > MVEx Audio Mask To Latent

ComfyUI Node: MVEx Audio Mask To Latent

Class Name

MVEx_AudioMaskToLatent

Category
MaskVidExperiments
Author
drozbay (Account age: 3838days)
Extension
MaskVidExperiments
Latest Updated
2026-08-20
Github Stars
0.09K

How to Install MaskVidExperiments

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

MVEx Audio Mask To Latent Description

Selectively regenerate audio time ranges within latent audio or joint AV representation while preserving rest, useful for targeted audio editing.

MVEx Audio Mask To Latent:

The MVEx_AudioMaskToLatent node is designed to selectively regenerate specific audio time ranges within a latent audio or joint audio-video (AV) representation while preserving the rest of the audio content. This node is particularly useful for artists and creators who wish to modify or enhance certain segments of an audio track without affecting the entire piece. By utilizing time ranges, masks, or start and end times, this node provides flexibility in determining which parts of the audio are regenerated. When applied to a joint AV latent without an existing noise mask, the video component remains unchanged, allowing for precise audio modifications. This node is essential for tasks that require targeted audio editing, offering a streamlined approach to audio manipulation within a latent space.

MVEx Audio Mask To Latent Input Parameters:

latent

This parameter accepts either a joint AV latent or an audio latent that you wish to mask. It serves as the primary input for the node, determining the audio content that will be processed. The latent input is crucial as it contains the audio data that will be selectively regenerated based on the specified parameters.

vae

The VAE (Variational Autoencoder) input is optional and is used to encode the audio latent. It is particularly necessary when the timing is set to auto, ensuring that the audio is correctly processed in conjunction with the latent input. This parameter is important for maintaining the integrity of the audio encoding, especially in joint AV latents.

start_time

This parameter specifies the start of the audio range to be regenerated, measured in seconds. It is used when neither time_ranges nor mask is provided. The default value is 0.0, with a minimum of 0.0 and a maximum of 10000.0. This parameter allows you to define the beginning of the audio segment that will undergo regeneration.

end_time

Similar to start_time, this parameter defines the end of the audio range to be regenerated, measured in seconds. It is also used when time_ranges or mask is not set. The default value is 1.0, with a minimum of 0.0 and a maximum of 10000.0. It is essential to ensure that end_time is greater than start_time to avoid errors.

mask

The mask input is optional and provides a visual representation of the audio timeline, where time runs along the width axis. In this mask, white areas indicate regions to regenerate, while black areas indicate regions to keep. This parameter offers a more intuitive way to specify which parts of the audio should be modified.

time_ranges

This optional parameter allows you to specify comma-separated time ranges in seconds, forming in-out pairs (e.g., 0,1.5,3,4.25). When set, it takes priority over the mask and start/end times. This parameter provides precise control over which audio segments are regenerated, offering flexibility in audio editing.

MVEx Audio Mask To Latent Output Parameters:

NodeOutput

The output of this node is a modified latent that reflects the specified audio modifications. It contains the regenerated audio segments as defined by the input parameters, while the rest of the audio remains unchanged. This output is crucial for further processing or playback, as it represents the final audio result after applying the desired modifications.

MVEx Audio Mask To Latent Usage Tips:

  • To achieve precise audio modifications, use the time_ranges parameter to define exact segments for regeneration, ensuring that you have control over the specific parts of the audio you wish to alter.
  • When working with joint AV latents, apply a noise mask to the video component before using this node if you want to control video modifications alongside audio changes.

MVEx Audio Mask To Latent Common Errors and Solutions:

"end_time must be after start_time"

  • Explanation: This error occurs when the end_time parameter is set to a value that is not greater than the start_time.
  • Solution: Ensure that the end_time is always set to a value greater than the start_time to define a valid audio range for regeneration.

"connect a joint AV latent or an audio latent"

  • Explanation: This error indicates that the input provided is neither a joint AV latent nor an audio latent, which are required for the node to function.
  • Solution: Verify that the input to the node is either a joint AV latent or an audio latent to ensure compatibility with the node's processing requirements.

MVEx Audio Mask To Latent Related Nodes

Go back to the extension to check out more related nodes.
MaskVidExperiments
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.

MVEx Audio Mask To Latent