| | |
| | | for (size_t i = 0; i < 1; i++) |
| | | { |
| | | FUNASR_RESULT result=FunOfflineInfer(asr_handle, wav_list[0].c_str(), RASR_NONE, NULL, 16000); |
| | | if(result){ |
| | | FunASRFreeResult(result); |
| | | } |
| | | } |
| | | |
| | | while (true) { |
| | |
| | | |
| | | if(result){ |
| | | string msg = FunASRGetResult(result, 0); |
| | | LOG(INFO) << "Thread: " << this_thread::get_id() << "," << wav_ids[i] << " : " << msg.c_str(); |
| | | LOG(INFO) << "Thread: " << this_thread::get_id() << "," << wav_ids[i] << " : " << msg; |
| | | |
| | | float snippet_time = FunASRGetRetSnippetTime(result); |
| | | n_total_length += snippet_time; |
| | | FunASRFreeResult(result); |
| | | }else{ |
| | | LOG(ERROR) << ("No return data!\n"); |
| | | LOG(ERROR) << wav_ids[i] << (": No return data!\n"); |
| | | } |
| | | } |
| | | { |