ertk.utils.is_mono_audio

ertk.utils.is_mono_audio(x: ndarray) bool

Checks if an array represents mono audio data. The conditions for this are that x can be squeezed to 1D.

Note that this method will also return True for ā€˜2D’ sequences of length 1, so care should be taken for edge cases.

Parameters:
x: np.ndarray

The array to check.

Returns:
is_mono: bool

Whether the array represents mono audio data.