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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
Thanks a lot. I've been busy these past few days and I couldn't try your
suggestion until now.