pgaval / unimrcp

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

Latest Asterisk + UniMRCP + PocketSphinx NLSML Error #154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run latest unimrcp + Asterisk 11.2.1 + PocketSphinx
2. Follow installation guide
3. Perform additional setup not in install guide:
  a: run unimrcp-server
  b: load up the audio mdf, and other files into data/communicator from pocketsphinx example dialogs..

What version of the product are you using? On what operating system?
CentOS 6.3

Please provide any additional information below.

Ok, everything seems to work fine, I'm just not getting the returned recognized 
speech.  It's even recording the utterances into the data directory which tells 
me everythings working. 

Here is what asterisk shows:  (notice it's missing the translation)
0]: res_speech_unimrcp.c:435 uni_recog_load_grammar: Load grammar name:digit 
type:application/x-jsgf path:/usr/local/unimrcp/data/grammar.jsgf 
'09123b98a23a11e2'
[Apr 10 18:54:52] NOTICE[29441][C-00000000]: res_speech_unimrcp.c:519 
uni_recog_activate_grammar: Activate grammar name:digit '09123b98a23a11e2'
[Apr 10 18:54:52] NOTICE[29441][C-00000000]: res_speech_unimrcp.c:583 
uni_recog_start: Start audio '09123b98a23a11e2'
[Apr 10 18:54:59] NOTICE[29441][C-00000000]: res_speech_unimrcp.c:812 
uni_recog_get: Get result '09123b98a23a11e2'
[Apr 10 18:54:59] WARNING[29441][C-00000000]: app_unimrcp.c:118 unimrcp_log: 
Failed to terminate NLSML parsing
[Apr 10 18:54:59] WARNING[29441][C-00000000]: res_speech_unimrcp.c:700 
uni_recog_speech_result_build: Failed to load NLSML document
[Apr 10 18:54:59] NOTICE[29441][C-00000000]: res_speech_unimrcp.c:536 
uni_recog_deactivate_grammar: Deactivate grammar name:digit '09123b98a23a11e2'

I get an NLSML error instead of getting my utterenance response....

Also, in unimrcp server, it's missing anything of the type 
application/x-nlsml...

Here's an excerpt of the server from wheere it should be:
INFO: ps_lattice.c(1403): Joint P(O,S) = -59801 P(S|O) = 0
2013-04-10 18:57:55:220478 [INFO]   Process RECOGNITION-COMPLETE Event 
<73b8c21ea23a11e2@speechrecog> [3]
2013-04-10 18:57:55:220490 [INFO]   State Transition RECOGNIZING -> RECOGNIZED 
<73b8c21ea23a11e2@speechrecog>
2013-04-10 18:57:55:220536 [INFO]   Send MRCPv2 Stream 10.220.1.26:1544 <-> 
10.220.1.26:47103 [129 bytes]
MRCP/2.0 129 RECOGNITION-COMPLETE 3 COMPLETE
Channel-Identifier: 73b8c21ea23a11e2@speechrecog
Completion-Cause: 000 success

2013-04-10 18:57:55:239262 [INFO]   Receive MRCPv2 Stream 10.220.1.26:1544 <-> 
10.220.1.26:47103 [102 bytes]
MRCP/2.0 102 DEFINE-GRAMMAR 4
Channel-Identifier: 73b8c21ea23a11e2@speechrecog
Content-Id: digit

2013-04-10 18:57:55:239309 [INFO]   Process DEFINE-GRAMMAR Request 
<73b8c21ea23a11e2@speechrecog> [4]
2013-04-10 18:57:55:239318 [INFO]   State Transition RECOGNIZED -> IDLE 
<73b8c21ea23a11e2@speechrecog>
2013-04-10 18:57:55:239339 [INFO]   Dispatch Request DEFINE-GRAMMAR 
<73b8c21ea23a11e2@pocketsphinx>
2013-04-10 18:57:55:239360 [INFO]   Remove Grammar File 
[../data/73b8c21ea23a11e2-digit.gram] <73b8c21ea23a11e2@pocketsphinx>
2013-04-10 18:57:55:239429 [INFO]   Process DEFINE-GRAMMAR Response 
<73b8c21ea23a11e2@speechrecog> [4]
2013-04-10 18:57:55:239457 [INFO]   Send MRCPv2 Stream 10.220.1.26:1544 <-> 
10.220.1.26:47103 [112 bytes]
MRCP/2.0 112 4 200 COMPLETE
Channel-Identifier: 73b8c21ea23a11e2@speechrecog
Completion-Cause: 000 success

2013-04-10 18:57:55:240210 [INFO]   Receive SIP Event [nua_i_bye] Status 200 
Session Terminated
2013-04-10 18:57:55:240225 [INFO]   Receive SIP Event [nua_i_state] Status 200 
Session Terminated
2013-04-10 18:57:55:240234 [NOTICE] SIP Call State 0x9bb0418 [terminated]

So, it appears to do everything but return the utterance, probably something 
simple.  

It amazes me how complicated it is to get this stuff working.  I've done many 
years of development with asterisk, but, never anything like this.

Original issue reported on code.google.com by damiank...@gmail.com on 11 Apr 2013 at 12:09

GoogleCodeExporter commented 9 years ago
Okay, if I use the Communicator_semi_40.cd_semi_6000 dialog files instead of 
hub4_wsj_sc_3s_8k I get a response, but, it's always wrong.

So, better question, which files do I put into data/communicator ??? 

Thanks,

Original comment by damiank...@gmail.com on 11 Apr 2013 at 12:44

GoogleCodeExporter commented 9 years ago
I personally haven't used the PocketSphinx plugin for a while, and cannot be of 
any help here at this time.

Original comment by achalo...@gmail.com on 12 Apr 2013 at 10:41