emonet.batch_resample module#

Module for resampling audio files in batch operation.

emonet.batch_resample.resample(file: pathlib.Path) None[source]#

Resample an audio file to 16,000hz.

Parameters

file (pathlib.Path) – Path to audiofile.

Returns

None – Opens original file, resamples and overwrites original audio.

emonet.batch_resample.main(max_workers: int = 50) None[source]#

Resample all files in the data directory.

Parameters

max_workers (int) – Maximum number of asynchronous processes.

Returns

None – Resamples and overwrites original audio file.