Menu

PocketSphinx usage with wave

Help
Anonymous
2010-03-18
2012-09-22
  • Anonymous

    Anonymous - 2010-03-18

    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

     
  • Nickolay V. Shmyrev

    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

     
  • Christopher Bader

    You need to specify the length of the .wav header with the switch -adchdr 44.

    CB

     
  • Anonymous

    Anonymous - 2010-03-18

    @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?

     
  • Anonymous

    Anonymous - 2010-03-19

    And after some looking around I found the problem: pebkac. Thank you cbader
    for the -adchdr hint.

     
  • Nickolay V. Shmyrev

    K, thanks. This confusing warning was fixed in trunk.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.