Voicegain ASR supports the following tag formats in GRXML:
- tag-format="semantics/1.0"
- tag-format="semantics/1.0-literals"
We currently do not support tag-format="swi-semantics/1.0". We do have workarounds that allow use of swi-semantics/1.0 grammars with no or minimal modifications.
Attached is a complete large grammar with tag-format="semantics/1.0" that works with Voicegain ASR.
Here is a header:
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" version="1.0" xml:lang="en-US" tag-format="semantics/1.0" root="ROOT">
Here is an example of a simple tag:
<item>
<item>eighteen</item>
<tag>out.dd1="1"; out.dd2="8";</tag>
</item>
Here is an example with references to tags from other rules:
<item>
<ruleref uri="#singleDigit" />
<tag>out.d5=rules.singleDigit.d;</tag>
</item>
And here an example of the use of ECMAScript concatenation:
<tag>out.zip=out.d1+out.d2+out.d3+out.d4+out.d5;</tag>
Comments
0 comments
Please sign in to leave a comment.