def windowing(input):
"""
Applies hamming window to the input frames.
Args:
input: array of speech samples [N x M] where N is the number of frames and
M the samples per frame
Output:
array of windoed speech samples [N x M]
Note (you can use the function hamming from scipy.signal, include the sym=0 option
if you want to get the same results as in the example)
"""
N, M = input.shape
window = ss.hamming(M, sym=False)
return (input * window)
proto.py 文件源码
python
阅读 31
收藏 0
点赞 0
评论 0
评论列表
文章目录