Menu

Save compiled JSGF

Help
2010-06-09
2012-09-22
  • Andrew Durstewitz

    Hi all,

    I'm using PocketSphinx with command line JSGF grammar file. During
    initialization I think the JSGF is compiled and placed into memory.

    What I'm looking for is a way to save this compiled grammar so the next time I
    start the application the grammar isn't compiled again. Is there a way to do
    this?

    Thanks, Andrew J Durstewitz

     
  • Nickolay V. Shmyrev

    At least you can convert jsgf to fsg with sphinx_jsgf2fsg. As for compilation
    (adding null transitions and silences/fillers) it's also quite easy, but
    require some code changes on sphinxbase. Right now fsg is saved before fillers
    are inserted and on load they are inserted again I think.

     
  • Nickolay V. Shmyrev

    And, if you need fast fsg/jsgf I suggest you to try nighly build/svn trunk.
    The change for vast speed improvement was committed recently there.

     
  • Andrew Durstewitz

    Great, I'll give that a try. Thanks!

     
  • Aaron Burton

    Aaron Burton - 2010-06-16

    is there any starup up performance difference between a jsgf and a fsg?

     
  • Nickolay V. Shmyrev

    FSG is faster to load of course because it's machine-readable format that
    doesnt' require expensive parsing. But on the
    background of startup and all realated activities, loading and parsing is very
    minor thing so the difference shoudln't be noticable.

     

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.