How should I set “bw” options for acoustic model adaption?

戏子无情 提交于 2019-12-25 17:18:00

问题


In tutorials it has written this command: ~~~

./bw \
 -hmmdir en-us \
 -moddeffn en-us/mdef.txt \
 -ts2cbfn .ptm. \
 -feat 1s_c_d_dd \
 -svspec 0-12/13-25/26-38 \
 -cmn current \
 -agc none \
 -dictfn cmudict-en-us.dict \
 -ctlfn arctic20.fileids \
 -lsnfn arctic20.transcription \
 -accumdir .
~~~

But I checked my feat.params and it has this content:

~~~
-lowerf 130
-upperf 6800
-nfilt 25
-transform dct
-lifter 22
-feat 1s_c_d_dd
-svspec 0-12/13-25/26-38
-agc none
-cmn current
-varnorm no
-model ptm
-cmninit 40,3,-1
~~~

I don't know how should I config these options? I am trying to config acoustic model for contunuous speaking.

I got my model from here: https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/US%20English/cmusphinx-en-us-ptm-5.2.tar.gz/download

And tried to configure the above command like this:

./bw -hmmdir en-us -moddeffn en-us/mdef.txt -ts2cbfn .cont. -feat 1s_c_d_dd -cmn current -agc none -dictfn cmudict-en-us.dict -ctlfn robot_train.fileids -lsnfn robot_train.transcription -accumdir -lda feature_transform .

But I get these error messages:

INFO: main.c(229): Compiled on Mar 22 2018 at 12:54:02 ERROR: "cmd_ln.c", line 607: Unknown argument name 'feature_transform' ERROR: "cmd_ln.c", line 704: Failed to parse arguments list ERROR: "cmd_ln.c", line 753: Failed to parse arguments list, forced exit


回答1:


I changed my model to this file (from the ptm model that tutorial linked to it) : https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/US%20English/cmusphinx-en-us-5.2.tar.gz/download

Then I removed the -lda feature_transform from my command, and it worked!



来源:https://stackoverflow.com/questions/49453344/how-should-i-set-bw-options-for-acoustic-model-adaption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!