Unimrcp,Prophecy, GSR: Grammar load failure

269 views
Skip to first unread message

warawich sureepitak

unread,
May 22, 2018, 8:47:44 AM5/22/18
to UniMRCP
Dear all,

I'm using Prophecy connect with UniMRCP and GSR. the error is grammar unable to load. 

The following are unimrcp server error:

2018-05-22 17:23:38:882390 [INFO]   Assign Control Channel <426cf166be36423c@speechrecog> to Connection 192.168.1.98:1544 <-> 192.168.1.24:39489 [0] -> [1]
2018-05-22 17:23:38:882406 [INFO]   Process SET-PARAMS Request <426cf166be36423c@speechrecog> [2000]
2018-05-22 17:23:38:882427 [INFO]   Process SET-PARAMS Response <426cf166be36423c@speechrecog> [2000]
2018-05-22 17:23:38:882553 [INFO]   Send MRCPv2 Data 192.168.1.98:1544 <-> 192.168.1.24:39489 [83 bytes]
MRCP/2.0 83 2000 200 COMPLETE
Channel-Identifier: 426cf166be36423c@speechrecog


2018-05-22 17:23:38:882792 [INFO]   Receive MRCPv2 Data 192.168.1.98:1544 <-> 192.168.1.24:39489 [255 bytes]
MRCP/2.0 0000000255 DEFINE-GRAMMAR 2001
Channel-Identifier: 426cf166be36423c@speechrecog
content-id: 0@vxmlgrammar
content-length: 40
content-type: text/uri-list
fetch-timeout: 10000
speech-language: th-th

builtin:speech/transcribe?language=th-TH
2018-05-22 17:23:38:882817 [INFO]   Process DEFINE-GRAMMAR Request <426cf166be36423c@speechrecog> [2001]
2018-05-22 17:23:38:882840 [WARN]   Non-Existent Builtin Speech Grammar Name [transcribe?language=th-TH] <426cf166be36423c@gsr>
2018-05-22 17:23:38:882850 [INFO]   Process DEFINE-GRAMMAR Response <426cf166be36423c@speechrecog> [2001]
2018-05-22 17:23:38:882953 [INFO]   Send MRCPv2 Data 192.168.1.98:1544 <-> 192.168.1.24:39489 [128 bytes]
MRCP/2.0 128 2001 409 COMPLETE
Channel-Identifier: 426cf166be36423c@speechrecog
Completion-Cause: 004 grammar-load-failure


2018-05-22 17:23:42:954385 [INFO]   Receive SIP Event [nua_i_bye] Status 200 Session Terminated [SIP-Agent-1]
2018-05-22 17:23:42:954416 [INFO]   Receive SIP Event [nua_i_state] Status 200 Session Terminated [SIP-Agent-1]
2018-05-22 17:23:42:954421 [NOTICE] SIP Call State 0x7f79ec001ae8 [terminated]
2018-05-22 17:23:42:954431 [INFO]   Receive SIP Event [nua_i_terminated] Status 200 Session Terminated [SIP-Agent-1]
2018-05-22 17:23:42:954482 [INFO]   Deactivate Session 0x7f79ec001ae8 <426cf166be36423c>
2018-05-22 17:23:42:954489 [INFO]   Terminate Session 0x7f79ec001ae8 <426cf166be36423c>
2018-05-22 17:23:42:954515 [INFO]   Remove Control Channel <426cf166be36423c@speechrecog> [0]
2018-05-22 17:23:42:954528 [INFO]   Close <426cf166be36423c@gsr>
2018-05-22 17:23:42:954534 [NOTICE] GSR Usage: 0/2
2018-05-22 17:23:42:955012 [INFO]   Close RTP Receiver 192.168.1.98:5026 <- 192.168.1.24:10000 [r:204 l:0 j:227 p:50 d:0 i:0]
2018-05-22 17:23:42:955034 [INFO]   Remove RTP Session 192.168.1.98:5026
2018-05-22 17:23:42:955203 [NOTICE] Remove Session <426cf166be36423c>
2018-05-22 17:23:42:955210 [INFO]   Session Terminated 0x7f79ec001ae8 <426cf166be36423c>
2018-05-22 17:23:42:955220 [NOTICE] Destroy Session <426cf166be36423c>
2018-05-22 17:23:47:954797 [INFO]   TCP/MRCPv2 Peer Disconnected 192.168.1.98:1544 <-> 192.168.1.24:39489
2018-05-22 17:23:47:954869 [NOTICE] Destroy TCP/MRCPv2 Connection 192.168.1.98:1544 <-> 192.168.1.24:39489

Here is vxml file:

<?xml version="1.0" encoding="UTF-8"?>
        xml:lang="th-TH"
        version="2.1"
        xsi:schemaLocation="http://www.w3.org/2001/vxml
                            http://www.w3.org/TR/2007/REC-voicexml21-20070619/vxml.xsd">

  <form id="test">
    <field name="main">

      <prompt bargein="true" timeout="5s">
        Please say 1 - 9
      </prompt>

      <grammar src="builtin:speech/transcribe"/>

      <filled>
        <prompt>
          Look like your said
        </prompt>
      </filled>

I tried to change '<grammar src=buitin:speech/number"/>' and digits but it still does not work. If you have any comments or suggestions, they would be greatly appreciated.

Thank you,

Arsen Chaloyan

unread,
May 23, 2018, 12:47:38 AM5/23/18
to UniMRCP
The problem is coming from the language parameter adjacent to the grammar below.

builtin:speech/transcribe?language=th-TH

I noticed that you do not have it in your VoiceXML app, which is correct, but this means Prophecy appends the language implicitly. This is strange since the language is also specified by the means of the header field speech-language.

BTW, I do not recall such a behavior when used Prophecy with GSR. I tried the en-US language, though.




--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

warawich

unread,
May 23, 2018, 1:10:10 AM5/23/18
to uni...@googlegroups.com
Hello Arsen,

Thank you for your help. You are right!  Prophecy is not work with GSR. I tried to change to work with GDF and it is working now.

Thank you. 

--
You received this message because you are subscribed to a topic in the Google Groups "UniMRCP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/unimrcp/RozKL2NQiho/unsubscribe.
To unsubscribe from this group and all its topics, send an email to unimrcp+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages