Issue in Unimrcp Lex/ transcribe Implementation

140 views
Skip to first unread message

Abhishek Kesarwani

unread,
Feb 4, 2021, 11:00:48 AM2/4/21
to UniMRCP
Hello,

we are facing issue in uniprcp lex /transcribe implementation. we are getting 
Channel-Identifier: d1253306283c46c6@speechrecog
2021-02-04 09:32:42:496406 [INFO]   Nameserver 8.8.8.8:53 has failed: request timed out.
2021-02-04 09:32:42:496435 [INFO]   All nameservers have failed

we have used  169.254.169.253 - aws public dns public as well but it's not helped.

if any one faced such issue kindly help us , what could be cause of this error.

web socket connection not established call disconnect with error code 006.

Thanks 
Abhishek



Vahagn Kocharyan

unread,
Feb 4, 2021, 11:35:26 AM2/4/21
to uni...@googlegroups.com
Hi
What is your aws plugin version?
--
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/11180f87-dfaf-4b33-97f6-27f048c44837n%40googlegroups.com.

Arsen Chaloyan

unread,
Feb 4, 2021, 9:56:01 PM2/4/21
to UniMRCP
Hi Abhishek,

> we are facing issue in uniprcp lex /transcribe implementation. we are getting 

There are certain architectural differences in the implementation of AWS Transcribe and Lex plugins with respect to the networking.

> 2021-02-04 09:32:42:496406 [INFO]   Nameserver 8.8.8.8:53 has failed: request timed out.

The above is logged by the Transcribe plugin and would indicate a problem in the DNS. If you provide complete UniMRCP server logs, it may help narrow down the problem.


--
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/11180f87-dfaf-4b33-97f6-27f048c44837n%40googlegroups.com.


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

abhishek kesharwani

unread,
Feb 8, 2021, 7:25:37 AM2/8/21
to uni...@googlegroups.com
Dear Arsen,

here is the log, kindly check and help please

2021-02-04 09:47:08:517499 [INFO]   Nameserver 8.8.8.8:53 has failed: request timed out.
2021-02-04 09:47:08:517528 [INFO]   All nameservers have failed
2021-02-04 09:47:08:517540 [INFO]   WS disconnected <afe3c4b37884458b>
2021-02-04 09:47:08:517544 [INFO]   Close WS connection <afe3c4b37884458b>
2021-02-04 09:47:08:517589 [WARN]   Failed to Connect to Service <afe3c4b37884458b@transcribe>
2021-02-04 09:47:08:517606 [DEBUG]  Stop Input <afe3c4b37884458b@transcribe>
2021-02-04 09:47:08:526024 [INFO]   Input Complete [stopped] size=76800 bytes, dur=4830 ms <afe3c4b37884458b@transcribe>
2021-02-04 09:47:08:526039 [DEBUG]  Send Done Message <afe3c4b37884458b@transcribe>
2021-02-04 09:47:08:526087 [INFO]   Process RECOGNITION-COMPLETE Event <afe3c4b37884458b@speechrecog> [1]
2021-02-04 09:47:08:526093 [INFO]   State Transition RECOGNIZING -> RECOGNIZED <afe3c4b37884458b@speechrecog>
2021-02-04 09:47:08:526118 [INFO]   Clean up <afe3c4b37884458b>
2021-02-04 09:47:08:526138 [INFO]   Send MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58568 [138 bytes]
MRCP/2.0 138 RECOGNITION-COMPLETE 1 COMPLETE
Channel-Identifier: afe3c4b37884458b@speechrecog
Completion-Cause: 006 recognizer-error


2021-02-04 09:47:08:561241 [INFO]   TCP/MRCPv2 Peer Disconnected 172.31.69.71:1544 <-> 54.175.111.247:58568
2021-02-04 09:47:08:561439 [INFO]   Receive SIP Event [nua_i_bye] Status 200 Session Terminated [SIP-Agent-1]
2021-02-04 09:47:08:561449 [INFO]   Receive SIP Event [nua_i_state] Status 200 Session Terminated [SIP-Agent-1]
2021-02-04 09:47:08:561454 [NOTICE] SIP Call State 0x7f1324001b68 [terminated]
2021-02-04 09:47:08:561475 [INFO]   Receive SIP Event [nua_i_terminated] Status 200 Session Terminated [SIP-Agent-1]
2021-02-04 09:47:08:561503 [INFO]   Deactivate Session 0x7f1324001b68 <afe3c4b37884458b>
2021-02-04 09:47:08:561509 [INFO]   Terminate Session 0x7f1324001b68 <afe3c4b37884458b>
2021-02-04 09:47:08:561543 [INFO]   Remove Control Channel <afe3c4b37884458b@speechrecog> [0]
2021-02-04 09:47:08:561566 [INFO]   Close <afe3c4b37884458b@transcribe>
2021-02-04 09:47:08:561625 [DEBUG]  Send Close Response <afe3c4b37884458b@transcribe>
2021-02-04 09:47:08:561629 [NOTICE] Transcribe Usage: 0/1/2
2021-02-04 09:47:08:565963 [INFO]   Close RTP Receiver 172.31.69.71:5008 <- 172.31.76.244:4222 [r:251 l:0 j:63 p:50 d:0 i:0]
2021-02-04 09:47:08:565979 [INFO]   Remove RTP Session 172.31.69.71:5008
2021-02-04 09:47:08:566036 [NOTICE] Destroy TCP/MRCPv2 Connection 172.31.69.71:1544 <-> 54.175.111.247:58568
2021-02-04 09:47:08:566060 [NOTICE] Remove Session <afe3c4b37884458b>
2021-02-04 09:47:08:566064 [INFO]   Session Terminated 0x7f1324001b68 <afe3c4b37884458b>
2021-02-04 09:47:08:566089 [NOTICE] Destroy Session <afe3c4b37884458b>
2021-02-04 09:47:13:516319 [INFO]   Nameserver 172.31.0.2:53 is back up
2021-02-04 09:47:18:523337 [INFO]   Nameserver 8.8.8.8:53 is back up
2021-02-04 09:48:49:478022 [INFO]   Receive SIP Event [nua_i_invite] Status 100 Trying [SIP-Agent-1]
2021-02-04 09:48:49:478054 [INFO]   Receive SIP Event [nua_i_state] Status 100 Trying [SIP-Agent-1]
2021-02-04 09:48:49:478059 [NOTICE] SIP Call State  [received]
2021-02-04 09:48:49:478070 [INFO]   Create Session 0x7f1324001b68 <new> [uni2]
2021-02-04 09:48:49:478074 [INFO]   Remote SDP 0x7f1324001b68 <new>
v=0
o=FreeSWITCH 5520973932536556116 8321269467102079383 IN IP4 172.31.76.244
s=-
c=IN IP4 172.31.76.244
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4226 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=sendonly
a=mid:1

2021-02-04 09:48:49:478165 [NOTICE] Add Session <4a49a623248a41f1>
2021-02-04 09:48:49:478173 [INFO]   Receive Offer 0x7f1324001b68 <4a49a623248a41f1> [c:1 a:1 v:0]
2021-02-04 09:48:49:478178 [INFO]   Found MRCP Engine [Transcribe-1] for Resource [speechrecog] 0x7f1324001b68 <4a49a623248a41f1>
2021-02-04 09:48:49:478231 [INFO]   Add Pending Control Channel <4a49a623248a41f1@speechrecog> [1]
2021-02-04 09:48:49:486061 [INFO]   Enable RTP Session 172.31.69.71:5012
2021-02-04 09:48:49:486096 [INFO]   Open RTP Receiver 172.31.69.71:5012 <- 172.31.76.244:4226 playout [50 ms] bounds [0 - 600 ms] adaptive [1] skew detection [1]
2021-02-04 09:48:49:486102 [INFO]   Media Path 0x7f1324001b68 Source->[PCMU/8000/1]->Decoder->[LPCM/8000/1]->Bridge->[LPCM/8000/1]->Sink
2021-02-04 09:48:49:486196 [INFO]   Open <4a49a623248a41f1@transcribe>
2021-02-04 09:48:49:486211 [NOTICE] Transcribe Usage: 1/1/2
2021-02-04 09:48:49:486238 [INFO]   Send Answer 0x7f1324001b68 <4a49a623248a41f1> [c:1 a:1 v:0] Status OK
2021-02-04 09:48:49:486254 [INFO]   Local SDP 0x7f1324001b68 <4a49a623248a41f1>
v=0
o=UniMRCPServer 0 0 IN IP4 54.243.166.221
s=-
c=IN IP4 54.243.166.221
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:4a49a623248a41f1@speechrecog
a=cmid:1
m=audio 5012 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=recvonly
a=mid:1

2021-02-04 09:48:49:486643 [INFO]   Receive SIP Event [nua_i_state] Status 200 OK [SIP-Agent-1]
2021-02-04 09:48:49:486653 [NOTICE] SIP Call State 0x7f1324001b68 [completed]
2021-02-04 09:48:49:487014 [INFO]   Receive SIP Event [nua_i_ack] Status 200 OK [SIP-Agent-1]
2021-02-04 09:48:49:487023 [INFO]   Receive SIP Event [nua_i_state] Status 200 OK [SIP-Agent-1]
2021-02-04 09:48:49:487026 [NOTICE] SIP Call State 0x7f1324001b68 [ready]
2021-02-04 09:48:49:487028 [INFO]   Receive SIP Event [nua_i_active] Status 200 Call active [SIP-Agent-1]
2021-02-04 09:48:49:487487 [NOTICE] Accepted TCP/MRCPv2 Connection 172.31.69.71:1544 <-> 54.175.111.247:58582
2021-02-04 09:48:49:488314 [INFO]   Receive MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58582 [277 bytes]
MRCP/2.0 277 RECOGNIZE 1
Channel-Identifier: 4a49a623248a41f1@speechrecog
Content-Type: text/uri-list
Cancel-If-Queue: false
Recognition-Timeout: 5000
Start-Input-Timers: false
No-Input-Timeout: 5000
Content-Length: 48

builtin:speech/transcribe?language=en-US;y=1;n=2
2021-02-04 09:48:49:488350 [INFO]   Assign Control Channel <4a49a623248a41f1@speechrecog> to Connection 172.31.69.71:1544 <-> 54.175.111.247:58582 [0] -> [1]
2021-02-04 09:48:49:488390 [INFO]   Process RECOGNIZE Request <4a49a623248a41f1@speechrecog> [1]
2021-02-04 09:48:49:488432 [DEBUG]  Add Speech Grammar [transcribe] <4a49a623248a41f1@transcribe>
2021-02-04 09:48:49:488441 [DEBUG]  Set Parameter [language] to [en-US] <4a49a623248a41f1@transcribe>
2021-02-04 09:48:49:488445 [DEBUG]  Set Parameter [n] to [2] <4a49a623248a41f1@transcribe>
2021-02-04 09:48:49:488457 [WARN]   Unknown Parameter [n] <4a49a623248a41f1@transcribe>
2021-02-04 09:48:49:488460 [DEBUG]  Set Parameter [y] to [1] <4a49a623248a41f1@transcribe>
2021-02-04 09:48:49:488462 [WARN]   Unknown Parameter [y] <4a49a623248a41f1@transcribe>
2021-02-04 09:48:49:488465 [INFO]   Init Speech Detector: frame-size=160, max-frame-count=1550, output-frame-count=20, vad-mode=2, noinput-timeout=5000 ms, input-timeout=5000 ms, start-timeout=50 ms, complete-timeout=1000 ms, incomplete-timeout=15000 ms, leading-silence=300 ms, trailing-silence=300 ms, interim-results=1, start-of-input=external <4a49a623248a41f1>
2021-02-04 09:48:49:488579 [INFO]   [DEBUG] 2021-02-04 09:48:49.488 AWSAuthV4Signer [139720828868352] Canonical Header String: host:transcribestreaming..amazonaws.com:8443


2021-02-04 09:48:49:488596 [INFO]   [DEBUG] 2021-02-04 09:48:49.488 AWSAuthV4Signer [139720828868352] Signed Headers value: host

2021-02-04 09:48:49:488638 [INFO]   [DEBUG] 2021-02-04 09:48:49.488 AWSAuthV4Signer [139720828868352] Canonical Request String: GET
/stream-transcription-websocket
X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZZP6XFNYDWKBIRWI%2F20210204%2F%2Ftranscribe%2Faws4_request&X-Amz-Date=20210204T094849Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&language-code=en-US&media-encoding=pcm&sample-rate=8000
host:transcribestreaming..amazonaws.com:8443

host
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

2021-02-04 09:48:49:488666 [INFO]   [DEBUG] 2021-02-04 09:48:49.488 AWSAuthV4Signer [139720828868352] Final String to sign: AWS4-HMAC-SHA256
20210204T094849Z
20210204//transcribe/aws4_request
f36d9ce88fac0f56eff04cff521151cb103f674b7a94b6d97fa02884617fe2c5

2021-02-04 09:48:49:488676 [INFO]   [DEBUG] 2021-02-04 09:48:49.488 AWSAuthV4Signer [139720828868352] Final computed signing hash: a407810eddb1d1a27ac55ef623cb284d68e392f6db40893c6dc872ae259893b5

2021-02-04 09:48:49:488691 [DEBUG]  Signed URI [https://transcribestreaming..amazonaws.com:8443/stream-transcription-websocket?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZZP6XFNYDWKBIRWI%2F20210204%2F%2Ftranscribe%2Faws4_request&X-Amz-Date=20210204T094849Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&language-code=en-US&media-encoding=pcm&sample-rate=8000&X-Amz-Signature=a407810eddb1d1a27ac55ef623cb284d68e392f6db40893c6dc872ae259893b5] <4a49a623248a41f1@transcribe>
2021-02-04 09:48:49:488758 [INFO]   Process RECOGNIZE Response <4a49a623248a41f1@speechrecog> [1]
2021-02-04 09:48:49:488765 [INFO]   State Transition IDLE -> RECOGNIZING <4a49a623248a41f1@speechrecog>
2021-02-04 09:48:49:488767 [INFO]   Initiate WS connection <4a49a623248a41f1> [https://transcribestreaming..amazonaws.com:8443/stream-transcription-websocket]
2021-02-04 09:48:49:488863 [INFO]   Send MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58582 [83 bytes]
MRCP/2.0 83 1 200 IN-PROGRESS
Channel-Identifier: 4a49a623248a41f1@speechrecog


2021-02-04 09:48:49:490615 [INFO]   Nameserver 172.31.0.2:53 has failed: Bad response 5 (refused)
2021-02-04 09:48:49:498090 [INFO]   Receive SIP Event [nua_i_invite] Status 100 Trying [SIP-Agent-1]
2021-02-04 09:48:49:498105 [INFO]   Receive SIP Event [nua_i_state] Status 100 Trying [SIP-Agent-1]
2021-02-04 09:48:49:498108 [NOTICE] SIP Call State  [received]
2021-02-04 09:48:49:498117 [INFO]   Create Session 0x7f1324003e88 <new> [uni2]
2021-02-04 09:48:49:498120 [INFO]   Remote SDP 0x7f1324003e88 <new>
v=0
o=FreeSWITCH 8529759914336891005 7356383074163632264 IN IP4 172.31.76.244
s=-
c=IN IP4 172.31.76.244
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:existing
a=resource:speechsynth
a=cmid:1
m=audio 4228 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=recvonly
a=mid:1

2021-02-04 09:48:49:498196 [NOTICE] Add Session <3587470f66b34eec>
2021-02-04 09:48:49:498202 [INFO]   Receive Offer 0x7f1324003e88 <3587470f66b34eec> [c:1 a:1 v:0]
2021-02-04 09:48:49:498207 [INFO]   Found MRCP Engine [Polly-1] for Resource [speechsynth] 0x7f1324003e88 <3587470f66b34eec>
2021-02-04 09:48:49:498248 [INFO]   Add Pending Control Channel <3587470f66b34eec@speechsynth> [1]
2021-02-04 09:48:49:506024 [INFO]   Enable RTP Session 172.31.69.71:5014
2021-02-04 09:48:49:506049 [INFO]   Open RTP Transmitter 172.31.69.71:5014 -> 172.31.76.244:4228
2021-02-04 09:48:49:506052 [INFO]   Media Path 0x7f1324003e88 Source->[LPCM/8000/1]->Bridge->[LPCM/8000/1]->Encoder->[PCMU/8000/1]->Sink
2021-02-04 09:48:49:506124 [INFO]   Open <3587470f66b34eec@polly>
2021-02-04 09:48:49:506133 [NOTICE] Polly Usage: 1/1/2
2021-02-04 09:48:49:506161 [INFO]   Send Answer 0x7f1324003e88 <3587470f66b34eec> [c:1 a:1 v:0] Status OK
2021-02-04 09:48:49:506173 [INFO]   Local SDP 0x7f1324003e88 <3587470f66b34eec>
v=0
o=UniMRCPServer 0 0 IN IP4 54.243.166.221
s=-
c=IN IP4 54.243.166.221
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:3587470f66b34eec@speechsynth
a=cmid:1
m=audio 5014 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=sendonly
a=mid:1

2021-02-04 09:48:49:506503 [INFO]   Receive SIP Event [nua_i_state] Status 200 OK [SIP-Agent-1]
2021-02-04 09:48:49:506511 [NOTICE] SIP Call State 0x7f1324003e88 [completed]
2021-02-04 09:48:49:506976 [INFO]   Receive SIP Event [nua_i_ack] Status 200 OK [SIP-Agent-1]
2021-02-04 09:48:49:506985 [INFO]   Receive SIP Event [nua_i_state] Status 200 OK [SIP-Agent-1]
2021-02-04 09:48:49:506988 [NOTICE] SIP Call State 0x7f1324003e88 [ready]
2021-02-04 09:48:49:506990 [INFO]   Receive SIP Event [nua_i_active] Status 200 Call active [SIP-Agent-1]
2021-02-04 09:48:49:507376 [NOTICE] Accepted TCP/MRCPv2 Connection 172.31.69.71:1544 <-> 54.175.111.247:58584
2021-02-04 09:48:49:507725 [INFO]   Receive MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58584 [160 bytes]
MRCP/2.0 160 SPEAK 1
Channel-Identifier: 3587470f66b34eec@speechsynth
Content-Type: text/plain
Voice-Name: Salli
Content-Length: 21

please say yes or no.
2021-02-04 09:48:49:507751 [INFO]   Assign Control Channel <3587470f66b34eec@speechsynth> to Connection 172.31.69.71:1544 <-> 54.175.111.247:58584 [0] -> [1]
2021-02-04 09:48:49:507788 [INFO]   Process SPEAK Request <3587470f66b34eec@speechsynth> [1]
2021-02-04 09:48:49:507855 [INFO]   [ERROR] 2021-02-04 09:48:49.507 EnumParseOverflowContainer [139720847779584] Could not find a previously stored overflow value for hash 0. This will likely break some requests.

2021-02-04 09:48:49:507861 [DEBUG]  Found voice [Salli] by language [en-US] name [Salli] engine [] <3587470f66b34eec@polly>
2021-02-04 09:48:49:507872 [INFO]   [ERROR] 2021-02-04 09:48:49.507 EnumParseOverflowContainer [139720847779584] Could not find a previously stored overflow value for hash 0. This will likely break some requests.

2021-02-04 09:48:49:507874 [INFO]   Start Async Synth encoding [4] sampling-rate [8000] language [US English] voice [Salli] engine [] <3587470f66b34eec@polly>
please say yes or no.
2021-02-04 09:48:49:507963 [INFO]   [TRACE] 2021-02-04 09:48:49.507 AWSClient [139720837261056] Found body, but content-length has not been set, attempting to compute content-length

2021-02-04 09:48:49:507989 [INFO]   [DEBUG] 2021-02-04 09:48:49.507 AWSAuthV4Signer [139720837261056] Calculated sha256 419ae0d3651ea53d0be803dc858e65bd1a0779df23ff8c22e6e1fe09fc447596 for payload.

2021-02-04 09:48:49:508031 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 AWSAuthV4Signer [139720837261056] Canonical Header String: content-length:125
content-type:application/x-amz-json-1.1
host:polly.us-east-1.amazonaws.com
x-amz-api-version:2016-06-10
x-amz-content-sha256:419ae0d3651ea53d0be803dc858e65bd1a0779df23ff8c22e6e1fe09fc447596
x-amz-date:20210204T094849Z


2021-02-04 09:48:49:508039 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 AWSAuthV4Signer [139720837261056] Signed Headers value:content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date

2021-02-04 09:48:49:508061 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 AWSAuthV4Signer [139720837261056] Canonical Request String: POST
/v1/speech

content-length:125
content-type:application/x-amz-json-1.1
host:polly.us-east-1.amazonaws.com
x-amz-api-version:2016-06-10
x-amz-content-sha256:419ae0d3651ea53d0be803dc858e65bd1a0779df23ff8c22e6e1fe09fc447596
x-amz-date:20210204T094849Z

content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date
419ae0d3651ea53d0be803dc858e65bd1a0779df23ff8c22e6e1fe09fc447596

2021-02-04 09:48:49:508082 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 AWSAuthV4Signer [139720837261056] Final String to sign: AWS4-HMAC-SHA256
20210204T094849Z
20210204/us-east-1/polly/aws4_request
21337503acc78715b06e935125df131f9848866b7e21a150c281b46f9dfc152a

2021-02-04 09:48:49:508093 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 AWSAuthV4Signer [139720837261056] Final computed signing hash: 7798e1d730d87d20c043b623243377c55ef02538f9246ac8ccbe145be69a3613

2021-02-04 09:48:49:508102 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 AWSAuthV4Signer [139720837261056] Signing request with: AWS4-HMAC-SHA256 Credential=AKIAZZP6XFNYDWKBIRWI/20210204/us-east-1/polly/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=7798e1d730d87d20c043b623243377c55ef02538f9246ac8ccbe145be69a3613

2021-02-04 09:48:49:508113 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 AWSClient [139720837261056] Request Successfully signed

2021-02-04 09:48:49:508125 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] Making request to https://polly.us-east-1.amazonaws.com/v1/speech

2021-02-04 09:48:49:508135 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] Including headers:

2021-02-04 09:48:49:508143 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] authorization: AWS4-HMAC-SHA256 Credential=AKIAZZP6XFNYDWKBIRWI/20210204/us-east-1/polly/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=7798e1d730d87d20c043b623243377c55ef02538f9246ac8ccbe145be69a3613

2021-02-04 09:48:49:508151 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] content-length: 125

2021-02-04 09:48:49:508157 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] content-type: application/x-amz-json-1.1

2021-02-04 09:48:49:508163 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] host: polly.us-east-1.amazonaws.com

2021-02-04 09:48:49:508170 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] user-agent: aws-sdk-cpp/1.7.216 Linux/3.10.0-1062.12.1.el7.x86_64 x86_64 GCC/4.8.5

2021-02-04 09:48:49:508177 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] x-amz-api-version: 2016-06-10

2021-02-04 09:48:49:508183 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] x-amz-content-sha256: 419ae0d3651ea53d0be803dc858e65bd1a0779df23ff8c22e6e1fe09fc447596

2021-02-04 09:48:49:508189 [INFO]   [TRACE] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] x-amz-date: 20210204T094849Z

2021-02-04 09:48:49:508197 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 CurlHandleContainer [139720837261056] Attempting to acquire curl connection.

2021-02-04 09:48:49:508203 [INFO]   [INFO] 2021-02-04 09:48:49.508 CurlHandleContainer [139720837261056] Connection has been released. Continuing.

2021-02-04 09:48:49:508210 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 CurlHandleContainer [139720837261056] Returning connection handle 0x7f134400e3a0

2021-02-04 09:48:49:508216 [INFO]   [DEBUG] 2021-02-04 09:48:49.508 CurlHttpClient [139720837261056] Obtained connection handle 0x7f134400e3a0

2021-02-04 09:48:49:509640 [INFO]   [TRACE] 2021-02-04 09:48:49.509 CurlHttpClient [139720837261056] HTTP/1.1 100 Continue


2021-02-04 09:48:49:509658 [INFO]   [TRACE] 2021-02-04 09:48:49.509 CurlHttpClient [139720837261056]


2021-02-04 09:48:49:528255 [INFO]   [TRACE] 2021-02-04 09:48:49.528 CurlHttpClient [139720837261056] HTTP/1.1 200 OK


2021-02-04 09:48:49:528282 [INFO]   [TRACE] 2021-02-04 09:48:49.528 CurlHttpClient [139720837261056] x-amzn-RequestId: ea6f4e74-7828-421f-8dfc-11fed417db78


2021-02-04 09:48:49:528296 [INFO]   [TRACE] 2021-02-04 09:48:49.528 CurlHttpClient [139720837261056] x-amzn-RequestCharacters: 21


2021-02-04 09:48:49:528314 [INFO]   [TRACE] 2021-02-04 09:48:49.528 CurlHttpClient [139720837261056] Content-Type: audio/pcm


2021-02-04 09:48:49:528325 [INFO]   [TRACE] 2021-02-04 09:48:49.528 CurlHttpClient [139720837261056] Transfer-Encoding: chunked


2021-02-04 09:48:49:528336 [INFO]   [TRACE] 2021-02-04 09:48:49.528 CurlHttpClient [139720837261056] Date: Thu, 04 Feb 2021 09:48:48 GMT


2021-02-04 09:48:49:528346 [INFO]   [TRACE] 2021-02-04 09:48:49.528 CurlHttpClient [139720837261056]


2021-02-04 09:48:49:528375 [INFO]   [TRACE] 2021-02-04 09:48:49.528 CurlHttpClient [139720837261056] 4096 bytes written to response.

2021-02-04 09:48:49:529651 [INFO]   [TRACE] 2021-02-04 09:48:49.529 CurlHttpClient [139720837261056] 8186 bytes written to response.

2021-02-04 09:48:49:529676 [INFO]   [TRACE] 2021-02-04 09:48:49.529 CurlHttpClient [139720837261056] 6 bytes written to response.

2021-02-04 09:48:49:531126 [INFO]   [TRACE] 2021-02-04 09:48:49.531 CurlHttpClient [139720837261056] 8186 bytes written to response.

2021-02-04 09:48:49:531152 [INFO]   [TRACE] 2021-02-04 09:48:49.531 CurlHttpClient [139720837261056] 6 bytes written to response.

2021-02-04 09:48:49:531160 [INFO]   [TRACE] 2021-02-04 09:48:49.531 CurlHttpClient [139720837261056] 2048 bytes written to response.

2021-02-04 09:48:49:532257 [INFO]   [TRACE] 2021-02-04 09:48:49.532 CurlHttpClient [139720837261056] 1024 bytes written to response.

2021-02-04 09:48:49:533976 [INFO]   [TRACE] 2021-02-04 09:48:49.533 CurlHttpClient [139720837261056] 10 bytes written to response.

2021-02-04 09:48:49:534014 [INFO]   [DEBUG] 2021-02-04 09:48:49.534 CurlHttpClient [139720837261056] Returned http response code 200

2021-02-04 09:48:49:534028 [INFO]   [DEBUG] 2021-02-04 09:48:49.534 CurlHttpClient [139720837261056] Returned content type audio/pcm

2021-02-04 09:48:49:534039 [INFO]   [DEBUG] 2021-02-04 09:48:49.534 CurlHttpClient [139720837261056] Releasing curl handle 0x7f134400e3a0

2021-02-04 09:48:49:534053 [INFO]   [DEBUG] 2021-02-04 09:48:49.534 CurlHandleContainer [139720837261056] Releasing curl handle 0x7f134400e3a0

2021-02-04 09:48:49:534060 [INFO]   [DEBUG] 2021-02-04 09:48:49.534 CurlHandleContainer [139720837261056] Notified waiting threads.

2021-02-04 09:48:49:534070 [INFO]   [DEBUG] 2021-02-04 09:48:49.534 AWSClient [139720837261056] Request returned successful response.

2021-02-04 09:48:49:534080 [INFO]   [TRACE] 2021-02-04 09:48:49.534 AWSClient [139720837261056] Request successful returning.

2021-02-04 09:48:49:534093 [DEBUG]  Handler Called <3587470f66b34eec@polly>
2021-02-04 09:48:49:534141 [INFO]   Synthesis Complete: characters [21] size [23562 bytes] <3587470f66b34eec@polly>
2021-02-04 09:48:49:534181 [INFO]   Process SPEAK Response <3587470f66b34eec@speechsynth> [1]
2021-02-04 09:48:49:534187 [NOTICE] State Transition IDLE -> SPEAKING <3587470f66b34eec@speechsynth>
2021-02-04 09:48:49:534227 [INFO]   Send MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58584 [83 bytes]
MRCP/2.0 83 1 200 IN-PROGRESS
Channel-Identifier: 3587470f66b34eec@speechsynth


2021-02-04 09:48:49:756018 [INFO]   Speech Detector State Transition NO-INPUT -> IN-PROGRESS [270 ms] <4a49a623248a41f1>
2021-02-04 09:48:49:756047 [INFO]   Start Input Timer [5000 ms] <4a49a623248a41f1>
2021-02-04 09:48:51:006017 [NOTICE] Speech Complete <3587470f66b34eec@polly>
2021-02-04 09:48:51:006171 [INFO]   Process SPEAK-COMPLETE Event <3587470f66b34eec@speechsynth> [1]
2021-02-04 09:48:51:006180 [NOTICE] State Transition SPEAKING -> IDLE <3587470f66b34eec@speechsynth>
2021-02-04 09:48:51:006227 [INFO]   Send MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58584 [122 bytes]
MRCP/2.0 122 SPEAK-COMPLETE 1 COMPLETE
Channel-Identifier: 3587470f66b34eec@speechsynth
Completion-Cause: 000 normal


2021-02-04 09:48:51:030001 [INFO]   TCP/MRCPv2 Peer Disconnected 172.31.69.71:1544 <-> 54.175.111.247:58584
2021-02-04 09:48:51:030310 [INFO]   Receive SIP Event [nua_i_bye] Status 200 Session Terminated [SIP-Agent-1]
2021-02-04 09:48:51:030319 [INFO]   Receive SIP Event [nua_i_state] Status 200 Session Terminated [SIP-Agent-1]
2021-02-04 09:48:51:030333 [NOTICE] SIP Call State 0x7f1324003e88 [terminated]
2021-02-04 09:48:51:030356 [INFO]   Receive SIP Event [nua_i_terminated] Status 200 Session Terminated [SIP-Agent-1]
2021-02-04 09:48:51:030372 [INFO]   Deactivate Session 0x7f1324003e88 <3587470f66b34eec>
2021-02-04 09:48:51:030378 [INFO]   Terminate Session 0x7f1324003e88 <3587470f66b34eec>
2021-02-04 09:48:51:030410 [INFO]   Remove Control Channel <3587470f66b34eec@speechsynth> [0]
2021-02-04 09:48:51:030416 [INFO]   Close <3587470f66b34eec@polly>
2021-02-04 09:48:51:030423 [NOTICE] Polly Usage: 0/1/2
2021-02-04 09:48:51:035968 [INFO]   Close RTP Transmitter 172.31.69.71:5014 -> 172.31.76.244:4228 [s:74 o:11840]
2021-02-04 09:48:51:035982 [INFO]   Remove RTP Session 172.31.69.71:5014
2021-02-04 09:48:51:036023 [NOTICE] Destroy TCP/MRCPv2 Connection 172.31.69.71:1544 <-> 54.175.111.247:58584
2021-02-04 09:48:51:036035 [NOTICE] Remove Session <3587470f66b34eec>
2021-02-04 09:48:51:036039 [INFO]   Session Terminated 0x7f1324003e88 <3587470f66b34eec>
2021-02-04 09:48:51:036063 [NOTICE] Destroy Session <3587470f66b34eec>
2021-02-04 09:48:51:037862 [INFO]   Receive MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58582 [86 bytes]
MRCP/2.0 86 START-INPUT-TIMERS 2
Channel-Identifier: 4a49a623248a41f1@speechrecog


2021-02-04 09:48:51:037916 [INFO]   Process START-INPUT-TIMERS Request <4a49a623248a41f1@speechrecog> [2]
2021-02-04 09:48:51:037951 [INFO]   Start No-Input Timer [5000 ms] <4a49a623248a41f1>
2021-02-04 09:48:51:037981 [INFO]   Process START-INPUT-TIMERS Response <4a49a623248a41f1@speechrecog> [2]
2021-02-04 09:48:51:038017 [INFO]   Send MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58582 [80 bytes]
MRCP/2.0 80 2 200 COMPLETE
Channel-Identifier: 4a49a623248a41f1@speechrecog


2021-02-04 09:48:54:498177 [INFO]   Nameserver 8.8.8.8:53 has failed: request timed out.
2021-02-04 09:48:54:498206 [INFO]   All nameservers have failed
2021-02-04 09:48:54:498218 [INFO]   WS disconnected <4a49a623248a41f1>
2021-02-04 09:48:54:498222 [INFO]   Close WS connection <4a49a623248a41f1>
2021-02-04 09:48:54:498264 [WARN]   Failed to Connect to Service <4a49a623248a41f1@transcribe>
2021-02-04 09:48:54:498272 [DEBUG]  Stop Input <4a49a623248a41f1@transcribe>
2021-02-04 09:48:54:506026 [INFO]   Input Complete [stopped] size=79360 bytes, dur=5100 ms <4a49a623248a41f1@transcribe>
2021-02-04 09:48:54:506040 [DEBUG]  Send Done Message <4a49a623248a41f1@transcribe>
2021-02-04 09:48:54:506089 [INFO]   Process RECOGNITION-COMPLETE Event <4a49a623248a41f1@speechrecog> [1]
2021-02-04 09:48:54:506094 [INFO]   State Transition RECOGNIZING -> RECOGNIZED <4a49a623248a41f1@speechrecog>
2021-02-04 09:48:54:506120 [INFO]   Clean up <4a49a623248a41f1>
2021-02-04 09:48:54:506140 [INFO]   Send MRCPv2 Data 172.31.69.71:1544 <-> 54.175.111.247:58582 [138 bytes]
MRCP/2.0 138 RECOGNITION-COMPLETE 1 COMPLETE
Channel-Identifier: 4a49a623248a41f1@speechrecog
Completion-Cause: 006 recognizer-error
Thanks & Regards
Abhishek Kumar Kesharwani
Whatsapp: +91 9560305196
Skype: abhishekkumar2012


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/8cVFa-wS0dQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/CAC5Usc%2BcrFeyDDO7OzjBzU5pa9EQ32jSAg7JtMyc48GgdaFXzw%40mail.gmail.com.

Abhishek Kesarwani

unread,
Feb 8, 2021, 7:25:38 AM2/8/21
to UniMRCP

Hi All,

Issue resolve . The issue was with broken unimrcplex  software . after moving lex1 now TTS and STT both are working. But have another  issue , i am using play and detect speech but it's it interrupt even we don't give any input and or give input and give wrong result.

Our text is:

Hello Thank you for calling  For Order Status say Order Status or press one To check the status of your refund say Refund Status or press two. If you have a problem related to payments say Payment Problem or press three To cancel an order say Cancel Order or press four For issues with our website say Website Problem or press five For all other inquiries or to speak to an agent, please say Agent or press zero If you would like to use our texting system simply text support to the same number you called to reach us and our system will text you back instructions.

Dial Plan:

<extension name="888" continue="false" uuid="a813a6e0-b8e2-456d-a79e-be4218b64d05">
<condition field="destination_number" expression="^888">
<action application="answer" data=""/>
<!--action application="sleep" data="500"/-->
<action application="set" data="tts_engine=unimrcp:uni2"/>
<action application="set" data="tts_voice=Salli"/>
<action application="set" data="playback_terminators=123450"/>
    <!--action application="play_and_detect_speech" data="say: Hello! Thank you for calling Union Supply Direct. detect:unimrcp {start-input-timers=false,no-input-timeout=5000,recognition-timeout=50000}builtin:speech/transcribe?language=en-US;y=1;n=2"/-->
    <!--action application="play_and_detect_speech" data="say: Hello! detect:unimrcp {start-input-timers=false,no-input-timeout=50000,recognition-timeout=50000,define-grammar=false}builtin:speech/transcribe?language=en-US;y=1;n=2"/--> 
    <action application="speak" data="unimrcp:uni2|Ivy|Hello! Thank you for calling  For Order Status, say Order Status or press one. To check the status of your refund, say Refund Status or press two. If you have a problem related to payments, say Payment Problem or press three. To cancel an order, say Cancel Orderâ or press four. For issues with our website, say Website Problemâ or press five. For all other inquiries or to speak to an agent, please say Agent or press zero. If you would like to use our texting system, simply text support to the same number you called to reach us and our system will text you back instructions."/>
 <action application="play_and_detect_speech" data="say: Press button please. detect:unimrcp {start-input-timers=false,no-input-timeout=50000,recognition-timeout=50000,define-grammar=false}builtin:speech/transcribe?language=en-US;y=1;n=2"/> 
    <action application="log" data="CRIT ${detect_speech_result}"/>
</condition>
</extension>
====================================
<?xml version="1.0"?><result><interpretation grammar="builtin:speech/transcribe" confidence="1"><instance>The orders for this.</instance><input mode="speech">The orders for this.</input></interpretation></result>
2021-02-08 08:38:27.179179 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f0b74062560;2;3]
2021-02-08 08:38:27.179179 [DEBUG] apt_poller_task.c:251 () Wait for Messages [MRCPv2ConnectionAgent]
2021-02-08 08:38:27.179179 [DEBUG] apt_task.c:337 () Process Message [MRCP Client] [0x7f0b74062560;2;3]
2021-02-08 08:38:27.179179 [INFO] mrcp_client_session.c:516 (ASR-206) Raise App MRCP Event ASR-206 <32a911b603204184>
2021-02-08 08:38:27.179179 [DEBUG] mod_unimrcp.c:3669 (ASR-206) RECOGNITION COMPLETE, Completion-Cause: 000
2021-02-08 08:38:27.179179 [DEBUG] mod_unimrcp.c:3678 (ASR-206) Recognition result is not null-terminated.  Appending null terminator.
2021-02-08 08:38:27.179179 [DEBUG] mod_unimrcp.c:2727 (ASR-206) ASR adding result headers
2021-02-08 08:38:27.179179 [DEBUG] mod_unimrcp.c:2622 (ASR-206) result:

<?xml version="1.0"?><result><interpretation grammar="builtin:speech/transcribe" confidence="1"><instance>The orders for this.</instance><input mode="speech">The orders for this.</input></interpretation></result>
2021-02-08 08:38:27.179179 [DEBUG] mod_unimrcp.c:1578 (ASR-206) PROCESSING ==> READY
2021-02-08 08:38:27.179179 [DEBUG] apt_consumer_task.c:141 () Wait for Messages [MRCP Client]
2021-02-08 08:38:27.179179 [DEBUG] mod_unimrcp.c:2539 (ASR-206) SUCCESS, have result
2021-02-08 08:38:27.179179 [DEBUG] mod_unimrcp.c:2539 (ASR-206) SUCCESS, have result
2021-02-08 08:38:27.179179 [DEBUG] mod_unimrcp.c:2780 (ASR-206) result:

<?xml version="1.0"?><result><interpretation grammar="builtin:speech/transcribe" confidence="1"><instance>The orders for this.</instance><input mode="speech">The orders for this.</input></interpretation></result>
2021-02-08 08:38:27.199173 [INFO] switch_ivr_async.c:4493 (sofia/internal/9...@sip.textyomni.com) DETECTED SPEECH
EXECUTE [depth=0] sofia/internal/9...@sip.textyomni.com log(CRIT <?xml version="1.0"?><result><interpretation grammar="builtin:speech/transcribe" confidence="1"><instance>The orders for this.</instance><input mode="speech">The orders for this.</input></interpretation></result>)
2021-02-08 08:38:27.199173 [CRIT] mod_dptools.c:1866 <?xml version="1.0"?><result><interpretation grammar="builtin:speech/transcribe" confidence="1"><instance>The orders for this.</instance><input mode="speech">The orders for this.</input></interpretation></result>
2021-02-08 08:38:27.199173 [NOTICE] switch_core_state_machine.c:386 sofia/internal/9...@sip.textyomni.com has executed the last dialplan instruction, hanging up.
2021-02-08 08:38:27.199173 [NOTICE] switch_core_state_machine.c:388 Hangup sofia/internal/9...@sip.textyomni.com [CS_EXECUTE] [NORMAL_CLEARING]
2021-02-08 08:38:27.199173 [DEBUG] switch_core_state_machine.c:651 (sofia/internal/9...@sip.textyomni.com) State EXECUTE going to sleep
2021-02-08 08:38:27.199173 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/9...@sip.textyomni.com) Running State Change CS_HANGUP (Cur 1 Tot 201)
2021-02-08 08:38:27.199173 [DEBUG] apt_task.c:265 () Signal Message to [MRCP Client] [0x7f0b48055520;4;0]
2021-02-08 08:38:27.199173 [DEBUG] mod_unimrcp.c:924 (ASR-206) Waiting for MRCP session to terminate
2021-02-08 08:38:27.199173 [DEBUG] apt_task.c:337 () Process Mes

Kindly help and guide me where i am doing wrong:

Arsen Chaloyan

unread,
Feb 24, 2021, 3:09:28 PM2/24/21
to UniMRCP
Hi Abishek,

I see that you use "speak" with a very long prompt. I would use "play_and_detect_speech" in the first place to allow the caller to barge in while listening to the long prompt. My guess is you started to speak and expected your utterance to be accepted while the initial prompt was still playing, which would not be the case with your implementation.

Reply all
Reply to author
Forward
0 new messages