<div> <font face="Arial, Helvetica, sans-serif">I think you need to talk to Brian. <br>
<br>
Apparently this is a "new" pocketsphinx which works on a different format from those found in the pizza demo. <br>
<br>
Also, pocketsphinx crashes if it "hears" anything outside the grammar which apparently is a longstanding bug. Brian mentioned they are working on getting this fixed. </font><br>
</div>
<font face="Arial, Helvetica, sans-serif"><br>
I kept getting:<br>
<br>
</font><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<div><font face="Arial, Helvetica, sans-serif">2009-02-25
19:49:32 [ERR] mod_pocketsphinx.c:140 pocketsphinx_asr_load_grammar()
Can't open dictionary
C:\Source\freeswitch-snapshot\Debug\grammar\default.dic.<br>
2009-02-25 19:49:32 [WARNING] mod_pocketsphinx.c:219 pocketsphinx_asr_close() Port Closed.</font></div>
</span><br>
<font face="Arial, Helvetica, sans-serif">The suggestion was to "Just copy the cmudict.0.6d to
default.dic, not sure how well it will perform on windows.. if it does
badly you can slim the dictionary down to words you know you'll be
using."</font><br>
<font face="Arial, Helvetica, sans-serif">
<br>
</font>https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/cmudict/cmudict.0.6d<br>
<font face="Arial, Helvetica, sans-serif"><br>
That gave me more problems so I'm waiting for the fix.<br>
<br>
Mark.<br>
</font>
<br>
<br>
<div> <br>
</div>
-----Original Message-----<br>
From: Peter P GMX <Prometheus001@gmx.net><br>
To: freeswitch-users@lists.freeswitch.org<br>
Sent: Mon, 2 Mar 2009 3:42 pm<br>
Subject: Re: [Freeswitch-users] pocketsphinx and event socket<br>
<br>
<div id="AOLMsgPart_0_dd769afb-e96e-4461-85d5-fc67980aa32d" style="margin: 0px; font-family: Tahoma,Verdana,Arial,Sans-Serif; font-size: 12px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<pre style="font-size: 9pt;"><tt>Thanks Addison.<br>
<br>
<br>
<br>
The Pizza files are there (as mentionned is it a copy of an already<br>
<br>
<br>
<br>
working system).<br>
<br>
<br>
<br>
In fact freeswitch is complaning about<br>
<br>
<br>
<br>
/usr/local/freeswitch/grammar/model/communicator which he cannot load<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
So somehow freeswitch is not willing to open the files, but I have no<br>
<br>
<br>
<br>
clue why. So any hints are welcome.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Best regards<br>
<br>
<br>
<br>
Peter<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Addison Martin schrieb:<br>
<br>
<br>
<br>
> Peter,<br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
> You need the grammar files for the pizza demo:<br>
<br>
<br>
<br>
> <a href="http://wiki.freeswitch.org/wiki/Mod_pocketsphinx#Testing_with_the_Pizza_Demo" target="_blank">http://wiki.freeswitch.org/wiki/Mod_pocketsphinx#Testing_with_the_Pizza_Demo</a><br>
<br>
<br>
<br>
> has lonks to premade fles for everyhting to get the pizza demo working<br>
<br>
<br>
<br>
> with pocketshinx. Those to not come with the source code when you<br>
<br>
<br>
<br>
> update from SVN.<br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
> Nik<br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
> On Mon, Mar 2, 2009 at 2:31 PM, Peter P GMX <<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>> wrote:<br>
<br>
<br>
<br>
> <br>
<br>
<br>
<br>
>> Some more info:<br>
<br>
<br>
<br>
>> the system I am working on is a copy (dd copy) of a system where the<br>
<br>
<br>
<br>
>> pizza demo works on.<br>
<br>
<br>
<br>
>> The only thing I changed was to update to the current freeswitch trunk<br>
<br>
<br>
<br>
>> 12293 (it was 10003 before).<br>
<br>
<br>
<br>
>><br>
<br>
<br>
<br>
>> Do I need to update the model? I did a make in the model directory, but<br>
<br>
<br>
<br>
>> no change.<br>
<br>
<br>
<br>
>><br>
<br>
<br>
<br>
>> Best regards<br>
<br>
<br>
<br>
>> Peter<br>
<br>
<br>
<br>
>><br>
<br>
<br>
<br>
>> Peter P GMX schrieb:<br>
<br>
<br>
<br>
>> <br>
<br>
<br>
<br>
>>> Hello Brian,<br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> thanks for the info. I am a step further, but it cannot load the grammar<br>
<br>
<br>
<br>
>>> files.<br>
<br>
<br>
<br>
>>> I am sending through event_socket:<br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> SendMsg<br>
<br>
<br>
<br>
>>> call-command: execute<br>
<br>
<br>
<br>
>>> execute-app-name: detect_speech<br>
<br>
<br>
<br>
>>> execute-app-arg: pocketsphinx yes no<br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> However I get the message (also when I am using Pizza demo):<br>
<br>
<br>
<br>
>>> 2009-03-01 23:02:24 [DEBUG] switch_ivr.c:540 switch_ivr_parse_event()<br>
<br>
<br>
<br>
>>> sofia/internal/<a href="mailto:1000@sip2.server.com">1000@sip2.server.com</a> Command Execute<br>
<br>
<br>
<br>
>>> detect_speech(pocketsphinx yes no)<br>
<br>
<br>
<br>
>>> 2009-03-01 23:02:24 [WARNING] mod_pocketsphinx.c:145<br>
<br>
<br>
<br>
>>> pocketsphinx_asr_load_grammar() Can't open language model<br>
<br>
<br>
<br>
>>> /usr/local/freeswitch/grammar/model/communicator.<br>
<br>
<br>
<br>
>>> 2009-03-01 23:02:24 [DEBUG] switch_ivr_async.c:2041<br>
<br>
<br>
<br>
>>> switch_ivr_detect_speech() Error loading Grammar<br>
<br>
<br>
<br>
>>> 2009-03-01 23:02:24 [WARNING] mod_pocketsphinx.c:219<br>
<br>
<br>
<br>
>>> pocketsphinx_asr_close() Port Closed.<br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> However the grammar files are there:<br>
<br>
<br>
<br>
>>> root@sip2:/usr/local/freeswitch/grammar/model/communicator#<br>
<br>
<br>
<br>
>>> root@sip2:/usr/local/freeswitch/grammar/model/communicator# ls -al<br>
<br>
<br>
<br>
>>> total 12752<br>
<br>
<br>
<br>
>>> drwxr-xr-x 2 freeswitch root 4096 2008-08-13 16:00 .<br>
<br>
<br>
<br>
>>> drwxr-xr-x 4 freeswitch root 4096 2008-08-13 16:00 ..<br>
<br>
<br>
<br>
>>> -rw-r--r-- 1 freeswitch root 1775 2008-03-21 23:32 COPYING<br>
<br>
<br>
<br>
>>> -rw-r--r-- 1 freeswitch root 169 2008-03-21 09:21 feat.params<br>
<br>
<br>
<br>
>>> -rw-r--r-- 1 freeswitch root 6476668 2008-03-21 09:21 mdef<br>
<br>
<br>
<br>
>>> -rw-r--r-- 1 freeswitch root 52304 2008-03-21 10:07 means<br>
<br>
<br>
<br>
>>> -rw-r--r-- 1 freeswitch root 263 2008-03-21 15:24 noisedict<br>
<br>
<br>
<br>
>>> -rw-r--r-- 1 freeswitch root 6406784 2008-03-21 10:07 sendump<br>
<br>
<br>
<br>
>>> -rw-r--r-- 1 freeswitch root 6184 2008-03-21 10:07 transition_matrices<br>
<br>
<br>
<br>
>>> -rw-r--r-- 1 freeswitch root 52304 2008-03-21 10:07 variances<br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> Any hint?<br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> Best regards<br>
<br>
<br>
<br>
>>> Peter<br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> Brian West schrieb:<br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> <br>
<br>
<br>
<br>
>>>> You can accomplish this .... here is an example using ESL in perl<br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>> <a href="http://fisheye.freeswitch.org/browse/FreeSWITCH/libs/esl/perl/server3.pl?r=12344" target="_blank">http://fisheye.freeswitch.org/browse/FreeSWITCH/libs/esl/perl/server3.pl?r=12344</a><br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>> /b<br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>> On Feb 28, 2009, at 6:18 AM, Peter P GMX wrote:<br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>> <br>
<br>
<br>
<br>
>>>>> Or back to the basics: Is it possible to use pocketsphinx through<br>
<br>
<br>
<br>
>>>>> event<br>
<br>
<br>
<br>
>>>>> socket?<br>
<br>
<br>
<br>
>>>>><br>
<br>
<br>
<br>
>>>>><br>
<br>
<br>
<br>
>>>>> <br>
<br>
<br>
<br>
>>>> _______________________________________________<br>
<br>
<br>
<br>
>>>> Freeswitch-users mailing list<br>
<br>
<br>
<br>
>>>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<br>
<br>
<br>
>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
<br>
<br>
<br>
>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<br>
<br>
<br>
>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>><br>
<br>
<br>
<br>
>>>> <br>
<br>
<br>
<br>
>>> _______________________________________________<br>
<br>
<br>
<br>
>>> Freeswitch-users mailing list<br>
<br>
<br>
<br>
>>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<br>
<br>
<br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
<br>
<br>
<br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<br>
<br>
<br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>><br>
<br>
<br>
<br>
>>> <br>
<br>
<br>
<br>
>> _______________________________________________<br>
<br>
<br>
<br>
>> Freeswitch-users mailing list<br>
<br>
<br>
<br>
>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<br>
<br>
<br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
<br>
<br>
<br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<br>
<br>
<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
>><br>
<br>
<br>
<br>
>> <br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
> _______________________________________________<br>
<br>
<br>
<br>
> Freeswitch-users mailing list<br>
<br>
<br>
<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<br>
<br>
<br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
<br>
<br>
<br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<br>
<br>
<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
> <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<br>
<br>
<br>
Freeswitch-users mailing list<br>
<br>
<br>
<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<br>
<br>
<br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
<br>
<br>
<br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<br>
<br>
<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
</tt></pre>
</div>
<!-- end of AOLMsgPart_0_dd769afb-e96e-4461-85d5-fc67980aa32d -->
<div id='MAILCIAMB047-5baa49ac7e85c3' class='aol_ad_footer'><br/><font style="color:black;font:normal 10pt arial,san-serif;"> <hr style="margin-top:10px"/><b>A Good Credit Score is 700 or Above. <a href="http://pr.atwola.com/promoclk/100126575x1219957551x1201325337/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62"> See yours in just 2 easy steps!</a></b></font> </div>