INFO: main.c(244): Reading linear feature transformation from hmm/en_us/feature_transform
INFO: main.c(254): Using subvector specification 0-12/13-25/26-38
ERROR: "feat.c", line 310: Total dimensionality of subvector specification 39 > feature dimensionality 32
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had this problem using Pocketsphinx-python. You can see code and full log here. Please also tell me how to remove -svspec from python config.
Code above is a python code part and log file.
MODELDIR = "/usr/local/share/pocketsphinx/model"
DATADIR = "/usr/local/share/pocketsphinx/test/data"
# Create a decoder with certain model
config = Decoder.default_config()
config.set_string('-hmm', path.join(MODELDIR, 'en-us/en-us/'))
config.set_string('-lm', path.join(MODELDIR, 'en-us/en-us.lm.bin'))
#config.set_string('-lm', path.join(MODELDIR, 'en-us/en-us-phone.lm.bin'))
config.set_string('-dict', path.join(MODELDIR, 'en-us/cmudict-en-us.dict'))
config.set_string('-logfn', path.join('/root','Desktop/recorder/flaskapi/flaskapi.log'))
#config.set_string('-inmic', 'yes')
decoder = Decoder(config)
You mixed files from the different models in the folder /usr/local/share/pocketsphinx/model/en-us/en-us/, you need to clean the old model files before you unpack the new model.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i use the method describe in tutorial to adapt acoustic model for pocketsphinx and i observe that some audio file dont fail to align with audio and other fails.
My audio files contain many words like you see below :
<s>toulousetechniquetoulousetechniqueairbusonefivesixfivefivecallingtoulousetechniqueononethreetwoninetwohowdoit</s>(1)<s>greatcellcallhasicallyouononhashfonenow</s>(4)<s>toulousethankyouverymuchthat's a good cell call check for air bus four five height charlie we'reoutthankyouforyourhelpbyebye</s>(8)
i try first command bw without -lda option and i have the first sentence fail. the others were ok
After i try bw with - lda option and result was only the first sentence OK.
Precision : I use a ptm model for the first command and a full model for second (because in ptm model there is no file feature_transform).
the first command that i use are this one (ptm model):
The error was :
ERROR: backward.c , line 421: Failed to align audio to trancript: final state of the search is not reached
ERROR: baum_welch.c, line 324: 4 ignored
What happens with my adaptation ?
Last edit: thierry LE CONNIAT 2019-10-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to make adaptation eu_us generic model.
I tried and got an error.
bw.exe -hmmdir hmm/en_us -moddeffn hmm/en_us/mdef.txt -ts2cbfn .semi. -feat 1s_c_d_dd -lda hmm/en_us/feature_transform -svspec 0-12/13-25/26-38 -cmn current -agc none -dictfn cmu07a.dic -ctlfn ad.fileids -lsnfn ad.transcription -accumdir .
INFO: main.c(244): Reading linear feature transformation from hmm/en_us/feature_transform
INFO: main.c(254): Using subvector specification 0-12/13-25/26-38
ERROR: "feat.c", line 310: Total dimensionality of subvector specification 39 > feature dimensionality 32
Thanks in advance.
You need to remove -svspec option from the command line. -ts2cbfn must be .cont., not .semi.
Hi Nickolay, I had removed -svspec option and and instead of .semi. or .ptm. i used .cont. , after checking this i am getting the following error
INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='batch', VARNORM='no', AGC='none'
INFO: acmod.c(152): Reading linear feature transformation from ./en-us/feature_transform
INFO: acmod.c(162): Using subvector specification 0-12/13-25/26-38
ERROR: "feat.c", line 311: Total dimensionality of subvector specification 39 > feature dimensionality 36
can you suggest any changes?
Tutorial says you need to add -lda
Hi
I had this problem using Pocketsphinx-python. You can see code and full log here. Please also tell me how to remove -svspec from python config.
Code above is a python code part and log file.
You mixed files from the different models in the folder /usr/local/share/pocketsphinx/model/en-us/en-us/, you need to clean the old model files before you unpack the new model.
i use the method describe in tutorial to adapt acoustic model for pocketsphinx and i observe that some audio file dont fail to align with audio and other fails.
My audio files contain many words like you see below :
i try first command bw without -lda option and i have the first sentence fail. the others were ok
After i try bw with - lda option and result was only the first sentence OK.
Precision : I use a ptm model for the first command and a full model for second (because in ptm model there is no file feature_transform).
the first command that i use are this one (ptm model):
/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 myfileids.fileids -lsnfn mytranscription.transcription -accumdir .
and the second with - lda option (full model) :
/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 myfileids.fileids -lsnfn mytranscription.transcription
-lda en-us-adapt/feature_transform
-accumdir .
The error was :
ERROR: backward.c , line 421: Failed to align audio to trancript: final state of the search is not reached
ERROR: baum_welch.c, line 324: 4 ignored
What happens with my adaptation ?
Last edit: thierry LE CONNIAT 2019-10-17