Waveform.num_channels

num_channels = <attribute 'num_channels' of 'babycat.Waveform' objects>

Returns the number of channels in the decoded waveform.

If you did not set num_channels as an argument during decoding, then this value will be the total number of channels found in the audio.

If you did set num_channels during decoding, then this value will be the value you set.

Returns

The number of channels

Return type

int