Menu

How to change language models at runtime

Help
2004-06-08
2012-09-22
  • David Feil-Seifer

    Is there a convenient way to switch, and/or activate and deactivate lanugage models during continuous rec runtime?

    What I'm trying to do is implement load and unload model functions for an interface.

     
    • Anonymous

      Anonymous - 2004-06-08

      Before you can expect an answer, you should tell us which recognizer you wish to use -- Sphinx2, 3, 4.  (If the answer is Sphinx2, the answer is yes; I don't know about the others.)

       
      • David Feil-Seifer

        I'm using sphinx2, where should I be looking to be able to change language models at runtime?

        fbs_init does the whole job of turning on the engine, and I can change the params passed to fbs_init, after using fbs_end(), but is there a faster/more elegant way to do this?

         
    • Anonymous

      Anonymous - 2004-06-15

      See the Sphinx2 User Guide http://www.speech.cs.cmu.edu/sphinx/doc/sphinx2.html  at the end of the section, "Speech-To_text Decoding,", beginning with "Multiple, named LMs can be...".  There are four API calls that let you do just what you want.

       

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.