diff --git a/runtime/html5/static/main.js b/runtime/html5/static/main.js index 20aa220ae..b3661cdfa 100644 --- a/runtime/html5/static/main.js +++ b/runtime/html5/static/main.js @@ -315,10 +315,10 @@ function handleWithTimestamp(tmptext,tmptime) { return tmptext; } - tmptext=tmptext.replace(/。|?|,|、|\?|\./g, ","); // replace all punc for parse - var words=tmptext.split(","); + tmptext=tmptext.replace(/。|?|,|、|\?|\.|\ /g, ","); // in case there are a lot of "。" + var words=tmptext.split(","); // split to chinese sentence or english words var jsontime=JSON.parse(tmptime); //JSON.parse(tmptime.replace(/\]\]\[\[/g, "],[")); // in case there are a lot segments by VAD - var char_index=0; + var char_index=0; // index for timestamp var text_withtime=""; for(var i=0;i