SaveAudio:
The SaveAudio node is designed to save audio data to your filesystem in a structured and efficient manner. This node is particularly useful for AI artists who need to store generated or processed audio files with specific metadata. By leveraging this node, you can ensure that your audio files are saved with appropriate filenames, metadata, and in a consistent format. The node supports saving audio in the FLAC format, which is a lossless compression format, ensuring high-quality audio preservation. Additionally, it allows for the inclusion of metadata such as prompts and extra information, making it easier to keep track of the context and details of each audio file.
SaveAudio Input Parameters:
audio
This parameter expects an audio object that contains the waveform and sample rate of the audio to be saved. The waveform should be a tensor, and the sample rate should be an integer. This input is crucial as it provides the actual audio data that will be written to the file.
filename_prefix
This parameter is a string that specifies the prefix for the filename of the saved audio file. The default value is "audio/ComfyUI". This prefix helps in organizing and identifying the saved audio files, especially when dealing with multiple files. You can customize this prefix to suit your project or organizational needs.
prompt
This hidden parameter allows you to include a prompt as metadata in the saved audio file. The prompt can provide context or additional information about the audio, which can be useful for future reference or analysis.
extra_pnginfo
This hidden parameter allows you to include additional metadata in the saved audio file. The extra metadata can be any relevant information that you want to associate with the audio file, such as tags, descriptions, or other contextual data.
SaveAudio Output Parameters:
This node does not produce any direct output parameters. Instead, it performs the action of saving the audio file to the specified location on the filesystem. The result of this action is the creation of one or more audio files with the specified metadata and filename prefix.
SaveAudio Usage Tips:
- Ensure that the
audioparameter contains valid waveform and sample rate data to avoid errors during the saving process. - Customize the
filename_prefixto organize your saved audio files effectively, especially when working on large projects with multiple audio files. - Utilize the
promptandextra_pnginfoparameters to include relevant metadata, which can be helpful for future reference and organization. - Regularly check the output directory to ensure that the audio files are being saved correctly and that the filenames are as expected.
SaveAudio Common Errors and Solutions:
Invalid audio file: <audio>
- Explanation: This error occurs when the provided audio file is not valid or cannot be found in the specified directory.
- Solution: Ensure that the audio file exists in the input directory and that the filename is correct. Verify that the audio file is in a supported format.
Error saving audio file
- Explanation: This error can occur if there is an issue with writing the audio file to the filesystem, such as insufficient permissions or a full disk.
- Solution: Check the permissions of the output directory and ensure that there is enough disk space available. Verify that the output directory path is correct and accessible.
Metadata insertion failed
- Explanation: This error occurs if there is an issue with inserting metadata into the audio file.
- Solution: Ensure that the metadata provided in the
promptandextra_pnginfoparameters is in the correct format. Check for any special characters or formatting issues that might cause the metadata insertion to fail.
