runtime/html5/static/wsconnecter.js
@@ -71,6 +71,7 @@ "wav_name": "h5", "is_speaking": true, "chunk_interval":10, "itn":false, "mode":getAsrMode(), }; @@ -85,12 +86,13 @@ } var hotwords=getHotwords(); if(hotwords.length>0) if(hotwords!=null ) { request.hotwords=hotwords; } console.log(request); speechSokt.send( JSON.stringify(request) ); console.log(JSON.stringify(request)); speechSokt.send(JSON.stringify(request)); console.log("连接成功"); stateHandle(0);