雾聪
2023-08-23 aedb3a04e3bdd1f8ba2eef9293d8afc21f4b98f5
update msg_vec
1个文件已修改
3 ■■■■■ 已修改文件
funasr/runtime/onnxruntime/src/funasrruntime.cpp 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/onnxruntime/src/funasrruntime.cpp
@@ -318,6 +318,9 @@
        while (audio.Fetch(buff, len, flag, start_time) > 0) {
            string msg = (offline_stream->asr_handle)->Forward(buff, len, true, hw_emb);
            std::vector<std::string> msg_vec = funasr::split(msg, '|');
            if(msg_vec.size()==0){
                continue;
            }
            p_result->msg += msg_vec[0];
            //timestamp
            if(msg_vec.size() > 1){