ComfyUI > Nodes > ComfyUI > SaveAudio

ComfyUI Node: SaveAudio

Class Name

SaveAudio

Category
audio
Author
ComfyAnonymous (Account age: 598days)
Extension
ComfyUI
Latest Updated
2024-08-12
Github Stars
45.85K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

SaveAudio Description

Save audio data with metadata in FLAC format for AI artists, ensuring structured storage and high-quality preservation.

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 audio parameter contains valid waveform and sample rate data to avoid errors during the saving process.
  • Customize the filename_prefix to organize your saved audio files effectively, especially when working on large projects with multiple audio files.
  • Utilize the prompt and extra_pnginfo parameters 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 prompt and extra_pnginfo parameters is in the correct format. Check for any special characters or formatting issues that might cause the metadata insertion to fail.

SaveAudio Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.