From 2380cce175e3fc445693497c8bbe1bc5c76c5331 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sat, 12 Jul 2008 22:05:13 +0000 Subject: [PATCH] works better if you do this correctly git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9007 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- scripts/js_modules/SpeechTools.jm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/js_modules/SpeechTools.jm b/scripts/js_modules/SpeechTools.jm index a98fde46d6..e1c6995a89 100644 --- a/scripts/js_modules/SpeechTools.jm +++ b/scripts/js_modules/SpeechTools.jm @@ -181,7 +181,7 @@ function SpeechDetect(session, mod, ip) { console_log("debug", "----Hit score " + interp.@score + "/" + grammar_object.min_score + "/" + grammar_object.confirm_score + "\n"); } - if (this.mod == "pocketsphinx") { + if (_this.mod == "pocketsphinx") { /* pocketsphinx scores 0 best to 100 worst. */ if (interp.@score >= grammar_object.min_score) { if (interp.@score >= grammar_object.confirm_score) {