Page 1 of 1

Canadian postalcode: alphanumeric voice recognition

Posted: Mon Mar 08, 2010 9:25 am
by w2gi
Hi,
I want to improve the <grammer> for recognizing canadian postal code. So that, I want the first letter to be alphabet, second letter to be number, third to be alphabet, fourth to be number, fifth to be alphabet and sixth to be number. Is there a way to specify what <rule>(alphabet or digit) should be used when <item> is repeated?

vxml

Code: Select all

<grammar src="alphanum.grxml" type="application/srgs+xml" mode="voice" root="alphanum"/>
alphanum.grxml

Code: Select all

<?xml version="1.0"?>
<grammar type="application/srgs+xml" root="alphanum" mode="voice">
	<rule id="alphanum" scope="public">
		<item repeat="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>
</grammar> 
Thanks,
Saif

IVR alphanumeric grammar problem

Posted: Mon Mar 08, 2010 10:56 am
by support
Hi Saif,

About your grammar implementation, you cannot specify which <ruleref> you want to use as the zip code is being said.

About your alphanumeric grammar, the IVR will have difficulties in recognizing a Canadian postal code. Just as humans have difficulty in recognizing in spelling (for example, f's and s's, m's and n's) from each other, the IVR will have problems as users are spelling out the digits and numbers.

You could try implementing a military alphabet grammar into your code, but it would to tough to expect your users to know the military alphabet.

Here are some previous posts that address this issue:

http://support.plumvoice.com/viewtopic.php?t=955
http://support.plumvoice.com/viewtopic.php?t=927

Regards,
Plum Support