@cache
def resample(y, orig_sr, target_sr, res_type='kaiser_best', fix=True, scale=False, **kwargs):

    # First, validate the audio buffer
    util.valid_audio(y, mono=False)

    if orig_sr == target_sr:
        return y

    ratio = float(target_sr) / orig_sr

    n_samples = int(np.ceil(y.shape[-1] * ratio))

    try:
        y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=-1)
    except NotImplementedError:
        if _HAS_SAMPLERATE and (res_type != 'scipy'):
            warnings.warn('scikits.samplerate resampling is deprecated as '
                          'of librosa version 0.4.3.\n\tSupport will be '
                          'removed in librosa version 0.5.',
                          category=DeprecationWarning)
            y_hat = samplerate.resample(y.T, ratio, res_type).T
        else:
            y_hat = scipy.signal.resample(y, n_samples, axis=-1)

    if fix:
        y_hat = util.fix_length(y_hat, n_samples, **kwargs)

    if scale:
        y_hat /= np.sqrt(ratio)

    return np.ascontiguousarray(y_hat, dtype=y.dtype)
Test the connection to the stomp server with a good ip
dataset/ETHPy150Open bmcfee/librosa/librosa/core/audio.py/resample--crossover with--dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py/MainTests.test_cox_stomp_with_goodip