def METHOD_NAME():
    """Test measure_rms"""
    np.random.seed(0)
    signal = gen_tone(500, 0.05, 44100.0, 20.0)
    noise = gen_eh2008_speech_noise(0.05, 44100.0, 0.0)
    rms, idx, rel_dB_thresh, active = measure_rms(signal + noise, 44100, 0.0, 10.0)
    assert rms == pytest.approx(
        10.723997044548266, rel=pytest.rel_tolerance, abs=pytest.abs_tolerance
    )
    assert idx.shape == (441,)
    assert np.sum(idx) == pytest.approx(
        97020, rel=pytest.rel_tolerance, abs=pytest.abs_tolerance
    )
    assert rel_dB_thresh == pytest.approx(
        -0.0008828901826447577, rel=pytest.rel_tolerance, abs=pytest.abs_tolerance
    )
    assert active == pytest.approx(
        20.0, rel=pytest.rel_tolerance, abs=pytest.abs_tolerance
    )