From e3e6d392380c8a58014fefa498c34f85d07feac8 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期三, 23 八月 2023 19:44:19 +0800
Subject: [PATCH] update msg_vec

---
 funasr/runtime/html5/static/wsconnecter.js |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/funasr/runtime/html5/static/wsconnecter.js b/funasr/runtime/html5/static/wsconnecter.js
index 2873022..cc6129f 100644
--- a/funasr/runtime/html5/static/wsconnecter.js
+++ b/funasr/runtime/html5/static/wsconnecter.js
@@ -72,7 +72,17 @@
 			"is_speaking":  true,
 			"chunk_interval":10,
 			"mode":getAsrMode(),
+			
 		};
+		if(isfilemode)
+		{
+			request.wav_format=file_ext;
+		}
+		var hotwords=getHotwords();
+		if(hotwords.length>0)
+		{
+			request.hotwords=hotwords;
+		}
 		console.log(request);
 		speechSokt.send( JSON.stringify(request) );
 		console.log("杩炴帴鎴愬姛");

--
Gitblit v1.9.1