@@ -14,18 +14,18 @@ def pesq(reference, estimation, sample_rate, mode=None):
1414 >>> np.random.seed(0)
1515 >>> a = np.random.normal(size=16_000)
1616 >>> b = a + np.random.normal(size=16_000)
17- >>> pesq(a, b, sample_rate=16000)
18- 2.2297563552856445
17+ >>> pesq(a, b, sample_rate=16000) # doctest: +ELLIPSIS # macOS doesn't yield the same as Ubuntu
18+ 2.22975...
1919 >>> pesq(a, b, sample_rate=8000)
2020 1.0334522724151611
21- >>> pesq(a, b, sample_rate=16000, mode='nb')
22- 3.200247049331665
21+ >>> pesq(a, b, sample_rate=16000, mode='nb') # doctest: +ELLIPSIS # macOS doesn't yield the same as Ubuntu
22+ 3.20024...
2323
24- >>> pesq([a, a], [b, b], sample_rate=16000)
25- array([2.22975636 , 2.22975636 ])
26- >>> pesq([[a, a], [b, a]], [[b, b], [b, b]], sample_rate=16000)
27- array([[2.22975636 , 2.22975636 ],
28- [4.64388847, 2.22975636 ]])
24+ >>> pesq([a, a], [b, b], sample_rate=16000) # doctest: +ELLIPSIS # macOS doesn't yield the same as Ubuntu
25+ array([2.22975... , 2.22975... ])
26+ >>> pesq([[a, a], [b, a]], [[b, b], [b, b]], sample_rate=16000) # doctest: +ELLIPSIS # macOS doesn't yield the same as Ubuntu
27+ array([[2.22975... , 2.22975... ],
28+ [4.64388847, 2.22975... ]])
2929
3030 >>> pesq(a, b, sample_rate=8000, mode='wb')
3131 Traceback (most recent call last):
0 commit comments