雾聪
2024-01-03 69c6f75c68a7f4b8b49e76eab18869c29bc38442
runtime/onnxruntime/src/util.cpp
@@ -584,7 +584,7 @@
                }
            }
            // format
            ts_sent += "{'text_seg':\"" + text_seg + "\",";
            ts_sent += "{'text_seg':\\\"" + text_seg + "\\\",";
            ts_sent += "'punc':'" + characters[idx_str] + "',";
            ts_sent += "'start':'" + to_string(start) + "',";
            ts_sent += "'end':'" + to_string(end) + "',";
@@ -621,7 +621,7 @@
            end = ts_seg[ts_seg.size()-1][1];
        }
        // format
        ts_sent += "{'text_seg':\"" + text_seg + "\",";
        ts_sent += "{'text_seg':\\\"" + text_seg + "\\\",";
        ts_sent += "'punc':'',";
        ts_sent += "'start':'" + to_string(start) + "',";
        ts_sent += "'end':'" + to_string(end) + "',";