ComfyUI > Nodes > ComfyUI-Creepy_nodes > Random/Fixed Audio Picker (Creepybits)

ComfyUI Node: Random/Fixed Audio Picker (Creepybits)

Class Name

RandomAudioSegment

Category
Creepybits/Audio
Author
Creepybits (Account age: 2146days)
Extension
ComfyUI-Creepy_nodes
Latest Updated
2025-12-07
Github Stars
0.02K

How to Install ComfyUI-Creepy_nodes

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

Random/Fixed Audio Picker (Creepybits) Description

Extract specific audio segment randomly or from fixed point, ideal for sound design and analysis tasks.

Random/Fixed Audio Picker (Creepybits):

The RandomAudioSegment node is designed to extract a specific segment from an audio waveform, either randomly or from a fixed starting point. This node is particularly useful for audio processing tasks where you need to analyze or manipulate a portion of an audio file without manually selecting the segment each time. By allowing both random and fixed start times, it provides flexibility in how audio segments are chosen, making it ideal for applications in sound design, audio analysis, and creative audio projects. The node ensures that the segment length is appropriate and adjusts automatically if the requested segment is longer than the audio itself, thus maintaining the integrity of the audio data.

Random/Fixed Audio Picker (Creepybits) Input Parameters:

audio

This parameter represents the audio data that you want to process. It is expected to be in a dictionary format containing the waveform and sample rate. The waveform is the actual 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 the segment extraction process.

segment_length

The segment_length parameter specifies the duration of the audio segment you wish to extract, measured in seconds. It must be a positive floating-point number, with a default value of 10.0 seconds. The minimum allowable value is 0.1 seconds, and the maximum is 600.0 seconds. If the provided segment length is longer than the total duration of the audio, the node will adjust to use the full length of the audio. This parameter directly impacts the size of the extracted segment and should be chosen based on the specific needs of your project.

start_time

The start_time parameter allows you to specify the starting point of the audio segment in seconds. It is optional and defaults to -1.0, which indicates that a random start time should be used. If you provide a non-negative value, the node will attempt to start the segment at that specific time. However, if the specified start time exceeds the maximum possible start time for the given segment length, it will be clamped to the maximum possible value. This parameter provides control over the exact portion of the audio you wish to extract, offering both precision and randomness as needed.

Random/Fixed Audio Picker (Creepybits) Output Parameters:

audio

The output is a dictionary containing the extracted audio segment and its sample rate. The waveform in this dictionary represents the portion of the original audio that was selected based on the input parameters. This output is essential for further audio processing or analysis, as it provides a manageable and focused segment of the original audio data.

Random/Fixed Audio Picker (Creepybits) Usage Tips:

  • To ensure you get a segment of the desired length, make sure your segment_length is less than or equal to the total duration of the audio. If unsure, start with a smaller segment length and adjust as needed.
  • Use the start_time parameter to control the exact starting point of your segment. If you want to explore different parts of the audio, set start_time to -1.0 to enable random selection.
  • When working with very short audio files, be aware that the node will automatically adjust the segment length to fit the available audio, which might result in shorter segments than requested.

Random/Fixed Audio Picker (Creepybits) Common Errors and Solutions:

Warning: segment_length must be positive

  • Explanation: The segment_length provided is zero or negative, which is not valid.
  • Solution: Ensure that the segment_length is a positive number greater than 0.1 seconds.

Warning: segment_length is NaN

  • Explanation: The segment_length is not a number, possibly due to incorrect input.
  • Solution: Check the input for segment_length and ensure it is a valid floating-point number.

Warning: Calculated segment resulted in zero or less samples

  • Explanation: The calculated segment length resulted in no samples being extracted, possibly due to incorrect start time or segment length.
  • Solution: Verify that the start_time and segment_length are set correctly and that they are within the bounds of the audio's duration. Adjust them as necessary.

Random/Fixed Audio Picker (Creepybits) Related Nodes

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