def audiomentations_time_stretch(wav: np.ndarray, sr: int) -> np.ndarray:
    """Use audiomentations to do time stretch"""
    transform = TimeStretch(
        min_rate=0.8, max_rate=1.25, leave_length_unchanged=False, p=1.0
    )
    augmented_wav = transform(wav, sample_rate=sr)
    return augmented_wav
Use audiomentations to do time stretch
processors/data_augment.py