swirec_ignore_grammar_media_type
Ignores the media type that is returned by the server upon fetching a grammar. (It replaces the media type fetched from the server.)
Value |
Boolean DEFAULT: 1 (ignore fetched type) By default, Recognizer uses the media type specification from the server (if provided). Otherwise, it uses the type specified by the load or activate function. |
How to set |
Shown in precedence order (see Rules of parameter precedence): In the application's session xml in the <speechrecog> section of <speechserver> under <sessionparameters>. In Management Station set on the Nuance recognition service. If not using Management Station, set in a Recognizer configuration file (User-nrsxx.xml). |
Usage |
Occasionally used to ensure application compliance to the VoiceXML specification. |
When a grammar is loaded or activated, and this parameter is set to 0 (zero), it can be fetched from a web server.
During the fetch, the server can specify the media type of the grammar as one of the following:
Media type |
Description |
---|---|
application/srgs+xml |
W3C format XML grammar. |
application/x-swi-grammar |
Nuance Recognizer binary grammar format. |
application/x-swi-ngram+xml |
Nuance Recognizer n-gram grammar. |
application/x-swi-parameter |
Nuance Recognizer parameter grammar. |
application/x-swi-wordlist |
Nuance Recognizer wordlist grammar. |
application/x-vnd.nuance.slm |
Nuance Recognizer (compiled form, the target file usually has an .slm file extension). |
application/x-vnd.nuance.slm+xml |
Nuance Recognizer language model (XML format, not compiled, and the target file usually has the .slmxml file extension). |
application/x-vnd.nuance.ssm |
Nuance Recognizer statistic semantic model. |
If you require full compliance with the SRGS grammar specification on your system, use 0. The value 1 (ignoring the media type returned by the server) is a non-conforming behavior.