ComfyUI > Nodes > ComfyUI-HunyuanVideo-Foley > Select Audio From Batch

ComfyUI Node: Select Audio From Batch

Class Name

SelectAudioFromBatch

Category
audio/utils
Author
railep (Account age: 384days)
Extension
ComfyUI-HunyuanVideo-Foley
Latest Updated
2025-08-29
Github Stars
0.01K

How to Install ComfyUI-HunyuanVideo-Foley

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

Select Audio From Batch Description

Extracts a specific audio waveform from a batch, simplifying audio data handling and processing.

Select Audio From Batch:

The SelectAudioFromBatch node is designed to efficiently extract a specific audio waveform from a batch of audio data. This node is particularly useful when working with large datasets of audio waveforms, allowing you to pinpoint and select a single audio sample based on its position within the batch. By providing a straightforward method to access individual audio samples, this node simplifies the process of handling and manipulating audio data in batch form. Its primary function is to ensure that you can easily retrieve the desired audio waveform without manually sifting through the entire batch, thus streamlining your workflow and enhancing productivity in audio processing tasks.

Select Audio From Batch Input Parameters:

audio_batch

The audio_batch parameter is an essential input that represents a collection of audio waveforms. This parameter is expected to be an audio object containing multiple waveforms, typically organized in a batch format. The primary function of this parameter is to serve as the source from which a specific audio waveform will be selected. It is crucial for the node's operation, as it provides the data pool from which the selection is made. The audio_batch parameter does not have specific minimum or maximum values, as it is dependent on the size and structure of the audio data being processed.

index

The index parameter is an integer that specifies the position of the audio waveform you wish to select from the batch. It is a 0-based index, meaning that the counting starts from zero. The index parameter allows you to precisely identify which audio sample to extract from the batch, making it a critical component for targeted audio selection. The default value for this parameter is 0, with a minimum value of 0 and a maximum value of 63. This range ensures that you can select any audio waveform within a typical batch size, while also providing a safeguard against out-of-bounds errors.

Select Audio From Batch Output Parameters:

AUDIO

The output of the SelectAudioFromBatch node is an audio object, denoted as AUDIO. This output contains the selected waveform from the batch, packaged in a standard audio dictionary format. The AUDIO output includes both the waveform data and the sample rate, ensuring that the selected audio is ready for further processing or analysis. This output is crucial for subsequent nodes or processes that require a specific audio sample, as it provides a clean and accessible format for the extracted waveform.

Select Audio From Batch Usage Tips:

  • Ensure that the index parameter is set correctly to select the desired audio waveform from the batch. If you are unsure of the batch size, start with a lower index value to avoid out-of-bounds errors.
  • Use the audio_batch parameter to input a well-structured batch of audio waveforms. This will facilitate smooth operation and accurate selection of the desired audio sample.

Select Audio From Batch Common Errors and Solutions:

Index out of bounds for audio batch

  • Explanation: This error occurs when the specified index exceeds the number of available waveforms in the audio_batch.
  • Solution: Verify the size of your audio_batch and ensure that the index is within the valid range. Adjust the index to a value less than the total number of waveforms in the batch.

Invalid audio_batch format

  • Explanation: This error arises when the audio_batch input does not conform to the expected format, such as missing waveform data or incorrect structure.
  • Solution: Check that your audio_batch is correctly formatted and contains the necessary waveform and sample rate information. Ensure that it is compatible with the node's requirements.

Select Audio From Batch Related Nodes

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