小珠光音频保存:
XiaozhuguangAudioSave is a versatile node designed to save audio data in various formats, providing a seamless way to handle audio files within the ComfyUI environment. This node is particularly beneficial for AI artists who need to manage audio outputs efficiently, offering both preview and save modes to cater to different workflow needs. The node leverages FFmpeg for encoding, ensuring high-quality audio output in formats like MP3, WAV, and FLAC. By automating the process of saving audio with customizable quality settings, XiaozhuguangAudioSave simplifies the task of managing audio files, allowing you to focus more on creative aspects rather than technical details.
小珠光音频保存 Input Parameters:
音频
This parameter represents the audio data to be saved. It is expected to be in the form of an AUDIO tensor, which contains the waveform and sample rate information necessary for processing and saving the audio file.
格式
This parameter specifies the format in which the audio will be saved. You can choose from "mp3", "wav", or "flac", with "mp3" being the default option. The choice of format affects the file size and quality, with each format having its own advantages depending on your needs.
质量
This parameter determines the quality of the saved audio file. It offers options like "320", "192", and "128", with "128" as the default. Higher values generally result in better audio quality but larger file sizes, while lower values reduce file size at the cost of quality.
文件名前缀
This parameter allows you to set a prefix for the saved audio file's name. The default prefix is "xzg-audio". This helps in organizing and identifying files, especially when dealing with multiple audio outputs.
模式
This optional parameter lets you choose between "保存" (save) and "预览" (preview) modes, with "保存" as the default. In save mode, the audio is stored in the output directory, while in preview mode, it is temporarily saved in a designated temp directory for quick access and review.
小珠光音频保存 Output Parameters:
result
This output parameter is a placeholder for the node's execution result. It does not return any specific data but indicates the completion of the audio saving process.
ui
This output parameter provides information about the saved audio file, including the filename, subfolder, type (temp or output), format, quality, duration, sample rate, and waveform peaks. This data is useful for verifying the save operation and accessing the saved file.
小珠光音频保存 Usage Tips:
- To ensure high-quality audio output, select a higher quality setting like "320" when saving in MP3 format, especially for music or detailed soundscapes.
- Use the preview mode to quickly check audio outputs without cluttering your output directory, which is particularly useful during iterative development or testing phases.
小珠光音频保存 Common Errors and Solutions:
FFmpeg not found. Please install FFmpeg.
- Explanation: This error occurs when the FFmpeg tool, required for audio encoding, is not installed or not found in the system path.
- Solution: Install FFmpeg on your system and ensure it is accessible from the command line. You can download it from the official FFmpeg website and follow the installation instructions for your operating system.
Invalid audio data
- Explanation: This error indicates that the audio data provided to the node is either missing or improperly formatted.
- Solution: Verify that the audio input is correctly formatted as an AUDIO tensor with valid waveform and sample rate information. Ensure that the audio data is not empty or corrupted before passing it to the node.
FFmpeg encoding failed (rc=<error_code>)
- Explanation: This error suggests that FFmpeg encountered an issue during the encoding process, possibly due to incorrect parameters or unsupported formats.
- Solution: Check the format and quality settings to ensure they are compatible with FFmpeg. Review any additional error messages provided by FFmpeg for more specific troubleshooting steps.
