Skip to content

alkove.Resampler

class Resampler(in_rate: int, out_rate: int, *, aligned: bool = False)

Windowed sinc between any two rates, across chunks; aligned puts output k exactly on input k × ratio (files), else half a window late (real time).

push(pcm: Any) -> np.ndarray

Samples at in_rate, any length; the ones ready at out_rate.