Nodes/CRT-Nodes/Audio Loader Crawl Batch (CRT)
ComfyUI Node

Audio Loader Crawl Batch (CRT)

Loads a window of audio files as one padded batch. file_names and file_paths are per-file lists that pair item by item with batched transcripts in SaveTextWithPath.

By PGCRT·Created 2 years ago·Updated about 11 hours ago· 132
Audio Loader Crawl Batch (CRT)
    • audio
    • file_names
    • file_paths
    • batch_count
    • total_files
    folder_path
    batch_count8
    seed0
    file_extensionall
    crawl_subfoldersfalse
    remove_extensionfalse
    sample_rate44100
    max_length_seconds0.0
    start_offset_seconds0.0
    gain_db0.0
    print_indextrue
    CategoryCRT/Load

    Inputs (11)

    NameTypeDefaultDescription
    folder_pathSTRINGPath to the folder containing audio files
    batch_countINT81–64Number of audio files to load. Window starts at seed × batch_count and wraps around the folder. Batches are zero-padded to the longest file.
    seedINT00–18446744073709550000Selects the starting file: index = (seed × batch_count) % total_files.
    file_extensionCOMBOallFile extension to filter for. 'all' includes wav, mp3, flac and ogg.
    crawl_subfoldersBOOLEANfalse
    remove_extensionBOOLEANfalse
    sample_rateINT441008000–192000All files are resampled to this rate so they can be stacked into one batch.
    max_length_secondsFLOAT0.0Maximum length of each audio in seconds (0 for no limit)
    start_offset_secondsFLOAT0.0Start loading the audio from this offset in seconds
    gain_dbFLOAT0.0-120–120Gain in decibels (dB)
    print_indexBOOLEANtruePrint each selected file index and name to the console.

    Outputs (5)

    NameTypeDescription
    audioAUDIO
    file_namesSTRING
    file_pathsSTRING
    batch_countINT
    total_filesINT