Hi
All works ok with the default installation and the inline grammar
exten => X,n,MRCPRecog(inline:#JSGF V1.0 ISO-8859-1 en-US\\\;grammar
topping\\\; public <topping> = ( one | two | three )\\\;,p=speech-
sphinx-mrcp1&i=any&t=5000&f=&b=1&nit=5000&sct=1000&sint=2000)
but problems with file grammars, grammar file is default from the
initial build.
1) "Completion-Cause: 006 error" if i try with
exten => X,n,MRCPRecog(file:///usr/local/unimrcp/data/
grammar.jsgf,p=speech-sphinx-
mrcp1&i=any&t=5000&f=&b=1&nit=5000&sct=1000&sint=2000)
client log
[Nov 9 11:07:26] DEBUG[11333]: app_unimrcp.c:4175 unimrcp_log:
Process Message [speech-sphinx-mrcp1] [1;0]
[Nov 9 11:07:26] DEBUG[11333]: app_unimrcp.c:4172 unimrcp_log: Send
RTSP Stream 100.100.100.100.1:34431 <-> 100.100.100.100.1:1554 [392
bytes]
ANNOUNCE rtsp://100.100.100.100.1:1554/media/speechrecognizer RTSP/1.0
CSeq: 2
Session: eb594f767f3d40d3
Content-Type: application/mrcp
Content-Length: 231
RECOGNIZE 1 MRCP/1.0
Content-Type: text/uri-list
Speech-Complete-Timeout: 1000
Recognition-Timeout: 5000
Speech-Incomplete-Timeout: 2000
No-Input-Timeout: 5000
Content-Length: 43
file:///usr/local/unimrcp/data/grammar.jsgf
[Nov 9 11:07:26] DEBUG[11333]: app_unimrcp.c:4172 unimrcp_log: Push
RTSP Request to In-Progress Queue 0xb27006b0 <eb594f767f3d40d3> CSeq:2
[Nov 9 11:07:26] DEBUG[11333]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [speech-sphinx-mrcp1]
[Nov 9 11:07:26] DEBUG[11333]: app_unimrcp.c:4175 unimrcp_log:
Process Signalled Descriptor [speech-sphinx-mrcp1]
[Nov 9 11:07:26] DEBUG[11333]: app_unimrcp.c:4172 unimrcp_log:
Receive RTSP Stream 100.100.100.100.134431 <-> 100.100.100.100.1:1554
[163 bytes]
RTSP/1.0 200 OK
CSeq: 2
Session: eb594f767f3d40d3
Content-Type: application/mrcp
Content-Length: 56
MRCP/1.0 1 407 COMPLETE
Completion-Cause: 006 error
[Nov 9 11:07:26] DEBUG[11333]: app_unimrcp.c:4172 unimrcp_log: Pop In-
Progress RTSP Request 0xb27006b0 CSeq:2
[Nov 9 11:07:26] DEBUG[11333]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [speech-sphinx-mrcp1]
[Nov 9 11:07:26] DEBUG[11326]: app_unimrcp.c:4175 unimrcp_log:
Process Message [MRCP Client] [1;2]
[Nov 9 11:07:26] DEBUG[11326]: app_unimrcp.c:4172 unimrcp_log: Raise
App MRCP Response 0xa22bf20 <eb594f767f3d40d3>
[Nov 9 11:07:26] DEBUG[11326]: app_unimrcp.c:3776
recog_on_message_receive: (ASR-16) RECOGNIZE failed: status = 407,
completion-cause = 006
[Nov 9 11:07:26] DEBUG[11326]: app_unimrcp.c:1700
speech_channel_set_state_unlocked: (ASR-16) READY ==> ERROR
[Nov 9 11:07:26] DEBUG[11326]: app_unimrcp.c:4175 unimrcp_log: Wait
for Messages [MRCP Client]
[Nov 9 11:07:26] ERROR[11418]: app_unimrcp.c:5445 app_recog_exec:
Unable to start recognition
server log:
2010-11-09 11:07:26:762929 [INFO] Receive RTSP Stream
100.100.100.1:1554 <->
100.100.100.1:34431 [392 bytes]
ANNOUNCE rtsp://
100.100.100.1:1554/media/speechrecognizer RTSP/1.0
CSeq: 2
Session: eb594f767f3d40d3
Content-Type: application/mrcp
Content-Length: 231
RECOGNIZE 1 MRCP/1.0
Content-Type: text/uri-list
Speech-Complete-Timeout: 1000
Recognition-Timeout: 5000
Speech-Incomplete-Timeout: 2000
No-Input-Timeout: 5000
Content-Length: 43
file:///usr/local/unimrcp/data/grammar.jsgf
2010-11-09 11:07:26:763024 [INFO] Process RECOGNIZE Request
<eb594f767f3d40d3@speechrecog> [1]
2010-11-09 11:07:26:763036 [INFO] Dispatch Request RECOGNIZE
<eb594f767f3d40d3@pocketsphinx>
2010-11-09 11:07:26:763048 [INFO] Process RECOGNIZE Response
<eb594f767f3d40d3@speechrecog> [1]
2010-11-09 11:07:26:763083 [INFO] Send RTSP Stream
100.100.100.1:1554 <->
100.100.100.1:34431 [163 bytes]
RTSP/1.0 200 OK
CSeq: 2
Session: eb594f767f3d40d3
Content-Type: application/mrcp
Content-Length: 56
MRCP/1.0 1 407 COMPLETE
Completion-Cause: 006 error
2)
"Not Supported Content-Type" If I try with
exten => X,n,MRCPRecog(/usr/local/unimrcp/data/grammar.jsgf,p=speech-
sphinx-mrcp1&i=any&t=5000&f=&b=1&nit=5000&sct=1000&sint=2000)
server log:
2010-11-09 11:05:52:063931 [INFO] Receive RTSP Stream
100.100.100.1:1554 <->
100.100.100.1:34428 [302 bytes]
ANNOUNCE rtsp://
100.100.100.1:1554/media/speechrecognizer RTSP/1.0
CSeq: 2
Session: 32c9f43c7acc404f
Content-Type: application/mrcp
Content-Length: 141
DEFINE-GRAMMAR 1 MRCP/1.0
Content-Type: application/srgs+xml
Content-Id: ASR-13
Content-Length: 36
/usr/local/unimrcp/data/grammar.jsgf
2010-11-09 11:05:52:064006 [INFO] Process DEFINE-GRAMMAR Request
<32c9f43c7acc404f@speechrecog> [1]
2010-11-09 11:05:52:064018 [INFO] Dispatch Request DEFINE-GRAMMAR
<32c9f43c7acc404f@pocketsphinx>
2010-11-09 11:05:52:064025 [WARN] Not Supported Content-Type
[application/srgs+xml] <32c9f43c7acc404f@pocketsphinx>
2010-11-09 11:05:52:064034 [INFO] Process DEFINE-GRAMMAR Response
<32c9f43c7acc404f@speechrecog> [1]
2010-11-09 11:05:52:064077 [INFO] Send RTSP Stream
100.100.100.1:1554 <->
100.100.100.1:34428 [165 bytes]
RTSP/1.0 200 OK
CSeq: 2
Session: 32c9f43c7acc404f
Content-Type: application/mrcp
Content-Length: 58
MRCP/1.0 1 409 COMPLETE
Completion-Cause: 000 success