From 2aa0b0d6bbac7e4b7a868211e2d64774c9a4d28d Mon Sep 17 00:00:00 2001
From: Yabin Li <wucong.lyb@alibaba-inc.com>
Date: 星期一, 21 八月 2023 16:41:33 +0800
Subject: [PATCH] Update SDK_tutorial_zh.md

---
 funasr/runtime/html5/static/main.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/funasr/runtime/html5/static/main.js b/funasr/runtime/html5/static/main.js
index 7e5a49a..e828ae1 100644
--- a/funasr/runtime/html5/static/main.js
+++ b/funasr/runtime/html5/static/main.js
@@ -110,7 +110,7 @@
 }
 function start_file_send()
 {
-		sampleBuf=new Int16Array( file_data_array );
+		sampleBuf=new Uint8Array( file_data_array );
  
 		var chunk_size=960; // for asr chunk_size [5, 10, 5]
  
@@ -214,7 +214,7 @@
 	}
 	tmptext=tmptext.replace(/銆�/g, ","); // in case there are a lot of "銆�"
 	var words=tmptext.split(",");
-	var jsontime=JSON.parse(tmptime.replace(/\]\]\[\[/g, "],[")); // in case there are a lot segments by VAD
+	var jsontime=JSON.parse(tmptime); //JSON.parse(tmptime.replace(/\]\]\[\[/g, "],[")); // in case there are a lot segments by VAD
 	var char_index=0;
 	var text_withtime="";
 	for(var i=0;i<words.length;i++)

--
Gitblit v1.9.1