[Freeswitch-users] pocketsphinx and event socket

Peter P GMX Prometheus001 at gmx.net
Sun Mar 1 14:27:25 PST 2009


Hello Brian,

thanks for the info. I am a step further, but it cannot load the grammar
files.
I am sending through event_socket:

SendMsg
call-command: execute
execute-app-name: detect_speech
execute-app-arg: pocketsphinx yes no

However I get the message (also when I am using Pizza demo):
2009-03-01 23:02:24 [DEBUG] switch_ivr.c:540 switch_ivr_parse_event()
sofia/internal/1000 at sip2.server.com Command Execute
detect_speech(pocketsphinx yes no)
2009-03-01 23:02:24 [WARNING] mod_pocketsphinx.c:145
pocketsphinx_asr_load_grammar() Can't open language model
/usr/local/freeswitch/grammar/model/communicator.
2009-03-01 23:02:24 [DEBUG] switch_ivr_async.c:2041
switch_ivr_detect_speech() Error loading Grammar
2009-03-01 23:02:24 [WARNING] mod_pocketsphinx.c:219
pocketsphinx_asr_close() Port Closed.

However the grammar files are there:
root at sip2:/usr/local/freeswitch/grammar/model/communicator#
root at sip2:/usr/local/freeswitch/grammar/model/communicator# ls -al
total 12752
drwxr-xr-x 2 freeswitch root 4096 2008-08-13 16:00 .
drwxr-xr-x 4 freeswitch root 4096 2008-08-13 16:00 ..
-rw-r--r-- 1 freeswitch root 1775 2008-03-21 23:32 COPYING
-rw-r--r-- 1 freeswitch root 169 2008-03-21 09:21 feat.params
-rw-r--r-- 1 freeswitch root 6476668 2008-03-21 09:21 mdef
-rw-r--r-- 1 freeswitch root 52304 2008-03-21 10:07 means
-rw-r--r-- 1 freeswitch root 263 2008-03-21 15:24 noisedict
-rw-r--r-- 1 freeswitch root 6406784 2008-03-21 10:07 sendump
-rw-r--r-- 1 freeswitch root 6184 2008-03-21 10:07 transition_matrices
-rw-r--r-- 1 freeswitch root 52304 2008-03-21 10:07 variances


Any hint?

Best regards
Peter

Brian West schrieb:
> You can accomplish this .... here is an example using ESL in perl
>
> http://fisheye.freeswitch.org/browse/FreeSWITCH/libs/esl/perl/server3.pl?r=12344
>
> /b
>
> On Feb 28, 2009, at 6:18 AM, Peter P GMX wrote:
>
>   
>> Or back to the basics: Is it possible to use pocketsphinx through  
>> event
>> socket?
>>     
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>   




More information about the FreeSWITCH-users mailing list