I have installed latest version of sphinx3 and sphinxbase from the repository.
When I am giving absolute path of mfcc file to sphinx then sphinx treat it as
a relative path and insert ./ at the start of the path string. So sphinx
is always failed to read mfcc file.
eg:
-utt /home/asr/demo6sep/feats/$filename.mfc
what could be the problem here?
Error log( Main part of error is last 5-6 lines)
INFO:cmd_ln.c(691):Parsingcommandline:/home/asr/tools/sphinx_3_8_latest/sphinx3/bin/sphinx3_decode \
-hmm/home/asr/demo6sep/models/hmm \
-lm/home/asr/demo6sep/models/lm/district/district.lm.DMP \
-modefwdflat \
-dict/home/asr/demo6sep/models/lm/dictionary110503.dic \
-fdict/home/asr/demo6sep/models/lm/test.filler \
-ctlcount1 \
-utt/home/asr/demo6sep/feats/temp_asr.mfc \
-logfn/home/asr/demo6sep/LogOutfiles/temp_asr.log.txt \
-hyp/home/asr/demo6sep/LogOutfiles/temp_asr.out.txt \
-hypseg/home/asr/demo6sep/LogOutfiles/hypseg.txtCurrentconfiguration:[NAME][DEFLT][VALUE]-adchdr00-adcinnono-agcnonenone-agcthresh2.02.000000e+00-alpha0.979.700000e-01-backtraceyesyes-beam1.0e-551.000000e-55-bestpathnono-bestpathlw0.000000e+00-bestscoredir-bestsenscrdir-bghistnono-bgonlynono-bptbldir-bptblsize3276832768-build_outdirsyesyes-cb2mllr.1cls..1cls.-cepdir..-cepext.mfc.mfc-ceplen1313-ci_pbeam1e-801.000000e-80-cmncurrentcurrent-cmninit8.08.0-cond_dsnono-ctl-ctlcount10000000001-ctloffset00-ctl_lm-ctl_mllr-dagfudge22-debug0-dict/home/asr/demo6sep/models/lm/dictionary110503.dic-dist_dsnono-dithernono-doublebwnono-ds11-epl33-fdict/home/asr/demo6sep/models/lm/test.filler-feat1s_c_d_dd1s_c_d_dd-featparams-fillpen-fillprob0.11.000000e-01-frate100100-fsg-fsgusealtpronyesyes-fsgusefilleryesyes-gs-gs4gsyesyes-hmm/home/asr/demo6sep/models/hmm-hmmdumpnono-hmmdumpef200000000200000000-hmmdumpsf200000000200000000-hmmhistbinsize50005000-hyp/home/asr/demo6sep/LogOutfiles/temp_asr.out.txt-hypseg/home/asr/demo6sep/LogOutfiles/hypseg.txt-hypsegscore_unscaleyesyes-inlatdir-inlatwin5050-input_endianlittlelittle-kdmaxbbi-1-1-kdmaxdepth00-kdtree-latcompressyesyes-latextlat.gzlat.gz-lda-ldadim00-lextreedump00-lifter00-lm/home/asr/demo6sep/models/lm/district/district.lm.DMP-lmctlfn-lmdumpdir-lmname-log3tableyesyes-logbase1.00031.000300e+00-logfn/home/asr/demo6sep/LogOutfiles/temp_asr.log.txt-logspecnono-lowerf133.333341.333333e+02-lts_mismatchnono-lw9.59.500000e+00-maxcdsenpf100000100000-maxedge20000002000000-maxhistpf100100-maxhmmpf2000020000-maxlmop100000000100000000-maxlpf4000040000-maxppath10000001000000-maxwpf2020-mdef-mdef_fillersnono-mean-min_endfr33-mixw-mixwfloor0.00000011.000000e-07-mllr-modefwdtreefwdflat-nbest200200-nbestdir-nbestextnbest.gznbest.gz-ncep1313-nfft512512-nfilt4040-Nlextree33-Nstalextree2525-op_mode-1-1-outlatdir-outlatfmts3s3-pbeam1.0e-501.000000e-50-pheurtype00-phonepen1.01.000000e+00-phsegdir-pl_beam1.0e-801.000000e-80-pl_window11-ppathdebugnono-ptranskip00-remove_dcnono-round_filtersyesyes-samprate160001.600000e+04-seed-1-1-sendump-senmgau.cont..cont.-silprob0.11.000000e-01-smoothspecnono-subvq-subvqbeam3.0e-33.000000e-03-svq4svqnono-svspec-tighten_factor0.55.000000e-01-tmat-tmatfloor0.00011.000000e-04-topn44-topn_beam00-tracewhmm-transformlegacylegacy-treeugprobyesyes-ugonlynono-unit_areayesyes-upperf6855.49766.855498e+03-utt/home/asr/demo6sep/feats/temp_asr.mfc-uw0.77.000000e-01-var-varfloor0.00011.000000e-04-varnormnono-verbosenono-vqeval33-warp_params-warp_typeinverse_linearinverse_linear-wbeam1.0e-351.000000e-35-wend_beam1.0e-801.000000e-80-wip0.77.000000e-01-wlen0.0256252.562500e-02-worddumpef200000000200000000-worddumpsf200000000200000000INFO:kbcore.c(442):BeginInitializationofCoreModels:ERROR:"cmd_ln.c",line787:Cannotopenconfigurationfile/home/asr/demo6sep/models/hmm/feat.paramsforreadingINFO:kbcore.c(462):Parsedmodel-specificfeatureparametersfrom/home/asr/demo6sep/models/hmm/feat.paramsINFO:InitializationofthelogaddtableINFO:Log-Addtablesize=29356x2>>0INFO:INFO:feat.c(684):Initializingfeaturestreamtotype:'1s_c_d_dd',ceplen=13,CMN='current',VARNORM='no',AGC='none'INFO:cmn.c(142):mean[0]=12.00,mean[1..12]=0.0INFO:kbcore.c(489):.cont.INFO:Initializationoffeat_t,report:INFO:Featuretype=1s_c_d_ddINFO:Cepstralsize=13INFO:Numberofstreams=1INFO:Vectorsizeofstream[0]:39INFO:Numberofsubvectors=0INFO:WhetherCMNisused=1INFO:WhetherAGCisused=0INFO:Whethervarianceisnormalized=0INFO:INFO:ReadingHMMinSphinx3ModelformatINFO:ModelDefinitionFile:/home/asr/demo6sep/models/hmm/mdefINFO:MeanFile:/home/asr/demo6sep/models/hmm/meansINFO:VarianceFile:/home/asr/demo6sep/models/hmm/variancesINFO:MixtureWeightFile:/home/asr/demo6sep/models/hmm/mixture_weightsINFO:TransitionMatricesFile:/home/asr/demo6sep/models/hmm/transition_matricesINFO:mdef.c(683):Readingmodeldefinition:/home/asr/demo6sep/models/hmm/mdefINFO:Initializationofmdef_t,report:INFO:76CI-phone,23730CD-phone,3emitstate/phone,228CI-sen,728Sen,977Sen-SeqINFO:INFO:kbcore.c(299):UsingoptimizedGMMcomputationforContinuousHMM,-topnwillbeignoredINFO:cont_mgau.c(163):Readingmixturegaussianfile'/home/asr/demo6sep/models/hmm/means'INFO:cont_mgau.c(422):728mixtureGaussians,8components,1streams,veclen39INFO:cont_mgau.c(163):Readingmixturegaussianfile'/home/asr/demo6sep/models/hmm/variances'INFO:cont_mgau.c(422):728mixtureGaussians,8components,1streams,veclen39INFO:cont_mgau.c(523):Readingmixtureweightsfile'/home/asr/demo6sep/models/hmm/mixture_weights'INFO:cont_mgau.c(678):Read728x8mixtureweightsINFO:cont_mgau.c(706):RemovinguninitializedGaussiandensitiesWARNING:"cont_mgau.c",line780:17densitiesremoved(0mixturesremovedentirely)INFO:cont_mgau.c(796):ApplyingvariancefloorINFO:cont_mgau.c(814):186variancevaluesflooredINFO:cont_mgau.c(862):PrecomputingMahalanobisdistanceinvariantsINFO:tmat.c(119):ReadingHMMtransitionprobabilitymatrices:/home/asr/demo6sep/models/hmm/transition_matricesINFO:Initializationoftmat_t,report:INFO:Read76transitionmatricesofsize3x4INFO:INFO:dict.c(385):Readingmaindictionary:/home/asr/demo6sep/models/lm/dictionary110503.dicERROR:"dict.c",line265:Line90:Phone'pp'ismisingintheacousticmodel;word'_56'ignoredERROR:"dict.c",line265:Line91:Phone'pp'ismisingintheacousticmodel;word'_56(2)'ignoredERROR:"dict.c",line265:Line145:Phone'ar'ismisingintheacousticmodel;word'_78(2)'ignoredERROR:"dict.c",line265:Line204:Phone'mm'ismisingintheacousticmodel;word'amalxanera(2)'ignoredERROR:"dict.c",line265:Line339:Phone'pp'ismisingintheacousticmodel;word'dxappaa'ignoredERROR:"dict.c",line265:Line416:Phone'oo'ismisingintheacousticmodel;word'ho(2)'ignoredERROR:"dict.c",line265:Line471:Phone'dd'ismisingintheacousticmodel;word'kadduu'ignoredERROR:"dict.c",line265:Line631:Phone'oo'ismisingintheacousticmodel;word'no(2)'ignoredERROR:"dict.c",line265:Line891:Phone'oo'ismisingintheacousticmodel;word'wrong(3)'ignoredINFO:dict.c(388):888wordsreadINFO:dict.c(393):Readingfillerdictionary:/home/asr/demo6sep/models/lm/test.fillerINFO:dict.c(396):3wordsreadINFO:dict.c(429):Added0fillersfrommdeffileINFO:Initializationofdict_t,report:INFO:NoofCIphone:0INFO:Maxword:4996INFO:Noofword:891INFO:INFO:lm.c(612):LMread('/home/asr/demo6sep/models/lm/district/district.lm.DMP',lw=9.50,wip=0.70,uw=0.70)INFO:lm.c(614):ReadingLMfile/home/asr/demo6sep/models/lm/district/district.lm.DMP(LMname"default")INFO:lm_3g_dmp.c(631):ReadingLMin16bitsformatINFO:lm_3g_dmp.c(687):Read33unigrams[inmemory]INFO:lm_3g_dmp.c(760):62bigrams[ondisk]INFO:lm_3g_dmp.c(833):91bigrams[ondisk]INFO:lm_3g_dmp.c(903):4bigramprobentriesINFO:lm_3g_dmp.c(937):5trigrambowtentriesINFO:lm_3g_dmp.c(968):3trigramprobentriesINFO:lm_3g_dmp.c(999):1trigramsegtableentries(512segsize)INFO:lm_3g_dmp.c(1054):33wordstringsINFO:lm.c(710):TheLMroutineisoperatingat16bitsmodeINFO:Initializationoffillpen_t,report:INFO:Languageweight=9.500000INFO:WordInsertionPenalty=0.700000INFO:Silenceprobability=0.100000INFO:Fillerprobability=0.100000INFO:INFO:dict2pid.c(600):BuildingPIDtablesfordictionaryINFO:Initializationofdict2pid_t,report:INFO:Dict2pidisincompositetriphonemodeINFO:542compositestates;221compositesseqINFO:INFO:kbcore.c(635):Insidekbcore:Verifyingmodelsconsistency......INFO:kbcore.c(657):EndofInitializationofCoreModels:INFO:Initializationofbeam_t,report:INFO:ParametersusedinBeamPruningofViterbiSearch:INFO:Beam=-422203INFO:PBeam=-383821INFO:WBeam=-268675(Skip=0)INFO:WEndBeam=-614114INFO:NoofCIPhoneassumed=76INFO:INFO:Initializationoffast_gmm_t,report:INFO:ParametersusedinFastGMMcomputation:INFO:Frame-level:DownSamplingRatio1,ConditionalDownSampling?0,Distance-basedDownSampling?0INFO:GMM-level:CIphonebeam-614114.MAXCD100000INFO:Gaussian-level:GSmapwouldbeusedforGaussianSelection?=1,SVQwouldbeusedasGaussianScore?=0SubVQBeam-19366INFO:INFO:Initializationofpl_t,report:INFO:Parametersusedinphonemelookahead:INFO:Phonemelook-aheadtype=0INFO:Phonemelook-aheadbeamsize=-614114INFO:NoofCIPhonesassumed=76INFO:INFO:Initializationofascr_t,report:INFO:No.ofCIsenone=228INFO:No.ofsenone=728INFO:No.ofcompositesenone=542INFO:No.ofsenonesequence=977INFO:No.ofcompositesenonesequence=221INFO:Parametersusedinphonemelookahead:INFO:Phonemelookaheadwindow=1INFO:ERROR:"kb.c",line172:fopen(/home/asr/demo6sep/LogOutfiles/hypseg.txt,w)failed;useFWDXCT:fromstdlogfileINFO:kb.c(308):SEARCHMODEINDEX3INFO:srch.c(376):SearchInitialization.INFO:srch_flat_fwd.c(205):InitializationINFO:ctxt_table.c(256):Buildingwithin-wordtriphonesINFO:ctxt_table.c(288):324within-wordtriphoneinstancesmappedtoCI-phonesINFO:ctxt_table.c(310):Buildingcross-wordtriphonesINFO:ctxt_table.c(371):3168cross-wordtriphonesmappedtoCI-phonesINFO:Initializationofsrch_t,report:INFO:OperationMode=3,OperationName=fwdflatINFO:INFO:utt.c(74):Processing:temp_asr.mfc_00000000INFO:feat.c(1176):Atdirectory.[b]INFO:feat.c(993):Readingmfcfile:'.//home/asr/demo6sep/feats/temp_asr.mfc'[0..-1]SYSTEM_ERROR:"pio.c",line450:stat(.//home/asr/demo6sep/feats/temp_asr.mfc) failed; retrying...;NosuchfileordirectoryERROR:"feat.c",line1002:Failedtoopenfile'.//home/asr/demo6sep/feats/temp_asr.mfc' for reading: No such file or directoryFATAL_ERROR:"utt.c",line120:Cannotreadfile/home/asr/demo6sep/feats/temp_asr.mfc.Forcedexit[/b]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It tries to load the file relative the the folder configured with -cepdir
option. In your case it tries to load the file from the current folder. You
need to specify relative path according to your current folder or you need to
configure the base path with the -cepdir option.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sphinx giving below error when i am supplying above mfc file path. With the
short mfc file name there is no any problem.
Please, let me know what the problem is?
hi...
iam doing this project for semicontinuos so i have an4,pocketsphinx,sphinxbase and sphinxtrain.
The problem is after data (an4) got set up, i got sphinxtrain.cfg and feat.params in my etc file.Then i modified sphinxtrain.cfg.(i used pocket sphinx). While running the the next step
"python ../sphinxtrain/scripts/sphinxtrain run".iam getting output as feature extraction is done. but im not getting mfcc feature in feat file, simply it creates feat file. It will go to the next step(verify_all.pl),
there im getting "warrning:error 'D:spnx/an4/etc/an4_train.fileids the feature file D:spnx/an4/feat/1.mfc doesnot exist or empty...what is the error in this?
Thanks...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have installed latest version of sphinx3 and sphinxbase from the repository.
When I am giving absolute path of mfcc file to sphinx then sphinx treat it as
a relative path and insert ./ at the start of the path string. So sphinx
is always failed to read mfcc file.
eg:
what could be the problem here?
Error log( Main part of error is last 5-6 lines)
It tries to load the file relative the the folder configured with -cepdir
option. In your case it tries to load the file from the current folder. You
need to specify relative path according to your current folder or you need to
configure the base path with the -cepdir option.
Yes that problem has been solved by setting -cepdir to root directory.
But still there is another problem.
Sphinx is failed to read mfc file, when mfc file name is long.Here below is
example of long mfc file name.
Sphinx giving below error when i am supplying above mfc file path. With the
short mfc file name there is no any problem.
Please, let me know what the problem is?
Error log
Thanks,
The problem is that file name is too long.
hi...
iam doing this project for semicontinuos so i have an4,pocketsphinx,sphinxbase and sphinxtrain.
The problem is after data (an4) got set up, i got sphinxtrain.cfg and feat.params in my etc file.Then i modified sphinxtrain.cfg.(i used pocket sphinx). While running the the next step
"python ../sphinxtrain/scripts/sphinxtrain run".iam getting output as feature extraction is done. but im not getting mfcc feature in feat file, simply it creates feat file. It will go to the next step(verify_all.pl),
there im getting "warrning:error 'D:spnx/an4/etc/an4_train.fileids the feature file D:spnx/an4/feat/1.mfc doesnot exist or empty...what is the error in this?
Thanks...
These are my an4 files
Last edit: Chandan G M 2017-11-15