示例#1
0
 def __test(order, alpha, gamma, fftlen):
     np.random.seed(98765)
     src = np.random.rand(order + 1)
     pysptk.mgclsp2sp(src, alpha, gamma, fftlen)
示例#2
0
 def __test(order, alpha, gamma, fftlen):
     np.random.seed(98765)
     src = np.random.rand(order + 1)
     dst = pysptk.mgclsp2sp(src, alpha, gamma, fftlen)
     assert len(dst) == (fftlen >> 1) + 1
     assert np.all(np.isfinite(dst))
示例#3
0
 def __test(order, alpha, gamma, fftlen):
     np.random.seed(98765)
     src = np.random.rand(order + 1)
     dst = pysptk.mgclsp2sp(src, alpha, gamma, fftlen)
     assert len(dst) == (fftlen >> 1) + 1
     assert np.all(np.isfinite(dst))