processHybridInfo.py 文件源码

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

项目:merlin 作者: CSTR-Edinburgh 项目源码 文件源码
def calculateParamGV(feat_file_list, feat_dim=32):
    data = numpy.empty((1, feat_dim))
    for file_index in range(len(feat_file_list)):
        file_name   = feat_file_list[file_index]
        (junk, ext) = feat_file_list[file_index].split('.')

        features    = readBottleneckFeatures(file_name, feat_dim)

        if ext == 'lf0': #remove unvoiced values
            features = features[numpy.where(features != -1.*(10**(10)))[0]]
            features = numpy.exp(features) #convert to linear scale

        if file_index==0:
            data=features
        else:
            data=numpy.concatenate((data,features),0)

    gv = numpy.var(data, 0)
    return gv
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号