cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2997
Views
0
Helpful
1
Replies

CVP Nuance ASR integration

Deep46
Level 1
Level 1

Hi All,

We are able to integrate with Nuance 9 with CVP 9. We used a simple application where the application would ask to choose for sales or support. For this we used a 2 option menu and in voice keyword we have provide - en-us;approximate;sales and is working fine.

 

We are now building a vxml application to integrate with external grammar files. we used form element and used the correct syntax as prescribed in the config guide. We would like to know if there is any sample vxml app where form element and grammar integration is used.

 

Please find attached the form element properties . URL is http://CVP_ip_address/en-us/app/Helloworld.xml

After deploying the application, we are getting audium error exception.PFa. Please let us know if any one can help me on this.

1 Accepted Solution

Accepted Solutions

Chintan Gajjar
Level 8
Level 8

we were able to resolve the external grammar error. if any body in future would be looking out for solution then its below:

steps for using external grammar with CVP:

1) external grammar will be grammar file with extension of .grxml (filename.grxml) and its served by any HTTP web server(IIS server) on need basis(similarly to a wav file).

enable the web server to provide .grxml file by adding a MIME extension as .grxml and MIME Type as application/srgs+xml.

2) create a sample grammar file, save it as .grxml and put it on web server.

make sure that you are able to get the file by http, check by putting URL in your browser.

 

here is the sample grammar (grxml)

<?xml version="1.0" encoding="UTF-8"?>
<grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar" xml:lang="en-US" root="root">
<rule id="root" scope="public">
<item>
<ruleref uri="#vehicle"/>
</item>
</rule>
<rule id="vehicle" scope="public">
<one-of> 
<item>bike</item>
<item>car</item>
<item>scooter</item>
<item>Rickshaw</item>
</one-of>
</rule>
</grammar>

 

if you are using nuance Recogniser, then there are some more samples you can find under

C:\Program Files\Nuance\Recognizer\samples\swirec_sample\

 

3) use a form element in Call studio to test the developed grammar.

below is the sample configuration of the call studio form element.

 

make sure that grammar file is reached by voice gateway on specified URL.

also make sure that you have appropriate language pack installed on nuance, the one you are trying to use(in this case its US english). also please set the locale by application modifier.

the language context and language code in form element configuration must match the defined one in .grxml.

 

thats it, you should be able to recognize the words whatever you have mentioned in grxml <ITEM> tag.

the utterance will be stored in nbestUtteranceX element data.

 

regards

Chintan

View solution in original post

1 Reply 1

Chintan Gajjar
Level 8
Level 8

we were able to resolve the external grammar error. if any body in future would be looking out for solution then its below:

steps for using external grammar with CVP:

1) external grammar will be grammar file with extension of .grxml (filename.grxml) and its served by any HTTP web server(IIS server) on need basis(similarly to a wav file).

enable the web server to provide .grxml file by adding a MIME extension as .grxml and MIME Type as application/srgs+xml.

2) create a sample grammar file, save it as .grxml and put it on web server.

make sure that you are able to get the file by http, check by putting URL in your browser.

 

here is the sample grammar (grxml)

<?xml version="1.0" encoding="UTF-8"?>
<grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar" xml:lang="en-US" root="root">
<rule id="root" scope="public">
<item>
<ruleref uri="#vehicle"/>
</item>
</rule>
<rule id="vehicle" scope="public">
<one-of> 
<item>bike</item>
<item>car</item>
<item>scooter</item>
<item>Rickshaw</item>
</one-of>
</rule>
</grammar>

 

if you are using nuance Recogniser, then there are some more samples you can find under

C:\Program Files\Nuance\Recognizer\samples\swirec_sample\

 

3) use a form element in Call studio to test the developed grammar.

below is the sample configuration of the call studio form element.

 

make sure that grammar file is reached by voice gateway on specified URL.

also make sure that you have appropriate language pack installed on nuance, the one you are trying to use(in this case its US english). also please set the locale by application modifier.

the language context and language code in form element configuration must match the defined one in .grxml.

 

thats it, you should be able to recognize the words whatever you have mentioned in grxml <ITEM> tag.

the utterance will be stored in nbestUtteranceX element data.

 

regards

Chintan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: