Audio Mono to Stereo:
AudioMonoToStereo makes a mono recording available as stereo by copying its single channel to both the left and right channels. This is useful when a later step expects two-channel audio: the sound remains the same in both channels rather than gaining a spatial effect. If the audio already has two or more channels, the node leaves it unchanged.
Audio Mono to Stereo Input Parameters:
audio
The required AUDIO value to process. It must contain a waveform and a sample_rate. The node checks how many channels the waveform has: one channel is duplicated to make two, while two or more channels are passed through unchanged. There are no selectable options, numeric limits, or default value defined for this input.
Audio Mono to Stereo Output Parameters:
audio
The resulting AUDIO value. For mono audio, its waveform has two channels containing copies of the original channel, and it retains the input sample rate. For audio that already has two or more channels, the output is the original audio unchanged. Identical left and right channels do not create a wider stereo image; they make the mono sound available on both channels.
Audio Mono to Stereo Usage Tips:
- Place this node before a step that requires two-channel audio when your source has only one channel.
- You do not need to remove this node when switching to a stereo source: audio with two or more channels passes through unchanged.
- If you want different sounds in the left and right channels, use a separate stereo-processing step. This node only duplicates mono audio and has no adjustable settings.
Audio Mono to Stereo Common Errors and Solutions:
KeyError: 'waveform'
- Explanation: The supplied
audiovalue does not contain thewaveformdata this node reads. - Solution: Connect a valid
AUDIOoutput from an upstream audio-loading or audio-generating node.
KeyError: 'sample_rate'
- Explanation: The supplied
audiovalue does not contain thesample_ratevalue this node reads and carries into the result. - Solution: Check the upstream node and supply a complete
AUDIOvalue containing bothwaveformandsample_rate.
AttributeError: 'NoneType' object has no attribute 'shape'
- Explanation: The
waveformis missing as a usable value, so the node cannot check its channel count. - Solution: Confirm that the upstream step successfully produced audio before running this node.
IndexError: tuple index out of range
- Explanation: The waveform does not have the expected channel dimension. This node expects audio arranged as batch, channels, then samples.
- Solution: Use an upstream node that provides a valid
AUDIOwaveform in that arrangement.
Stereo output sounds the same on the left and right
- Explanation: This is expected for mono input: the node copies the same sound to both channels rather than creating separate left and right content.
- Solution: If you need a stereo effect or different content in each channel, add a separate stereo-processing step.
