我的项目是关于手机的语音识别。为此,我在测试阶段使用pocketsphinx_batch.exe
。但是以下代码无法创建输出文件
$sphinxBinDir/pocketsphinx_batch.exe -hmm hmmFilepath -dict dictFİlePath -hyp fileRecTri.txt
我该怎么办?此代码不会创建fileRecTri.txt
文件。请在这方面帮助我。我已经搜索了两天,但找不到一个好的教程。
你能帮我一些链接或样本格式教程吗?
这是我的日志文件
...
$sphinxBinDir/pocketsphinx_batch.exe -hmm $rootDir/model_parameters/turkish.cd_cont_${NUMTIEDSTATES} -dict $rootDir/test.dic -fdict $rootDir/train.filler -fsg $rootDir/tvControl.fsg -cepdir $testFeatDir -ctl $rootDir/test.fileIds -hyp $resultDir/pocketrec_tri.txt -beam $beam
INFO: cmd_ln.c(697): Parsing command line:
D:07.05.2015\Codes\BIN\Sphinx_Version12850\bin\pocketsphinx_batch.exe \
-hmm D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/model_parameters/turkish.cd_cont_2000 \
-dict D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/test.dic \
-fdict D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/train.filler \
-fsg D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/tvControl.fsg \
-cepdir
D:07.05.2015/DATA/Speech/SpeechRec/16k_test/feat_Sphinx_cfg2 \
-ctl D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/test.fileIds \
-hyp D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/results/pocketrec_tri.txt \
-beam 1.0e-65
Current configuration:
[NAME] [DEFLT] [VALUE]
-adchdr 0 0
-adcin no no
-agc none none
-agcthresh 2.0 2.000000e+000
-allphone
-allphone_ci no no
-alpha 0.97 9.700000e-001
-argfile
-ascale 20.0 2.000000e+001
-aw 1 1
-backtrace no no
-beam 1e-48 1.000000e-065
-bestpath yes yes
-bestpathlw 9.5 9.500000e+000
-build_outdirs yes yes
-cepdir D:07.05.2015/DATA/Speech/SpeechRec/16k_test/feat_Sphinx_cfg2
-cepext .mfc .mfc
-ceplen 13 13
-cmn current current
-cmninit 8.0 8.0
-compallsen no no
-ctl D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/test.fileIds
-ctlcount -1 -1
-ctlincr 1 1
-ctloffset 0 0
-ctm
-debug 0
-dict D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/test.dic
-dictcase no no
-dither no no
-doublebw no no
-ds 1 1
-fdict D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/train.filler
-feat 1s_c_d_dd 1s_c_d_dd
-featparams
-fillprob 1e-8 1.000000e-008
-frate 100 100
-fsg D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/tvControl.fsg
-fsgctl
-fsgdir
-fsgext
-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 D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/model_parameters/turkish.cd_cont_2000
-hyp D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/results/pocketrec_tri.txt
-hypseg
-input_endian little little
-jsgf
-keyphrase
-kws
-kws_plp 1e-1 1.000000e-001
-kws_threshold 1 1.000000e+000
-latsize 5000 5000
-lda
-ldadim 0 0
-lifter 0 0
-lm
-lmctl
-lmname
-lmnamectl
-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 30000 30000
-maxwpf -1 -1
-mdef
-mean
-mfclogdir
-min_endfr 0 0
-mixw
-mixwfloor 0.0000001 1.000000e-007
-mllr
-mllrctl
-mllrdir
-mllrext
-mmap yes yes
-nbest 0 0
-nbestdir
-nbestext .hyp .hyp
-ncep 13 13
-nfft 512 512
-nfilt 40 40
-nwpen 1.0 1.000000e+000
-outlatbeam 1e-5 1.000000e-005
-outlatdir
-outlatext .lat .lat
-outlatfmt s3 s3
-pbeam 1e-48 1.000000e-048
-pip 1.0 1.000000e+000
-pl_beam 1e-10 1.000000e-010
-pl_pbeam 1e-10 1.000000e-010
-pl_pip 1.0 1.000000e+000
-pl_weight 3.0 3.000000e+000
-pl_window 5 5
-rawlogdir
-remove_dc no no
-remove_noise yes yes
-remove_silence yes yes
-round_filters yes yes
-samprate 16000 1.600000e+004
-seed -1 -1
-sendump
-senin no no
-senlogdir
-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
-uw 1.0 1.000000e+000
-vad_postspeech 50 50
-vad_prespeech 10 10
-vad_threshold 2.0 2.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.5Segmentation fault
perl $origDir/bin/sphinxRec2HTKRec.pl -frate $FRATE $resultDir/pocketrec_tri.txt $rootDir/testWavFiles.txt $resultDir/pocketrec_tri.mlf
Died at D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/bin/sphinxRec2HTKRec.pl line 7.
$htkBinDir/HResults -t -I $rootDir/promptTest.mlf $rootDir/train.phone $resultDir/pocketrec_tri.mlf > $resultDir/pocketresults_tri.mlf
ERROR [+6510] LOpen: Unable to open label file D:07.05.2015/Codes/SHELL/exp/SpeechRec/sphinx03/data/hmm01/results/pocketrec_tri.mlf
FATAL ERROR - Terminating program D:07.05.2015\Codes\BIN\HTK_3.4.1\bin\HResults.exe