- Contents
VoiceXML Technical Reference
File-based Grammar Types
The grammar type that VoiceXML tells the Reco subsystem about for a file-based grammar is determined as follows:
-
If the type is specified in the <grammar> element in the VoiceXML script, then that type is used as the grammar type.
-
If ignoreGrammarFileMimeType is false or unspecified,
-
If the file has a MimeType associated with it, that MimeType is used as the grammar type
-
If the file does NOT have a MimeType associated with it, the configured defaultGrammarMimeType is used as the grammar type.
-
-
If ignoreGrammarFileMimeType is true, the configured defaultGrammarMimeType is used as the grammar type.
Note: If the Reco subsystem is familiar with the
type of Voice grammar (application/srgs and application/srgs+xml), it
tries to parse them. For types that it doesn’t know, the Reco subsystem
sends the grammars on to the recognition engine for parsing.
For DTMF grammars, the Reco subsystem tries to parse the grammar, and if
the type is one with which it is not familiar, it objects.It
never passes DTMF grammars on to the recognition engine.

