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

Outputs

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