雾聪
2023-11-14 6d6c6e3c79216896c45ff87b4bdfd8226a24924e
runtime/html5/static/main.js
@@ -262,7 +262,7 @@
   var obj = document.getElementById("varHot");
   if(typeof(obj) == 'undefined' || obj==null || obj.value.length<=0){
     return "";
     return null;
   }
   let val = obj.value.toString();
  
@@ -279,11 +279,11 @@
         for(var i=0;i<result.length-1;i++)
            wordstr=wordstr+result[i]+" ";
  
         jsonresult[wordstr.trim()]=result[result.length-1];
         jsonresult[wordstr.trim()]= parseInt(result[result.length-1]);
      }
   }
   console.log("jsonresult="+JSON.stringify(jsonresult));
   return jsonresult;
   return  JSON.stringify(jsonresult);
}
function getAsrMode(){
@@ -315,7 +315,7 @@
   {
      return tmptext;
   }
   tmptext=tmptext.replace(/。/g, ","); // in case there are a lot of "。"
   tmptext=tmptext.replace(/。|?|,|、|\?|\./g, ","); // replace all punc for parse
   var words=tmptext.split(",");
   var jsontime=JSON.parse(tmptime); //JSON.parse(tmptime.replace(/\]\]\[\[/g, "],[")); // in case there are a lot segments by VAD
   var char_index=0;