Beispiel #1
0
def test_remove_vocals_small():
    inp = {
        'rate': 30,
        'left': [7, 9, 3, 4],
        'right': [12, 2, 9, 2],
    }
    inp2 = copy.deepcopy(inp)
    exp = {
        'rate': 30,
        'left': [-5, 7, -6, 2],
        'right': [-5, 7, -6, 2],
    }
    compare_sounds(lab.remove_vocals(inp), exp)
    assert inp == inp2, 'be careful not to modify the input!'
Beispiel #2
0
def test_remove_vocals_random_3():
    inps, exp = load_pickle_pair('remove_vocals_03.pickle')
    inps2 = copy.deepcopy(inps)
    compare_sounds(lab.remove_vocals(*inps), exp)
    assert inps == inps2, 'be careful not to modify the input!'