[UniMRCP] umc.exe & Loquendo - 006 recognizer-error

718 views
Skip to first unread message

mr_b

unread,
Feb 25, 2011, 9:09:42 AM2/25/11
to UniMRCP
Hello,

I am having some problems with testing umc.exe client with Loquendo
Speech Suite (MRCPv2 Server). I use the same xml config setting as in
my other asterisk client (which works) so I think the problem may be
somewhere in umcscenario.xml, grammar.xml or audio file. I have only
Polish license for Loquendo ASR so testing with default (English)
files is impossible for me but I tried to make as few modifications as
possible.

The problem is i get 006 error in lots of different situations with an
error reason which is false in my opinion.

Completion-Cause: 006 recognizer-error
Completion-Reason: Recognizer Error: "API lasrxRecog in module
Loquendo ASR 7.8.
2.0 returned with code -103: Audio samples timeout expired. No audio
samples hav
e been delivered "

The only setup that has (sort of) worked for me was with audio
one-8kHz.pcm and this grammar file:

<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xml:lang="pl-pl"
version="1.0" mode="voice" root="digit">
<rule id="digit">
<one-of>
<item>jeden</item>
<item>dwa</item>
<item>trzy</item>
<item>cztery</item>
</one-of>
</rule>
</grammar>

i get 'trzy' (~0.5 conf) in response even though it is not even close
to what would english 'one' be using Polish phonetic transcription.
Maybe it has something to do with analyzing 8kHz audio as 16kHz or the
other way around? I tried changing codec values in config files but
nothing has worked for me.

The weird thing is if i remove or replace 'trzy' in grammar with any
other correct word i get 006 error. Below I attach both scenarios. I
also tried making different .pcm/.wav files, 8 and 16 kHz to use
Polish language but i get 006 error with the same cause.

FIRST SCENARIO:

2011-02-25 14:59:28:519702 [INFO] Start Task [Framework Agent]
>2011-02-25 14:59:28:521702 [NOTICE] UniMRCP Client [1.0.0]
2011-02-25 14:59:28:521702 [INFO] APR [1.4.2]
2011-02-25 14:59:28:521702 [NOTICE] Create MRCP Client
2011-02-25 14:59:28:522702 [NOTICE] Open Config File [../conf/
unimrcpclient.xml]

2011-02-25 14:59:28:532702 [INFO] Set Property ip:192.168.1.20
2011-02-25 14:59:28:533703 [INFO] Register Codec [PCMU]
2011-02-25 14:59:28:533703 [INFO] Register Codec [PCMA]
2011-02-25 14:59:28:533703 [INFO] Register Codec [L16]
2011-02-25 14:59:28:533703 [NOTICE] Register Resource [speechsynth]
2011-02-25 14:59:28:533703 [NOTICE] Register Resource [speechrecog]
2011-02-25 14:59:28:533703 [NOTICE] Register Resource [recorder]
2011-02-25 14:59:28:540703 [INFO] Register Resource Factory
2011-02-25 14:59:28:540703 [NOTICE] Create SofiaSIP Agent [SIP-
Agent-1] [1.12.10
] sip:192.168.1.20:8062;transport=udp
2011-02-25 14:59:28:540703 [INFO] Register Signaling Agent [SIP-
Agent-1]
2011-02-25 14:59:28:543703 [NOTICE] Create UniRTSP Agent [RTSP-
Agent-1] [100]
2011-02-25 14:59:28:544703 [INFO] Register Signaling Agent [RTSP-
Agent-1]
2011-02-25 14:59:28:544703 [NOTICE] Create MRCPv2 Agent [MRCPv2-
Agent-1] [100]
2011-02-25 14:59:28:546703 [INFO] Register Connection Agent [MRCPv2-
Agent-1]
2011-02-25 14:59:28:546703 [NOTICE] Create Media Engine [Media-
Engine-1]
2011-02-25 14:59:28:547703 [INFO] Register Media Engine [Media-
Engine-1]
2011-02-25 14:59:28:547703 [NOTICE] Create RTP Termination Factory
192.168.1.20:
[4000,5000]
2011-02-25 14:59:28:549703 [INFO] Register RTP Termination Factory
[RTP-Factor
y-1]
2011-02-25 14:59:28:550703 [INFO] Register RTP Settings [RTP-
Settings-1]
2011-02-25 14:59:28:551704 [INFO] Enter Directory [../conf/client-
profiles]
2011-02-25 14:59:28:560704 [NOTICE] Open Config File [../conf/client-
profiles/lu
menvox.xml]
2011-02-25 14:59:28:562704 [INFO] Create SIP Settings
192.168.1.20:5060
2011-02-25 14:59:28:563704 [INFO] Register Signaling Settings
[LumenVox-SIP-Se
ttings]
2011-02-25 14:59:28:565704 [INFO] Create RTSP Settings
192.168.1.20:554
2011-02-25 14:59:28:565704 [INFO] Register Signaling Settings
[LumenVox-RTSP-S
ettings]
2011-02-25 14:59:28:567704 [NOTICE] Create MRCPv2 Profile [lv2]
2011-02-25 14:59:28:569705 [INFO] Register Profile [lv2]
2011-02-25 14:59:28:569705 [NOTICE] Create MRCPv1 Profile [lv1]
2011-02-25 14:59:28:570705 [INFO] Register Profile [lv1]
2011-02-25 14:59:28:571705 [NOTICE] Open Config File [../conf/client-
profiles/nu
ance.xml]
2011-02-25 14:59:28:573705 [INFO] Create SIP Settings
192.168.1.20:5060
2011-02-25 14:59:28:573705 [INFO] Register Signaling Settings
[Nuance-SIP-Sett
ings]
2011-02-25 14:59:28:576705 [INFO] Create RTSP Settings
192.168.1.20:4900
2011-02-25 14:59:28:584705 [INFO] Register Signaling Settings
[Nuance-RTSP-Set
tings]
2011-02-25 14:59:28:592706 [INFO] Register RTP Settings [Nuance-RTP-
Settings]
2011-02-25 14:59:28:593706 [NOTICE] Create MRCPv2 Profile [nss2]
2011-02-25 14:59:28:594706 [INFO] Register Profile [nss2]
2011-02-25 14:59:28:595706 [NOTICE] Create MRCPv1 Profile [nss1]
2011-02-25 14:59:28:596706 [INFO] Register Profile [nss1]
2011-02-25 14:59:28:598706 [NOTICE] Open Config File [../conf/client-
profiles/un
imrcp.xml]
2011-02-25 14:59:28:600706 [INFO] Create SIP Settings
192.168.1.20:5060
2011-02-25 14:59:28:601706 [INFO] Register Signaling Settings
[UniMRCP-SIP-Set
tings]
2011-02-25 14:59:28:601706 [INFO] Create RTSP Settings
192.168.1.20:161
2011-02-25 14:59:28:602706 [INFO] Register Signaling Settings
[UniMRCP-RTSP-Se
ttings]
2011-02-25 14:59:28:603707 [NOTICE] Create MRCPv2 Profile [uni2]
2011-02-25 14:59:28:604707 [INFO] Register Profile [uni2]
2011-02-25 14:59:28:605707 [NOTICE] Create MRCPv1 Profile [uni1]
2011-02-25 14:59:28:606707 [INFO] Register Profile [uni1]
2011-02-25 14:59:28:614707 [INFO] Leave Directory [../conf/client-
profiles]
2011-02-25 14:59:28:615707 [NOTICE] Create Application
2011-02-25 14:59:28:618707 [INFO] Register Application [UMC]
2011-02-25 14:59:28:618707 [INFO] Start Task [MRCP Client]
2011-02-25 14:59:28:619707 [INFO] Start Task [SIP-Agent-1]
2011-02-25 14:59:28:626708 [INFO] Start Task [RTSP-Agent-1]
2011-02-25 14:59:28:628708 [INFO] Start Task [MRCPv2-Agent-1]
2011-02-25 14:59:28:629708 [INFO] Start Task [Media-Engine-1]
Adding nameserver: 8.8.8.8
2011-02-25 14:59:28:659710 [NOTICE] MRCP Client Started
2011-02-25 14:59:28:663710 [INFO] Receive SIP Event
[nua_r_set_params] Status
200 OK
2011-02-25 14:59:28:663710 [NOTICE] Open Config File [../conf/
umcscenarios.xml]
2011-02-25 14:59:28:668710 [INFO] Load Scenario name [synth] class
[Synthesize
r]
2011-02-25 14:59:28:669710 [INFO] Load Scenario name [recog] class
[Recognizer
]
2011-02-25 14:59:28:677711 [INFO] Load Scenario name [rec] class
[Recorder]
2011-02-25 14:59:28:679711 [INFO] Load Scenario name [dtmf] class
[DtmfRecogni
zer]
2011-02-25 14:59:28:680711 [INFO] Load Scenario name [params] class
[Params]
run recog
>[1]
2011-02-25 14:59:31:351864 [NOTICE] Create MRCP Handle 0x1b3df80
[uni2]
2011-02-25 14:59:31:351864 [INFO] Create Channel umc-1 <new>
2011-02-25 14:59:31:352864 [INFO] Receive App Request umc-1 <new>
[2]
2011-02-25 14:59:31:353864 [INFO] Add MRCP Handle umc-1 <new>
2011-02-25 14:59:31:354864 [NOTICE] Add Control Channel umc-1
<new@speechrecog>
2011-02-25 14:59:31:360864 [INFO] Send Offer umc-1 <new> [c:1 a:1 v:
0] to 192.
168.1.20:5060
2011-02-25 14:59:31:360864 [INFO] Local SDP umc-1 <new>
v=0
o=UniMRCPClient 0 0 IN IP4 192.168.1.20
s=-
c=IN IP4 192.168.1.20
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4000 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

2011-02-25 14:59:31:379865 [INFO] Receive SIP Event [nua_i_state]
Status 0 INV
ITE sent
2011-02-25 14:59:31:379865 [NOTICE] SIP Call State umc-1 [calling]
2011-02-25 14:59:31:391866 [INFO] Receive SIP Event [nua_r_invite]
Status 200
OK
2011-02-25 14:59:31:391866 [INFO] Receive SIP Event [nua_i_state]
Status 200 O
K
2011-02-25 14:59:31:392866 [NOTICE] SIP Call State umc-1 [ready]
2011-02-25 14:59:31:393866 [INFO] Remote SDP umc-1 <new>
v=0
o=MRCPv2Server 3507631171 3507631171 IN IP4 192.168.1.20
s=Loquendo MRCPv2 Media Server
c=IN IP4 192.168.1.20
t=3507631171 0
m=application 51002 TCP/MRCPv2 1
a=channel:000026AC4D67B5C3@speechrecog
a=connection:new
a=setup:passive
a=cmid:1
m=audio 10434 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=recvonly
a=ptime:20
a=mid:1

2011-02-25 14:59:31:395866 [INFO] Receive SIP Event [nua_i_active]
Status 200
Call active
2011-02-25 14:59:31:395866 [INFO] Receive Answer umc-1 <new> [c:1 a:
1 v:0]
2011-02-25 14:59:31:398866 [NOTICE] Established TCP/MRCPv2 Connection
192.168.1.
20:52320 <-> 192.168.1.20:51002
2011-02-25 14:59:31:399866 [INFO] Add Control Channel
<000026AC4D67B5C3@speech
recog> 192.168.1.20:52320 <-> 192.168.1.20:51002 [1]
2011-02-25 14:59:31:400867 [INFO] Enable RTP Session
192.168.1.20:4000
2011-02-25 14:59:31:401867 [INFO] Open RTP Transmitter
192.168.1.20:4000 -> 19
2.168.1.20:10434
2011-02-25 14:59:31:402867 [INFO] Media Path umc-1 Source->[PCMU/
8000/1]->Brid
ge->[PCMU/8000/1]->Sink
2011-02-25 14:59:31:403867 [INFO] Raise App Response umc-1
<000026AC4D67B5C3>
[2] SUCCESS [0]
2011-02-25 14:59:31:404867 [INFO] Receive App MRCP Request umc-1
<000026AC4D67
B5C3>
2011-02-25 14:59:31:405867 [INFO] Send MRCP Request umc-1
<000026AC4D67B5C3@sp
eechrecog> [1]
2011-02-25 14:59:31:408867 [INFO] Send MRCPv2 Stream
192.168.1.20:52320 <-> 19
2.168.1.20:51002 [496 bytes]
MRCP/2.0 496 DEFINE-GRAMMAR 1
Channel-Identifier: 000026AC4D67B5C3@speechrecog
Content-Type: application/srgs+xml
Content-Id: request1@form-level
Content-Length: 323

´¬¬<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xml:lang="pl-pl"
version="1.0
" mode="voice" root="digit">
<rule id="digit">
<one-of>
<item>jeden</item>
<item>dwa</item>
<item>trzy</item>
<item>cztery</item>
</one-of>
</rule>
</grammar>
2011-02-25 14:59:31:424868 [INFO] Receive MRCPv2 Stream
192.168.1.20:52320 <->
192.168.1.20:51002 [112 bytes]
MRCP/2.0 112 1 200 COMPLETE
Channel-Identifier: 000026AC4D67B5C3@speechrecog
Completion-Cause: 000 success


2011-02-25 14:59:31:425868 [INFO] Raise App MRCP Response umc-1
<000026AC4D67B
5C3>
2011-02-25 14:59:31:426868 [INFO] Receive App MRCP Request umc-1
<000026AC4D67
B5C3>
2011-02-25 14:59:31:427868 [INFO] Send MRCP Request umc-1
<000026AC4D67B5C3@sp
eechrecog> [2]
2011-02-25 14:59:31:426868 [INFO] Set [../data/one-8kHz.pcm] as
Speech Source
2011-02-25 14:59:31:429868 [INFO] Send MRCPv2 Stream
192.168.1.20:52320 <-> 19
2.168.1.20:51002 [284 bytes]
MRCP/2.0 284 RECOGNIZE 2
Channel-Identifier: 000026AC4D67B5C3@speechrecog
Content-Type: text/uri-list
Cancel-If-Queue: false
No-Input-Timeout: 5000
Recognition-Timeout: 10000
Start-Input-Timers: true
Confidence-Threshold: 0.87
Content-Length: 27

session:request1@form-level
2011-02-25 14:59:31:449869 [INFO] Receive MRCPv2 Stream
192.168.1.20:52320 <->
192.168.1.20:51002 [83 bytes]
MRCP/2.0 83 2 200 IN-PROGRESS
Channel-Identifier: 000026AC4D67B5C3@speechrecog


2011-02-25 14:59:31:450869 [INFO] Raise App MRCP Response umc-1
<000026AC4D67B
5C3>
2011-02-25 14:59:34:631051 [INFO] Receive MRCPv2 Stream
192.168.1.20:52320 <->
192.168.1.20:51002 [148 bytes]
MRCP/2.0 148 START-OF-INPUT 2 IN-PROGRESS
Channel-Identifier: 000026AC4D67B5C3@speechrecog
Proxy-Sync-Id: 080C40E4000000B4
Input-Type: speech


2011-02-25 14:59:34:632051 [INFO] Raise App MRCP Event umc-1
<000026AC4D67B5C3
>
2011-02-25 14:59:34:648052 [INFO] Receive MRCPv2 Stream
192.168.1.20:52320 <->
192.168.1.20:51002 [604 bytes]
MRCP/2.0 604 RECOGNITION-COMPLETE 2 COMPLETE
Channel-Identifier: 000026AC4D67B5C3@speechrecog
Proxy-Sync-Id: 080C40E4000000B4
Completion-Cause: 001 no-match
Content-Type: application/nlsml+xml
Content-Length: 383

<?xml version="1.0" encoding="UTF-8"?>
<result grammar="request1@form-level#digit">
<interpretation grammar="request1@form-level#digit"
confidence="0.539475
">
<instance confidence="0.539475">
trzy
</instance>
<input mode="speech" confidence="0.539475">
<nomatch>trzy</nomatch>
<input confidence="0.539475">
trzy
</input>
</input>
</interpretation>
</result>
2011-02-25 14:59:34:650052 [INFO] Raise App MRCP Event umc-1
<000026AC4D67B5C3
>
2011-02-25 14:59:34:652052 [INFO] Interpreted Instance [
]
2011-02-25 14:59:34:653053 [INFO] Interpreted Input [
]
2011-02-25 14:59:34:654053 [INFO] Receive App Request umc-1
<000026AC4D67B5C3>
[1]
2011-02-25 14:59:34:655053 [INFO] Terminate Session umc-1
<000026AC4D67B5C3>
2011-02-25 14:59:34:656053 [INFO] Remove Control Channel
<000026AC4D67B5C3@spe
echrecog> [0]
2011-02-25 14:59:34:657053 [INFO] Close TCP/MRCPv2 Connection
192.168.1.20:523
20 <-> 192.168.1.20:51002
2011-02-25 14:59:34:661053 [INFO] Close RTP Transmitter
192.168.1.20:4000 -> 1
92.168.1.20:10434 [s:160 o:25600]
2011-02-25 14:59:34:661053 [INFO] Remove RTP Session
192.168.1.20:4000
2011-02-25 14:59:34:689055 [INFO] Receive SIP Event [nua_r_bye]
Status 200 OK
2011-02-25 14:59:34:689055 [INFO] Receive SIP Event [nua_i_state]
Status 200 t
o BYE
2011-02-25 14:59:34:690055 [NOTICE] SIP Call State umc-1 [terminated]
2011-02-25 14:59:34:691055 [INFO] Session Terminated umc-1
<000026AC4D67B5C3>
2011-02-25 14:59:34:694055 [NOTICE] Destroy TCP/MRCPv2 Connection
192.168.1.20:5
2320 <-> 192.168.1.20:51002
2011-02-25 14:59:34:695055 [INFO] Remove MRCP Handle umc-1
<000026AC4D67B5C3>
2011-02-25 14:59:34:696055 [INFO] Raise App Response umc-1
<000026AC4D67B5C3>
[1] SUCCESS [0]
2011-02-25 14:59:34:697055 [NOTICE] Destroy MRCP Handle umc-1

SECOND SCENARIO:

2011-02-25 15:04:51:210159 [INFO] Start Task [Framework Agent]
>2011-02-25 15:04:51:214159 [NOTICE] UniMRCP Client [1.0.0]
2011-02-25 15:04:51:214159 [INFO] APR [1.4.2]
2011-02-25 15:04:51:214159 [NOTICE] Create MRCP Client
2011-02-25 15:04:51:214159 [NOTICE] Open Config File [../conf/
unimrcpclient.xml]

2011-02-25 15:04:51:226159 [INFO] Set Property ip:192.168.1.20
2011-02-25 15:04:51:226159 [INFO] Register Codec [PCMU]
2011-02-25 15:04:51:227160 [INFO] Register Codec [PCMA]
2011-02-25 15:04:51:228160 [INFO] Register Codec [L16]
2011-02-25 15:04:51:228160 [NOTICE] Register Resource [speechsynth]
2011-02-25 15:04:51:228160 [NOTICE] Register Resource [speechrecog]
2011-02-25 15:04:51:228160 [NOTICE] Register Resource [recorder]
2011-02-25 15:04:51:228160 [INFO] Register Resource Factory
2011-02-25 15:04:51:228160 [NOTICE] Create SofiaSIP Agent [SIP-
Agent-1] [1.12.10
] sip:192.168.1.20:8062;transport=udp
2011-02-25 15:04:51:229160 [INFO] Register Signaling Agent [SIP-
Agent-1]
2011-02-25 15:04:51:231160 [NOTICE] Create UniRTSP Agent [RTSP-
Agent-1] [100]
2011-02-25 15:04:51:232160 [INFO] Register Signaling Agent [RTSP-
Agent-1]
2011-02-25 15:04:51:232160 [NOTICE] Create MRCPv2 Agent [MRCPv2-
Agent-1] [100]
2011-02-25 15:04:51:234160 [INFO] Register Connection Agent [MRCPv2-
Agent-1]
2011-02-25 15:04:51:243160 [NOTICE] Create Media Engine [Media-
Engine-1]
2011-02-25 15:04:51:243160 [INFO] Register Media Engine [Media-
Engine-1]
2011-02-25 15:04:51:244161 [NOTICE] Create RTP Termination Factory
192.168.1.20:
[4000,5000]
2011-02-25 15:04:51:244161 [INFO] Register RTP Termination Factory
[RTP-Factor
y-1]
2011-02-25 15:04:51:245161 [INFO] Register RTP Settings [RTP-
Settings-1]
2011-02-25 15:04:51:247161 [INFO] Enter Directory [../conf/client-
profiles]
2011-02-25 15:04:51:248161 [NOTICE] Open Config File [../conf/client-
profiles/lu
menvox.xml]
2011-02-25 15:04:51:256161 [INFO] Create SIP Settings
192.168.1.20:5060
2011-02-25 15:04:51:262162 [INFO] Register Signaling Settings
[LumenVox-SIP-Se
ttings]
2011-02-25 15:04:51:263162 [INFO] Create RTSP Settings
192.168.1.20:554
2011-02-25 15:04:51:264162 [INFO] Register Signaling Settings
[LumenVox-RTSP-S
ettings]
2011-02-25 15:04:51:266162 [NOTICE] Create MRCPv2 Profile [lv2]
2011-02-25 15:04:51:267162 [INFO] Register Profile [lv2]
2011-02-25 15:04:51:268162 [NOTICE] Create MRCPv1 Profile [lv1]
2011-02-25 15:04:51:269162 [INFO] Register Profile [lv1]
2011-02-25 15:04:51:271162 [NOTICE] Open Config File [../conf/client-
profiles/nu
ance.xml]
2011-02-25 15:04:51:272162 [INFO] Create SIP Settings
192.168.1.20:5060
2011-02-25 15:04:51:273162 [INFO] Register Signaling Settings
[Nuance-SIP-Sett
ings]
2011-02-25 15:04:51:274162 [INFO] Create RTSP Settings
192.168.1.20:4900
2011-02-25 15:04:51:275162 [INFO] Register Signaling Settings
[Nuance-RTSP-Set
tings]
2011-02-25 15:04:51:276162 [INFO] Register RTP Settings [Nuance-RTP-
Settings]
2011-02-25 15:04:51:277162 [NOTICE] Create MRCPv2 Profile [nss2]
2011-02-25 15:04:51:280163 [INFO] Register Profile [nss2]
2011-02-25 15:04:51:281163 [NOTICE] Create MRCPv1 Profile [nss1]
2011-02-25 15:04:51:282163 [INFO] Register Profile [nss1]
2011-02-25 15:04:51:283163 [NOTICE] Open Config File [../conf/client-
profiles/un
imrcp.xml]
2011-02-25 15:04:51:285163 [INFO] Create SIP Settings
192.168.1.20:5060
2011-02-25 15:04:51:287163 [INFO] Register Signaling Settings
[UniMRCP-SIP-Set
tings]
2011-02-25 15:04:51:287163 [INFO] Create RTSP Settings
192.168.1.20:161
2011-02-25 15:04:51:287163 [INFO] Register Signaling Settings
[UniMRCP-RTSP-Se
ttings]
2011-02-25 15:04:51:290163 [NOTICE] Create MRCPv2 Profile [uni2]
2011-02-25 15:04:51:290163 [INFO] Register Profile [uni2]
2011-02-25 15:04:51:290163 [NOTICE] Create MRCPv1 Profile [uni1]
2011-02-25 15:04:51:291163 [INFO] Register Profile [uni1]
2011-02-25 15:04:51:292163 [INFO] Leave Directory [../conf/client-
profiles]
2011-02-25 15:04:51:292163 [NOTICE] Create Application
2011-02-25 15:04:51:292163 [INFO] Register Application [UMC]
2011-02-25 15:04:51:304164 [INFO] Start Task [MRCP Client]
2011-02-25 15:04:51:306164 [INFO] Start Task [SIP-Agent-1]
2011-02-25 15:04:51:306164 [INFO] Start Task [RTSP-Agent-1]
2011-02-25 15:04:51:308164 [INFO] Start Task [MRCPv2-Agent-1]
2011-02-25 15:04:51:311164 [INFO] Start Task [Media-Engine-1]
Adding nameserver: 8.8.8.8
2011-02-25 15:04:51:340166 [NOTICE] MRCP Client Started
2011-02-25 15:04:51:340166 [INFO] Receive SIP Event
[nua_r_set_params] Status
200 OK
2011-02-25 15:04:51:341166 [NOTICE] Open Config File [../conf/
umcscenarios.xml]
2011-02-25 15:04:51:344166 [INFO] Load Scenario name [synth] class
[Synthesize
r]
2011-02-25 15:04:51:353167 [INFO] Load Scenario name [recog] class
[Recognizer
]
2011-02-25 15:04:51:366167 [INFO] Load Scenario name [rec] class
[Recorder]
2011-02-25 15:04:51:367168 [INFO] Load Scenario name [dtmf] class
[DtmfRecogni
zer]
2011-02-25 15:04:51:367168 [INFO] Load Scenario name [params] class
[Params]
run recog
>[1]
2011-02-25 15:05:06:154013 [NOTICE] Create MRCP Handle 0x1a9d768
[uni2]
2011-02-25 15:05:06:156013 [INFO] Create Channel umc-1 <new>
2011-02-25 15:05:06:156013 [INFO] Receive App Request umc-1 <new>
[2]
2011-02-25 15:05:06:157013 [INFO] Add MRCP Handle umc-1 <new>
2011-02-25 15:05:06:158014 [NOTICE] Add Control Channel umc-1
<new@speechrecog>
2011-02-25 15:05:06:163014 [INFO] Send Offer umc-1 <new> [c:1 a:1 v:
0] to 192.
168.1.20:5060
2011-02-25 15:05:06:163014 [INFO] Local SDP umc-1 <new>
v=0
o=UniMRCPClient 0 0 IN IP4 192.168.1.20
s=-
c=IN IP4 192.168.1.20
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4000 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

2011-02-25 15:05:06:184015 [INFO] Receive SIP Event [nua_i_state]
Status 0 INV
ITE sent
2011-02-25 15:05:06:184015 [NOTICE] SIP Call State umc-1 [calling]
2011-02-25 15:05:06:191015 [INFO] Receive SIP Event [nua_r_invite]
Status 200
OK
2011-02-25 15:05:06:191015 [INFO] Receive SIP Event [nua_i_state]
Status 200 O
K
2011-02-25 15:05:06:193016 [NOTICE] SIP Call State umc-1 [ready]
2011-02-25 15:05:06:194016 [INFO] Remote SDP umc-1 <new>
v=0
o=MRCPv2Server 3507631506 3507631506 IN IP4 192.168.1.20
s=Loquendo MRCPv2 Media Server
c=IN IP4 192.168.1.20
t=3507631506 0
m=application 51003 TCP/MRCPv2 1
a=channel:000028E04D67B712@speechrecog
a=connection:new
a=setup:passive
a=cmid:1
m=audio 10436 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=recvonly
a=ptime:20
a=mid:1

2011-02-25 15:05:06:196016 [INFO] Receive SIP Event [nua_i_active]
Status 200
Call active
2011-02-25 15:05:06:196016 [INFO] Receive Answer umc-1 <new> [c:1 a:
1 v:0]
2011-02-25 15:05:06:198016 [NOTICE] Established TCP/MRCPv2 Connection
192.168.1.
20:52326 <-> 192.168.1.20:51003
2011-02-25 15:05:06:200016 [INFO] Add Control Channel
<000028E04D67B712@speech
recog> 192.168.1.20:52326 <-> 192.168.1.20:51003 [1]
2011-02-25 15:05:06:203016 [INFO] Enable RTP Session
192.168.1.20:4000
2011-02-25 15:05:06:203016 [INFO] Open RTP Transmitter
192.168.1.20:4000 -> 19
2.168.1.20:10436
2011-02-25 15:05:06:204016 [INFO] Media Path umc-1 Source->[PCMU/
8000/1]->Brid
ge->[PCMU/8000/1]->Sink
2011-02-25 15:05:06:205016 [INFO] Raise App Response umc-1
<000028E04D67B712>
[2] SUCCESS [0]
2011-02-25 15:05:06:206016 [INFO] Receive App MRCP Request umc-1
<000028E04D67
B712>
2011-02-25 15:05:06:207016 [INFO] Send MRCP Request umc-1
<000028E04D67B712@sp
eechrecog> [1]
2011-02-25 15:05:06:208016 [INFO] Send MRCPv2 Stream
192.168.1.20:52326 <-> 19
2.168.1.20:51003 [499 bytes]
MRCP/2.0 499 DEFINE-GRAMMAR 1
Channel-Identifier: 000028E04D67B712@speechrecog
Content-Type: application/srgs+xml
Content-Id: request1@form-level
Content-Length: 326

´¬¬<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xml:lang="pl-pl"
version="1.0
" mode="voice" root="digit">
<rule id="digit">
<one-of>
<item>jeden</item>
<item>dwa</item>
<item>nothing</item>
<item>cztery</item>
</one-of>
</rule>
</grammar>
2011-02-25 15:05:06:223017 [INFO] Receive MRCPv2 Stream
192.168.1.20:52326 <->
192.168.1.20:51003 [112 bytes]
MRCP/2.0 112 1 200 COMPLETE
Channel-Identifier: 000028E04D67B712@speechrecog
Completion-Cause: 000 success


2011-02-25 15:05:06:224017 [INFO] Raise App MRCP Response umc-1
<000028E04D67B
712>
2011-02-25 15:05:06:225017 [INFO] Receive App MRCP Request umc-1
<000028E04D67
B712>
2011-02-25 15:05:06:226017 [INFO] Send MRCP Request umc-1
<000028E04D67B712@sp
eechrecog> [2]
2011-02-25 15:05:06:226017 [INFO] Set [../data/one-8kHz.pcm] as
Speech Source
2011-02-25 15:05:06:227017 [INFO] Send MRCPv2 Stream
192.168.1.20:52326 <-> 19
2.168.1.20:51003 [284 bytes]
MRCP/2.0 284 RECOGNIZE 2
Channel-Identifier: 000028E04D67B712@speechrecog
Content-Type: text/uri-list
Cancel-If-Queue: false
No-Input-Timeout: 5000
Recognition-Timeout: 10000
Start-Input-Timers: true
Confidence-Threshold: 0.87
Content-Length: 27

session:request1@form-level
2011-02-25 15:05:06:252019 [INFO] Receive MRCPv2 Stream
192.168.1.20:52326 <->
192.168.1.20:51003 [83 bytes]
MRCP/2.0 83 2 200 IN-PROGRESS
Channel-Identifier: 000028E04D67B712@speechrecog


2011-02-25 15:05:06:254019 [INFO] Raise App MRCP Response umc-1
<000028E04D67B
712>
2011-02-25 15:05:15:109526 [INFO] Receive MRCPv2 Stream
192.168.1.20:52326 <->
192.168.1.20:51003 [351 bytes]
MRCP/2.0 351 RECOGNITION-COMPLETE 2 COMPLETE
Channel-Identifier: 000028E04D67B712@speechrecog
Proxy-Sync-Id: 080CF464000000B5
Completion-Cause: 006 recognizer-error
Completion-Reason: Recognizer Error: "API lasrxRecog in module
Loquendo ASR 7.8.
2.0 returned with code -103: Audio samples timeout expired. No audio
samples hav
e been delivered "


2011-02-25 15:05:15:111526 [INFO] Raise App MRCP Event umc-1
<000028E04D67B712
>
2011-02-25 15:05:15:112526 [WARN] Failed to terminate NLSML parsing
2011-02-25 15:05:15:113526 [INFO] Receive App Request umc-1
<000028E04D67B712>
[1]
2011-02-25 15:05:15:114526 [INFO] Terminate Session umc-1
<000028E04D67B712>
2011-02-25 15:05:15:116526 [INFO] Remove Control Channel
<000028E04D67B712@spe
echrecog> [0]
2011-02-25 15:05:15:117526 [INFO] Close TCP/MRCPv2 Connection
192.168.1.20:523
26 <-> 192.168.1.20:51003
2011-02-25 15:05:15:122526 [INFO] Close RTP Transmitter
192.168.1.20:4000 -> 1
92.168.1.20:10436 [s:202 o:32320]
2011-02-25 15:05:15:122526 [INFO] Remove RTP Session
192.168.1.20:4000
2011-02-25 15:05:15:140527 [INFO] Receive SIP Event [nua_r_bye]
Status 200 OK
2011-02-25 15:05:15:141527 [INFO] Receive SIP Event [nua_i_state]
Status 200 t
o BYE
2011-02-25 15:05:15:142527 [NOTICE] SIP Call State umc-1 [terminated]
2011-02-25 15:05:15:144528 [INFO] Session Terminated umc-1
<000028E04D67B712>
2011-02-25 15:05:15:145528 [NOTICE] Destroy TCP/MRCPv2 Connection
192.168.1.20:5
2326 <-> 192.168.1.20:51003
2011-02-25 15:05:15:146528 [INFO] Remove MRCP Handle umc-1
<000028E04D67B712>
2011-02-25 15:05:15:148528 [INFO] Raise App Response umc-1
<000028E04D67B712>
[1] SUCCESS [0]
2011-02-25 15:05:15:149528 [NOTICE] Destroy MRCP Handle umc-1


roko

unread,
Feb 25, 2011, 4:16:09 PM2/25/11
to uni...@googlegroups.com
Hi, 006 is a recognizer error. check this:

http://tools.ietf.org/html/draft-ietf-speechsc-mrcpv2-22#section-9.4.11

I'm sorry I didn't read all of your emai. I'm trying to solve a bad confidence with pocketSphinx ASR :-)

mr_b

unread,
Feb 28, 2011, 4:07:34 AM2/28/11
to UniMRCP
Thank you for the link but unfortunately that is what I already know.
I'm pretty sure the problem is on the client side because the same
server is fully functional with other unimrcp client (asterisk
connector bridge). I have basically the same config but it still isn't
working.

If someone could send me some audio, grammar and all the xml files
used by umc.exe that has worked for them with Loquendo speech server I
would be grateful. I am aware that Loquendo is probably less popular
than Nuance and other servers (at least in this group) so I will take
anything else that would be useful. As for the xml config files I
think umcscenarios.xml and one of the client-profile xmls would be
sufficient.

All I try to do is make unimrcp run with anything properly, even basic
grammar so that I can change some things in umc code. What I am tryind
to achieve in the end is the easiest scenario possible: send recorded
audio with preconfigured grammar and receive results. The only
parameter is file name and I want the application to be able to run
multiple requests at the same time so either concurrently in one
instance or multiple instances of app at the same time. So if I am
heading the wrong way than please do tell me. Maybe its easier to set
up unimrcpclient.exe? I really have no preferences but this one gives
me the same results so far.

mr_b

unread,
Mar 15, 2011, 4:23:03 AM3/15/11
to UniMRCP
If anyone is having a similar problem try adding even more silence
after the spoken phrase (at least 3 seconds). The amount in one.pcm
may be insufficient and the grammar has nothing to do with it, its all
about the audio file. The reason for why changing the grammar affected
the result probably is that a certain element can be recognized
'faster' so that a shorter amount of silence is OK.

What worked for me is a wav file instead of pcm (with 16bit sample
rate and 8kHz frequency). I also had 002 no-input-timeout error before
which was caused by changing

<termination enable="1">
<capabilities>
<codec name="LPCM" rates="8000 16000"/>
</capabilities>
</termination>

to

<termination enable="1">
<capabilities>
<codec name="PCMU" rates="8000 16000"/>
</capabilities>
</termination>

in recog scenario. The good one (2nd) is default.
Reply all
Reply to author
Forward
0 new messages