andrenatal / unimrcp

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

Problems with PocketSphinx + UniMRCP + Asterisk #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello

I am having some problems with enabling voice recognition on my Asterisk box. 
These are the software versions of the packages I am using:

PocketSphinx - 0.7
UniMRCP - 1.0.0
Asterisk - 1.8.5

The OS is CentOS 5.6, all 3 packages are installed on a single machine. The IP 
address of the server is 192.168.7.3.

I followed these tutorials, as far as the installation of the required 
packeages is concerned, and for now things are looking to be installed 
correctly:

http://code.google.com/p/unimrcp/wiki/PocketSphinxPlugin
http://code.google.com/p/unimrcp/wiki/asteriskUniMRCP

When I set up the .conf files according to the tutorials I can not get the 
whole setup working. I also do not know where to unpack the PocketSphinx model 
(communicator) (the wsj1 model and default.dic can not be found in the 
/usr/local/unimrcp/data/)

This is my DialPlan in Asterisk:

exten => 631,1,Answer()
exten => 631,n,SpeechCreate()
exten => 631,n,SpeechLoadGrammar(digit,/usr/local/unimrcp/data/grammar.xml)
exten => 631,n,SpeechActivateGrammar(digit)
exten => 631,n,SpeechBackground(hello-world,20)
exten => 631,n,NoOp(The result of speech recognition: ${SPEECH_TEXT(0)})
exten => 631,n,SpeechDeactivateGrammar(digit)
exten => 631,n,SpeechUnloadGrammar(digit)
exten => 631,n,SpeechDestroy()
exten => 631,n,Hangup()

You can see what Asterisk logs show when loading the UniMRCP modules during 
bootup in the "UniMRCP_Asterisk_Module_Load.txt".
You can see what Asteris logs show when I try to make a call to ext. 631 in 
"Call_Debug.txt".

Enclosed also please find the config files that I have changed. I have not 
changed any additional .conf files on the 3 packages that are in question.

I was able to find the instructions to get to this point, but now I am a bit 
lost when I need to find the cause of the problems. I bet I made a mistake in 
the .conf files, but I need the help of the community to find the exact place 
of the problem.

I thank for any help in advance.

Dejan Štimpfelj

Original issue reported on code.google.com by yac...@gmail.com on 18 Jul 2011 at 9:18

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, i have the same problem and i'm stucked at it. Have you resolved the 
problem?? could you give me some guidelines?

Original comment by fernando...@gmail.com on 22 Sep 2011 at 8:01

GoogleCodeExporter commented 9 years ago
it should be grammar.jsgf, that is the error. But now i have another error

Original comment by fernando...@gmail.com on 23 Sep 2011 at 7:43

GoogleCodeExporter commented 9 years ago
The UniMRCP server is supposed to be launched separately. It's not an integral 
part of Asterisk. 

So, in this particular case, Asterisk/UniMRCP received the following error

[Jul 19 00:42:17] DEBUG[14026] app_unimrcp.c: Receive SIP Event [nua_r_invite] 
Status 503 Service Unavailable

since the MRCP server wasn't available. 

Original comment by achalo...@gmail.com on 6 Mar 2013 at 2:01