<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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:<br>
<h3 class="formtitle">Issue Created Successfully</h3>
You have successfully created the issue (MODASRTTS-6), however you do
not have the permission to view the created issue.
<p> If you think this message is wrong, please consult your <a
href="http://jira.freeswitch.org/secure/Administrators.jspa">administrators</a>
about getting the necessary permissions.<br>
<br>
</p>
Anyways, here is the patch.<br>
<br>
<br>
Index: mod_pocketsphinx.c<br>
===================================================================<br>
--- mod_pocketsphinx.c (revision 9003)<br>
+++ mod_pocketsphinx.c (working copy)<br>
@@ -125,12 +125,12 @@<br>
model = switch_mprintf("%s%smodel%s%s",
SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_PATH_SEPARATOR,
SWITCH_PATH_SEPARATOR, globals.model);<br>
<br>
if (switch_file_exists(dic, ah->memory_pool) !=
SWITCH_STATUS_SUCCESS) {<br>
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
"Can't open dictionary.\n");<br>
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
"Can't open dictionary. %s\n", dic);<br>
goto end;<br>
}<br>
<br>
if (switch_file_exists(lm, ah->memory_pool) !=
SWITCH_STATUS_SUCCESS) {<br>
- switch_log_printf(SWITCH_CHANNEL_LOG,
SWITCH_LOG_WARNING, "Can't open language model.\n");<br>
+ switch_log_printf(SWITCH_CHANNEL_LOG,
SWITCH_LOG_WARNING, "Can't open language model. %s\n", lm);<br>
goto end;<br>
}<br>
<br>
<br>
<div class="moz-signature"><b>Chris Danielson</b>
<br>
Software Consultant and Co-Founder
<br>
Web: <a href="http://www.maxpowersoft.com/">MaxPowerSoft, LLC</a>
<br>
<br>
</div>
</body>
</html>