ComfyUI > Nodes > VLM_nodes > Save Audio Node

ComfyUI Node: Save Audio Node

Class Name

SaveAudioNode

Category
VLM Nodes/Audio
Author
gokayfem (Account age: 1058days)
Extension
VLM_nodes
Latest Updated
2024-06-02
Github Stars
0.28K

How to Install VLM_nodes

Install this extension via the ComfyUI Manager by searching for VLM_nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter VLM_nodes 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

Save Audio Node Description

Facilitates saving audio waveforms with customizable format and sample rate, auto-generating timestamped filenames for efficient organization.

Save Audio Node:

The SaveAudioNode is designed to facilitate the saving of audio waveforms generated or processed within your AI workflows. This node allows you to specify the format and sample rate of the audio file, ensuring that your audio data is stored in a manner that suits your needs. By leveraging this node, you can seamlessly integrate audio saving functionality into your projects, making it easier to manage and utilize audio outputs. The node automatically generates a timestamped filename to prevent overwriting and organizes your audio files efficiently.

Save Audio Node Input Parameters:

waveforms

This parameter represents the audio data that you want to save. It is a collection of audio waveforms that the node will process and store in the specified format. The waveforms should be provided in a compatible format that the node can handle.

sample_rate

The sample rate defines the number of samples per second in the audio file. It is an integer value that determines the audio quality and playback speed. You must provide this value to ensure the audio is saved correctly. The sample rate is a required input, and you can specify any integer value that matches your audio data's sample rate.

extension

The extension parameter allows you to choose the file format for saving the audio. You can select from "wav", "mp3", or "flac". The default value is "wav". This choice impacts the file size and quality of the saved audio, with "wav" typically offering the highest quality and "mp3" providing more compression.

Save Audio Node Output Parameters:

This node does not produce any direct output parameters. Its primary function is to save the provided audio data to a file in the specified format and location.

Save Audio Node Usage Tips:

  • Ensure that the waveforms input is correctly formatted and compatible with the node to avoid errors during the saving process.
  • Choose the sample_rate that matches the original audio data to maintain audio quality and prevent playback issues.
  • Select the appropriate extension based on your needs for audio quality and file size. For high-quality audio, use "wav"; for smaller file sizes, consider "mp3" or "flac".

Save Audio Node Common Errors and Solutions:

ValueError: Please provide a text input.

  • Explanation: This error occurs if the waveforms input is not provided or is in an incorrect format.
  • Solution: Ensure that you provide a valid waveforms input that the node can process.

FileNotFoundError: [Errno 2] No such file or directory: 'output_directory'

  • Explanation: This error indicates that the specified output directory does not exist.
  • Solution: Verify that the output directory path is correct and that the directory exists. Create the directory if it does not exist.

TypeError: sf.write() argument 1 must be str, not PosixPath

  • Explanation: This error occurs if the file path provided to the sf.write function is not a string.
  • Solution: Ensure that the file path is converted to a string using the as_posix() method before passing it to the sf.write function.

Save Audio Node Related Nodes

Go back to the extension to check out more related nodes.
VLM_nodes
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.