雾聪
2024-03-13 dfe3c1523542bac37d4d218db6433807f19719ab
update funasr-onnx-offline
1个文件已修改
4 ■■■■ 已修改文件
runtime/onnxruntime/bin/funasr-onnx-offline.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
runtime/onnxruntime/bin/funasr-onnx-offline.cpp
@@ -90,7 +90,7 @@
    struct timeval start, end;
    gettimeofday(&start, nullptr);
    int thread_num = 1;
    FUNASR_HANDLE asr_hanlde=FunOfflineInit(model_path, thread_num);
    FUNASR_HANDLE asr_hanlde=FunOfflineInit(model_path, thread_num, true);
    if (!asr_hanlde)
    {
@@ -183,7 +183,7 @@
        gettimeofday(&start, nullptr);
        FUNASR_RESULT result=FunOfflineInferBuffer(asr_hanlde, speech_buff, buff_len, RASR_NONE, nullptr, hotwords_embedding, audio_fs.getValue(), "pcm", true, decoder_handle);
        // For debug:end
        // FUNASR_RESULT result=FunOfflineInfer(asr_hanlde, wav_file.c_str(), RASR_NONE, nullptr, hotwords_embedding, audio_fs.getValue(), true, decoder_handle);
        gettimeofday(&end, nullptr);
        seconds = (end.tv_sec - start.tv_sec);