Skip to main content
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

ParameterDescriptionData TypeRequiredRange
audioThe audio input to be trimmedAUDIOYes-
start_indexStart time in seconds, can be negative to count from the end (supports sub-seconds). Default: 0.0FLOATYes-0xffffffffffffffff to 0xffffffffffffffff
durationDuration in seconds. Default: 60.0FLOATYes0.0 to 0xffffffffffffffff
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 NameDescriptionData Type
audioThe trimmed audio segment with the specified start time and durationAUDIO
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 4f8c9f966fec8c1d1a1a2bb531014fe7460d61abbafdc367adb667a5044752ef