mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
for h5 timestamp parse bug (#1084)
This commit is contained in:
parent
c0bfc7c6fe
commit
1966047a0b
@ -315,7 +315,7 @@ function handleWithTimestamp(tmptext,tmptime)
|
||||
{
|
||||
return tmptext;
|
||||
}
|
||||
tmptext=tmptext.replace(/。/g, ","); // in case there are a lot of "。"
|
||||
tmptext=tmptext.replace(/。|?|,|、|\?|\./g, ","); // replace all punc for parse
|
||||
var words=tmptext.split(",");
|
||||
var jsontime=JSON.parse(tmptime); //JSON.parse(tmptime.replace(/\]\]\[\[/g, "],[")); // in case there are a lot segments by VAD
|
||||
var char_index=0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user