Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates loading audio files from specified directory for AI artists, developers in Timbre model.
The TimbreAudioLoader node is designed to facilitate the loading of audio files from a specified directory associated with the Timbre model. This node is particularly useful for AI artists and developers working with audio data, as it provides a streamlined method to access and manage audio samples stored within the Timbre model directory. By leveraging the capabilities of the torchaudio
library, the node ensures efficient loading and processing of various audio formats, including WAV, MP3, OGG, and FLAC. One of the key features of the TimbreAudioLoader is its ability to refresh the list of available audio files, ensuring that any new additions to the directory are promptly recognized and accessible. This functionality is crucial for dynamic environments where audio files are frequently updated or modified. Overall, the TimbreAudioLoader node offers a robust solution for managing audio data within the ComfyUI framework, enhancing the workflow of users who require seamless integration of audio resources.
The refresh
parameter is a boolean input that determines whether the list of audio files should be refreshed. When set to True
, the node scans the specified Timbre model directory for any new or updated audio files, ensuring that the latest files are available for selection. This parameter is particularly useful in environments where audio files are frequently added or modified, as it allows users to keep their audio file list up-to-date without manually checking the directory. The default value for this parameter is True
, which means the list will be refreshed automatically unless specified otherwise.
The audio_file
parameter allows users to select a specific audio file from the list of available files in the Timbre model directory. This parameter is crucial for specifying which audio file should be loaded and processed by the node. The list of available files is populated based on the contents of the directory and is updated whenever the refresh
parameter is set to True
. Users can choose from a variety of supported audio formats, including WAV, MP3, OGG, and FLAC. If no valid audio file is selected, the node will return an empty audio data structure.
The AUDIO
output parameter provides the loaded audio data in a format compatible with the ComfyUI framework. This output includes the waveform of the audio file and its sample rate, encapsulated in a dictionary structure. The waveform is represented as a tensor, which is a common data structure used in audio processing, and the sample rate indicates the number of samples per second in the audio file. This output is essential for further processing or analysis within the ComfyUI environment, allowing users to integrate audio data into their projects seamlessly.
refresh
parameter to True
when you know new files have been added to the directory.<error_message>
<directory>
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.