diff --git a/runtime/html5/static/index.html b/runtime/html5/static/index.html
index d98c62bf9..de8139ef8 100644
--- a/runtime/html5/static/index.html
+++ b/runtime/html5/static/index.html
@@ -51,6 +51,12 @@
+
+ 逆文本标准化(ITN):
+
+
+
+
热词设置(一行一个关键字,空格隔开权重,如"阿里巴巴 20"):
diff --git a/runtime/html5/static/main.js b/runtime/html5/static/main.js
index b3661cdfa..9a5a875d8 100644
--- a/runtime/html5/static/main.js
+++ b/runtime/html5/static/main.js
@@ -563,4 +563,14 @@ function recProcess( buffer, powerLevel, bufferDuration, bufferSampleRate,newBuf
}
+}
+
+function getUseITN() {
+ var obj = document.getElementsByName("use_itn");
+ for (var i = 0; i < obj.length; i++) {
+ if (obj[i].checked) {
+ return obj[i].value === "true";
+ }
+ }
+ return false;
}
\ No newline at end of file
diff --git a/runtime/html5/static/wsconnecter.js b/runtime/html5/static/wsconnecter.js
index 30b99d451..db140efc2 100644
--- a/runtime/html5/static/wsconnecter.js
+++ b/runtime/html5/static/wsconnecter.js
@@ -71,7 +71,7 @@ function WebSocketConnectMethod( config ) { //定义socket连接方法类
"wav_name": "h5",
"is_speaking": true,
"chunk_interval":10,
- "itn":false,
+ "itn":getUseITN(),
"mode":getAsrMode(),
};