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
雾聪46e9334c3150
diff --git a/runtime/onnxruntime/src/util.cpp b/runtime/onnxruntime/src/util.cppindex 039fa90be..a12570b86 100644--- a/runtime/onnxruntime/src/util.cpp+++ b/runtime/onnxruntime/src/util.cpp@@ -590,8 +590,8 @@ std::string TimestampSentence(std::string &text, std::string &str_time){// formatts_sent += "{\"text_seg\":\"" + text_seg + "\",";ts_sent += "\"punc\":\"" + characters[idx_str] + "\",";- ts_sent += "\"start\":\"" + to_string(start) + "\",";- ts_sent += "\"end\":\"" + to_string(end) + "\",";+ ts_sent += "\"start\":" + to_string(start) + ",";+ ts_sent += "\"end\":" + to_string(end) + ",";ts_sent += "\"ts_list\":" + VectorToString(ts_seg, false) + "}";if (idx_str == characters.size()-1){@@ -627,8 +627,8 @@ std::string TimestampSentence(std::string &text, std::string &str_time){// formatts_sent += "{\"text_seg\":\"" + text_seg + "\",";ts_sent += "\"punc\":\"\",";- ts_sent += "\"start\":\"" + to_string(start) + "\",";- ts_sent += "\"end\":\"" + to_string(end) + "\",";+ ts_sent += "\"start\":" + to_string(start) + ",";+ ts_sent += "\"end\":" + to_string(end) + ",";ts_sent += "\"ts_list\":" + VectorToString(ts_seg, false) + "}";ts_sentences += ts_sent;}