def METHOD_NAME(self, wav, target_size):
    size = len(wav)
    diff = size - target_size
    if diff <= 0:
        return wav
    start = np.random.randint(0, diff + 1)
    end = size - diff + start
    return wav[start:end]