Voice recognition in asterisk with Unimrcp

Hello ,

I’am no in my end-studies project . I need in my project to ensure voice recognition with Asterisk .
So I tried with Unimrcp with pocket Sphinx but I didn’t have the good result .

the trace I have in the Asterisk Cli is :

– Executing [1000@LocalSets:3] MRCPSynth(“SIP/1234-00000000”, “<?xml version=\"1.0\"?><speak version=“1.0” xml:lang=“en-AU” xmlns=“http://www.w3.org/2001/10/synthesis”>Hello world!,p=default&i=any&f=/tmp/synth.raw”) in new stack
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4418 app_synth_exec: Option=|p=default|
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4418 app_synth_exec: Option=|p=default|
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4418 app_synth_exec: Option=|i=any|
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4418 app_synth_exec: Option=|i=any|
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4418 app_synth_exec: Option=|f=/tmp/synth.raw|
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4418 app_synth_exec: Option=|f=/tmp/synth.raw|
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4484 app_synth_exec: Profile to use: default
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4484 app_synth_exec: Profile to use: default
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4487 app_synth_exec: Text to synthesize is: <?xml version="1.0"?>Hello world!
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4487 app_synth_exec: Text to synthesize is: <?xml version="1.0"?>Hello world!
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4490 app_synth_exec: Filename to save to: /tmp/synth.raw
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4490 app_synth_exec: Filename to save to: /tmp/synth.raw
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4526 app_synth_exec: DTMF enable: 1
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4526 app_synth_exec: DTMF enable: 1
[Mar 15 13:55:25] DEBUG[23012]: app_unimrcp.c:934 audio_queue_create: (TTS-0) audio queue created
[Mar 15 13:55:25] DEBUG[23012]: app_unimrcp.c:1855 speech_channel_create: Created speech channel: Name=TTS-0, Type=SYNTHESIZER, Codec=PCMU, Rate=8000
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4169 unimrcp_log: Create MRCP Handle 0xa403790 [speech-nuance5-mrcp2]
[Mar 15 13:55:25] NOTICE[23012]: app_unimrcp.c:4169 unimrcp_log: Create MRCP Handle 0xa403790 [speech-nuance5-mrcp2]
[Mar 15 13:55:25] DEBUG[23012]: app_unimrcp.c:4172 unimrcp_log: Create Channel 0xa403790
[Mar 15 13:55:25] DEBUG[23012]: app_unimrcp.c:4175 unimrcp_log: Signal Message to [MRCP Client] [4;0]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Process Message [MRCP Client] [4;0]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4172 unimrcp_log: Receive App Request 0xa403790 [2]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4172 unimrcp_log: Add MRCP Handle 0xa403790
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Dispatch App Request 0xa403790 [2]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Signal Message to [MRCPv2ConnectionAgent] [1;0]
[Mar 15 13:55:25] NOTICE[22966]: app_unimrcp.c:4169 unimrcp_log: Add Control Channel 0xa403790 new@speechsynth
[Mar 15 13:55:25] NOTICE[22966]: app_unimrcp.c:4169 unimrcp_log: Add Control Channel 0xa403790 new@speechsynth
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Add Media Termination 0xa403790 new@media-tm
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Add Media Termination 0xa403790 new@rtp-tm
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Signal Message to [MediaEngine] [1;0]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Wait for Messages [MRCP Client]
[Mar 15 13:55:25] DEBUG[22967]: app_unimrcp.c:4175 unimrcp_log: Process Poller Wakeup [MRCPv2ConnectionAgent]
[Mar 15 13:55:25] DEBUG[22967]: app_unimrcp.c:4175 unimrcp_log: Process Message [MRCPv2ConnectionAgent] [1;0]
[Mar 15 13:55:25] DEBUG[22967]: app_unimrcp.c:4175 unimrcp_log: Signal Message to [MRCP Client] [2;0]
[Mar 15 13:55:25] DEBUG[22967]: app_unimrcp.c:4175 unimrcp_log: Wait for Messages [MRCPv2ConnectionAgent]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Process Message [MRCP Client] [2;0]
[Mar 15 13:55:25] DEBUG[22968]: app_unimrcp.c:4175 unimrcp_log: Process Message [MediaEngine] [1;0]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Control Channel Added 0xa403790 new@speechsynth
[Mar 15 13:55:25] DEBUG[22968]: app_unimrcp.c:4175 unimrcp_log: Add Media Context 0xa403790
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Wait for Messages [MRCP Client]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Process Message [MRCP Client] [3;0]
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Media Termination Added 0xa403790 new@media-tm
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Media Termination Added 0xa403790 new@rtp-tm
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4172 unimrcp_log: Send Offer 0xa403790 [c:1 a:1 v:0] to 192.168.1.10:5060
[Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4172 unimrcp_log: Local SDP 0xa403790
v=0
o=Asterisk 0 0 IN IP4 192.168.1.10
s=-
c=IN IP4 192.168.1.10
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechsynth
a=cmid:1
m=audio 4000 RTP/AVP 0 8 96
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 L16/8000
a=recvonly
a=ptime:20
a=mid:1

[color=#FF0000][Mar 15 13:55:25] DEBUG[22966]: app_unimrcp.c:4175 unimrcp_log: Wait for Messages[/color] [MRCP Client]
.


So ,unfortunatly , communication is not established with MRCP client .


So , Can you help me please …

Best regards