ComfyUI > Nodes > ComfyUI-UniversalToolkit > Audio Crop Process (UTK)

ComfyUI Node: Audio Crop Process (UTK)

Class Name

AudioCropProcessUTK

Category
UniversalToolkit/Audio
Author
whmc76 (Account age: 1110days)
Extension
ComfyUI-UniversalToolkit
Latest Updated
2026-03-16
Github Stars
0.07K

How to Install ComfyUI-UniversalToolkit

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

Audio Crop Process (UTK) Description

AudioCropProcessUTK node streamlines audio cropping, gain adjustment, resampling, and stereo conversion.

Audio Crop Process (UTK):

The AudioCropProcessUTK node is designed to enhance your audio processing workflow by providing a comprehensive suite of tools for manipulating audio files. This node allows you to crop audio segments, adjust gain, resample to different frequencies, and convert audio to stereo, all within a single process. By integrating these functionalities, it simplifies the task of preparing audio for various applications, such as sound design, music production, or multimedia projects. The node's ability to handle multiple audio processing tasks in one go not only saves time but also ensures consistency across your audio files. Whether you need to trim a specific section of an audio track, boost its volume, or ensure it meets specific playback requirements, the AudioCropProcessUTK node offers a streamlined solution that is both powerful and user-friendly.

Audio Crop Process (UTK) Input Parameters:

audio

This parameter represents the audio data that you want to process. It is expected to be in a specific format that includes both the waveform and the sample rate. The waveform is a multi-dimensional array representing the audio signal, while the sample rate indicates how many samples per second are in the audio. This input is crucial as it forms the basis of all subsequent processing steps.

gain_db

The gain_db parameter allows you to adjust the audio's volume by specifying a gain in decibels. A positive value will increase the volume, while a negative value will decrease it. The default value is 0, meaning no change in volume. The range is from -100 to 100, providing flexibility to either amplify or attenuate the audio signal as needed.

offset_seconds

This parameter specifies the starting point for cropping the audio, measured in seconds from the beginning of the track. It allows you to skip a certain amount of time at the start of the audio. The default value is 0, meaning no offset, and it can range from 0 to a very large number, effectively allowing you to start playback from any point in the audio.

duration_seconds

The duration_seconds parameter defines how long the cropped audio segment should be, starting from the offset. If set to 0, the entire audio from the offset point will be used. This parameter is useful for extracting specific segments of audio for further processing or analysis. The default is 0, with a range from 0 to a very large number, allowing for flexible segment lengths.

resample_to_hz

This parameter allows you to change the sample rate of the audio to a specified frequency in hertz. Resampling can be useful for matching the audio to a specific playback or processing requirement. The default value is 0, which means no resampling will occur. The range is from 0 to a very large number, enabling you to set the sample rate to any desired frequency.

make_stereo

The make_stereo parameter is a boolean that determines whether the audio should be converted to stereo. If set to True, mono audio will be duplicated across two channels to create a stereo effect. The default value is True, ensuring that the output is compatible with stereo playback systems. This parameter is particularly useful when working with audio that needs to be played back on stereo systems.

Audio Crop Process (UTK) Output Parameters:

audio

This output provides the processed audio data, including any cropping, gain adjustments, resampling, or stereo conversion that was applied. It is returned in the same format as the input audio, making it easy to integrate into further processing or playback systems.

sample_rate

The sample_rate output indicates the sample rate of the processed audio. This value reflects any resampling that may have been applied, ensuring that you are aware of the audio's playback requirements.

channels

This output specifies the number of audio channels in the processed audio. It will be either 1 for mono or 2 for stereo, depending on the make_stereo parameter and the original audio's channel configuration.

duration

The duration output provides the length of the processed audio in seconds. This value is useful for understanding the extent of the audio segment that has been processed, especially when cropping has been applied.

Audio Crop Process (UTK) Usage Tips:

  • To ensure optimal audio quality, use the resample_to_hz parameter to match the sample rate of your audio to the intended playback system.
  • When working with mono audio that needs to be played on stereo systems, set make_stereo to True to avoid playback issues.

Audio Crop Process (UTK) Common Errors and Solutions:

Input audio has X channels, cannot convert to stereo (2 channels)

  • Explanation: This error occurs when the make_stereo parameter is set to True, but the input audio has more than one channel and is not compatible with stereo conversion.
  • Solution: Ensure that the input audio is mono (1 channel) before attempting to convert it to stereo, or set make_stereo to False if stereo conversion is not required.

Audio Crop Process (UTK) Related Nodes

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

Audio Crop Process (UTK)