From b57b98364ff60ae0119b2e8d92471316bb4e504f Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 22 十一月 2023 00:36:35 +0800
Subject: [PATCH] funasr v2 setup (#1106)
---
runtime/html5/static/wsconnecter.js | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/runtime/html5/static/wsconnecter.js b/runtime/html5/static/wsconnecter.js
index b9a786d..30b99d4 100644
--- a/runtime/html5/static/wsconnecter.js
+++ b/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);
--
Gitblit v1.9.1