AaronZhangL / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

MRCPRecog - doesn't take file:// to grammar file. #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As discussed in group,
http://groups.google.com/group/unimrcp/browse_thread/thread/4eec9860c90bcd0d

It won't accept the grammar file.  The grammar file is working using the
Generic Speech API, and also works through http:// 

Please let me know if you need further information.

-- extensions.conf --
exten => s,1,Answer
exten => s,n,Wait(2)
exten =>
s,n,MRCPRecog(file://home/vr_blah/shared/grammar/ivr_menu_1.xml,f=/home/vr_blah/
shared/sounds/blah-1/VRSFirstName)
exten => s,n,Verbose(${RECOG_RESULT})
exten => s,n,Hangup

-- asterisk log (edited ip & paths for security) --

    -- Executing [xxxxxx@default:1] Goto("SIP/1.1.1.1-00000003", "s,1") in
new stack
    -- Goto (default,s,1)
    -- Executing [s@default:1] Answer("SIP/1.1.1.1-00000003", "") in new stack
    -- Executing [s@default:2] Wait("SIP/1.1.1.1-00000003", "2") in new stack
    -- Executing [s@default:3] MRCPRecog("SIP/1.1.1.1-00000003",
"file://home/vr_blah/shared/grammar/ivr_menu_1.xml,f=/home/vr_blah/shared/sounds
/blah-1/VRSFirstName")
in new stack
[Mar 19 04:20:06] NOTICE[27224]: app_unimrcp.c:4711 app_recog_exec:
Option=|f=/home/vr_blah/shared/sounds/blah-1/VRSFirstName|
[Mar 19 04:20:06] NOTICE[27224]: app_unimrcp.c:4827 app_recog_exec: Grammar
to recognize with: file://home/vr_blah/shared/grammar/ivr_menu_1.xml
[Mar 19 04:20:06] NOTICE[27224]: app_unimrcp.c:4830 app_recog_exec:
Filename to play: /home/vr_blah/shared/sounds/blah-1/VRSFirstName
[Mar 19 04:20:06] NOTICE[27224]: app_unimrcp.c:4908 app_recog_exec: DTMF
enable: 0
[Mar 19 04:20:06] NOTICE[27224]: app_unimrcp.c:4097 unimrcp_log: Create
MRCP Handle 0x163faa40 [speech-nuance5-mrcp2]
[Mar 19 04:20:06] NOTICE[26626]: app_unimrcp.c:4097 unimrcp_log: Add
Control Channel 0x163faa40 <new@speechrecog>
[Mar 19 04:20:06] NOTICE[26630]: app_unimrcp.c:4097 unimrcp_log: SIP Call
State 0x163faa40 [calling]
[Mar 19 04:20:06] NOTICE[26630]: app_unimrcp.c:4097 unimrcp_log: SIP Call
State 0x163faa40 [ready]
[Mar 19 04:20:06] NOTICE[26627]: app_unimrcp.c:4097 unimrcp_log:
Established TCP/MRCPv2 Connection 172.1.1.28:46263 <-> 172.1.1.28:6075
nta(0x163d8cf0): responding 503 DNS Error to ACK!
[Mar 19 04:20:06] NOTICE[26626]: app_unimrcp.c:2326 speech_on_channel_add:
(ASR-28) DTMF generator created
[Mar 19 04:20:06] ERROR[27224]: app_unimrcp.c:5011 app_recog_exec: Unable
to load grammar
[Mar 19 04:20:06] NOTICE[26630]: app_unimrcp.c:4097 unimrcp_log: SIP Call
State 0x163faa40 [terminated]
[Mar 19 04:20:06] NOTICE[26626]: app_unimrcp.c:4097 unimrcp_log: Destroy
TCP/MRCPv2 Connection 172.1.1.28:46263 <-> 172.1.1.28:6075
[Mar 19 04:20:06] NOTICE[26626]: app_unimrcp.c:2289
speech_on_session_terminate: (ASR-28) DTMF generator destroyed
[Mar 19 04:20:06] NOTICE[26626]: app_unimrcp.c:4097 unimrcp_log: Destroy
MRCP Handle 0x163faa40
[Mar 19 04:20:06] NOTICE[27224]: app_unimrcp.c:1982 speech_channel_destroy:
(ASR-28) Audio queue destroyed
  == Spawn extension (default, s, 3) exited non-zero on 'SIP/1.1.1.1-00000003'

Original issue reported on code.google.com by davidtho...@gmail.com on 18 Mar 2010 at 8:26

GoogleCodeExporter commented 9 years ago

Original comment by achalo...@gmail.com on 18 Mar 2010 at 8:37

GoogleCodeExporter commented 9 years ago
Please retest with the latest revision SVN HEAD. This problem may have been 
fixed in
a later version.

Original comment by thirion...@gmail.com on 18 Mar 2010 at 12:40

GoogleCodeExporter commented 9 years ago
Hi,

Yep, problem fixed in latest.

Thanks
Dave

Original comment by davidtho...@gmail.com on 19 Mar 2010 at 1:01

GoogleCodeExporter commented 9 years ago
Well!

Just FYI, Issue-76 states the same.

Original comment by achalo...@gmail.com on 19 Mar 2010 at 6:34

GoogleCodeExporter commented 9 years ago
hi,

i try to use the same config:

exten =>s,n,MRCPRecog(file://etc/asterisk/grammar.xml)

(i use svn revision 1655 of asterisk-unimrcp)

But recognition does not work.
Can it depends on a server of voice resources?

Thanks
Alex

Original comment by alex_1...@mail.ru on 17 Apr 2010 at 2:15

GoogleCodeExporter commented 9 years ago
Hi Alex,

You should run both Asterisk and MRCP server on the same host to make the 
mentioned
URI (file://etc/asterisk/grammar.xml) work.

Generally speaking, I'd need logs to identify what was actually going there.

Original comment by achalo...@gmail.com on 19 Apr 2010 at 6:45

GoogleCodeExporter commented 9 years ago
More importantly, you should have the file:// ... URI point to a file on your 
MRCP
server, not on your Asterisk server. Of course, if they are the same server, 
then it
doesn't matter.

Original comment by thirion...@gmail.com on 19 Apr 2010 at 6:48

GoogleCodeExporter commented 9 years ago
Arsen, Thirionjwf

thank very much for your help.

Alex.

Original comment by alex_1...@mail.ru on 20 Apr 2010 at 7:32

GoogleCodeExporter commented 9 years ago

Original comment by thirion...@gmail.com on 13 Dec 2010 at 12:28