zhaomingwork
2023-08-01 77dc80f036cb66e58915e7173d083437d1aca60a
funasr/runtime/html5/static/main.js
@@ -195,6 +195,7 @@
   console.log( "message: " + JSON.parse(jsonMsg.data)['text'] );
   var rectxt=""+JSON.parse(jsonMsg.data)['text'];
   var asrmodel=JSON.parse(jsonMsg.data)['mode'];
   var is_final=JSON.parse(jsonMsg.data)['is_final'];
   if(asrmodel=="2pass-offline")
   {
      offline_text=offline_text+rectxt; //.replace(/ +/g,"");
@@ -209,7 +210,7 @@
   varArea.value=rec_text;
   console.log( "offline_text: " + asrmodel+","+offline_text);
   console.log( "rec_text: " + rec_text);
   if (isfilemode==true){
   if (isfilemode==true && is_final==false){
      console.log("call stop ws!");
      play_file();
      wsconnecter.wsStop();