ertk.dataset.resample_audio

ertk.dataset.resample_audio(paths: Iterable[str | PathLike], dir: PathLike | str, sr: int = 16000, *, n_jobs: int = -1)

Resample given audio clips to 16 kHz 16-bit WAV, and place in direcotory given by dir.

Parameters:
paths: iterable of Path

A collection of paths to audio files to resample.

dir: Pathlike or str

Output directory.

sr: int

Sample rate.