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 > ComfyUI-ALLinONE-MinimaxH3 > H3 Audio Trim (internal)

ComfyUI Node: H3 Audio Trim (internal)

Class Name

H3AudioTrim

Category
One Node
Author
LeonQ8 (Account age: 857days)
Extension
ComfyUI-ALLinONE-MinimaxH3
Latest Updated
2026-08-19
Github Stars
0.24K

How to Install ComfyUI-ALLinONE-MinimaxH3

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

H3 Audio Trim (internal) Description

Adjust audio input duration to target length within 2-15 seconds, adhering to MiniMax H3 specs for video compatibility.

H3 Audio Trim (internal):

The H3AudioTrim node is designed to adjust the duration of an audio input to a specified target length, ensuring it adheres to the MiniMax H3 reference specifications. This node is particularly useful for maintaining audio clips within the 2 to 15 seconds range, which is crucial for compatibility with certain video processing tasks. By trimming audio to a desired length, it helps prevent issues that arise when audio clips exceed the target video duration, thus ensuring that the audio remains within the expected distribution for packed layouts. This functionality is essential for artists and developers working with audio-visual content, as it simplifies the process of preparing audio clips for integration with video projects.

H3 Audio Trim (internal) Input Parameters:

audio

The audio parameter is the primary input for the node, representing the audio data that you wish to trim. It is expected to be a dictionary containing at least a waveform key, which holds the audio waveform data. This parameter is crucial as it provides the raw audio content that will be processed and trimmed to the desired length.

trim_seconds

The trim_seconds parameter specifies the target duration for the trimmed audio clip. It is a floating-point number with a default value of 5.0 seconds, and it can range from a minimum of 0.5 seconds to a maximum of 15.0 seconds. This parameter allows you to control the length of the audio output, ensuring it fits within the specified duration constraints. Adjusting this value impacts how much of the original audio is retained or discarded.

H3 Audio Trim (internal) Output Parameters:

audio

The audio output parameter returns the trimmed audio data. It is a dictionary similar to the input, containing the waveform key with the adjusted audio waveform. This output is essential as it provides the final audio clip that has been processed to meet the specified duration, ready for use in further audio-visual projects or tasks.

H3 Audio Trim (internal) Usage Tips:

  • Ensure that the input audio dictionary contains a valid waveform key to avoid processing errors.
  • Use the trim_seconds parameter to precisely control the length of your audio clip, keeping it within the 2 to 15 seconds range for optimal compatibility with video projects.
  • Consider the sample rate of your audio input, as it affects the trimming process and the final output duration.

H3 Audio Trim (internal) Common Errors and Solutions:

Missing waveform in audio input

  • Explanation: The input audio dictionary does not contain a waveform key, which is necessary for processing.
  • Solution: Ensure that the audio input includes a valid waveform key with the audio data.

Invalid trim_seconds value

  • Explanation: The trim_seconds parameter is set outside the allowed range of 0.5 to 15.0 seconds.
  • Solution: Adjust the trim_seconds value to be within the specified range to ensure proper trimming.

Non-dictionary audio input

  • Explanation: The audio input is not a dictionary, which is required for the node to function correctly.
  • Solution: Provide the audio input as a dictionary with the necessary keys, including waveform.

H3 Audio Trim (internal) Related Nodes

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

H3 Audio Trim (internal)