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
parameter_evolution.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录