GSR | CVP | External SRGS Grammar File | Error : Unsupported Grammar Format

227 views
Skip to first unread message

Subin Sunderdas

unread,
Sep 6, 2019, 12:16:30 PM9/6/19
to UniMRCP

Hi All,


Issue : GSR | External SRGS Grammar file | Error : Unsupported Grammar Format 


We have integrated CVP with UniMRCP. We are using GSR for speech transcription and GSS for Synthesized speech. We have developed IVR application which works as expected when we use builtin grammar for voice and DTMF.

However when we try to use external srgs grammar (grxml), we are observing UniMRCP server is throwing Unsupported Grammar Format error.

Findings from UniMRCP log:

In DEFINE-GRAMMAR method, Content-Type is set to text/uri-list instead of application/srgs+xml. From IVR application we are sending grammar type as application/srgs+xml.



UniMRCP Log:

2019-09-05 03:10:31:314452 [INFO]   Receive MRCPv2 Data 10.38.244.162:1544 <-> 10.38.244.153:54997 [360 bytes]
MRCP/2.0 358 DEFINE-GRAMMAR 100
Channel-Identifier: a94b600c55e84066@speechrecog
Fetch-Timeout:10000
Cache-Control:max-stale=0,max-age=300
Content-Type:text/uri-list
Speech-Language:en-US
Content-Id:fie...@field.grammar
Content-Length: 56



IVR application assigning proper grammar type:

<field name="foundation_fld" modal="false">
<property name="inputmodes" value="voice" />
<property name="com.cisco.secureLogging" value="false" />
<grammar mode="voice" type="application/srgs+xml" version="1.0" src="http://10.38.244.134/grammars/unimrcp/UniMRCPVoice.grxml" />
<prompt bargein="true">
</prompt>
<catch event="nomatch">

I have attached UniMRCP log and grammar file for your reference.
grxml.log
UniMRCPVoice.grxml

Doug Rylaarsdam

unread,
Sep 6, 2019, 1:50:50 PM9/6/19
to UniMRCP
The text/uri-list looks okay (that is the payload type of the DEFINE-GRAMMAR request). The server does not support http fetching of grammar files, so that is likely the cause of the 004 grammar-load-failure. Try using an in-line SRGS grammar. 


On Friday, September 6, 2019 at 11:16:30 AM UTC-5, Subin Sunderdas wrote:

Hi All,


Issue : GSR | External SRGS Grammar file | Error : Unsupported Grammar Format 


We have integrated CVP with UniMRCP. We are using GSR for speech transcription and GSS for Synthesized speech. We have developed IVR application which works as expected when we use builtin grammar for voice and DTMF.

However when we try to use external srgs grammar (grxml), we are observing UniMRCP server is throwing Unsupported Grammar Format error.

Findings from UniMRCP log:

In DEFINE-GRAMMAR method, Content-Type is set to text/uri-list instead of application/srgs+xml. From IVR application we are sending grammar type as application/srgs+xml.



UniMRCP Log:

2019-09-05 03:10:31:314452 [INFO]   Receive MRCPv2 Data 10.38.244.162:1544 <-> 10.38.244.153:54997 [360 bytes]
MRCP/2.0 358 DEFINE-GRAMMAR 100
Channel-Identifier: a94b600c55e84066@speechrecog
Fetch-Timeout:10000
Cache-Control:max-stale=0,max-age=300
Content-Type:text/uri-list
Speech-Language:en-US
Content-Id:field1@field.grammar

Michael Levy

unread,
Sep 6, 2019, 8:21:25 PM9/6/19
to UniMRCP
Yes, the define-grammar looks correct. 

VXML tags get mapped to MRCP commands.

The MRCP define-grammar uses content-type text/uri-list when the body of the define-grammar command is a URI or a list of URIs. This is the case in this example.

The MRCP define-grammar command would specify the content-type application/srgs+xml when the body of the define-grammar command included the text of the grammar. This is typically the case when VXML includes grammars inline (the grammar is specified in the <grammar> tag and not just a src URI).

Arsen Chaloyan

unread,
Sep 10, 2019, 9:23:06 PM9/10/19
to UniMRCP
Although the message flow is correct, fetching grammars via HTTP is not currently supported by the SR plugins.

--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/e8ed5d4a-9868-41e5-ac7e-f2047b03cf81%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages