]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
works better if you do this correctly
authorBrian West <brian@freeswitch.org>
Sat, 12 Jul 2008 22:05:13 +0000 (22:05 +0000)
committerBrian West <brian@freeswitch.org>
Sat, 12 Jul 2008 22:05:13 +0000 (22:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9007 d0543943-73ff-0310-b7d9-9358b9ac24b2

scripts/js_modules/SpeechTools.jm

index a98fde46d6ab156679c216b179d5e7570080a1ab..e1c6995a896f89ad519721e6610385510c6faae1 100644 (file)
@@ -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) {