Genesys Discussion Forum



Go Back   Genesys Discussion Forum > Technical Discussions > Genesys Voice Platform / IVR

Genesys Voice Platform / IVR A software, standards-based self-service platform

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2009, 02:23 AM
rajneesh srivastava rajneesh srivastava is offline
Member
Newbie
 
Join Date: Mar 2009
Posts: 10
rajneesh srivastava is an unknown quantity at this point
Default GRXL Grammar

Hi,

I need to write a uk postcode speech grammar which is in grxml, can anyone guide how to start about this.

Grammar should support this format:
A9 9AA
A99 9AA
AA9 9AA
AA99 9AA
A9A 9AA
AA9A 9AA

Thanks
Reply With Quote
  #2  
Old 01-07-2010, 05:19 PM
antoni antoni is offline
Member
Newbie
 
Join Date: Feb 2009
Posts: 17
antoni is an unknown quantity at this point
Default


A9 9AA
A99 9AA
AA9 9AA
AA99 9AA
A9A 9AA
AA9A 9AA

In expressions:
A [A] 9 [9] 9 A A or
A [A] 9 A 9 A A
simplifying:
A [A] 9 ( [9] | A ) 9 A A
for grammar:
A {1,2} 9 (9 | A)? 9 A {1,2}

from wikipedia, something like:
[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][ABD-HJLNP-UW-Z]{2}
http://en.wikipedia.org/wiki/Postcod...United_Kingdom

postcode.grxml digit SAMPLE

<grammar mode="dtmf" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/06/grammar
http://www.w3.org/TR/speech-grammar/grammar.xsd"
xmlns="http://www.w3.org/2001/06/grammar">
<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>
<rule id="pin" scope="public">
<one-of>
<item>
<item repeat="2"><ruleref uri="#digit"/></item>
</item>
</one-of>
</rule>
</grammar>


__________________
--
Antonio Noriega
Reply With Quote
  #3  
Old 01-07-2010, 05:27 PM
antoni antoni is offline
Member
Newbie
 
Join Date: Feb 2009
Posts: 17
antoni is an unknown quantity at this point
Default


A9 9AA
A99 9AA
AA9 9AA
AA99 9AA
A9A 9AA
AA9A 9AA

In expressions:
A [A] 9 [9] 9 A A or
A [A] 9 A 9 A A
simplifying:
A [A] 9 ( [9] | A ) 9 A A
for grammar:
A {1,2} 9 (9 | A)? 9 A {1,2}

from wikipedia, something like:
[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][ABD-HJLNP-UW-Z]{2}
http://en.wikipedia.org/wiki/Postcod...United_Kingdom

postcode.grxml optional digit SAMPLE

<grammar mode="dtmf" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/06/grammar
http://www.w3.org/TR/speech-grammar/grammar.xsd"
xmlns="http://www.w3.org/2001/06/grammar">
<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>
<rule id="postcode" scope="public">
<one-of>
<item>
<item repeat="0-1"><ruleref uri="#digit"/></item>
</item>
</one-of>
</rule>
</grammar>


__________________
--
Antonio Noriega
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GVP Studio---DTMF grammar rajneesh srivastava Genesys Voice Platform / IVR 1 09-03-2009 11:38 AM

Copyright 2008 - 2009, Genesys Telecommunications Laboratories, Inc.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
All Rights Reserved