chenmengzheAAA
2023-09-14 2a66366be4c2715870e4859fd5a5db6e8a9dc00a
funasr/runtime/html5/static/wsconnecter.js
@@ -72,7 +72,22 @@
         "is_speaking":  true,
         "chunk_interval":10,
         "mode":getAsrMode(),
      };
      if(isfilemode)
      {
         request.wav_format=file_ext;
         if(file_ext=="wav")
         {
            request.wav_format="PCM";
            request.audio_fs=file_sample_rate;
         }
      }
      var hotwords=getHotwords();
      if(hotwords.length>0)
      {
         request.hotwords=hotwords;
      }
      console.log(request);
      speechSokt.send( JSON.stringify(request) );
      console.log("连接成功");