Audio Concat:
The AudioConcat node is designed to seamlessly combine two audio tracks into a single continuous audio stream. This node is particularly useful when you want to create a longer audio piece by appending one audio track to another. It provides flexibility in how the audio tracks are concatenated, allowing you to specify whether the second audio should be placed before or after the first. This capability is essential for audio editing tasks where maintaining the flow and continuity of sound is crucial. By ensuring that both audio tracks are in stereo format and matching their sample rates, AudioConcat guarantees a smooth and consistent audio output, making it an invaluable tool for AI artists working with audio compositions.
Audio Concat Input Parameters:
audio1
This parameter represents the first audio track to be concatenated. It is expected to be a dictionary containing the waveform and sample rate of the audio. If this parameter is not provided, the node will default to using the second audio track as the output.
audio2
This parameter represents the second audio track to be concatenated. Similar to audio1, it should be a dictionary containing the waveform and sample rate. If this parameter is not provided, the node will default to using the first audio track as the output.
direction
This parameter determines the order in which the audio tracks are concatenated. It accepts two options: after and before. If set to after, the second audio track will be appended to the end of the first. If set to before, the second audio track will be placed at the beginning, followed by the first audio track. This parameter allows you to control the sequence of the concatenated audio.
Audio Concat Output Parameters:
waveform
This output parameter is a tensor representing the concatenated audio waveform. It combines the waveforms of the two input audio tracks based on the specified direction, resulting in a continuous audio stream.
sample_rate
This output parameter indicates the sample rate of the concatenated audio. It ensures that the output audio maintains a consistent sample rate, which is crucial for preserving audio quality and synchronization.
Audio Concat Usage Tips:
- Ensure both input audio tracks are in stereo format to avoid unexpected mono-to-stereo conversions.
- Use the
directionparameter to control the sequence of audio tracks, which can be useful for creating specific audio narratives or effects. - Verify that the sample rates of both audio tracks are compatible to prevent audio distortion or quality loss.
Audio Concat Common Errors and Solutions:
Audio Concat: Converted mono audio1 to stereo by duplicating the channel.
- Explanation: This message indicates that the first audio track was in mono format and has been automatically converted to stereo by duplicating its channel.
- Solution: If stereo output is desired, no action is needed. If mono output is preferred, ensure the input audio is already in stereo format.
Audio Concat: Converted mono audio2 to stereo by duplicating the channel.
- Explanation: This message indicates that the second audio track was in mono format and has been automatically converted to stereo by duplicating its channel.
- Solution: If stereo output is desired, no action is needed. If mono output is preferred, ensure the input audio is already in stereo format.
