def load_randomly_augmented_audio(path, sample_rate=16000, tempo_range=(0.85, 1.15), gain_range=((- 6), 8)):
    '\n    Picks tempo and gain uniformly, applies it to the utterance by using sox utility.\n    Returns the augmented utterance.\n    '
    (low_tempo, high_tempo) = tempo_range
    tempo_value = np.random.uniform(low=low_tempo, high=high_tempo)
    (low_gain, high_gain) = gain_range
    gain_value = np.random.uniform(low=low_gain, high=high_gain)
    audio = augment_audio_with_sox(path=path, sample_rate=sample_rate, tempo=tempo_value, gain=gain_value)
    return audio
Picks tempo and gain uniformly, applies it to the utterance by using sox utility.
Returns the augmented utterance.
def load_randomly_augmented_audio(path, sample_rate=16000, tempo_range=(0.85, 1.15), gain_range=((- 6), 8)):
    '\n    Picks tempo and gain uniformly, applies it to the utterance by using sox utility.\n    Returns the augmented utterance.\n    '
    (low_tempo, high_tempo) = tempo_range
    tempo_value = np.random.uniform(low=low_tempo, high=high_tempo)
    (low_gain, high_gain) = gain_range
    gain_value = np.random.uniform(low=low_gain, high=high_gain)
    audio = augment_audio_with_sox(path=path, sample_rate=sample_rate, tempo=tempo_value, gain=gain_value)
    return audio