Hello,
I tried to use PocketSphinx on a pre-recorded wave file using the argument list that I found in pocketsphinx_test and just appending the filename. But that didn't work out (obviously). Can someone tell me what parts I got wrong and need to change?
1: Sphinx-4's 12345.wav; RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz 2: -adcin yes \ -ctl ${CTLFILE} \ -cepdir ${DATADIR} \ -cepext .16k \ -samprate 16000 \ -agc none \ -fwdflat no -bestpath no \ -lm ${TASK}/turtle.lm \ -dict ${TASK}/turtle.dic \ -hmm ${HMM} \ -mmap yes
I tried to use PocketSphinx on a pre-recorded wave file using the argument list that I found in pocketsphinx_test and just appending the filename.
What exactly have you done, its impossible to understand from it
But that didn't work out (obviously)
What was broken?
Can someone tell me what parts I got wrong and need to change?
Please try to provide more precise and detailed information
You need to specify the length of the .wav header with the switch -adchdr 44.
CB
@nshmyrev
command:
./pocketsphinx_batch \ -adcin yes \ -ctl ../share/pocketsphinx/model/lm/turtle/turtle.ctl \ -samprate 16000 \ -agc none \ -fwdflat no \ -bestpath no \ -lm ../share/pocketsphinx/model/lm/turtle/turtle.lm \ -dict ../share/pocketsphinx/model/lm/turtle/turtle.dic \ -hmm ../share/pocketsphinx/model/hmm/wsj1 \ -mmap yes \ -adchdr 44 \ ~/sphinx/12345.wav
output: ERROR: "cmd_ln.c", line 559: Unknown argument name './pocketsphinx_batch' ERROR: "cmd_ln.c", line 644: cmd_ln_parse_r failed
Looks like it is choking on argv?
And after some looking around I found the problem: pebkac. Thank you cbader for the -adchdr hint.
K, thanks. This confusing warning was fixed in trunk.
Log in to post a comment.
Hello,
I tried to use PocketSphinx on a pre-recorded wave file using the argument
list that I found in pocketsphinx_test and just appending the filename. But
that didn't work out (obviously). Can someone tell me what parts I got wrong
and need to change?
1: Sphinx-4's 12345.wav; RIFF (little-endian) data, WAVE audio, Microsoft PCM,
16 bit, mono 16000 Hz
2: -adcin yes \
-ctl ${CTLFILE} \
-cepdir ${DATADIR} \
-cepext .16k \
-samprate 16000 \
-agc none \
-fwdflat no -bestpath no \
-lm ${TASK}/turtle.lm \
-dict ${TASK}/turtle.dic \
-hmm ${HMM} \
-mmap yes
What exactly have you done, its impossible to understand from it
What was broken?
Please try to provide more precise and detailed information
You need to specify the length of the .wav header with the switch -adchdr 44.
CB
@nshmyrev
command:
output:
ERROR: "cmd_ln.c", line 559: Unknown argument name './pocketsphinx_batch'
ERROR: "cmd_ln.c", line 644: cmd_ln_parse_r failed
Looks like it is choking on argv?
And after some looking around I found the problem: pebkac. Thank you cbader
for the -adchdr hint.
K, thanks. This confusing warning was fixed in trunk.