Menu

Questions

Help
med
2012-04-15
2012-09-22
  • med

    med - 2012-04-15

    Hi all,

    I've some questions about training,
    *After generating the .dmp file from the .lm with this command: sphinx_lm_convert -i model.lm -o model.dmp
    should I rename the .dmp to .lm.DMP? because if I didn't it says "Failed to
    read language model file"

    **I can't understand the code in pocketsphinx/src/programs/continuous.c
    I think there is a function that records words from mic, but it compares to
    what?!! Can you please tell me what are the modification that I should do I
    can add path to my model acoustic and .dic ..
    I think this function:

    ps_decoder_t *ps; 
    cmd_ln_t *config; 
    config = cmd_ln_init(NULL, ps_args(), TRUE, 
    "-hmm", MODELDIR "/hmm/en_US/hub4wsj_sc_8k", 
    "-lm", MODELDIR "/lm/en/turtle.DMP", 
    "-dict", MODELDIR "/lm/en/turtle.dic",
     NULL); 
    if (config == NULL)
    return 1;
    

    is the one allows to put path, but where exactely put it in the continuous.c,
    anyone can please help me to finish this work, please!

    *** I created a new project in Qt to creat a GUI to my application but I don't know what are the header files I've to add, this what I did but I'm not sure:
    http://www.freeimagehosting.net/d7faj

    I couldn't find any sys/time.h or sys/types.h so I did a search and I found a
    lot of time.h and types.h, I don't know the right to add :s :s

    And I don't know why nobody wants to answer, did I say anything wrong?!!
    Thnk you all

     
  • med

    med - 2012-04-17

    anybody here?!!! please answer my questions!!!

     

Log in to post a comment.