I'm trying to run PocketSphinx on my WIndows7 laptop. Some relevant details
are as follows:
Operating system ------- Windows7 Home Basic
PocketSphinx version ------- pocketsphinx-0.6
SphinxBase version ------- sphinxbase-0.6
Compilation environment ------- Microsoft Visual C++ 2008 Express Edition
I'm able to compile the application properly but problem occurs when I try to
run pocketsphinx_continuous.exe as follows (Note: hmm model, language model
and dictionary files are copied in the same directory)
When I run
"pocketsphinx_continuous.exe -hmm hub4wsj_sc_8k -lm hub4.5000.dmp -dict
cmu07a.dic -samprate 8000"
I get an application error from Windoes ("pocketsphinx_continuous.exe has
stopped working"). The last line displayed in the dos
box is
" INFO: tmat.c(205): Reading HMM transition probability matrices:
hub4wsj_sc_8k/transition_matrices"
I hear from a collegue of mine that the same application runs fine when
compiled and run on a WindowsXP machine.
Can anybody help me out here !
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please pardon my ignorance but coming from ASIC background I am not an
experienced C programmer. Particularely don't have experience with VS2008
Express. While I'm still looking into the way to generate stacktrace, I tried
doing some single stepping to locate the problem area. And the information is
provided below:
Problem happens when folllowing line of code is executed from tmat.c
if (bio_readhdr(fp, &argname, &argval, &byteswap) < 0)
This is the first occurance of bio_readhdr and problem seems to be in this
function.
The output on the screen at this point of time is as follows:
-agc none none
-agcthresh 2.0 2.000000e+000
-alpha 0.97 9.700000e-001
-ceplen 13 13
-cmn current current
-cmninit 8.0 56,-3,1
-dither no no
-doublebw no no
-feat 1s_c_d_dd 1s_c_d_dd
-frate 100 100
-input_endian little little
-lda
-ldadim 0 0
-lifter 0 0
-logspec no no
-lowerf 133.33334 1.000000e+000
-ncep 13 13
-nfft 512 512
-nfilt 40 20
-remove_dc no yes
-round_filters yes no
-samprate 16000 8.000000e+003
-seed -1 -1
-smoothspec no no
-svspec 0-12/13-25/26-38
-transform legacy dct
-unit_area yes yes
-upperf 6855.4976 4.000000e+003
-varnorm no no
-verbose no no
-warp_params
-warp_type inverse_linear inverse_linear
-wlen 0.025625 2.500000e-002
INFO: acmod.c(238): Parsed model-specific feature parameters from
....\model\hm
m\en_US\hub4wsj_sc_8k/feat.params
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= 12.00, mean= 0.0
INFO: acmod.c(163): Using subvector specification 0-12/13-25/26-38
INFO: mdef.c(520): Reading model definition:
....\model\hmm\en_US\hub4wsj_sc_8k
/mdef
INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef
fi
le
INFO: bin_mdef.c(330): Reading binary model definition:
....\model\hmm\en_US\hu
b4wsj_sc_8k/mdef
INFO: bin_mdef.c(508): 50 CI-phone, 143047 CD-phone, 3 emitstate/phone, 150
CI-s
en, 5150 Sen, 27135 Sen-Seq
INFO: tmat.c(205): Reading HMM transition probability matrices:
....\model\hmm\
en_US\hub4wsj_sc_8k/transition_matrices
And after this the failure happens where the window popsup saying that
pocketsphinx_continuous.exe and stopped working.
Does this information help ? Let me know if you need some other info.
Thanks and regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been able to track down the issue. For running
pocketsphinx_continuous.exe, I was taking sphinxbase.dll from
sphinxbase\bin\release. When I take sphinxbase.dll from \sphinxbase\bin\debug
the problem goes away.
This probably was also the reason that yesterday I wasn't able to single step
through the problem function.
I can now go ahead and start playing with PocketSphinx.
Thanks and regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to run PocketSphinx on my WIndows7 laptop. Some relevant details
are as follows:
I'm able to compile the application properly but problem occurs when I try to
run pocketsphinx_continuous.exe as follows (Note: hmm model, language model
and dictionary files are copied in the same directory)
"pocketsphinx_continuous.exe -hmm hub4wsj_sc_8k -lm hub4.5000.dmp -dict
cmu07a.dic -samprate 8000"
I get an application error from Windoes ("pocketsphinx_continuous.exe has
stopped working"). The last line displayed in the dos
box is
" INFO: tmat.c(205): Reading HMM transition probability matrices:
hub4wsj_sc_8k/transition_matrices"
I hear from a collegue of mine that the same application runs fine when
compiled and run on a WindowsXP machine.
Can anybody help me out here !
Thanks.
It would be nice if you ll provide more detailed stacjtrace of the crash. I
suppose you can easily create it with debug mode in VS.
Hi nshmyrev,
Please pardon my ignorance but coming from ASIC background I am not an
experienced C programmer. Particularely don't have experience with VS2008
Express. While I'm still looking into the way to generate stacktrace, I tried
doing some single stepping to locate the problem area. And the information is
provided below:
if (bio_readhdr(fp, &argname, &argval, &byteswap) < 0)
This is the first occurance of bio_readhdr and problem seems to be in this
function.
INFO: cmd_ln.c(512): Parsing command line:
c:\Users\abc\my_data\abc\Technology\Speech\Sphinx\PocketSphinx\pocketsphinx\bi
n\Debug\pocketsphinx_continuous.exe \
-hmm ....\model\hmm\en_US\hub4wsj_sc_8k \
-lm ....\model\lm\en_US\hub4.5000.dmp \
-dict ....\model\lm\en_US\cmu07a.dic \
-samprate 8000
Current configuration:
-adcdev
-agc none none
-agcthresh 2.0 2.000000e+000
-alpha 0.97 9.700000e-001
-argfile
-ascale 20.0 2.000000e+001
-backtrace no no
-beam 1e-48 1.000000e-048
-bestpath yes yes
-bestpathlw 9.5 9.500000e+000
-bghist no no
-ceplen 13 13
-cmn current current
-cmninit 8.0 8.0
-compallsen no no
-debug 0
-dict ....\model\lm\en_US\cmu07a.dic
-dictcase no no
-dither no no
-doublebw no no
-ds 1 1
-fdict
-feat 1s_c_d_dd 1s_c_d_dd
-featparams
-fillprob 1e-8 1.000000e-008
-frate 100 100
-fsg
-fsgusealtpron yes yes
-fsgusefiller yes yes
-fwdflat yes yes
-fwdflatbeam 1e-64 1.000000e-064
-fwdflatefwid 4 4
-fwdflatlw 8.5 8.500000e+000
-fwdflatsfwin 25 25
-fwdflatwbeam 7e-29 7.000000e-029
-fwdtree yes yes
-hmm ....\model\hmm\en_US\hub4wsj_sc_8k
-input_endian little little
-jsgf
-kdmaxbbi -1 -1
-kdmaxdepth 0 0
-kdtree
-latsize 5000 5000
-lda
-ldadim 0 0
-lextreedump 0 0
-lifter 0 0
-lm ....\model\lm\en_US\hub4.5000.dmp
-lmctl
-lmname default default
-logbase 1.0001 1.000100e+000
-logfn
-logspec no no
-lowerf 133.33334 1.333333e+002
-lpbeam 1e-40 1.000000e-040
-lponlybeam 7e-29 7.000000e-029
-lw 6.5 6.500000e+000
-maxhmmpf -1 -1
-maxnewoov 20 20
-maxwpf -1 -1
-mdef
-mean
-mfclogdir
-mixw
-mixwfloor 0.0000001 1.000000e-007
-mllr
-mmap yes yes
-ncep 13 13
-nfft 512 512
-nfilt 40 40
-nwpen 1.0 1.000000e+000
-pbeam 1e-48 1.000000e-048
-pip 1.0 1.000000e+000
-pl_beam 1e-10 1.000000e-010
-pl_pbeam 1e-5 1.000000e-005
-pl_window 0 0
-rawlogdir
-remove_dc no no
-round_filters yes yes
-samprate 16000 8.000000e+003
-seed -1 -1
-sendump
-senmgau
-silprob 0.005 5.000000e-003
-smoothspec no no
-svspec
-tmat
-tmatfloor 0.0001 1.000000e-004
-topn 4 4
-topn_beam 0 0
-toprule
-transform legacy legacy
-unit_area yes yes
-upperf 6855.4976 6.855498e+003
-usewdphones no no
-uw 1.0 1.000000e+000
-var
-varfloor 0.0001 1.000000e-004
-varnorm no no
-verbose no no
-warp_params
-warp_type inverse_linear inverse_linear
-wbeam 7e-29 7.000000e-029
-wip 0.65 6.500000e-001
-wlen 0.025625 2.562500e-002
INFO: cmd_ln.c(512): Parsing command line:
\
-nfilt 20 \
-lowerf 1 \
-upperf 4000 \
-wlen 0.025 \
-transform dct \
-round_filters no \
-remove_dc yes \
-svspec 0-12/13-25/26-38 \
-feat 1s_c_d_dd \
-agc none \
-cmn current \
-cmninit 56,-3,1 \
-varnorm no
Current configuration:
-agc none none
-agcthresh 2.0 2.000000e+000
-alpha 0.97 9.700000e-001
-ceplen 13 13
-cmn current current
-cmninit 8.0 56,-3,1
-dither no no
-doublebw no no
-feat 1s_c_d_dd 1s_c_d_dd
-frate 100 100
-input_endian little little
-lda
-ldadim 0 0
-lifter 0 0
-logspec no no
-lowerf 133.33334 1.000000e+000
-ncep 13 13
-nfft 512 512
-nfilt 40 20
-remove_dc no yes
-round_filters yes no
-samprate 16000 8.000000e+003
-seed -1 -1
-smoothspec no no
-svspec 0-12/13-25/26-38
-transform legacy dct
-unit_area yes yes
-upperf 6855.4976 4.000000e+003
-varnorm no no
-verbose no no
-warp_params
-warp_type inverse_linear inverse_linear
-wlen 0.025625 2.500000e-002
INFO: acmod.c(238): Parsed model-specific feature parameters from
....\model\hm
m\en_US\hub4wsj_sc_8k/feat.params
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= 12.00, mean= 0.0
INFO: acmod.c(163): Using subvector specification 0-12/13-25/26-38
INFO: mdef.c(520): Reading model definition:
....\model\hmm\en_US\hub4wsj_sc_8k
/mdef
INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef
fi
le
INFO: bin_mdef.c(330): Reading binary model definition:
....\model\hmm\en_US\hu
b4wsj_sc_8k/mdef
INFO: bin_mdef.c(508): 50 CI-phone, 143047 CD-phone, 3 emitstate/phone, 150
CI-s
en, 5150 Sen, 27135 Sen-Seq
INFO: tmat.c(205): Reading HMM transition probability matrices:
....\model\hmm\
en_US\hub4wsj_sc_8k/transition_matrices
And after this the failure happens where the window popsup saying that
pocketsphinx_continuous.exe and stopped working.
Does this information help ? Let me know if you need some other info.
Thanks and regards
Can you step down in this function and check what's wrong there?
Hi nshmyrev,
I have been able to track down the issue. For running
pocketsphinx_continuous.exe, I was taking sphinxbase.dll from
sphinxbase\bin\release. When I take sphinxbase.dll from \sphinxbase\bin\debug
the problem goes away.
This probably was also the reason that yesterday I wasn't able to single step
through the problem function.
I can now go ahead and start playing with PocketSphinx.
Thanks and regards