cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1924
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: null on 31-01-2007 07:38:32 PM
Hello,
I was wondering if any one has run into this before.... We are running cvp 3.1, audium CS 3.6 and OSR 3.0. We just recently got our ASR/TTS configured and working. Now we are converting some applications to speech and building our new apps w/ speech. In this process we have a few applications that need to use external grammers. When we try to load these grammers it errors out. Inline grammers work fine, it's only the external that are failing. We tried copying a sample grammer right off of our OSR server and verified w/ nuance that it is a valid grammer that should work. Even this grammer fails when put into the audium app.

The error we are getting on the OSR server is that the file is in the wrong format. basically the file is coming to the OSR server in some sort of binary format and not in standard XML.

Any help would be appreciated.

Thanx,
Ryan.

Subject: RE: External grxml grammer file not working
Replied by: null on 01-02-2007 10:45:39 AM
Ryan,

I suspect your not telling it what type of request your making. GRXML sure does work with CVP and Nuance (We use Nuance Blue) but OSR should also work fine too. Check if OSR has a specific tag format but it should be W3C compliant for GRXML

If you check the Audium docs there is a parameter format for the grammar entry.

weight;grammar type;grammar file uri

E.G
0.5;application/srgs+xml;http://web_uri/ryan.grxml

Cheers

Karl

Subject: Tried a couple of things
Replied by: null on 01-02-2007 07:11:57 PM
I have tried to specify the weight and the file type as you have suggested, but it doesn't seem to be working. The weight and the file type are, as far as I know, optional (If not specified, it defaults to the type OSR uses). Thanks for the help,

Erhan

Subject: hmmmm
Replied by: null on 01-02-2007 07:15:27 PM
Thanx for the reply Karl. Unfortunetly still no luck. I'll post a little more info........

Here is the error.....
[quote:1e7f2da043]
Feb 01 12:45:50.90| 5748| 0||| SWIREC| SWIrecGrammarLoad| Enter
Feb 01 12:45:50.90| 5748| 0||| SWIREC_API| SWIrecGrammarLoad| Entering: (0x1e3a2b18, {'uri/2.0', 'http://apsw0012/yesno.grxml', 'inet.maxage=-1;inet.maxstale=-1;inet.timeoutDownload=5000;inet.timeoutIO=5000;inet.timeoutOpen=5000;inet.urlBase=http://apse9150:8080/Audium/;swirec_language=en-US'})
Feb 01 12:45:50.90| 5748| 0||| SWIREC_GRAMLOAD| load_grammars| Getting node for uri (http://apsw0012/yesno.grxml)
Feb 01 12:45:50.90| 5748| 0||| SWIREC_GRAMLOAD| load_grammars| Not found on memory cache.
Feb 01 12:45:50.90| 5748| 0||| SWIREC_GRAMLOAD| load_grammar_handle| Fetching/Compiling (http://apsw0012/yesno.grxml)
Feb 01 12:45:50.90| 5748| 0||| SWIREC_GRAMLOAD| compile_grammar| Enter: ({http://apsw0012/yesno.grxml})
Feb 01 12:45:50.92| 5748| 0||| SWIREC| VAInetOpen| (server media type is application/octet-stream)
Feb 01 12:45:50.92| 5748| 0||| ** WARNING **| 4306| SWI_MEDIA_TYPE_WARNING| Grammar media type| CheckUriMediaType | Server returned unsupported media type 'application/octet-stream' for uri 'http://apsw0012/yesno.grxml'
Feb 01 12:45:50.92| 5748| 0||| RecognizerErrorUnwind|| SWI error INVALID_MEDIA_TYPE(11) detected in SWIgrAPI.c:250
Feb 01 12:45:50.92| 5748| 0||| RecognizerErrorUnwind|| SWI error INVALID_MEDIA_TYPE(11) detected in SWIgrAPI.c:1222
Feb 01 12:45:50.92| 5748| 0||| RecognizerErrorUnwind|| SWI error INVALID_MEDIA_TYPE(11) detected in SWIgrAPI.c:920
Feb 01 12:45:50.92| 5748| 0||| RecognizerErrorUnwind|| SWI error INVALID_ARGUMENT(2) detected in SWIgrAPI.c:2001
Feb 01 12:45:50.92| 5748| 0||| SWIREC_GRAMLOAD| compile_grammar| Result: ERROR_INVALID_MEDIA_TYPE (28) at line 218
[/quote:1e7f2da043]

Here is the grxml file (just a simple file).....

[code:1:1e7f2da043]
  • <grammar>
  • <rule>
  • <one>
<item>no</item>
<item>yes</item>
<item>okay</item>
<item>cancel</item>
</one>
<example>okay</example>
</rule>
</grammar>
[/code:1:1e7f2da043]

And here is my Voice Grammer entry from my form element w/in Audium..

[code:1:1e7f2da043]
0.5;application/srgs+xml;http&#58;//10.103.16.18&#58;80/yesno.grxml
[/code:1:1e7f2da043]

Any help would be appreciated.... Thanx!
Ryan.

ps - i also attached the grxml file cause it didn't paste quite right. i had to drop the 'gr' from the extension for it to be valid to add as an attachment.

Subject: RE: hmmmm
Replied by: Vance Vagell on 01-02-2007 09:25:39 PM
Hi Ryan et al,

It sounds as though your media server is not configured to return the proper MIME type for your grammar file. In Karl's previous response, for example, the appropriate MIME type would be "application/srgs+xml". If you are not sure what MIME type is appropriate for your grammar files, please refer to your voice browser's documentation to see which types it can handle.

Each app/web server has its own configuration steps for MIME types. In Tomcat, for example, you can edit the file Tomcat/conf/web.xml and add new file extension to MIME type mappings there. Once a new type is added, you should restart Tomcat for the changes to take effect. For other app/web servers please refer to the appropriate documentation.

Regards,
Vance

Subject: RE: hmmmm
Replied by: null on 01-02-2007 11:09:08 PM
Vance, thanx for the post. I did go in and add the mime type to my media server (where the grxml file is hosted). It is an IIS 5.0 web server. Again, this didn't seem to help. It still seems to be coming accross to the OSR server as application/octet-stream. I made the change and then re-started IIS (multiple times :o) ). This is really frusterating. We also have a ticket open w/ our speech vendor, but are getting nowhere on that front.

How does the communication work? for example, audium talkes to cvp, cvp talkes to the OSR server, the osr server sees that there is an external grammer, and then does it (the OSR server) make a direct request to our media server that is hosting the grxml file?

Reason I ask is cause I only added the mime type to the media server. want to make sure that the grammer isn't 'passed' through cvp or something that could be messing it up.

Thanx,
Ryan.

Subject: RE: hmmmm
Replied by: Vance Vagell on 02-02-2007 07:37:25 PM
Hi Ryan,

The flow is as follows:

1) Your voice app on Audium Call Services produces VoiceXML which includes a reference to an external grammar.

2) The voice browser parses the VoiceXML and retrieves external grammars that the VoiceXML references.

3) The voice browser passes those grammars on to the ASR engine for use with processing caller input.

Hope this helps. For details CVP voice browser configuration please refer to Cisco TAC who can help you through this issue and any other questions you may have.

Regards,
Vance

Subject: RE: hmmmm
Replied by: null on 02-02-2007 09:59:11 PM
Vance,
Thanx. I got it working. Basically the web server we were using IIS5.0 didn't seem to work. I tried adding the .grxml mime type, but it didn't seem to take. I then moved my grammer to one of our audium tomcat servers. Once there it worked fine.

I'm going to try upgrading our web server to win2003 server and see if that fixes the issue w/ this mime on an IIS web server.

Thanx for all your help.

ryan.

Subject: RE: hmmmm
Replied by: Vance Vagell on 02-02-2007 10:07:46 PM
Hi Ryan,

You're welcome, and we are glad to hear that you have isolated the cause. Should you have further questions about how this works please let us know.

Regards,
Vance
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:

Quick Links