Browse
 
Tools
Rss Categories

Problems Loading or Using Grammars

Reference Number: AA-01806 Views: 1862 0 Rating/ Voters

The Grammar Editor in the LumenVox Speech Tuner is an invaluable tool for troubleshooting problems loading or compiling grammars. Attempting to parse an input against a grammar in the Grammar Editor will provide information about syntax errors, often providing the exact line and column where the problem exists. Verifying that a grammar loads, compiles, and parses in the Tuner is an important first step in troubleshooting any grammar issue.

The LumenVox logs will also generally provide clues about grammar problems (if logging verbosity is turned up). Generally speaking, you should find grammar load failures logged out in the Media Server log and/or the LV Speech Port API log. Those logs will contain error strings and a description of the problem, such as:

  • -23 LV_GRAMMAR_SYNTAX_WARNING
    • This indicates there is a syntax issue that did not prevent compilation. Use the Speech Tuner for more information.
  • -24 LV_GRAMMAR_SYNTAX_ERROR
    • There was a syntax error that prevented grammar compilation. Use the Speech Tuner for more information.
  • -25 LV_GRAMMAR_LOADING_ERROR
  • -33 LV_ACTIVE_GRAMMAR_VOCAB_SIZE_EXCEEDS_LIMIT
    • If you are using a Tier 1 or Tier 2 license, you are limited in the total number of words allowed across all active grammars at any time. Either upgrade to Tier 3 or higher licenses, or else reduce the vocabulary you are using. Contact LumenVox Support or LumenVox Sales for more information about licensing restrictions.
  • -35 LV_ACTIVE_GRAMMAR_LANGUAGE_CONFLICT
  • -36 LV_ACTIVE_GRAMMAR_INVALID_LANGUAGE
    • Your grammar contains a language for which you have not installed the acoustic model or for which there is no acoustic model. See Working With Languages for more details.
  • -37 LV_LOAD_GRAMMAR_TIMEOUT
    • The grammar load exceeded the timeout specified in client_property.conf (default 20 seconds). Only the largest and most complex grammars should trigger this; you may wish to consider precompiled grammars if this is an issue.
  • -41 LV_LICENSES_EXPIRED
  • -44 LV_INVALID_GRAMMAR_LABEL