Skip to content

alkove.to_int16

to_int16(pcm: Any) -> np.ndarray

Float samples to int16 as the web SDK writes them: clipped, scaled by 32768 below zero and 32767 above, truncated.