parameter_evolution.py 文件源码

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

项目:DT2118-Speech-and-Speaker-Recognition 作者: Morikko 项目源码 文件源码
def comparePhonemes():
    s =0

    mean = []
    phonemes = []

    hfile = open("models_MFCC_0/hmm7/hmmdefs.mmf")
    data = hfile.read()
    hmms = yacc.parse(data)
    for m in range(len(hmms)):
        thishmm = hmms[m]        

        print('model number '+str(m+1)+' is called '+thishmm.name+' and state '+str(s+1))

        phonemes.append(thishmm.name)

        thisstate = thishmm.states[s][1]
        thiscomponent = thisstate.mixtures[0][2]

        mean.append(thiscomponent.mean.vector)
    return phonemes, mean
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号