proto.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:DT2118-Speech-and-Speaker-Recognition 作者: Morikko 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号