def _play(input, fs):
        if input.ndim == 1:
            input = input[np.newaxis, :]
            nc = 1
        elif input.ndim == 2:
            nc = input.shape[0]
        else:
            raise ValueError, \
                  "Only input of rank 1 and 2 supported for now."

        dev = AlsaDevice(fs=fs, nchannels=nc)
        dev.play(input)