[Freeswitch-users] mod_pocketsphinx

Chris Danielson chris at maxpowersoft.com
Sat Jul 12 11:34:08 PDT 2008


Was working with mod_pocketsphinx and found it difficult to troubleshoot 
the failed loading of the dictionary files.  Tried to open a JIRA to 
apply the patch on this but it told me the following:


      Issue Created Successfully

You have successfully created the issue (MODASRTTS-6), however you do 
not have the permission to view the created issue.

If you think this message is wrong, please consult your administrators 
<http://jira.freeswitch.org/secure/Administrators.jspa> about getting 
the necessary permissions.

Anyways, here is the patch.


Index: mod_pocketsphinx.c
===================================================================
--- mod_pocketsphinx.c  (revision 9003)
+++ mod_pocketsphinx.c  (working copy)
@@ -125,12 +125,12 @@
        model = switch_mprintf("%s%smodel%s%s", 
SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_PATH_SEPARATOR, 
SWITCH_PATH_SEPARATOR, globals.model);

        if (switch_file_exists(dic, ah->memory_pool) != 
SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, 
"Can't open dictionary.\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, 
"Can't open dictionary. %s\n", dic);
                goto end;
        }

        if (switch_file_exists(lm, ah->memory_pool) != 
SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, 
SWITCH_LOG_WARNING, "Can't open language model.\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, 
SWITCH_LOG_WARNING, "Can't open language model. %s\n", lm);
                goto end;
        }


*Chris Danielson*
Software Consultant and Co-Founder
Web: MaxPowerSoft, LLC <http://www.maxpowersoft.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080712/a9d813f1/attachment-0002.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mod_pocketsphinx.patch
Url: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080712/a9d813f1/attachment-0001.pl 


More information about the FreeSWITCH-users mailing list