]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
cleanup and add editor info
authorBrian West <brian@freeswitch.org>
Tue, 8 Jul 2008 23:01:02 +0000 (23:01 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 8 Jul 2008 23:01:02 +0000 (23:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8944 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c

index ae83e1ddcf80c2649a518d4dd8e7c2af1fa9f9be..5639881ac3cd7e70bfd0a5d53d9e0a7fdecee6b6 100644 (file)
@@ -226,11 +226,9 @@ static switch_bool_t stop_detect(pocketsphinx_t *ps, int16_t *data, unsigned int
        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 @@ static switch_status_t pocketsphinx_asr_resume(switch_asr_handle_t *ah)
        }
        switch_mutex_unlock(ps->flag_mutex);            
 
-
        return status;
 }
 
@@ -337,7 +334,6 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha
                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 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha
                status = SWITCH_STATUS_SUCCESS;
        }
 
-
        return status;
 }
 
@@ -393,3 +388,15 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_pocketsphinx_shutdown)
 {
        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:
+ */