Menu

pocketsphinx: LM change before the 2nd pass

Help
lococuad
2011-09-21
2012-09-22
  • lococuad

    lococuad - 2011-09-21

    Hi,

    I am a newbie and I get lost easily diving into the code of pocketsphinx.

    I understand that pocketsphinx does 3 passes (fwdtree, fwdflat and bestpath).
    The 1st pass (fwdtree) is performed during the execution of ps_process_raw ().
    The 2nd pass is performed during the execution of ps_end_utt () inside the
    function ngram_search_finish (). I want to change the language model just
    before starting the fwdflat search. May you help me with the steps for this
    change? ; can I keep in memory several LMs and activate the adequate one
    during runtime in order to save the LM loading time?

    Thanks in advance.

     
  • Nickolay V. Shmyrev

    You can just call ngram_model_set_select before starting flat search.

    It's questionable why do you need to change one trigram model to another but I
    suppose you understand that already.

     
  • lococuad

    lococuad - 2011-10-04

    Thanks a lot. I've been busy these past few days and I couldn't try your
    suggestion until now.

     

Log in to post a comment.