Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
update TimestampSentence format
雾聪5999ad7a2eba
diff --git a/runtime/onnxruntime/src/util.cpp b/runtime/onnxruntime/src/util.cppindex 0fbec4f7b..7723e5f4e 100644--- a/runtime/onnxruntime/src/util.cpp+++ b/runtime/onnxruntime/src/util.cpp@@ -584,7 +584,7 @@ std::string TimestampSentence(std::string &text, std::string &str_time){}}// 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 @@ std::string TimestampSentence(std::string &text, std::string &str_time){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) + "',";