Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The TrimAudioDuration node allows you to cut a specific time segment from an audio file. You can specify when to start the trim and how long the resulting audio clip should be. The node works by converting time values to audio frame positions and extracting the corresponding portion of the audio waveform.

Inputs

ParameterData TypeRequiredRangeDescription
audioAUDIOYes-The audio input to be trimmed
start_indexFLOATYes-0xffffffffffffffff to 0xffffffffffffffffStart time in seconds, can be negative to count from the end (supports sub-seconds). Default: 0.0
durationFLOATYes0.0 to 0xffffffffffffffffDuration in seconds. Default: 60.0
Note: The start time must be less than the end time and within the audio length. Negative start values count backwards from the end of the audio. If the start time is negative, it is converted to a frame position counting from the end of the audio. The start and end frames are clamped to the audio boundaries. If the start time equals or exceeds the end time, the node will raise an error.

Outputs

Output NameData TypeDescription
audioAUDIOThe trimmed audio segment with the specified start time and duration

Source fingerprint (SHA-256): 4f8c9f966fec8c1d1a1a2bb531014fe7460d61abbafdc367adb667a5044752ef