but every time server kept waiting on connection & actually cannot succeed to
connect and as the http://scribblej.com/svn/
link the dialed extension gets hangup while executing the extension
SpeechActivateGrammar(yesno)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-11-11
hi, i have my asterisk server running already so http://scribblej.com/svn/ tutorial has'nt been
really usefull. I got stuck on finding the asterisk sources. i'm using the
latest downloads of sphinx. i'd really appreciate your help.
my server is running on Centos and i have asterisk 1.6.*
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-07-07
Hi, i've managed to install every tool posted on
but when i try to run the server i get the following message:
Unable to allocate decoder.
Unable to allocate decoder.
Unable to allocate decoder.
Unable to allocate decoder.
Unable to allocate decoder.
Restart checking timeout (1310062619 - 1310062616 > 2), 83
DIFF: 1.500000, LIMIT: 7.500000, RESTARTS: 55.333332
Spawning too quickly
Terminado (killed)
and the log file show that it looks like the grammar it´s loading but i get
the following error:
ERROR: "acmod.c", line 88: Must specify -mdef or -hmm
ERROR: "acmod.c", line 88: Must specify -mdef or -hmm
INFO: cmd_ln.c(506): Parsing command line:
I'd really appreciate your help. Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ERROR: "acmod.c", line 88: Must specify -mdef or -hmm
This means you specified the path to the acoustic model incorrectly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-07-08
Yes, that's what i tought. But i've been trying to fix this error and nothing.
The Comunicator model i'ts in /opt/sphinx/
When i execute: ls /opt/sphinx/ i get the this:
bin Communicator_semi_40.cd_semi_6000 communicator_semi_6000_20080321.tar.gz
include lib share
The model is there isn't it? this is my configuration file:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-07-11
Hi thanks for your help, that was exactly the problem! now when i run the
server, show this:
Listening on port: 10069
Initializing grammars.
Loading grammar 'yesno'
Adding yesno to lmset.
Waiting on connection.
but the server hangs in there, i have to stop it with "ctrl c". I thought tha
it was ok because it was waiting for the client, but after configured my
extensions.conf with something like:
If you get hangup it means something went wrong. You can get more details
about the issue in asterisk log in /var/log/asterisk/messages or where you
have asterisk installed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-07-15
Hi again, checking /var/log/asterisk/full i get this when a call is made:
[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Executing [5333@from-internal:1] Answer("SIP/5000-00000001", "") in new stack[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Executing [5333@from-internal:2] SpeechCreate("SIP/5000-00000001", "Sphinx") in new stack[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Executing [5333@from-internal:3] SpeechActivateGrammar("SIP/5000-00000001", "yesno") in new stack[Jul 15 08:23:09]VERBOSE[17619]pbx.c:==Spawnextension(from-internal,5333,3)exitednon-zeroon'SIP/5000-00000001'[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Executing [h@from-internal:1] Macro("SIP/5000-00000001", "hangupcall") in new stack[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Executing [s@macro-hangupcall:1] GotoIf("SIP/5000-00000001", "1?skiprg") in new stack[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Goto (macro-hangupcall,s,4)[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Executing [s@macro-hangupcall:4] GotoIf("SIP/5000-00000001", "1?skipblkvm") in new stack[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Goto (macro-hangupcall,s,7)[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Executing [s@macro-hangupcall:7] GotoIf("SIP/5000-00000001", "1?theend") in new stack[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Goto (macro-hangupcall,s,9)[Jul 15 08:23:09]VERBOSE[17619]pbx.c:-- Executing [s@macro-hangupcall:9] Hangup("SIP/5000-00000001", "") in new stack[Jul 15 08:23:09]VERBOSE[17619]app_macro.c:==Spawnextension(macro-hangupcall,s,9)exitednon-zeroon'SIP/5000-00000001'inmacro'hangupcall'
1) Server is not running
2) Server is not configured properly (running on other port)
3) Firewall blocks the calls
You can get the extact problem if you increase the logger verbosity in
asterisk, its reported on the level "error". You can learn more about asterisk
logging from * documentation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-08-10
Hi again, i can´t find a way to get pocketsphinx and asterisk working this
way, the server do not start. It's there another way to connect pocketsphinx
to asterisk? Maybe a better way?, or could i find other speech recognition
software to plug it in to asterisk?. I'm working with elastix 2.0 on asterisk
1.6.X, if another way exists, would you please give me some guidelines?.
Thank you very much for your help, and sorry i didin't posted before but i was
trying to get this to work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I got everything installed (Asterisk and sphinx)
But when i run the astspinx file along with configfile and dictionary file,it
is waitng for connection and when i make a call and speak some thing the
following is the output coming
"Accepted connection.
Request to switch grammar to 'yesno'
Finalizing and getting end hypothesis.
No hypothesis made."
Seems to be ,no words has been detected.
Can any one help pls...?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-09-13
Hi again nsh, now i'm trying with unimrcp and nothing. Maybe you'll be
familiar with this error:
configure:SphinxBaselibraryconfigurationcheckingforSphinxBase...configure:error:CannotfindSphinxBase-lookedforsphinxbase-config:lib/pkgconfig/sphinxbase.pc and srcdir:src in /usr/local/include/sphinxbase/
that's what i get after running ./configure like this:
You can find proper format just by reading the output of
./configure --help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-09-15
Sorry to bother you again nsh but i followed what you posted and, of course,
you where right, now the configure part it's no problem, recognizes the
pocketsphinx plugin just fine. But now, when i run the make command i get this
error:
src/mrcp_pocketsphinx.c:32:26: error: pocketsphinx.h: No such file or directory
src/mrcp_pocketsphinx.c:103: error: expected specifier-qualifier-list before 'ps_decoder_t'
And other errors too, but i guess that they're a consecution of this, at the
end of the make output, i get this:
make[2]: *** [mrcp_pocketsphinx.lo] Error 1
make[2]: se sale del directorio `/root/unimrcp-1.0.0/plugins/mrcp-pocketsphinx'make[1]: *** [all-recursive] Error 1make[1]: se sale del directorio `/root/unimrcp-1.0.0/plugins'
make: *** [all-recursive] Error 1
I´m sure that is something obvious too, but i can´t figure it out.
Maybe some info about my system help: Elastix 2.0, Asterisk 1.6, pocketsphinx
and sphinxbase 0.7 and Unimrcp 1.0.0
Thanks so much for your help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But now, when i run the make command i get this error:
When you report about build errors please provide full build log not just a
last line of it. The reason of the error you mentioned is just 2 lines above
your cut.
When compiler says that some file is missing it means that the file is missing
in a search path. You need to find out why is it so. Usually you need to find
out why search path is wrong. You can learn more about compilation options in
gcc documentation:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-09-19
Hi again, i finally installed the pocket sphinx plugin, just had to complete,
after run ./configure, this line: "UNIMRCP_POCKETSPHINX_INCLUDES" in the
plugins/mrcp-pocketsphinx Makefile with this:
and then run make, make install, it seemed to instaled it, in the plugin
directory of unimrcp i've got mrcppocketsphinx.XXX and the pocketsphinx.xml in
the "conf/"dir filled with the exact same information as http://code.google.c
om/p/unimrcp/wiki/PocketSphinxPlugin. But, when i run unimrcpserver, it doesn't load the
pocketsphinx plugin:
I changed the unimrcpserver.xml with the especifications shown on the tutorial
(well it's outdated but i guess it's the same thing that it should be changed
to activate pockectsphinx):
I'm stucked again, really need your help, i wish to get this working with a
spanish model by friday to end eveything up, finish my college thesis and get
my degree on december.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi again, i finally installed the pocket sphinx plugin, just had to
complete, after run ./configure, this line: "UNIMRCP_POCKETSPHINX_INCLUDES" in
the plugins/mrcp-pocketsphinx Makefile with this:
This is not the right way. The right way was to understand and fix the problem
not to create hacks. Since your fix was only about headers, you forgot to
update the linker path and thus the loader failed to find and load
libpocketsphinx.so.
Failed to Load DSO: ../plugin/mrcppocketsphinx.so: undefined symbol:
ps_get_hyp 2011-09-19
This line tells you linker fails to find libpocketsphinx.so library.
If your library is installed in /usr/local you might want to change the config
file /etc/ld.so.conf or export LD_LIBRARY_PATH environment variable. You can
learn more details about this in ld documentation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-09-20
Hi again NSH, i tried exporting the libraries this way:
Really can't understand the problem. It's the first time i got this kind of
errors and as you know i'm new at this.
Thank's for your reply.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-09-20
Finally solved! thanks for your help nsh! it turned out to be the
"PKG_CONFIG_PATH", the loader couldn't find the path to "sphinxbase.pc" so,
pocketsphinx wasn't being loaded, i noticed that on the "./configure" log.
Just had to reboot the system and type this line:
exportPKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
Then, run "./configure --enable-pocketsphinx-plugin; make; make install;".
Now, disabled the demo-recog plugin in unimrcpserver, enable mrcppocketsphinx
and when i run it i get this log:
Now i have these errors:
-First, the call is ended up by asterisk:
==Parsing'/etc/asterisk/asterisk.conf':==Found==Parsing'/etc/asterisk/extconfig.conf':==FoundConnectedtoAsterisk1.6.2.13currentlyrunningonlocalhost(pid=3687)Verbositywas3andisnow15==UsingSIPRTPTOSbits184==UsingSIPRTPCoSmark5-- Executing [4321@from-internal:1] Answer("SIP/4001-00000002", "") in new stack-- Executing [4321@from-internal:2] SpeechCreate("SIP/4001-00000002", "") in new stack-- Executing [4321@from-internal:3] SpeechLoadGrammar("SIP/4001-00000002", "digit,/usr/local/unimrcp/data/grammar.xml") in new stack==Spawnextension(from-internal,4321,3)exitednon-zeroon'SIP/4001-00000002'-- Executing [h@from-internal:1] Macro("SIP/4001-00000002", "hangupcall") in new stack-- Executing [s@macro-hangupcall:1] GotoIf("SIP/4001-00000002", "1?noautomon") in new stack-- Goto (macro-hangupcall,s,3)-- Executing [s@macro-hangupcall:3] NoOp("SIP/4001-00000002", "TOUCH_MONITOR_OUTPUT=") in new stack-- Executing [s@macro-hangupcall:4] GotoIf("SIP/4001-00000002", "1?noautomon2") in new stack-- Goto (macro-hangupcall,s,6)-- Executing [s@macro-hangupcall:6] NoOp("SIP/4001-00000002", "MONITOR_FILENAME=") in new stack-- Executing [s@macro-hangupcall:7] GotoIf("SIP/4001-00000002", "1?skiprg") in new stack-- Goto (macro-hangupcall,s,10)-- Executing [s@macro-hangupcall:10] GotoIf("SIP/4001-00000002", "1?skipblkvm") in new stack-- Goto (macro-hangupcall,s,13)-- Executing [s@macro-hangupcall:13] GotoIf("SIP/4001-00000002", "1?theend") in new stack-- Goto (macro-hangupcall,s,15)-- Executing [s@macro-hangupcall:15] Hangup("SIP/4001-00000002", "") in new stack==Spawnextension(macro-hangupcall,s,15)exitednon-zeroon'SIP/4001-00000002'inmacro'hangupcall'==Spawnextension(from-internal,h,1)exitednon-zeroon'SIP/4001-00000002'
Sep2216:01:58]NOTICE[3024]app_unimrcp.c:MRCPClientStarted[Sep2216:01:58]WARNING[2820]xmldoc.c:Couldn't find application MRCPSynth in XML documentation[Sep2216:01:58]WARNING[2820]xmldoc.c:Couldn't find application MRCPSynth in XML documentation[Sep2216:01:58]VERBOSE[2820]pbx.c:==Registeredapplication'MRCPSynth'[Sep2216:01:58]WARNING[2820]xmldoc.c:Couldn't find application MRCPRecog in XML documentation[Sep2216:01:58]WARNING[2820]xmldoc.c:Couldn't find application MRCPRecog in XML documentation[Sep2216:01:58]VERBOSE[2820]pbx.c:==Registeredapplication'MRCPRecog'[Sep2216:01:58]VERBOSE[2820]loader.c:app_unimrcp.so=>(MRCPsuiteofapplications)
but every time server kept waiting on connection & actually cannot succeed to
connect and as the http://scribblej.com/svn/
link the dialed extension gets hangup while executing the extension
hi, i have my asterisk server running already so
http://scribblej.com/svn/ tutorial has'nt been
really usefull. I got stuck on finding the asterisk sources. i'm using the
latest downloads of sphinx. i'd really appreciate your help.
my server is running on Centos and i have asterisk 1.6.*
Hi, i've managed to install every tool posted on
but when i try to run the server i get the following message:
Unable to allocate decoder.
Unable to allocate decoder.
Unable to allocate decoder.
Unable to allocate decoder.
Unable to allocate decoder.
Restart checking timeout (1310062619 - 1310062616 > 2), 83
DIFF: 1.500000, LIMIT: 7.500000, RESTARTS: 55.333332
Spawning too quickly
Terminado (killed)
and the log file show that it looks like the grammar it´s loading but i get
the following error:
ERROR: "acmod.c", line 88: Must specify -mdef or -hmm
ERROR: "acmod.c", line 88: Must specify -mdef or -hmm
INFO: cmd_ln.c(506): Parsing command line:
I'd really appreciate your help. Thanks
This means you specified the path to the acoustic model incorrectly.
Yes, that's what i tought. But i've been trying to fix this error and nothing.
The Comunicator model i'ts in /opt/sphinx/
When i execute: ls /opt/sphinx/ i get the this:
bin Communicator_semi_40.cd_semi_6000 communicator_semi_6000_20080321.tar.gz
include lib share
The model is there isn't it? this is my configuration file:
-hmm
/opt/sphinx/Communicator_semi_40.cd_semi_6000/
-dict
./opt/astsphinx/dict
-lm
/opt/astsphinx/yesno
-samprate
8000
-frate
50
-silprob
0.005
Thank's a lot for your reply.
Option should be on a single line:
and not
Hi thanks for your help, that was exactly the problem! now when i run the
server, show this:
Listening on port: 10069
Initializing grammars.
Loading grammar 'yesno'
Adding yesno to lmset.
Waiting on connection.
but the server hangs in there, i have to stop it with "ctrl c". I thought tha
it was ok because it was waiting for the client, but after configured my
extensions.conf with something like:
exten => 5333,2,SpeechCreate(Sphinx)
exten => 5333,3,SpeechActivateGrammar(yesno)
exten => 5333,4,SpeechDeactivateGrammar(yesno)
exten => 5333,5,Espeak("Hola",any,es-la)
exten => 5333,6,Hangup()
when the call get into the SpeechActivateGrammar(yesno), asterisk inmideatly
hangup the call.
what could it be? Again, i have no idea, sorry to bother you but i really need
this. Thanks a lot!
Hi again, i noticed that the other guy had the same problem, is that a bug or
something? Or is it me that i'm using the Speech API wrong?.
I'd really appreciate your help. Thanks!
If you get hangup it means something went wrong. You can get more details
about the issue in asterisk log in /var/log/asterisk/messages or where you
have asterisk installed.
Hi again, checking /var/log/asterisk/full i get this when a call is made:
but i found an error with the installation:
Haven't found anything else, might this module be the problem?
This line means that your extension has issues with connection to the sphinx
server
It might be caused by multiple issues:
1) Server is not running
2) Server is not configured properly (running on other port)
3) Firewall blocks the calls
You can get the extact problem if you increase the logger verbosity in
asterisk, its reported on the level "error". You can learn more about asterisk
logging from * documentation.
Hi again, i can´t find a way to get pocketsphinx and asterisk working this
way, the server do not start. It's there another way to connect pocketsphinx
to asterisk? Maybe a better way?, or could i find other speech recognition
software to plug it in to asterisk?. I'm working with elastix 2.0 on asterisk
1.6.X, if another way exists, would you please give me some guidelines?.
Thank you very much for your help, and sorry i didin't posted before but i was
trying to get this to work.
It's recommended to use unimrcp instead with pocketpshinx backend.
http://code.google.com/p/unimrcp/wiki/PocketSphinxPlugin
Hi,
I got everything installed (Asterisk and sphinx)
But when i run the astspinx file along with configfile and dictionary file,it
is waitng for connection and when i make a call and speak some thing the
following is the output coming
"Accepted connection.
Request to switch grammar to 'yesno'
Finalizing and getting end hypothesis.
No hypothesis made."
Seems to be ,no words has been detected.
Can any one help pls...?
Hi again nsh, now i'm trying with unimrcp and nothing. Maybe you'll be
familiar with this error:
that's what i get after running ./configure like this:
really need your help! Please
This is pretty obvious. The command line must be
or
You can find proper format just by reading the output of
Sorry to bother you again nsh but i followed what you posted and, of course,
you where right, now the configure part it's no problem, recognizes the
pocketsphinx plugin just fine. But now, when i run the make command i get this
error:
And other errors too, but i guess that they're a consecution of this, at the
end of the make output, i get this:
I´m sure that is something obvious too, but i can´t figure it out.
Maybe some info about my system help: Elastix 2.0, Asterisk 1.6, pocketsphinx
and sphinxbase 0.7 and Unimrcp 1.0.0
Thanks so much for your help
When you report about build errors please provide full build log not just a
last line of it. The reason of the error you mentioned is just 2 lines above
your cut.
When compiler says that some file is missing it means that the file is missing
in a search path. You need to find out why is it so. Usually you need to find
out why search path is wrong. You can learn more about compilation options in
gcc documentation:
http://gcc.gnu.org/onlinedocs/cpp/Search-
Path.html
Hi again, i finally installed the pocket sphinx plugin, just had to complete,
after run ./configure, this line: "UNIMRCP_POCKETSPHINX_INCLUDES" in the
plugins/mrcp-pocketsphinx Makefile with this:
and then run make, make install, it seemed to instaled it, in the plugin
directory of unimrcp i've got mrcppocketsphinx.XXX and the pocketsphinx.xml in
the "conf/"dir filled with the exact same information as http://code.google.c
om/p/unimrcp/wiki/PocketSphinxPlugin. But, when i run unimrcpserver, it doesn't load the
pocketsphinx plugin:
I changed the unimrcpserver.xml with the especifications shown on the tutorial
(well it's outdated but i guess it's the same thing that it should be changed
to activate pockectsphinx):
I'm stucked again, really need your help, i wish to get this working with a
spanish model by friday to end eveything up, finish my college thesis and get
my degree on december.
This is not the right way. The right way was to understand and fix the problem
not to create hacks. Since your fix was only about headers, you forgot to
update the linker path and thus the loader failed to find and load
libpocketsphinx.so.
This line tells you linker fails to find libpocketsphinx.so library.
If your library is installed in /usr/local you might want to change the config
file /etc/ld.so.conf or export LD_LIBRARY_PATH environment variable. You can
learn more details about this in ld documentation.
Hi again NSH, i tried exporting the libraries this way:
and:
This is the complete part when the make gets into the mrcp-pocketsphinxolugin:
Really can't understand the problem. It's the first time i got this kind of
errors and as you know i'm new at this.
Thank's for your reply.
Finally solved! thanks for your help nsh! it turned out to be the
"PKG_CONFIG_PATH", the loader couldn't find the path to "sphinxbase.pc" so,
pocketsphinx wasn't being loaded, i noticed that on the "./configure" log.
Just had to reboot the system and type this line:
Then, run "./configure --enable-pocketsphinx-plugin; make; make install;".
Now, disabled the demo-recog plugin in unimrcpserver, enable mrcppocketsphinx
and when i run it i get this log:
I guess i'm fine at the moment right? thank's for your help. wish wouldn't
have to bother you again jeje thank you
Now it's good
Hi! Again nsh, i thought i was fine but i'm everything except fine. I put the
example files in http://code.google.com/p/unimrcp/wiki/PocketSphinxPlugin just to try the
connection between asterisk, unimrcp and pocketsphinx.
Now i have these errors:
-First, the call is ended up by asterisk:
Unimrcpserver throws the next:
Really don't know what might be the problem.
-the second thing, trying to find a solution from what was happening before, i restarted the asterisk server to check the log and i had this:
and found this in /var/log/asterisk/full:
Again, super stucked. Don't have a clue of a solution. Found this post http:/
/code.google.com/p/unimrcp/issues/detail?id=126 and i think it's the problem, but no solution.
Thanks nsh!
This is the log of a call in /var/log/asterisk/full