All,
I have successfully built and configured my uniMRCP build, but I
am having grammar load failures with PocketSphinx, that I am not sure
what I am doing wrong as there isn't really much in the way online
that I have found during hours of searching that says the 'right' way
to set up PocketSphinx, and the grammars for it. I got Cepstral and
Flite working no problem though. My error output looks like this:
2010-05-12 00:31:29:364416 [DEBUG] Process MRCPv2 Message
2010-05-12 00:31:29:364482 [INFO] Receive MRCPv2 Stream
192.168.10.9:1544 <->
192.168.10.9:38662 [227 bytes]
MRCP/2.0 227 DEFINE-GRAMMAR 2
Channel-Identifier: a291f23018aa478a@speechrecog
Content-Type: application/x-jsgf
Content-Id: digit
Content-Length: 71
#JSGF V1.0;
grammar digits;
public <numbers> = (one | two | three);
2010-05-12 00:31:29:364541 [DEBUG] Parsed MRCP Message [227]
2010-05-12 00:31:29:364568 [DEBUG] Signal Connection Task Message
2010-05-12 00:31:29:364650 [DEBUG] Receive Connection Task Message
[3]
2010-05-12 00:31:29:364703 [DEBUG] Dispatch Signaling Message [1]
2010-05-12 00:31:29:364724 [INFO] Process DEFINE-GRAMMAR Request [2]
2010-05-12 00:31:29:364751 [DEBUG] Wait for Task Messages [MRCP
Server]
2010-05-12 00:31:29:364778 [INFO] Dispatch Request DEFINE-GRAMMAR
<a291f23018aa478a@pocketsphinx>
2010-05-12 00:31:29:364806 [INFO] Create Grammar File [/usr/local/
unimrcp/data/a291f23018aa478a-digit.gram]
<a291f23018aa478a@pocketsphinx>
2010-05-12 00:31:29:386435 [DEBUG] Init Config rate [8000] dictionary
[/usr/local/unimrcp/data/default.dic] <a291f23018aa478a@pocketsphinx>
2010-05-12 00:31:29:402147 [INFO] Init Decoder
<a291f23018aa478a@pocketsphinx>
==> /var/log/asterisk/messages <==
[May 12 00:31:29] NOTICE[18817] res_speech_unimrcp.c: Created speech
instance 'a291f23018aa478a'
[May 12 00:31:29] NOTICE[18817] res_speech_unimrcp.c: Load grammar
name:digit type:application/x-jsgf path:/usr/local/unimrcp/data/
grammar.jsgf 'a291f23018aa478a'
==> /usr/local/unimrcp/log/unimrcpserver-0.log <==
2010-05-12 00:31:32:095068 [WARN] Failed to Init Decoder
<a291f23018aa478a@pocketsphinx>
2010-05-12 00:31:32:095216 [DEBUG] Signal Engine Task Message
2010-05-12 00:31:32:095248 [DEBUG] Wait for incoming messages
<a291f23018aa478a@pocketsphinx>
2010-05-12 00:31:32:095259 [DEBUG] Receive Engine Task Message [2]
2010-05-12 00:31:32:095290 [INFO] Process DEFINE-GRAMMAR Response
[2]
2010-05-12 00:31:32:095320 [DEBUG] Wait for Task Messages [MRCP
Server]
2010-05-12 00:31:32:095333 [DEBUG] Process Control Message
2010-05-12 00:31:32:095381 [INFO] Send MRCPv2 Stream
192.168.10.9:1544 <->
192.168.10.9:38662 [125 bytes]
MRCP/2.0 125 2 407 COMPLETE
Channel-Identifier: a291f23018aa478a@speechrecog
Completion-Cause: 004 grammar-load-failure
Config Files reference:
exten => 1234,1,Answer()
exten => 1234,2,SpeechCreate()
exten => 1234,3,SpeechLoadGrammar(digit,/usr/local/unimrcp/data/
grammar.jsgf)
exten => 1234,4,SpeechActivateGrammar(digit)
exten => 1234,5,SpeechBackground(hello-world,20)
exten => 1234,6,GotoIf($["${SPEECH(results)}" = "0"]?7:9)
exten => 1234,7,Playback(vm-nonumber)
exten => 1234,8,Goto(5)
exten => 1234,9,Verbose(1,The recognized input is ${SPEECH_TEXT(0)})
exten => 1234,10,Verbose(1,The score is ${SPEECH_SCORE(0)})
exten => 1234,11,Verbose(1,The matched grammar is $
{SPEECH_GRAMMAR(0)})
exten => 1234,12,SpeechDeactivateGrammar(digit)
exten => 1234,13,SpeechUnloadGrammar(digit)
exten => 1234,14,SpeechDestroy()
exten => 1234,15,Hangup()
mrcp.conf:
http://asterisk.pastey.net/136362
Grammar file is default from the initial build.
--
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.