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.