Menu

Pocketsphinx and Wave File Recognition

Help
Anonymous
2010-09-11
2012-09-22
  • Anonymous

    Anonymous - 2010-09-11

    Hello everyone,

    I have been learning how to use sphinxtrain and pocketsphinx. So far I have
    followed the tutorial and build an acoustic model from CMUSphinx wiki. I got
    to the point where I can do the continuous recognition from the microphone
    using pocketsphinx_continuous.

    Now I've been wondering, what can I use pocketsphinx to recognize a wave file
    instead of the microphone? Do I use pocketsphinx_continuous or do I need to
    use pocketsphinx_batch. I couldn't figure out how to do it. I look into the
    documentation on the folder of pocketsphinx, it seems to explain the API
    instead of the actual parameter for the command-lined executable.

    Any guidance, would be much appreciate. Thank you in advance!

    P.S. Is there a search function for this forum? I try the search bar, but it
    seems to cover the entire sourceforge instead of the CMUsphinx forum.

     
  • creative64

    creative64 - 2010-09-11

    You need to use pocketsphinx_batch for this purpose. If you run
    pocketsphinx_batch without any arguments, it
    would give you the list of command line arguments. An example commd line
    option is:

    pocketsphinx_batch -hmm hub4wsj_sc_8k -dict abc.dic -jsgf abc.jsgf -adcin yes
    -cepdir .\abcd\audio -cepext .raw -ctl abc.ctl -hyp exp.hyp

    Where -hmm points to the hmm directory
    -dict points to the dictionary file
    -jsfg points to the grammar file in this case
    -adcin should be "yes" as shown
    -cepdir points to the directory where audio file clips are stored
    -cepext shows raw format in this case, can be changed to wav
    -ctl points to a control file which have the names of audio files in order they will be consumed for recognition
    -hyp can be used to create a file with output log

     
  • Anonymous

    Anonymous - 2010-09-11

    I'll try that. I appreciate your help. Thank you so much!

     
  • Nickolay V. Shmyrev

    Btw, this functionality was recently added to cmusphinx trunk. You can
    checkout from svn/download snapshot and then try

    pocketsphinx_continuous -infile test.wav
    
     
  • Anonymous

    Anonymous - 2010-09-13

    It seems my version doesn't work with that command. It goes straight to the
    recognition from the mic, I guess I need to get the snapshot version of
    pocketsphinx then. In that case, do I need to uninstall the current
    pocksetsphinx or would it just overwrite the current one? Do I need the
    snapshot version of sphinxbase as well?

    Also, I have an off topic question. I notice that there is a link to Ubuntu
    binary on the download page of CMU Sphinx, which links to this address: https
    ://launchpad.net/~dhuggins/+archive/cmusphinx/+packages

    How exactly is this thing work? I'm kinda new at Ubuntu and would like to
    learn more about it.

    Again, I appreciate your time helping out. I learn alot from this place :)

     
  • Anonymous

    Anonymous - 2010-09-13

    Turn out I need to get the snapshot version of sphinxbase in order to install
    snapshot version of pocketsphinx sucessfully.

    Anyhow, I tried

    pocketsphinx_continuous -infile test.wav

    But it just went straight to the usual microphone recognition again (where it
    ends with Ready...). Do I need to specify anything else on the command line?

    Thank you

     
  • Nickolay V. Shmyrev

    But it just went straight to the usual microphone recognition again (where
    it ends with Ready...). Do I need to specify anything else on the command
    line?

    Please double check that you don't have some old version and you are running
    the snapshot indeed.

     

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.