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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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.
Great, I'll give that a try. Thanks!
is there any starup up performance difference between a jsgf and a fsg?
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.