def audio_with_sox(path, sample_rate, start_time, end_time):
    '\n    crop and resample the recording with sox and loads it.\n    '
    with NamedTemporaryFile(suffix='.wav') as tar_file:
        tar_filename = tar_file.name
        sox_params = 'sox "{}" -r {} -c 1 -b 16 -e si {} trim {} ={} >/dev/null 2>&1'.format(path, sample_rate, tar_filename, start_time, end_time)
        os.system(sox_params)
        y = load_audio(tar_filename)
        return y
crop and resample the recording with sox and loads it.
def audio_with_sox(path, sample_rate, start_time, end_time):
    '\n    \n    '
    with NamedTemporaryFile(suffix='.wav') as tar_file:
        tar_filename = tar_file.name
        sox_params = 'sox "{}" -r {} -c 1 -b 16 -e si {} trim {} ={} >/dev/null 2>&1'.format(path, sample_rate, tar_filename, start_time, end_time)
        os.system(sox_params)
        y = load_audio(tar_filename)
        return y