Alphanum recognition
Posted: Thu Dec 07, 2006 1:58 am
Hi I am trying to have an alphanumeric string recognized, eventhough its just between 2-6 characters, the recognition is really bad. Not even getting 30% accuracy. I am including my grammar and the snippet of vxml code where I am calling the grammar. Is there anything I can do to improve the recogntion accuracy? Most of my experience has been with the OSR engine where the accuracy for something like this would be much higher. I am setting ASR type in my code to speechworks hoping that it will use OSR but I dont know if its even taking effect. Here is how I am doing that:
<property name="ASRENGINE" value="SPEECHWORKS" />
The rest of the code is as follows:
VXML:
<grammar version="1.0"
src="alphanum.grxml"
root="alphanum"
type="application/srgs+xml"
mode="voice" />
Grammar:
<rule id="alphanum" scope="public">
<item repeat="2-6">
<item>
<one-of>
<item><ruleref uri="#alphabet"/></item>
<item><ruleref uri="#digit"/></item>
</one-of>
</item>
</item>
</rule>
<rule id="alphabet">
<one-of>
<item> A </item>
<item> B </item>
<item> C </item>
<item> D </item>
<item> E </item>
<item> F </item>
<item> G </item>
<item> H </item>
<item> I </item>
<item> J </item>
<item> K </item>
<item> L </item>
<item> M </item>
<item> N </item>
<item> O </item>
<item> P </item>
<item> Q </item>
<item> R </item>
<item> S </item>
<item> T </item>
<item> U </item>
<item> V </item>
<item> W </item>
<item> X </item>
<item> Y </item>
<item> Z </item>
</one-of>
</rule>
<rule id="digit">
<one-of>
<item> 0 </item>
<item> 1 </item>
<item> 2 </item>
<item> 3 </item>
<item> 4 </item>
<item> 5 </item>
<item> 6 </item>
<item> 7 </item>
<item> 8 </item>
<item> 9 </item>
</one-of>
</rule>
<property name="ASRENGINE" value="SPEECHWORKS" />
The rest of the code is as follows:
VXML:
<grammar version="1.0"
src="alphanum.grxml"
root="alphanum"
type="application/srgs+xml"
mode="voice" />
Grammar:
<rule id="alphanum" scope="public">
<item repeat="2-6">
<item>
<one-of>
<item><ruleref uri="#alphabet"/></item>
<item><ruleref uri="#digit"/></item>
</one-of>
</item>
</item>
</rule>
<rule id="alphabet">
<one-of>
<item> A </item>
<item> B </item>
<item> C </item>
<item> D </item>
<item> E </item>
<item> F </item>
<item> G </item>
<item> H </item>
<item> I </item>
<item> J </item>
<item> K </item>
<item> L </item>
<item> M </item>
<item> N </item>
<item> O </item>
<item> P </item>
<item> Q </item>
<item> R </item>
<item> S </item>
<item> T </item>
<item> U </item>
<item> V </item>
<item> W </item>
<item> X </item>
<item> Y </item>
<item> Z </item>
</one-of>
</rule>
<rule id="digit">
<one-of>
<item> 0 </item>
<item> 1 </item>
<item> 2 </item>
<item> 3 </item>
<item> 4 </item>
<item> 5 </item>
<item> 6 </item>
<item> 7 </item>
<item> 8 </item>
<item> 9 </item>
</one-of>
</rule>