From f70f70711045fc191a4ce9498c155d61e969b57f Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期二, 22 八月 2023 12:46:14 +0800
Subject: [PATCH] update timestamp_merge
---
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