- Installation
- Administration
- Programmer's Guide
- Grammars
- MRCP Server
- FAQs
In an SRGS grammar, you may place pieces of data called tags anywhere in a grammar rule. When a rule is matched, the tag is returned to the user in a parse tree, along with the words spoken that caused the rule to match.
A common use for tags is to transform a speakers sentence into data that your application can understand. The LumenVox speech port is capable of manipulating the tags in your parse tree, if they are in a form known as the Semantic Interpretation for Speech Recognition (SISR) tag format. Examples of this tag format can be found in this help file here.
To do any kind of interpretation, you must specify the format your tags are in.
Within the speech port, the following tag format specifiers are acceptable. Currently, both formats tell the engine to perform the same interpretation process, but as other interpretation schemes are adopted, or interpretation schemes are modified, the tag format specifier you decide on will become more important.
| semantics/1.0.2006 | Use the SI script format of the SISR official recommendation, version 1.0 (adopted as a recommendation April 2007). |
| semantics/1.0.2006-literals | Use the string literals format of the SISR official recommendation, version 1.0 (adopted as a recommendation April 2007). |
| semantics/1.0 | Use the 2003 working draft of SISR. |
| lumenvox/1.0 | Use the LumenVox-specific implementation of the 2003 SISR draft. |
If the tag format of your grammar does not match one of these specifiers, the speech port will not attempt to interpret your tags. You can still use the tag data in the Parse Tree to perform your own interpretation.
To specify the format of the tags in a grammar, use the following syntax: