Unable to start recognition error

863 views
Skip to first unread message

Adesh Pandey

unread,
Jun 12, 2017, 1:00:24 PM6/12/17
to UniMRCP
Hi,
I have installed asterisk-unimrcp along with unimrcp server and client on asterisk box but when I am using MRCPRecog in my dialplan it shows an error that can not start recognition detailed log is as follows:

builtin:grammar/digits
[Jun 12 05:59:12] NOTICE[2209]: src/mrcp_client_connection.c:633 : Receive MRCPv2 Data 10.0.0.117:58246 <-> 10.0.0.117:1544 [125 bytes]
MRCP/2.0 125 1 406 COMPLETE
Channel-Identifier: 11cb28d00a1e4cbf@speechrecog
Completion-Cause: 004 grammar-load-failure


[Jun 12 05:59:12] NOTICE[2208]: src/mrcp_client_session.c:498 : Raise App MRCP Response ASR-7 <11cb28d00a1e4cbf>
[Jun 12 05:59:12] ERROR[5786][C-00000008]: app_mrcprecog.c:1304 app_recog_exec: (ASR-7) Unable to start recognition

Arsen Chaloyan

unread,
Jun 13, 2017, 1:18:36 AM6/13/17
to UniMRCP

If you are using the UniMRCP server with the GSR plugin, then consider specifying a builtin grammar as follows: builtin:speech/$name.

Your MRCPRecog would look like:

MRCPRecog(builtin:speech/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world)

Please do NOT post the same question to all the possible places. Here is a basic guidance to follow:
  • for issues related to evaluation of commercial modules, you may use the Ticketing Subsystem, available to registered users only.
  • generic questions go to the Discussion Group.
  • in order to report an issue, use the Issue Tracker on GitHub.


--
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

Adesh Pandey

unread,
Jun 13, 2017, 5:01:54 AM6/13/17
to UniMRCP
Hi Arsen,

Thank you for your reply, after using speech I am able to use mrcpRecog but the response is delayed in the dial plan. Is there any other way to get recognition results quickly?

Arsen Chaloyan

unread,
Jun 14, 2017, 1:27:41 AM6/14/17
to UniMRCP
Hi Adesh,

If you could provide additional information, I may be able to help. In particular, how much was the overall response time, utterance length, etc. If you are using the GSR plugin, then provide the logs of the server having the log level of the plugin set to DEBUG.

--
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.

Adesh Pandey

unread,
Oct 28, 2017, 5:53:57 AM10/28/17
to UniMRCP
Hi Arsen,
I can see the recognized response in the logs very quickly but t flag in MRCPRecog seems not working because next priority in the dialplan gets executed nearly after 22-29 seconds and I can fetch ${RECOG_RESULT} then only.

Thank You!!
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Adesh Pandey

unread,
Oct 28, 2017, 6:00:24 AM10/28/17
to UniMRCP
Logs are as follows:


[Oct 28 05:58:06] NOTICE[5134][C-00000001]: app_mrcprecog.c:1071 app_recog_exec: MRCPRecog() grammar: builtin:speech/number
[Oct 28 05:58:06] NOTICE[5134][C-00000001]: app_mrcprecog.c:1091 app_recog_exec: MRCPRecog() options: t=5000&b=1&ct=0.7&spl=en-US&f=hello-world&rm=hotword
[Oct 28 05:58:06] NOTICE[5134][C-00000001]: src/mrcp_application.c:117 : Create MRCP Handle 0x7fe86c015c48 [speech-nuance5-mrcp2]
[Oct 28 05:58:06] NOTICE[5134][C-00000001]: src/mrcp_client_session.c:131 : Create Channel ASR-1 <new>
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client_session.c:385 : Receive App Request ASR-1 <new> [2]
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client.c:696 : Add MRCP Handle ASR-1 <new>
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client_session.c:717 : Add Control Channel ASR-1 <new@speechrecog>
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client_session.c:409 : Send Offer ASR-1 <new> [c:1 a:1 v:0] to 10.0.0.117:8060
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_sofiasip_client_agent.c:348 : Local SDP ASR-1 <new>
v=0
o=Asterisk 0 0 IN IP4 0.0.0.0
s=-
c=IN IP4 0.0.0.0
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4002 RTP/AVP 0 8 96 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 L16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendonly
a=ptime:20
a=mid:1

[Oct 28 05:58:06] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:603 : Receive SIP Event [nua_i_state] Status 0 INVITE sent [speech-nuance5-mrcp2]
[Oct 28 05:58:06] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:541 : SIP Call State ASR-1 [calling]
[Oct 28 05:58:06] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:603 : Receive SIP Event [nua_r_invite] Status 200 OK [speech-nuance5-mrcp2]
[Oct 28 05:58:06] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:603 : Receive SIP Event [nua_i_state] Status 200 OK [speech-nuance5-mrcp2]
[Oct 28 05:58:06] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:541 : SIP Call State ASR-1 [ready]
[Oct 28 05:58:06] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:427 : Remote SDP ASR-1 <new>
v=0
o=UniMRCPServer 4519791706006938570 8301050927888319930 IN IP4 10.0.0.117
s=-
c=IN IP4 52.76.65.104
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:cf8bef3eb8c8403a@speechrecog
a=cmid:1
m=audio 5096 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=recvonly
a=ptime:20
a=mid:1

[Oct 28 05:58:06] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:603 : Receive SIP Event [nua_i_active] Status 200 Call active [speech-nuance5-mrcp2]
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client_session.c:149 : Receive Answer ASR-1 <new> [c:1 a:1 v:0] Status 200
[Oct 28 05:58:06] NOTICE[5107]: src/mrcp_client_connection.c:336 : Established TCP/MRCPv2 Connection 10.0.0.117:57948 <-> 10.0.0.117:1544
[Oct 28 05:58:06] NOTICE[5107]: src/mrcp_client_connection.c:433 : Add Control Channel <cf8bef3eb8c8403a@speechrecog> 10.0.0.117:57948 <-> 10.0.0.117:1544 [1]
[Oct 28 05:58:06] NOTICE[5108]: src/mpf_rtp_stream.c:328 : Enable RTP Session 0.0.0.0:4002
[Oct 28 05:58:06] NOTICE[5108]: src/mpf_rtp_stream.c:918 : Open RTP Transmitter 0.0.0.0:4002 -> 10.0.0.117:5096
[Oct 28 05:58:06] NOTICE[5108]: src/mpf_bridge.c:91 : Media Path ASR-1 Source->[PCMU/8000/1]->Bridge->[PCMU/8000/1]->Sink
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client_session.c:453 : Raise App Response ASR-1 <cf8bef3eb8c8403a> [2] SUCCESS [0]
[Oct 28 05:58:06] NOTICE[5106]: app_mrcprecog.c:279 speech_on_channel_add: (ASR-1) Channel ready codec=PCMU, sample rate=8000
[Oct 28 05:58:06] NOTICE[5134][C-00000001]: app_mrcprecog.c:1300 app_recog_exec: (ASR-1) Recognizing, enable DTMFs: 2, start input timers: 0
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client_session.c:390 : Receive App MRCP Request ASR-1 <cf8bef3eb8c8403a>
[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client_session.c:620 : Send MRCP Request ASR-1 <cf8bef3eb8c8403a@speechrecog> [1]
[Oct 28 05:58:06] NOTICE[5107]: src/mrcp_client_connection.c:528 : Send MRCPv2 Data 10.0.0.117:57948 <-> 10.0.0.117:1544 [304 bytes]
MRCP/2.0 304 RECOGNIZE 1
Channel-Identifier: cf8bef3eb8c8403a@speechrecog
Content-Type: text/uri-list
Cancel-If-Queue: false
Start-Input-Timers: false
Recognition-Mode: hotword
Recognition-Timeout: 5000
Confidence-Threshold: 0.7
Speech-Language: en-US
Content-Length: 21

builtin:speech/number
[Oct 28 05:58:06] NOTICE[5107]: src/mrcp_client_connection.c:633 : Receive MRCPv2 Data 10.0.0.117:57948 <-> 10.0.0.117:1544 [83 bytes]
MRCP/2.0 83 1 200 IN-PROGRESS
Channel-Identifier: cf8bef3eb8c8403a@speechrecog


[Oct 28 05:58:06] NOTICE[5106]: src/mrcp_client_session.c:498 : Raise App MRCP Response ASR-1 <cf8bef3eb8c8403a>
[Oct 28 05:58:06] WARNING[5134][C-00000001]: format_pcm.c:162 pcm_seek: offset too large 11235, truncating to 11234
[Oct 28 05:58:06] NOTICE[5134][C-00000001]: speech_channel.c:790 astchan_stream_file: Stream file hello-world on SIP/adesh-00000001 length:11234
[Oct 28 05:58:07] NOTICE[5108]: src/mpf_rtp_stream.c:1196 : Generate RTCP SR [ssrc:1898642949 s:15 o:2400 ts:2560]
[Oct 28 05:58:07] NOTICE[5108]: src/mpf_rtp_stream.c:1383 : Send Compound RTCP Packet [BYE] [72 bytes] 0.0.0.0:4003 -> 10.0.0.117:5097
[Oct 28 05:58:07] NOTICE[5108]: src/mpf_rtp_stream.c:1196 : Generate RTCP SR [ssrc:1898642949 s:16 o:2560 ts:2800]
[Oct 28 05:58:07] NOTICE[5108]: src/mpf_rtp_stream.c:1383 : Send Compound RTCP Packet [BYE] [72 bytes] 0.0.0.0:4003 -> 10.0.0.117:5097
[Oct 28 05:58:07] NOTICE[5107]: src/mrcp_client_connection.c:633 : Receive MRCPv2 Data 10.0.0.117:57948 <-> 10.0.0.117:1544 [115 bytes]
MRCP/2.0 115 START-OF-INPUT 1 IN-PROGRESS
Channel-Identifier: cf8bef3eb8c8403a@speechrecog
Input-Type: speech


[Oct 28 05:58:07] NOTICE[5106]: src/mrcp_client_session.c:514 : Raise App MRCP Event ASR-1 <cf8bef3eb8c8403a>
[Oct 28 05:58:11] NOTICE[5108]: src/mpf_rtp_stream.c:1196 : Generate RTCP SR [ssrc:1898642949 s:247 o:39520 ts:39840]
[Oct 28 05:58:11] NOTICE[5108]: src/mpf_rtp_stream.c:1334 : Send Compound RTCP Packet [48 bytes] 0.0.0.0:4003 -> 10.0.0.117:5097
[Oct 28 05:58:12] NOTICE[5107]: src/mrcp_client_connection.c:633 : Receive MRCPv2 Data 10.0.0.117:57948 <-> 10.0.0.117:1544 [395 bytes]
MRCP/2.0 395 RECOGNITION-COMPLETE 1 COMPLETE
Channel-Identifier: cf8bef3eb8c8403a@speechrecog
Completion-Cause: 001 no-match
Content-Type: application/x-nlsml
Content-Length: 209

<?xml version="1.0"?>
<result>
  <interpretation grammar="number" confidence="0.66">
    <instance>1 2 3 hello 1 2 3</instance>
    <input mode="speech">1 2 3 hello 1 2 3</input>
  </interpretation>
</result>

[Oct 28 05:58:12] NOTICE[5106]: src/mrcp_client_session.c:514 : Raise App MRCP Event ASR-1 <cf8bef3eb8c8403a>
[Oct 28 05:58:12] NOTICE[5134][C-00000001]: app_mrcprecog.c:447 recog_channel_get_results: (ASR-1) Result:

<?xml version="1.0"?>
<result>
  <interpretation grammar="number" confidence="0.66">
    <instance>1 2 3 hello 1 2 3</instance>
    <input mode="speech">1 2 3 hello 1 2 3</input>
  </interpretation>
</result>

[Oct 28 05:58:12] NOTICE[5106]: src/mrcp_client_session.c:385 : Receive App Request ASR-1 <cf8bef3eb8c8403a> [1]
[Oct 28 05:58:12] NOTICE[5106]: src/mrcp_client_session.c:828 : Terminate Session ASR-1 <cf8bef3eb8c8403a>
[Oct 28 05:58:12] NOTICE[5107]: src/mrcp_client_connection.c:457 : Remove Control Channel <cf8bef3eb8c8403a@speechrecog> [0]
[Oct 28 05:58:12] NOTICE[5107]: src/mrcp_client_connection.c:384 : Close TCP/MRCPv2 Connection 10.0.0.117:57948 <-> 10.0.0.117:1544
[Oct 28 05:58:12] NOTICE[5108]: src/mpf_rtp_stream.c:932 : Close RTP Transmitter 0.0.0.0:4002 -> 10.0.0.117:5096 [s:258 o:41280]
[Oct 28 05:58:12] NOTICE[5108]: src/mpf_rtp_stream.c:415 : Remove RTP Session 0.0.0.0:4002
[Oct 28 05:58:12] NOTICE[5108]: src/mpf_rtp_stream.c:1196 : Generate RTCP SR [ssrc:1898642949 s:258 o:41280 ts:41520]
[Oct 28 05:58:12] NOTICE[5108]: src/mpf_rtp_stream.c:1383 : Send Compound RTCP Packet [BYE] [72 bytes] 0.0.0.0:4003 -> 10.0.0.117:5097
[Oct 28 05:58:38] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:603 : Receive SIP Event [nua_i_bye] Status 200 Session Terminated [speech-nuance5-mrcp2]
[Oct 28 05:58:38] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:603 : Receive SIP Event [nua_i_state] Status 200 Session Terminated [speech-nuance5-mrcp2]
[Oct 28 05:58:38] NOTICE[5110]: src/mrcp_sofiasip_client_agent.c:541 : SIP Call State ASR-1 [terminated]
[Oct 28 05:58:38] NOTICE[5106]: src/mrcp_client_session.c:207 : Session Terminated ASR-1 <cf8bef3eb8c8403a>
[Oct 28 05:58:38] NOTICE[5106]: src/mrcp_client_connection.c:233 : Destroy TCP/MRCPv2 Connection 10.0.0.117:57948 <-> 10.0.0.117:1544
[Oct 28 05:58:38] NOTICE[5106]: src/mrcp_client.c:706 : Remove MRCP Handle ASR-1 <cf8bef3eb8c8403a>
[Oct 28 05:58:38] NOTICE[5106]: src/mrcp_client_session.c:453 : Raise App Response ASR-1 <cf8bef3eb8c8403a> [1] SUCCESS [0]
[Oct 28 05:58:38] NOTICE[5106]: src/mrcp_application.c:203 : Destroy MRCP Handle ASR-1
[Oct 28 05:58:38] NOTICE[5134][C-00000001]: app_mrcprecog.c:1031 mrcprecog_exit: MRCPRecog() exiting status: OK on SIP/adesh-00000001
  status: OK, completion-cause: 001, result: <?xml version="1.0"?>
 <result>
   <interpretation grammar="number" confidence="0.66">
     <instance>1 2 3 hello 1 2 3</instance>
     <input mode="speech">1 2 3 hello 1 2 3</input>
   </interpretation>
 </result>

Arsen Chaloyan

unread,
Oct 30, 2017, 12:00:38 PM10/30/17
to UniMRCP
Hi Adesh,

The recognition seems to work as intended. The problem is in session termination, which took abnormally long time to complete.


[Oct 28 05:58:12] NOTICE[5106]: src/mrcp_client_session.c:828 : Terminate Session ASR-1 <cf8bef3eb8c8403a>
[Oct 28 05:58:38] NOTICE[5106]: src/mrcp_client_session.c:207 : Session Terminated ASR-1 <cf8bef3eb8c8403a>

I believe you set the local IP address to 0.0.0.0 which Sofia-SIP got confused with. In your mrcp.conf, replace 0.0.0.0 with 10.0.0.117, and everything should work seamlessly.


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.

Adesh Pandey

unread,
Oct 5, 2018, 8:40:15 AM10/5/18
to UniMRCP
Hi Arshen,
Thank you for your reply, I have updated sofia client ip as local ip and rtcp ip as local ip but still same issue.

On Monday, June 12, 2017 at 10:30:24 PM UTC+5:30, Adesh Pandey wrote:

Arsen Chaloyan

unread,
Oct 5, 2018, 10:17:59 PM10/5/18
to UniMRCP
Hi Adesh,

Our communication on this subject was apparently about a year ago. It would help me get into the context of your problem easier, if you could provide some additional information. The delay might possibly be caused by a wrong or unresolvable hostname in the SIP Contact header received in a SIP OK from the server. What MRCP server do you use. Please attempt to obtain complete information including logs and probably a network capture.

--
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.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages