We don't expect the simulator to work with all grammar format especially those from an external source. That's why when you use the grammar editor in OD, it generates 4 different format for different ASR. However the simulation also supports talking to a live ASR or TTS through MRCP to test other grammar types. If you don't have that information already, you can looking into our documentation on the settings you need.
If you tweak your external grammar to the following, it would work:
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xml:lang="en-US" version="1.0" root="root" mode="dtmf" tag-format="semantics/1.0">
<rule id="root" scope="public">
<one-of>
<item>*<tag>"GoBack"</tag></item>
<item>0<tag>"Operator"</tag></item>
<item>1<tag>"AccountBalance"</tag></item>
<item>2<tag>"FundTransfer"</tag></item>
<item>3<tag>"BPay"</tag></item>
<item>4<tag>"OtherServices"</tag></item>
<item>7<tag>"GoBack"</tag></item>
<item>8<tag>"Repeat"</tag></item>
<item>9<tag>"EndCall"</tag></item>
</one-of>
</rule>
</grammar>
|