Preview Audio (CRT):
The AudioPreviewer node is designed to facilitate the preview and processing of audio files within the ComfyUI environment. Its primary function is to load, manipulate, and save audio data, allowing you to preview audio clips with specific modifications such as trimming and volume adjustment. This node is particularly beneficial for AI artists who need to quickly assess audio files and make necessary adjustments without delving into complex audio editing software. By providing a streamlined interface for audio processing, the AudioPreviewer enhances your workflow efficiency, enabling you to focus on creative tasks while ensuring that audio files meet your desired specifications.
Preview Audio (CRT) Input Parameters:
preview_on_finish
This parameter determines whether the audio should automatically play after processing is complete. It accepts two options: "ON" and "OFF", with the default set to "ON". When enabled, it allows for immediate auditory feedback, which can be useful for quickly verifying the results of your audio processing.
audio
This optional parameter allows you to input an audio file directly into the node. It is used when you have an audio waveform already loaded in the system. If not provided, the node will attempt to load an audio file from the specified loaded_file parameter.
trim_start
This parameter specifies the starting point for trimming the audio, measured in seconds. It accepts a floating-point value with a default of 0.0, a minimum of 0.0, and no explicit maximum, allowing for precise control over where the audio should begin. Trimming can help focus on specific parts of the audio, removing unnecessary sections from the start.
trim_end
Similar to trim_start, this parameter defines the endpoint for trimming the audio, also measured in seconds. It has a default value of 0.0, a minimum of 0.0, and no explicit maximum. This allows you to cut off unwanted audio at the end, ensuring that only the relevant portion of the audio is retained.
loaded_file
This optional parameter is a string that specifies the path to an audio file to be loaded if no direct audio input is provided. It defaults to an empty string and is not forced as an input, offering flexibility in how audio data is sourced.
volume
This parameter controls the volume adjustment applied to the audio waveform. It accepts a floating-point value with a default of 1.0, a minimum of 0.0, and a maximum of 3.0. Adjusting the volume can help balance the audio levels, making it louder or softer as needed.
Preview Audio (CRT) Output Parameters:
AUDIO
The output of the AudioPreviewer node is an audio object that contains the processed waveform and its sample rate. This output is crucial for further audio processing or playback, as it reflects all the modifications applied, such as trimming and volume adjustments. It allows you to seamlessly integrate the processed audio into your projects or workflows.
Preview Audio (CRT) Usage Tips:
- To ensure optimal audio quality, adjust the
volumeparameter carefully, especially when increasing it above the default value, to avoid distortion. - Use the
trim_startandtrim_endparameters to focus on specific sections of the audio, which can be particularly useful for isolating segments for analysis or presentation.
Preview Audio (CRT) Common Errors and Solutions:
Failed to load audio file '<loaded_file>'
- Explanation: This error occurs when the specified audio file cannot be loaded, possibly due to an incorrect file path or unsupported file format.
- Solution: Verify that the
loaded_filepath is correct and that the file format is supported by the node. Ensure the file exists at the specified location.
No audio input provided and no file loaded.
- Explanation: This error indicates that neither an audio input nor a valid file path was provided, leaving the node with no audio data to process.
- Solution: Provide either a direct audio input or specify a valid
loaded_filepath to ensure the node has audio data to work with.
