Dial Plan for Unimrcp

612 views
Skip to first unread message

ncs lhr

unread,
Apr 28, 2012, 8:51:40 AM4/28/12
to UniMRCP
i have installed and configure unimrcp + pocket + asterisk connection
bridge with asterisk 1.4.38. following is my dial plan. here i have
some confusion about grammar thing how and where create my own
grammar? what is function in unimrcp? if i dial following dial plan i
got the following result in asterisk cli. i cant here or see my said
words. please help me in this. Thanks.

exten => 1004,1,Answer()
exten => 1004,n,SpeechCreate(unimrcp)
exten => 1004,n,SpeechLoadGrammar(grammar,/etc/asterisk/grammar.jsgf)
exten => 1004,n,SpeechActivateGrammar(grammar)
exten => 1004,n,SpeechStart()
exten => 1004,n,SpeechBackground(hello-world,20)
exten => 1004,n,Verbose(1,The recognized input is ${SPEECH(results)})
exten => 1004,n,Verbose(1,The recognized input is ${SPEECH_TEXT(result
number)})
exten => 1004,n,Verbose(1,The score is ${SPEECH_SCORE(0)})
exten => 1004,n,Verbose(1,The matched grammar is ${SPEECH_GRAMMAR(0)})
exten => 1004,n,SpeechDeactivateGrammar(grammar)
exten => 1004,n,SpeechProcessingSound(grammar)
exten => 1004,n,SpeechUnloadGrammar(grammar)
exten => 1004,n,SpeechDestroy()
exten => 1004,n,Hangup()




-- Executing [1004@outgoing:1] Answer("SIP/3001-0000001a", "") in new
stack
-- Executing [1004@outgoing:2] SpeechCreate("SIP/3001-0000001a",
"unimrcp") in new stack
[Apr 28 17:39:44] NOTICE[4727]: app_unimrcp.c:4169 unimrcp_log: Create
MRCP Handle 0x9d44140 [uni2]
[Apr 28 17:39:44] DEBUG[4727]: app_unimrcp.c:4172 unimrcp_log: Create
Channel 0x9d44140 <new>
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:907
uni_recog_sm_request_send: Send session request type:2
[Apr 28 17:39:44] DEBUG[4727]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [4;0]
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:933
uni_recog_sm_request_send: Wait for session response
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [4;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Receive
App Request 0x9d44140 <new> [2]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Add
MRCP Handle 0x9d44140 <new>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log:
Dispatch App Request 0x9d44140 <new> [2]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Poller Wakeup [MRCPv2-Agent-1]
[Apr 28 17:39:44] NOTICE[3116]: app_unimrcp.c:4169 unimrcp_log: Add
Control Channel 0x9d44140 <new@speechrecog>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Add
Media Termination 0x9d44140 <new@media-tm>
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;0]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Add
Media Termination 0x9d44140 <new@rtp-tm>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [Media-Engine-1] [1;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Control
Channel Added 0x9d44140 <new@speechrecog>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[3120]: app_unimrcp.c:4175 unimrcp_log: Process
Message [Media-Engine-1] [1;0]
[Apr 28 17:39:44] DEBUG[3120]: app_unimrcp.c:4175 unimrcp_log: Add
Media Context 0x9d44140
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [3;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Media
Termination Added 0x9d44140 <new@media-tm>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Media
Termination Added 0x9d44140 <new@rtp-tm>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Send
Offer 0x9d44140 <new> [c:1 a:1 v:0] to 192.168.4.48:8060
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Local
SDP 0x9d44140 <new>
v=0
o=UniMRCPClient 0 0 IN IP4 192.168.4.48
s=-
c=IN IP4 192.168.4.48
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4030 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

[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[3117]: app_unimrcp.c:4172 unimrcp_log: Receive
SIP Event [nua_i_state] Status 0 INVITE sent
[Apr 28 17:39:44] NOTICE[3117]: app_unimrcp.c:4169 unimrcp_log: SIP
Call State 0x9d44140 [calling]
[Apr 28 17:39:44] DEBUG[3117]: app_unimrcp.c:4172 unimrcp_log: Receive
SIP Event [nua_r_invite] Status 200 OK
[Apr 28 17:39:44] DEBUG[3117]: app_unimrcp.c:4172 unimrcp_log: Receive
SIP Event [nua_i_state] Status 200 OK
[Apr 28 17:39:44] NOTICE[3117]: app_unimrcp.c:4169 unimrcp_log: SIP
Call State 0x9d44140 [ready]
[Apr 28 17:39:44] DEBUG[3117]: app_unimrcp.c:4172 unimrcp_log: Remote
SDP 0x9d44140 <new>
v=0
o=UniMRCPServer 577335689927848930 1380983223380945776 IN IP4
192.168.4.48
s=-
c=IN IP4 192.168.4.48
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:847c2fb695ee45de@speechrecog
a=cmid:1
m=audio 5050 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

[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [1;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Receive
Answer 0x9d44140 <new> [c:1 a:1 v:0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Modify
Control Channel 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Modify
Media Termination 0x9d44140 <847c2fb695ee45de@rtp-tm>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [Media-Engine-1] [1;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[3117]: app_unimrcp.c:4172 unimrcp_log: Receive
SIP Event [nua_i_active] Status 200 Call active
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Poller Wakeup [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] NOTICE[3119]: app_unimrcp.c:4169 unimrcp_log:
Established TCP/MRCPv2 Connection 192.168.4.48:43548 <->
192.168.4.48:1544
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Add
Control Channel <847c2fb695ee45de@speechrecog> 192.168.4.48:43548 <->
192.168.4.48:1544 [1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;1]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;1]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Control
Channel Modified 0x9d44140 <847c2fb695ee45de@speechrecog>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3120]: app_unimrcp.c:4175 unimrcp_log: Process
Message [Media-Engine-1] [1;0]
[Apr 28 17:39:44] DEBUG[3120]: app_unimrcp.c:4172 unimrcp_log: Enable
RTP Session 192.168.4.48:4030
[Apr 28 17:39:44] DEBUG[3120]: app_unimrcp.c:4175 unimrcp_log: Create
Linear Audio Bridge 0x9d44140
[Apr 28 17:39:44] DEBUG[3120]: app_unimrcp.c:4172 unimrcp_log: Open
RTP Transmitter 192.168.4.48:4030 -> 192.168.4.48:5050
[Apr 28 17:39:44] DEBUG[3120]: app_unimrcp.c:4172 unimrcp_log: Media
Path 0x9d44140 Source->[LPCM/8000/1]->Bridge->[LPCM/8000/1]->Encoder-
>[PCMU/8000/1]->Sink
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [3;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Media
Termination Modified 0x9d44140 <847c2fb695ee45de@rtp-tm>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App Response 0x9d44140 <847c2fb695ee45de> [2] SUCCESS [0]
[Apr 28 17:39:44] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:44] DEBUG[3116]: res_speech_unimrcp.c:705
on_channel_add: On channel add
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:938
uni_recog_sm_request_send: Waked up, status code: 0
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:204
uni_recog_create: Create media buffer frame_size:160
[Apr 28 17:39:44] NOTICE[4727]: res_speech_unimrcp.c:216
uni_recog_create: Created speech instance '847c2fb695ee45de'
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:843
uni_recog_properties_set: Set properties '847c2fb695ee45de'
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:954
uni_recog_mrcp_request_send: Send MRCP request
[Apr 28 17:39:44] DEBUG[4727]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [4;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [4;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Receive
App MRCP Request 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Send
MRCP Request 0x9d44140 <847c2fb695ee45de@speechrecog> [1]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Poller Wakeup [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Send
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [132 bytes]
MRCP/2.0 132 SET-PARAMS 1
Channel-Identifier: 847c2fb695ee45de@speechrecog
Recognition-Timeout: 20000
No-Input-Timeout: 15000


[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:959
uni_recog_mrcp_request_send: Wait for MRCP response
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Signalled Descriptor [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Receive
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [80 bytes]
MRCP/2.0 80 1 200 COMPLETE
Channel-Identifier: 847c2fb695ee45de@speechrecog


[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;3]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;3]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App MRCP Response 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:44] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:44] DEBUG[3116]: res_speech_unimrcp.c:723
on_message_receive: On message receive
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:964
uni_recog_mrcp_request_send: Waked up
-- Executing [1004@outgoing:3] SpeechLoadGrammar("SIP/
3001-0000001a", "grammar|/etc/asterisk/grammar.jsgf") in new stack
[Apr 28 17:39:44] NOTICE[4727]: res_speech_unimrcp.c:354
uni_recog_load_grammar: Load grammar name:grammar type:application/x-
jsgf path:/etc/asterisk/grammar.jsgf '847c2fb695ee45de'
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:954
uni_recog_mrcp_request_send: Send MRCP request
[Apr 28 17:39:44] DEBUG[4727]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [4;0]
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:959
uni_recog_mrcp_request_send: Wait for MRCP response
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [4;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Receive
App MRCP Request 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Send
MRCP Request 0x9d44140 <847c2fb695ee45de@speechrecog> [2]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Poller Wakeup [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Send
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [226 bytes]
MRCP/2.0 226 DEFINE-GRAMMAR 2
Channel-Identifier: 847c2fb695ee45de@speechrecog
Content-Type: application/x-jsgf
Content-Id: grammar
Content-Length: 68

#JSGF V1.0;
grammar digits;
public <numbers> = (one | two | three);

[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Signalled Descriptor [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Receive
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [112 bytes]
MRCP/2.0 112 2 200 COMPLETE
Channel-Identifier: 847c2fb695ee45de@speechrecog
Completion-Cause: 000 success


[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;3]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;3]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App MRCP Response 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:44] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:44] DEBUG[3116]: res_speech_unimrcp.c:723
on_message_receive: On message receive
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:964
uni_recog_mrcp_request_send: Waked up
-- Executing [1004@outgoing:4] SpeechActivateGrammar("SIP/
3001-0000001a", "grammar") in new stack
[Apr 28 17:39:44] NOTICE[4727]: res_speech_unimrcp.c:430
uni_recog_activate_grammar: Activate grammar name:grammar
'847c2fb695ee45de'
-- Executing [1004@outgoing:5] SpeechStart("SIP/3001-0000001a",
"") in new stack
[Apr 28 17:39:44] NOTICE[4727]: res_speech_unimrcp.c:485
uni_recog_start: Start audio '847c2fb695ee45de'
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:954
uni_recog_mrcp_request_send: Send MRCP request
[Apr 28 17:39:44] DEBUG[4727]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [4;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [4;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Receive
App MRCP Request 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Send
MRCP Request 0x9d44140 <847c2fb695ee45de@speechrecog> [3]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Poller Wakeup [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Send
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [192 bytes]
MRCP/2.0 192 RECOGNIZE 3
Channel-Identifier: 847c2fb695ee45de@speechrecog
Content-Type: text/uri-list
Cancel-If-Queue: false
Start-Input-Timers: true
Content-Length: 15

session:grammar
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:959
uni_recog_mrcp_request_send: Wait for MRCP response
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Signalled Descriptor [MRCPv2-Agent-1]
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Receive
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [83 bytes]
MRCP/2.0 83 3 200 IN-PROGRESS
Channel-Identifier: 847c2fb695ee45de@speechrecog


[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;3]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;3]
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App MRCP Response 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:44] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:44] DEBUG[3116]: res_speech_unimrcp.c:723
on_message_receive: On message receive
[Apr 28 17:39:44] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:44] DEBUG[4727]: res_speech_unimrcp.c:964
uni_recog_mrcp_request_send: Waked up
-- Executing [1004@outgoing:6] SpeechBackground("SIP/
3001-0000001a", "hello-world|20") in new stack
[Apr 28 17:39:44] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:45] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Signalled Descriptor [MRCPv2-Agent-1]
[Apr 28 17:39:45] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Receive
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [94 bytes]
MRCP/2.0 94 START-OF-INPUT 3 IN-PROGRESS
Channel-Identifier: 847c2fb695ee45de@speechrecog


[Apr 28 17:39:45] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;3]
[Apr 28 17:39:45] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:45] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;3]
[Apr 28 17:39:45] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App MRCP Event 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:45] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:45] DEBUG[3116]: res_speech_unimrcp.c:723
on_message_receive: On message receive
[Apr 28 17:39:45] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Signalled Descriptor [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Receive
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [397 bytes]
MRCP/2.0 397 RECOGNITION-COMPLETE 3 COMPLETE
Channel-Identifier: 847c2fb695ee45de@speechrecog
Completion-Cause: 000 success
Content-Type: application/x-nlsml
Content-Length: 212

<?xml version="1.0"?>
<result>
<interpretation grammar="session:requ...@form-level.store"
confidence="97">
<instance>one</instance>
<input mode="speech">one</input>
</interpretation>
</result>
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;3]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;3]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App MRCP Event 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:723
on_message_receive: On message receive
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:569
uni_recog_get: Get result '847c2fb695ee45de'
[Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:634
uni_recog_get: Interpreted instance:one score:9700
grammar:requ...@form-level.store
-- Executing [1004@outgoing:7] Verbose("SIP/3001-0000001a", "1|The
recognized input is 1") in new stack
The recognized input is 1
-- Executing [1004@outgoing:8] Verbose("SIP/3001-0000001a", "1|The
recognized input is one") in new stack
The recognized input is one
-- Executing [1004@outgoing:9] Verbose("SIP/3001-0000001a", "1|The
score is 9700") in new stack
The score is 9700
-- Executing [1004@outgoing:10] Verbose("SIP/3001-0000001a", "1|
The matched grammar is requ...@form-level.store") in new stack
The matched grammar is requ...@form-level.store
-- Executing [1004@outgoing:11] SpeechDeactivateGrammar("SIP/
3001-0000001a", "grammar") in new stack
[Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:442
uni_recog_deactivate_grammar: Deactivate grammar name:grammar
'847c2fb695ee45de'
-- Executing [1004@outgoing:12] SpeechProcessingSound("SIP/
3001-0000001a", "grammar") in new stack
-- Executing [1004@outgoing:13] SpeechUnloadGrammar("SIP/
3001-0000001a", "grammar") in new stack
[Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:390
uni_recog_unload_grammar: Unload grammar name:grammar
'847c2fb695ee45de'
[Apr 28 17:39:52] DEBUG[4727]: res_speech_unimrcp.c:954
uni_recog_mrcp_request_send: Send MRCP request
[Apr 28 17:39:52] DEBUG[4727]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [4;0]
[Apr 28 17:39:52] DEBUG[4727]: res_speech_unimrcp.c:959
uni_recog_mrcp_request_send: Wait for MRCP response
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [4;0]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Receive
App MRCP Request 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Send
MRCP Request 0x9d44140 <847c2fb695ee45de@speechrecog> [4]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Poller Wakeup [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Send
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [104 bytes]
MRCP/2.0 104 DEFINE-GRAMMAR 4
Channel-Identifier: 847c2fb695ee45de@speechrecog
Content-Id: grammar


[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Signalled Descriptor [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Receive
MRCPv2 Stream 192.168.4.48:43548 <-> 192.168.4.48:1544 [112 bytes]
MRCP/2.0 112 4 200 COMPLETE
Channel-Identifier: 847c2fb695ee45de@speechrecog
Completion-Cause: 000 success


[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;3]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;3]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App MRCP Response 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:723
on_message_receive: On message receive
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] DEBUG[4727]: res_speech_unimrcp.c:964
uni_recog_mrcp_request_send: Waked up
-- Executing [1004@outgoing:14] SpeechDestroy("SIP/3001-0000001a",
"") in new stack
[Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:229
uni_recog_destroy: Destroy speech instance '847c2fb695ee45de'
[Apr 28 17:39:52] DEBUG[4727]: res_speech_unimrcp.c:907
uni_recog_sm_request_send: Send session request type:1
[Apr 28 17:39:52] DEBUG[4727]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [4;0]
[Apr 28 17:39:52] DEBUG[4727]: res_speech_unimrcp.c:933
uni_recog_sm_request_send: Wait for session response
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [4;0]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Receive
App Request 0x9d44140 <847c2fb695ee45de> [1]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log:
Dispatch App Request 0x9d44140 <847c2fb695ee45de> [1]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log:
Terminate Session 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Remove
Control Channel 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log:
Subtract Media Termination 0x9d44140 <847c2fb695ee45de@media-tm>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log:
Subtract Media Termination 0x9d44140 <847c2fb695ee45de@rtp-tm>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [Media-Engine-1] [1;0]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Poller Wakeup [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCPv2-Agent-1] [1;0]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Remove
Control Channel <847c2fb695ee45de@speechrecog> [0]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4172 unimrcp_log: Close
TCP/MRCPv2 Connection 192.168.4.48:43548 <-> 192.168.4.48:1544
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;2]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;2]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Control
Channel Removed 0x9d44140 <847c2fb695ee45de@speechrecog>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] DEBUG[3117]: app_unimrcp.c:4172 unimrcp_log: Receive
SIP Event [nua_r_bye] Status 200 OK
[Apr 28 17:39:52] DEBUG[3117]: app_unimrcp.c:4172 unimrcp_log: Receive
SIP Event [nua_i_state] Status 200 to BYE
[Apr 28 17:39:52] NOTICE[3117]: app_unimrcp.c:4169 unimrcp_log: SIP
Call State 0x9d44140 [terminated]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [1;1]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Session
Terminated 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] DEBUG[3120]: app_unimrcp.c:4175 unimrcp_log: Process
Message [Media-Engine-1] [1;0]
[Apr 28 17:39:52] DEBUG[3120]: app_unimrcp.c:4175 unimrcp_log: Destroy
Audio Bridge 0x9d44140
[Apr 28 17:39:52] DEBUG[3120]: app_unimrcp.c:4172 unimrcp_log: Close
RTP Transmitter 192.168.4.48:4030 -> 192.168.4.48:5050 [s:393 o:62880]
[Apr 28 17:39:52] DEBUG[3120]: app_unimrcp.c:4175 unimrcp_log: Remove
Media Context 0x9d44140
[Apr 28 17:39:52] DEBUG[3120]: app_unimrcp.c:4172 unimrcp_log: Remove
RTP Session 192.168.4.48:4030
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [3;0]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Media
Termination Subtracted 0x9d44140 <847c2fb695ee45de@media-tm>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Media
Termination Subtracted 0x9d44140 <847c2fb695ee45de@rtp-tm>
[Apr 28 17:39:52] NOTICE[3116]: app_unimrcp.c:4169 unimrcp_log:
Destroy TCP/MRCPv2 Connection 192.168.4.48:43548 <-> 192.168.4.48:1544
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Remove
MRCP Handle 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App Response 0x9d44140 <847c2fb695ee45de> [1] SUCCESS [0]
[Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:696
on_session_terminate: On session terminate
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] DEBUG[4727]: res_speech_unimrcp.c:938
uni_recog_sm_request_send: Waked up, status code: 0
[Apr 28 17:39:52] NOTICE[4727]: app_unimrcp.c:4169 unimrcp_log:
Destroy MRCP Handle 0x9d44140
-- Executing [1004@outgoing:15] Hangup("SIP/3001-0000001a", "") in
new stack
== Spawn extension (outgoing, 1004, 15) exited non-zero on 'SIP/
3001-0000001a'

assanta

unread,
Apr 30, 2012, 3:37:15 AM4/30/12
to uni...@googlegroups.com
Hi
 
All seems to be ok, this is from your log:
 
MRCP/2.0 397 RECOGNITION-COMPLETE 3 COMPLETE
Channel-Identifier: 847c2fb695ee45de@speechrecog
Completion-Cause: 000 success
Content-Type: application/x-nlsml
Content-Length: 212

<?xml version="1.0"?>
<result>
<interpretation grammar="session:request1@form-level.store"

confidence="97">
<instance>one</instance>
<input mode="speech">one</input>
</interpretation>
</result>
    -- Executing [1004@outgoing:7] Verbose("SIP/3001-0000001a", "1|The
recognized input is 1
") in new stack
The recognized input is 1
-- Executing [1004@outgoing:8] Verbose("SIP/3001-0000001a", "1|The
recognized input is one
") in new stack
The recognized input is one
-- Executing [1004@outgoing:9] Verbose("SIP/3001-0000001a", "1|The
score is 9700
") in new stack
Asier
  <interpretation grammar="session:request1@form-level.store"
confidence="97">
    <instance>one</instance>
    <input mode="speech">one</input>
  </interpretation>
</result>
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
Message to [MRCP Client] [2;3]
[Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCPv2-Agent-1]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
Message [MRCP Client] [2;3]
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
App MRCP Event 0x9d44140 <847c2fb695ee45de>
[Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:766
uni_message_handler: Received message from client stack
[Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:723
on_message_receive: On message receive
[Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:569
uni_recog_get: Get result '847c2fb695ee45de'
[Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:634
uni_recog_get: Interpreted instance:one score:9700
grammar:request1@form-level.store

ncs lhr

unread,
Apr 30, 2012, 12:11:09 PM4/30/12
to uni...@googlegroups.com
Thanks for your reply. i could not understand uniMRCP dial plan.  here i have 
some confusion about grammar thing how and where i create my own 
grammar? what is function in unimrcp? i cant here or see my said 

words. please help me in this. Thanks.  

--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To view this discussion on the web visit https://groups.google.com/d/msg/unimrcp/-/f5Op--6k5KsJ.

To post to this group, send email to uni...@googlegroups.com.
To unsubscribe from this group, send email to unimrcp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/unimrcp?hl=en.

assanta

unread,
May 2, 2012, 4:54:16 AM5/2/12
to uni...@googlegroups.com
take a look at this grammar "etc/asterisk/grammar.jsgf" (is the grammar you are using) and make something similar with your one words
 
you can see what you said, is what i wrote you last day, is in the log
 
for hearing yor said, you must use the TTS, por example, with "MRCPSynth"
 
You should read more about asterisk and UniMRCP
To unsubscribe from this group, send email to unimrcp+unsubscribe@googlegroups.com.

ncs lhr

unread,
May 2, 2012, 5:58:32 AM5/2/12
to uni...@googlegroups.com
i would love to read more about unimrcp and asterisk. please give me some useful link. the grammar i m using is not recognizing my said words.please look into my grammar file and asterisk cli.

here is my asterisk cli  http://pastebin.com/Sv8eBihk 
here is my grammar flie  http://pastebin.com/ebrcAFQF 
here is my unimrcp server log  http://pastebin.com/FGD1cYcu 

if i use MRCPSynth() it always say uniMRCP defualt words in male voice "Welcome to Uni MRCP". if i change it, it doesnt take my changes. here is my MRCPSynth() dial plan and log http://pastebin.com/qX8RWDiD


To view this discussion on the web visit https://groups.google.com/d/msg/unimrcp/-/v4LoHeuUF_kJ.

To post to this group, send email to uni...@googlegroups.com.
To unsubscribe from this group, send email to unimrcp+u...@googlegroups.com.

ncs lhr

unread,
May 3, 2012, 8:48:49 AM5/3/12
to uni...@googlegroups.com
i would love to read more about unimrcp and asterisk. please give me some useful link. i disabled engine id = demo in unimrcpserver.xml and only enable  PocketSphinx-1 and Recorder-1. after that when i run ./unimrcpserver from /usr/local/unimrcp/bin/ i get this  http://pastebin.com/S3THi0x0 it shows me No MRCP Engine Available [speechsynth] and unimrcpserver get start. please help me in this regards. your help will be highly appreciated.

<plugin-factory>
      <engine id="PocketSphinx-1" name="mrcppocketsphinx" enable="1"/>
      <engine id="Flite-1" name="mrcpflite" enable="false"/>
      <engine id="Demo-Synth-1" name="demosynth" enable="false"/>
      <engine id="Demo-Recog-1" name="demorecog" enable="false"/>
      <engine id="Recorder-1" name="mrcprecorder" enable="true"/>

On Wed, May 2, 2012 at 1:54 PM, assanta <assan...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msg/unimrcp/-/v4LoHeuUF_kJ.

To post to this group, send email to uni...@googlegroups.com.
To unsubscribe from this group, send email to unimrcp+u...@googlegroups.com.

Arsen Chaloyan

unread,
May 3, 2012, 10:25:23 PM5/3/12
to uni...@googlegroups.com
Some background information first.

UniMRCP is an implementation of the MRCP standard. The UniMRCP client
library provides an API for the integration in PBXs and IVRs. While
UniMRCP doesn't have any dialplan, the final products such as
Asterisk, FreeSWITCH and others may may have their diaplans.

I see that you have already figured out how to use MRCP applications
from Asterisk dialplan. That was the MRCP client side. Now, lets see
what to do or to use as an MRCP server. As you may have noticed,
demosynth and demorecog are just simulators. If you want to stick with
free/open source solutions, try the UniMRCP server with the
corresponding plugins for PocketSphinx (ASR) and Flite (TTS).

<engine id="PocketSphinx-1" name="mrcppocketsphinx" enable="true"/>
<engine id="Flite-1" name="mrcpflite" enable="true"/>

There have been numerous other proprietary/commercial ASR/TTS plugins
for the UniMRCP server. You may ask the community in case you want to
try one of them. Alternatively, it's also possible to use any 3-rd
party MRCP server with Asterisk/UniMRCP client. So, it's really up to
you.
>>>> <interpretation grammar="session:requ...@form-level.store"
>>>>>   <interpretation grammar="session:requ...@form-level.store"
>>>>> confidence="97">
>>>>>     <instance>one</instance>
>>>>>     <input mode="speech">one</input>
>>>>>   </interpretation>
>>>>> </result>
>>>>> [Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Signal
>>>>> Message to [MRCP Client] [2;3]
>>>>> [Apr 28 17:39:52] DEBUG[3119]: app_unimrcp.c:4175 unimrcp_log: Wait
>>>>> for Messages [MRCPv2-Agent-1]
>>>>> [Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Process
>>>>> Message [MRCP Client] [2;3]
>>>>> [Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4172 unimrcp_log: Raise
>>>>> App MRCP Event 0x9d44140 <847c2fb695ee45de>
>>>>> [Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:766
>>>>> uni_message_handler: Received message from client stack
>>>>> [Apr 28 17:39:52] DEBUG[3116]: res_speech_unimrcp.c:723
>>>>> on_message_receive: On message receive
>>>>> [Apr 28 17:39:52] DEBUG[3116]: app_unimrcp.c:4175 unimrcp_log: Wait
>>>>> for Messages [MRCP Client]
>>>>> [Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:569
>>>>> uni_recog_get: Get result '847c2fb695ee45de'
>>>>> [Apr 28 17:39:52] NOTICE[4727]: res_speech_unimrcp.c:634
>>>>> uni_recog_get: Interpreted instance:one score:9700
>>>>> grammar:requ...@form-level.store
>>>> unimrcp+u...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/unimrcp?hl=en.
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "UniMRCP" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/unimrcp/-/v4LoHeuUF_kJ.
>>
>> To post to this group, send email to uni...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> unimrcp+u...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/unimrcp?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "UniMRCP" group.
> To post to this group, send email to uni...@googlegroups.com.
> To unsubscribe from this group, send email to
> unimrcp+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/unimrcp?hl=en.



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

ncs lhr

unread,
May 4, 2012, 8:28:58 AM5/4/12
to uni...@googlegroups.com
Thank you for your reply. i installed Flite which is working fine but it doesn't take other options as mentioned on unimrcp site, like if i want it speak in female voice but it doesn't. 
here i have 2 more question about pocketsphinx, 
1- i want to setup an IVR on asterisk which take user speak and save it in text. currently i made a grammar and entered some words which is being recognized by pocketshpinx. is there any grammar which has all English words so that user speak and pochetshinx can recognize it and save in text?
2- when i use SpeechCreate() it doesn't return results. i want TTS speak back what user said. below is my dial plan, grammar and asterisk cli log.

ncs lhr

unread,
May 11, 2012, 3:52:37 AM5/11/12
to uni...@googlegroups.com
any update on this please...

Arsen Chaloyan

unread,
May 11, 2012, 9:46:09 PM5/11/12
to uni...@googlegroups.com
On Fri, May 4, 2012 at 5:28 AM, ncs lhr <lhr...@gmail.com> wrote:
> Thank you for your reply. i installed Flite which is working fine but
> it doesn't take other options as mentioned on unimrcp site, like if i want
> it speak in female voice but it doesn't.

Those options are not necessarily meant to be used with Flite. The
Flite plugin doesn't support all of them but it does come with a
female voice such as "slt". So you can use it from the dialplan as
follows

MRCPSynth(${SPEECH_TEXT(0)},i=any&l=en-US&v=slt&g=female)

> here i have 2 more question about pocketsphinx,
> 1- i want to setup an IVR on asterisk which take user speak and save it in
> text. currently i made a grammar and entered some words which is being
> recognized by pocketshpinx. is there any grammar which has all English words
> so that user speak and pochetshinx can recognize it and save in text?

ASR normally works with/against grammars. You provide a set of options
and the engine tries to match spoken input against active/provided
grammars. Generic speech to text is somewhat different and more
complicated.

> 2- when i use SpeechCreate() it doesn't return results. i want TTS speak
> back what user said. below is my dial plan, grammar and asterisk cli log.
> Asterisk cli  http://pastebin.com/cwXYHxDq
> Dial plan   http://pastebin.com/cFWwyeH3
> Grammar  http://pastebin.com/74GSLu9K

You seem to do everything right. However, instead of ${SPEECH_TEXT(1),
use ${SPEECH_TEXT(0). Index starts from 0. The rest should be OK as
far as I can see.

ncs lhr

unread,
May 14, 2012, 3:06:31 AM5/14/12
to uni...@googlegroups.com
Thanks Arsen. i checked flite female voice its working fine. can i reduce speaking speed. when it speak some words i cannot understand it.

ASR normally works with/against grammars. You provide a set of options
and the engine tries to match spoken input against active/provided
grammars. Generic speech to text is somewhat different and more
complicated. 

can you tell me how i can get Generic speech to text grammar or how it is  different and more complicated?

You seem to do everything right. However, instead of ${SPEECH_TEXT(1),
use ${SPEECH_TEXT(0). Index starts from 0. The rest should be OK as
far as I can see. 

i checked both   ${SPEECH_TEXT(0)  and   ${SPEECH_TEXT(1) but it didnt get speech result,

here i have some problem with unimrcpserver. when i speak wrong word or a word which is not in grammer. unimrcpserver get crash. following are my dial plan and  unimrcpserver crash log.
unimrcpserver :  http://pastebin.com/VVgNXbK5 

Arsen Chaloyan

unread,
May 15, 2012, 10:11:58 PM5/15/12
to uni...@googlegroups.com
On Mon, May 14, 2012 at 12:06 AM, ncs lhr <lhr...@gmail.com> wrote:
> Thanks Arsen. i checked flite female voice its working fine. can i reduce
> speaking speed. when it speak some words i cannot understand it.

For Flite, it's not currently possible to control speaker speed.
However, you may try to implement that feature in the plugin. It's not
as easy as selecting voice by name or gender, but isn't that hard
either.

>
> ASR normally works with/against grammars. You provide a set of options
> and the engine tries to match spoken input against active/provided
> grammars. Generic speech to text is somewhat different and more
> complicated.
>
> can you tell me how i can get Generic speech to text grammar or how it is
> different and more complicated?
>
> You seem to do everything right. However, instead of ${SPEECH_TEXT(1),
> use ${SPEECH_TEXT(0). Index starts from 0. The rest should be OK as
> far as I can see.
>
> i checked both   ${SPEECH_TEXT(0)  and   ${SPEECH_TEXT(1) but it didnt get
> speech result,

The following does work for me

MRCPSynth(${SPEECH_TEXT(0)},i=any&l=en-US&v=slt&g=female)

>
> here i have some problem with unimrcpserver. when i speak wrong word or a
> word which is not in grammer. unimrcpserver get crash. following are my dial
> plan and  unimrcpserver crash log.
> Dial plan :  http://pastebin.com/DYgLD2k1
> unimrcpserver :  http://pastebin.com/VVgNXbK5

The crash happened in the PocketSphinx plugin. I'm not sure whether it
is the fault of plugin or the engine itself. Anyway, this is exactly
the same problem as the one reported here

http://code.google.com/p/unimrcp/issues/detail?id=123&colspec=ID%20Type%20Status%20Priority%20Component%20Milestone%20Owner%20Reporter%20Summary%20Modified

I unfortunately don't have the time to enhance and fix issues related
to PocketSphinx or Flite. But you or anyone else willing to do that
may rely on my limited assistance.

ncs lhr

unread,
May 19, 2012, 4:01:25 AM5/19/12
to uni...@googlegroups.com
can you tell me how i can reduce speed of flite TTS.

i always have to change unimrcpclient.xml port from 8062 to 8263 or 8263 to 8262 when i restart the system. following is my netstat -nap

i saw the link you sent me for server crash but there is solution for that problem.

Thanks,

Qasim Asad Khan.

ncs lhr

unread,
May 19, 2012, 4:41:20 PM5/19/12
to uni...@googlegroups.com
my system was crash so i re-installed it. now i when i run unimrcp 
./configure --with-apr=/usr/src/unimrcp-deps-1.1.2/libs/apr --with-apr-util=/usr/src/unimrcp-deps-1.1.2/libs/apr-util/ --with-sofia-sip=/usr/src/unimrcp-deps-1.1.2/libs/sofia-sip/ --enable-pocketsphinx-plugin --with-pocketsphinx=/usr/src/pocketsphinx-0.5.99 --with-sphinxbase=/usr/src/sphinxbase-0.4.99

then i get following message.

Package sphinxbase was not found in the pkg-config search path.Perhaps you should add the directory containing `sphinxbase.pc' to the PKG_CONFIG_PATH environment variable

please let me know what wrong i m doing... please also reply my last mail.

Thank you very much.

Arsen Chaloyan

unread,
May 21, 2012, 10:28:52 PM5/21/12
to uni...@googlegroups.com
On Sat, May 19, 2012 at 1:01 AM, ncs lhr <lhr...@gmail.com> wrote:
> can you tell me how i can reduce speed of flite TTS.

You'll need to modify the code of Flite plugin.

Here is the fragment of code which does the job:
http://code.google.com/p/unimrcp/source/browse/trunk/plugins/mrcp-flite/src/mrcp_flite.c#481


>
> i always have to change unimrcpclient.xml port from 8062 to 8263 or 8263 to
> 8262 when i restart the system. following is my netstat -nap
> http://pastebin.com/Mw8DtnZG

What did you mean by restarting the system: Asterisk or OS or what?

>
> i saw the link you sent me for server crash but there is solution for that
> problem.

I personally don't know if there is a solution for that or not but
hope that one of you, guys, who are looking for that solution, would
be able to come up with the fixes too.

Arsen Chaloyan

unread,
May 21, 2012, 10:31:14 PM5/21/12
to uni...@googlegroups.com
Have you built sphinxbase and pocketsphinx first?

And where is sphinxbase.pc located?

ncs lhr

unread,
May 22, 2012, 9:27:43 AM5/22/12
to uni...@googlegroups.com
On Tue, May 22, 2012 at 7:28 AM, Arsen Chaloyan <acha...@gmail.com> wrote:
On Sat, May 19, 2012 at 1:01 AM, ncs lhr <lhr...@gmail.com> wrote:
> can you tell me how i can reduce speed of flite TTS.

You'll need to modify the code of Flite plugin.

Here is the fragment of code which does the job:
http://code.google.com/p/unimrcp/source/browse/trunk/plugins/mrcp-flite/src/mrcp_flite.c#481

i will look into this later 



>
> i always have to change unimrcpclient.xml port from 8062 to 8263 or 8263 to
> 8262 when i restart the system. following is my netstat -nap
> http://pastebin.com/Mw8DtnZG

What did you mean by restarting the system: Asterisk or OS or what?

i meant restart the OS after restart the OS the port which i mentioned in unimrcpclient.xml has already occupied by asterisk i dont know why . i am using CentOS 5 and asterisk 1.4.38 

ncs lhr

unread,
May 22, 2012, 9:43:59 AM5/22/12
to uni...@googlegroups.com
first i installed  
yum install autoconf-2.59 automake libtool gcc expat-devel 

yum provides *bin/pkg-config
then unimrcp dependencies (ARP, ARP-Util and Sofia-SIP) after that i installed unimrcp and configured unimrcpclient.xml and   unimrcpserver.xml 
then i installed asterisk connector bridge and configured mrcp.conf and res-speech-unimrcp.conf, following is my conf files.

now when i use MRCPSynth() in diaplan it works fine. but when i use MRCPRecog() or SpeechCreate() it does not work, following is my dialplan and asterisk cli 

res-speech-unimrcp.conf:  http://pastebin.com/PmSxkckN

Please help me and let me know what i did wrong in installation or configuration.

when it will work then i ll install sphinxbase and pocketsphinx.

Thanks,

ncs lhr

unread,
May 23, 2012, 9:51:12 AM5/23/12
to uni...@googlegroups.com
On Tue, May 22, 2012 at 6:27 PM, ncs lhr <lhr...@gmail.com> wrote:
On Tue, May 22, 2012 at 7:28 AM, Arsen Chaloyan <acha...@gmail.com> wrote:
On Sat, May 19, 2012 at 1:01 AM, ncs lhr <lhr...@gmail.com> wrote:
> can you tell me how i can reduce speed of flite TTS.

You'll need to modify the code of Flite plugin.

Here is the fragment of code which does the job:
http://code.google.com/p/unimrcp/source/browse/trunk/plugins/mrcp-flite/src/mrcp_flite.c#481

i will look into this later.
i made changes in file mentioned above. but same result it did not reduce speak speed. my changes are as below. bold numbers are my changes. 1000 change to 500 and 16000 change to 10000

response->start_line.request_state = MRCP_REQUEST_STATE_INPROGRESS;
        mrcp_engine_channel_message_send(synth_channel->channel,response);
synth_channel->synthesizing = TRUE;
        wave = flite_text_to_wave(body->buf, voice);
        if(wave && cst_wave_num_samples(wave)) {
                int generated = (cst_wave_num_samples(wave)/cst_wave_sample_rate(wave)*500);
                stamp = apr_time_now();
                elapsed = (stamp - start)/500;
                apt_log(APT_LOG_MARK, APT_PRIO_INFO, "TTS (chan %d) took %"APR_TIME_T_FMT" to generate %d of speech (in millisec)", synth_channel->i$

                if(rate != 10000) {
                        cst_wave_resample(wave, rate);
                        elapsed = (apr_time_now() - stamp)/500;
                        apt_log(APT_LOG_MARK, APT_PRIO_DEBUG, "TTS resampling to %d on (chan %d) took %"APR_TIME_T_FMT" millisec", rate, synth_chann$
                }
                mpf_buffer_audio_write(synth_channel->audio_buffer, cst_wave_samples(wave), cst_wave_num_samples(wave) * 2); 
 delete_wave(wave);
        }
 
please let me know what i did wrong

Arsen Chaloyan

unread,
Jun 4, 2012, 9:07:24 PM6/4/12
to uni...@googlegroups.com
You changed sampling rate which has nothing to do with the speed. What
you probably need to do is to introduce small gaps between synthesized
samples before writing them to the output buffer

mpf_buffer_audio_write(synth_channel->audio_buffer,
cst_wave_samples(wave), cst_wave_num_samples(wave) * 2);


Reply all
Reply to author
Forward
0 new messages