espnet.transform.perturb.SpeedPerturbation
Less than 1 minute
espnet.transform.perturb.SpeedPerturbation
class espnet.transform.perturb.SpeedPerturbation(lower=0.9, upper=1.1, utt2ratio=None, keep_length=True, res_type='kaiser_best', seed=None)
Bases: object
The speed perturbation in kaldi uses sox-speed instead of sox-tempo, and sox-speed just to resample the input, i.e pitch and tempo are changed both.
“Why use speed option instead of tempo -s in SoX for speed perturbation” https://groups.google.com/forum/#!topic/kaldi-help/8OOG7eE4sZ8
WARNING
This function is very slow because of resampling. I recommmend to apply speed-perturb outside the training using sox.