[Freeswitch-users] pocketsphinx and event socket

Peter P GMX Prometheus001 at gmx.net
Mon Mar 2 15:42:28 PST 2009


Thanks Addison.
The Pizza files are there (as mentionned is it a copy of an already
working system).
In fact freeswitch is complaning about
/usr/local/freeswitch/grammar/model/communicator which he cannot load

So somehow freeswitch is not willing to open the files, but I have no
clue why. So any hints are welcome.

Best regards
Peter


Addison Martin schrieb:
> Peter,
>
> You need the grammar files for the pizza demo:
> http://wiki.freeswitch.org/wiki/Mod_pocketsphinx#Testing_with_the_Pizza_Demo
> has lonks to premade fles for everyhting to get the pizza demo working
> with pocketshinx.  Those to not come with the source code when you
> update from SVN.
>
> Nik
>
>
>
> On Mon, Mar 2, 2009 at 2:31 PM, Peter P GMX <Prometheus001 at gmx.net> wrote:
>   
>> Some more info:
>> the system I am working on is a copy (dd copy) of a system where the
>> pizza demo works on.
>> The only thing I changed was to update to the current freeswitch trunk
>> 12293 (it was 10003 before).
>>
>> Do I need to update the model? I did a make in the model directory, but
>> no change.
>>
>> Best regards
>> Peter
>>
>> Peter P GMX schrieb:
>>     
>>> 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
>>>>
>>>>
>>>>
>>>>         
>>> _______________________________________________
>>> 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
>>>
>>>
>>>       
>> _______________________________________________
>> 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
>>
>>     
>
> _______________________________________________
> 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