I've been following the hello world tutorial on subwiki, and I keep on getting this error when running live pretend about no mdef file. I've looked inside the model folder in /usr/src/sphinx/sphinx3, and I have SPHINX_ROOT defined as /usr/src/sphinx in my shell session.
I've been following the hello world tutorial on subwiki, and I keep on getting this error when running live pretend about no mdef file. I've looked inside the model folder in /usr/src/sphinx/sphinx3, and I have SPHINX_ROOT defined as /usr/src/sphinx in my shell session.
Has this happened to anyone else?
=============================================================
root@pc:/usr/src/sphinx# sphinx3_livepretend ctlfile . cfgfile
INFO: info.c(65): Host: 'pc'
INFO: info.c(66): Directory: '/usr/src/sphinx'
INFO: info.c(70): sphinx3_livepretend Compiled on: Dec 31 2008, AT: 11:18:46
INFO: cmd_ln.c(506): Parsing command line:
\
-samprate 16000 \
-hmm $SPHINX_ROOT/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd \
-dict $SPHINX_ROOT/lm_giga_5k_nvp_3gram/lm_giga_5k_nvp.sphinx.dic \
-fdict $SPHINX_ROOT/lm_giga_5k_nvp_3gram/lm_giga_5k_nvp.sphinx.filler \
-lm $SPHINX_ROOT/lm_giga_5k_nvp_3gram/lm_giga_5k_nvp_3gram.arpa.DMP
Current configuration:
[NAME] [DEFLT] [VALUE]
-agc none none
-agcthresh 2.0 2.000000e+00
-alpha 0.97 9.700000e-01
-backtrace yes yes
-beam 1.0e-55 1.000000e-55
-bestpath no no
-bestpathlw 0.000000e+00
-bestscoredir
-bestsenscrdir
-bghist no no
-bptbldir
-bptblsize 32768 32768
-cb2mllr .1cls. .1cls.
-cep2spec no no
-ceplen 13 13
-ci_pbeam 1e-80 1.000000e-80
-cmn current current
-cmninit 8.0 8.0
-cond_ds no no
-ctl
-ctlcount 1000000000 1000000000
-ctloffset 0 0
-ctl_lm
-ctl_mllr
-dagfudge 2 2
-dict $SPHINX_ROOT/lm_giga_5k_nvp_3gram/lm_giga_5k_nvp.sphinx.dic
-dist_ds no no
-dither no no
-doublebw no no
-ds 1 1
-epl 3 3
-fdict $SPHINX_ROOT/lm_giga_5k_nvp_3gram/lm_giga_5k_nvp.sphinx.filler
-feat 1s_c_d_dd 1s_c_d_dd
-featparams
-fillpen
-fillprob 0.1 1.000000e-01
-frate 100 100
-fsg
-fsgusealtpron yes yes
-fsgusefiller yes yes
-gs
-gs4gs yes yes
-hmm $SPHINX_ROOT/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd
-hmmdump no no
-hmmdumpef 200000000 200000000
-hmmdumpsf 200000000 200000000
-hmmhistbinsize 5000 5000
-hyp
-hypseg
-hypsegscore_unscale yes yes
-inlatdir
-inlatwin 50 50
-input_endian little little
-kdmaxbbi -1 -1
-kdmaxdepth 0 0
-kdtree
-latcompress yes yes
-latext lat.gz lat.gz
-lda
-ldadim 0 0
-lextreedump 0 0
-lifter 0 0
-lm $SPHINX_ROOT/lm_giga_5k_nvp_3gram/lm_giga_5k_nvp_3gram.arpa.DMP
-lmctlfn
-lmdumpdir
-lmname
-log3table yes yes
-logbase 1.0003 1.000300e+00
-logspec no no
-lowerf 133.33334 1.333333e+02
-lts_mismatch no no
-lw 9.5 9.500000e+00
-machine_endian little little
-maxcdsenpf 100000 100000
-maxedge 2000000 2000000
-maxhistpf 100 100
-maxhmmpf 20000 20000
-maxhyplen 1000 1000
-maxlmop 100000000 100000000
-maxlpf 40000 40000
-maxppath 1000000 1000000
-maxwpf 20 20
-mdef
-mean
-min_endfr 3 3
-mixw
-mixwfloor 0.0000001 1.000000e-07
-mllr
-mode fwdtree fwdtree
-nbest 200 200
-nbestdir
-nbestext nbest.gz nbest.gz
-ncep 13 13
-nfft 512 512
-nfilt 40 40
-Nlextree 3 3
-Nstalextree 25 25
-op_mode -1 -1
-outlatdir
-outlatfmt s3 s3
-pbeam 1.0e-50 1.000000e-50
-pheurtype 0 0
-phonepen 1.0 1.000000e+00
-phypdump yes yes
-pl_beam 1.0e-80 1.000000e-80
-pl_window 1 1
-ppathdebug no no
-ptranskip 0 0
-rawext .raw .raw
-remove_dc no no
-round_filters yes yes
-samprate 16000 1.600000e+04
-seed -1 -1
-senmgau .cont. .cont.
-silprob 0.1 1.000000e-01
-smoothspec no no
-spec2cep no no
-subvq
-subvqbeam 3.0e-3 3.000000e-03
-svq4svq no no
-svspec
-tighten_factor 0.5 5.000000e-01
-tmat
-tmatfloor 0.0001 1.000000e-04
-topn 4 4
-tracewhmm
-transform legacy legacy
-treeugprob yes yes
-unit_area yes yes
-upperf 6855.4976 6.855498e+03
-uw 0.7 7.000000e-01
-var
-varfloor 0.0001 1.000000e-04
-varnorm no no
-verbose no no
-vqeval 3 3
-warp_params
-warp_type inverse_linear inverse_linear
-wbeam 1.0e-35 1.000000e-35
-wend_beam 1.0e-80 1.000000e-80
-wip 0.7 7.000000e-01
-wlen 0.025625 2.562500e-02
-worddumpef 200000000 200000000
-worddumpsf 200000000 200000000
INFO: kbcore.c(433): Begin Initialization of Core Models:
ERROR: "cmd_ln.c", line 718: Cannot open configuration file $SPHINX_ROOT/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/feat.params for reading
INFO: kbcore.c(453): Parsed model-specific feature parameters from $SPHINX_ROOT/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/feat.params
INFO: Initialization of the log add table
INFO: Log-Add table size = 29350 x 2 >> 0
INFO:
INFO: feat.c(848): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none'
INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0
INFO: kbcore.c(480): .cont.
INFO: Initialization of feat_t, report:
INFO: Feature type = 1s_c_d_dd
INFO: Cepstral size = 13
INFO: Number of streams = 1
INFO: Vector size of stream[0]: 39
INFO: Number of subvectors = 0
INFO: Whether CMN is used = 1
INFO: Whether AGC is used = 0
INFO: Whether variance is normalized = 0
INFO:
INFO: Reading HMM in Sphinx 3 Model format
INFO: Model Definition File: (null)
INFO: Mean File: (null)
INFO: Variance File: (null)
INFO: Mixture Weight File: (null)
INFO: Transition Matrices File: (null)
FATAL_ERROR: "mdef.c", line 679: No mdef-file
You need to replace $SPHINX_ROOT with the real folder in a cfg file yourself. Of course sphinx doesn't do any shell substitutions.
You could get this information just by reading your log:
ERROR: "cmd_ln.c", line 718: Cannot open configuration file $SPHINX_ROOT/sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/feat.params for reading
ah, thank you. Silly me!