From 6e26ad0e149ae51e3fc8b89b3178684979e6bbd1 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期四, 09 十一月 2023 11:03:45 +0800
Subject: [PATCH] Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR into main
---
runtime/html5/static/wsconnecter.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/runtime/html5/static/wsconnecter.js b/runtime/html5/static/wsconnecter.js
index b9a786d..455e1a1 100644
--- a/runtime/html5/static/wsconnecter.js
+++ b/runtime/html5/static/wsconnecter.js
@@ -85,12 +85,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