mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update TimestampSentence format
This commit is contained in:
parent
cbcd289451
commit
5999ad7a2e
@ -584,7 +584,7 @@ std::string TimestampSentence(std::string &text, std::string &str_time){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// format
|
// format
|
||||||
ts_sent += "{'text_seg':'" + text_seg + "',";
|
ts_sent += "{'text_seg':\"" + text_seg + "\",";
|
||||||
ts_sent += "'punc':'" + characters[idx_str] + "',";
|
ts_sent += "'punc':'" + characters[idx_str] + "',";
|
||||||
ts_sent += "'start':'" + to_string(start) + "',";
|
ts_sent += "'start':'" + to_string(start) + "',";
|
||||||
ts_sent += "'end':'" + to_string(end) + "',";
|
ts_sent += "'end':'" + to_string(end) + "',";
|
||||||
@ -621,7 +621,7 @@ std::string TimestampSentence(std::string &text, std::string &str_time){
|
|||||||
end = ts_seg[ts_seg.size()-1][1];
|
end = ts_seg[ts_seg.size()-1][1];
|
||||||
}
|
}
|
||||||
// format
|
// format
|
||||||
ts_sent += "{'text_seg':'" + text_seg + "',";
|
ts_sent += "{'text_seg':\"" + text_seg + "\",";
|
||||||
ts_sent += "'punc':'',";
|
ts_sent += "'punc':'',";
|
||||||
ts_sent += "'start':'" + to_string(start) + "',";
|
ts_sent += "'start':'" + to_string(start) + "',";
|
||||||
ts_sent += "'end':'" + to_string(end) + "',";
|
ts_sent += "'end':'" + to_string(end) + "',";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user