mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
woops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8951 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b3b334c5eb
commit
78c3533e28
@ -332,12 +332,12 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha
|
|||||||
if (switch_test_flag(ps, PSFLAG_HAS_TEXT)) {
|
if (switch_test_flag(ps, PSFLAG_HAS_TEXT)) {
|
||||||
switch_mutex_lock(ps->flag_mutex);
|
switch_mutex_lock(ps->flag_mutex);
|
||||||
switch_clear_flag(ps, PSFLAG_HAS_TEXT);
|
switch_clear_flag(ps, PSFLAG_HAS_TEXT);
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: 300\n", ps->hyp);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: 600\n", ps->hyp);
|
||||||
switch_mutex_unlock(ps->flag_mutex);
|
switch_mutex_unlock(ps->flag_mutex);
|
||||||
|
|
||||||
/* ps->score isn't a confidence score. PocketSphinx doesn't support that yet. */
|
/* ps->score isn't a confidence score. PocketSphinx doesn't support that yet. */
|
||||||
|
|
||||||
*xmlstr = switch_mprintf("<interpretation grammar=\"%s\" score=\"300\">\n"
|
*xmlstr = switch_mprintf("<interpretation grammar=\"%s\" score=\"600\">\n"
|
||||||
" <result name=\"%s\">%s</result>\n"
|
" <result name=\"%s\">%s</result>\n"
|
||||||
" <input>%s</input>\n"
|
" <input>%s</input>\n"
|
||||||
"</interpretation>",
|
"</interpretation>",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user