hi,
i cannot install the pocketsphinx in CentOS which i need to integrate with
asterisk. i tried the link http://scribblej.com/svn/ . But no luck. is there
any other way of doing this??????
actually i need to convert Voices (some names and numbers) to text as output.
and then using the text to dial an extension of asterisk!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But no luck. is there any other way of doing this??????
You have two ways to solve this issue:
Explain what failed with http://scribblej.com/svn/ in very detail. Remember, the more detailed description you'll get the faster the problem will be solved.
Use UniMRCP with pocketsphinx plugin and asterisk MRCP extension
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ERROR: "ngram_model_arpa.c", line 465: File
/opt/sphinx/share/pocketsphinx/model/lm/yesno not found
ERROR: "ngram_model_dmp.c", line 105: Dump file
/opt/sphinx/share/pocketsphinx/model/lm/yesno not found
ERROR: "ngram_search.c", line 210: Failed to read language model file:
/opt/sphinx/share/pocketsphinx/model/lm/yesno
..............................................................................
..............................................................................
...................................
so there is no yesno file. where can i get that file????
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
& just to let you know... when i run lmgen.pl command it does not create
anything in mydict file. it is always empty.
Sorry, that's another reason for your troubles. It should be more
straightforward. Actually lmgen has path to CMUSphinx hardcoded inside, you
need to open this script with a text editor and edit it to make sure it takes
correct files as an input
There are actually other way to build language model. One of them is online
lmtool. Please see our tutorial for more explanations
hi,
i cannot install the pocketsphinx in CentOS which i need to integrate with
asterisk. i tried the link
http://scribblej.com/svn/ . But no luck. is there
any other way of doing this??????
actually i need to convert Voices (some names and numbers) to text as output.
and then using the text to dial an extension of asterisk!!
You have two ways to solve this issue:
thanks for the reply ..............
i would like to go with the no 1 procedure....
1) Successfully compiled the asterisk with sphinx.patch
2) sphinxbase-0.6.1 & pocketsphinx-0.6.1 are also installed successfully
3) astphinx is installed with CPPFLAGS & LDFLAGS as described at the link.
4) lib files are also created with "echo "/opt/sphinx/lib/" >
etc/ld.so.conf.d/sphinx.conf " .
5) then i created a file named sphinx.conf under /etc/asterisk directory for
client configuration in which the stated lines are copied.
Now i dont understand what is the server configuration file look like!!!!
& what i have to do next????
Server configuration file should be the following text file:
Here -hmm points to the acoustic model -dict to the dictionary and -lm to the
language model
After you run the server and asterisk you can dial the extension and test
recognition
where should i put this file ???
what will be the name of the file ???
and should i add the (#!/bin/bash) at the top & make it executable or just the
lines you stated???
and what will be the command to run the server????
again thanks for replying...........
In the same folder with astsphinx. You point this file as the second argument
to astsphinx
Any name you like. configfile for example
No
when i try to create grammar it says
./lmgen.pl cmudict.txt mydict phonetree
Creating /tmp/text
Creating /tmp/wfreq
Creating /tmp/vocab
Dictionary mydict exists, so preserving existing entries.
Outputting new dictionary mydict
Cannot open for writing: mydict
and asterisk cannot execute this prioroty and later ones in the dialplan .....
exten => s,n,SpeechActivateGrammar(yesno)
This is the problem with file permissions. Remove the file mydict and try
again.
still asterisk cannot execute this prioroty and later ones in the dialplan
.....
exten => s,n,SpeechActivateGrammar(yesno)
what to do???????????
does it mean yesno is not created?????
the verbose of asterisk are given below :::
#########################################################
-- Launched AGI Script /opt/asterisk/var/lib/asterisk/agi-bin/say.pl
-- <sip faisal-00000004="">AGI Script say.pl completed, returning 0
-- Executing SpeechActivateGrammar("SIP/XXXX", "yesno") in new stack
== Spawn extension (ivr, s, 4) exited non-zero on 'SIPXXXX' </sip>
Try to dump astsphinx log into a file. To do that run
post the log here or check yourself.
the logfile says::
ERROR: "ngram_model_arpa.c", line 465: File
/opt/sphinx/share/pocketsphinx/model/lm/yesno not found
ERROR: "ngram_model_dmp.c", line 105: Dump file
/opt/sphinx/share/pocketsphinx/model/lm/yesno not found
ERROR: "ngram_search.c", line 210: Failed to read language model file:
/opt/sphinx/share/pocketsphinx/model/lm/yesno
..............................................................................
..............................................................................
...................................
so there is no yesno file. where can i get that file????
Yesno is generated with this command
Please read the documentation again carefully
but i dont have yesno.txt
but i have phonetree.txt so i ran the following command & it says as
below....... is this right ??
./lmgen.pl phonetree.txt mydict phonetree
..............................................................
after that i ran the server but the verbose says::::
./astsphinx 10069 ./configfile phonetree 2> logfile
...............
& the log says
Yes, it's good. And you can do the same with yesno.txt
there is already a variant of yestno language model in one of the tarballs.
but it says when i run server
so it cant load grammar. what is the prob ???
& logfile says
but in that directory the phonetree.txt file is created.
hey what is cmuclmtk how can i install this?????
& just to let you know... when i run lmgen.pl command it does not create
anything in mydict file. it is always empty.
Hello
You can find a link to cmuclmtk on downloads page http://cmusphinx.sourceforg
e.net/wiki/download
Sorry, that's another reason for your troubles. It should be more
straightforward. Actually lmgen has path to CMUSphinx hardcoded inside, you
need to open this script with a text editor and edit it to make sure it takes
correct files as an input
There are actually other way to build language model. One of them is online
lmtool. Please see our tutorial for more explanations
http://cmusphinx.sourceforge.net/wiki/tutoriallm
now i think i can load the grammer but it waits for connection to asterisk i
guess!!!
the verbose of the server is given below::
I think that too
so is there any solution of this problem????
Is there a problem? I think it's ok, it's waiting for connection.