aky15
2023-09-14 5c9bdfa238560b9c4a8d8a7d4b56c28496a3e094
funasr/runtime/html5/static/wsconnecter.js
@@ -77,6 +77,16 @@
      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) );