LoadAudio:
The LoadAudio node is designed to facilitate the loading of audio files into your workflow. This node supports various audio formats, including .wav, .mp3, .ogg, .flac, .aiff, and .aif, making it versatile for different audio sources. By leveraging this node, you can easily import audio files, which are then processed and converted into a format suitable for further manipulation or analysis within your AI art projects. The primary goal of the LoadAudio node is to streamline the process of integrating audio data, ensuring that you can focus on creative aspects without worrying about technical details of audio file handling.
LoadAudio Input Parameters:
audio
This parameter allows you to select the audio file you wish to load. The node scans a predefined input directory and lists all available audio files that match the supported formats. You can choose from these files to load into your project. The selection of the audio file is crucial as it determines the source audio data that will be processed and used in subsequent nodes. The available options are dynamically generated based on the files present in the input directory.
LoadAudio Output Parameters:
AUDIO
The output of the LoadAudio node is an audio object that contains the waveform and sample rate of the loaded audio file. The waveform is a tensor representation of the audio signal, while the sample rate indicates the number of samples per second. This output is essential for further audio processing tasks, such as encoding, decoding, or applying various transformations. The audio object ensures that the data is in a consistent format, ready for use in other nodes within your workflow.
LoadAudio Usage Tips:
- Ensure that your audio files are placed in the correct input directory so that they can be detected and listed by the node.
- Use high-quality audio files to maintain the integrity of the audio data throughout your workflow.
- Familiarize yourself with the supported audio formats to avoid compatibility issues.
LoadAudio Common Errors and Solutions:
Invalid audio file: <filename>
- Explanation: This error occurs when the specified audio file does not exist in the annotated file path.
- Solution: Verify that the audio file is correctly placed in the input directory and that the filename is spelled correctly.
Unsupported audio format
- Explanation: This error indicates that the selected audio file is not in one of the supported formats.
- Solution: Convert your audio file to a supported format such as
.wav,.mp3,.ogg,.flac,.aiff, or.aifand try loading it again.
File not found
- Explanation: This error occurs when the node cannot locate the specified audio file in the input directory.
- Solution: Ensure that the audio file is present in the input directory and that the directory path is correctly configured.
