def istft(spec, overlap=4):
assert (spec.shape[0] > 1)
S = placeholder(dtype=tf.complex64, shape=spec.shape)
X = tf.complex_abs(tf.concat(0, [tf.ifft(frame) \
for frame in tf.unstack(S)]))
sess = tf.Session()
return sess.run(X, feed_dict={S:spec})
评论列表
文章目录