[Freeswitch-svn] [commit] r8944 - freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx
Freeswitch SVN
brian at freeswitch.org
Tue Jul 8 19:01:03 EDT 2008
Author: brian
Date: Tue Jul 8 19:01:02 2008
New Revision: 8944
Modified:
freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
Log:
cleanup and add editor info
Modified: freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c (original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c Tue Jul 8 19:01:02 2008
@@ -226,11 +226,9 @@
return SWITCH_FALSE;
}
-
/*! function to feed audio to the ASR */
static switch_status_t pocketsphinx_asr_feed(switch_asr_handle_t *ah, void *data, unsigned int len, switch_asr_flag_t *flags)
{
- // we really should put ps_start_utt(ps->ps, NULL); here when we start to feed it.
pocketsphinx_t *ps = (pocketsphinx_t *) ah->private_info;
int rv = 0;
@@ -309,7 +307,6 @@
}
switch_mutex_unlock(ps->flag_mutex);
-
return status;
}
@@ -337,7 +334,6 @@
switch_clear_flag(ps, PSFLAG_HAS_TEXT);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: %d\n", ps->hyp, ps->score);
switch_mutex_unlock(ps->flag_mutex);
- //*xmlstr = strdup((char *)ps->hyp );
*xmlstr = switch_mprintf("<interpretation grammar=\"%s\" score=\"%d\">\n"
" <result name=\"%s\">%s</result>\n"
@@ -361,7 +357,6 @@
status = SWITCH_STATUS_SUCCESS;
}
-
return status;
}
@@ -393,3 +388,15 @@
{
return SWITCH_STATUS_UNLOAD;
}
+
+
+/* For Emacs:
+ * Local Variables:
+ * mode:c
+ * indent-tabs-mode:t
+ * tab-width:4
+ * c-basic-offset:4
+ * End:
+ * For VIM:
+ * vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
+ */
More information about the Freeswitch-svn
mailing list