Grammar Compiler

When the Speech Engine first loads a grammar, it compiles it from a standard SRGS format into a binary format. For large grammars, this process may become very time consuming.

 

To increase loading speeds when using very large grammars, one option is to compile your grammars in advance. We provide support for this via a simple command-line tool (currently this tool is Windows-only).

 

In the Engine's directory (by default C:\Program Files\LumenVox\Engine\), there is a program called LVGrammarCompiler.exe. To use it, open a new command window, navigate to the Engine directory, and type:

 

LVGrammarCompiler.exe inputname outputname

 

The inputname is the name of the SRGS grammar file you wish to compile. The outputname is the name the compiled grammar file will have.

 

Once you have a compiled grammar, you may load it as you would an SRGS grammar.

 

Note that the Grammar Editor, part of the LumenVox Speech Tuner, also provides a GUI method of compiling grammars.


Complete Help Topic List | Speech Engine Product Information