| | |
| | | // warm up |
| | | for (size_t i = 0; i < 1; i++) |
| | | { |
| | | FunOfflineReset(asr_handle, decoder_handle); |
| | | FUNASR_RESULT result=FunOfflineInfer(asr_handle, wav_list[0].c_str(), RASR_NONE, NULL, hotwords_embedding, audio_fs, true, decoder_handle); |
| | | if(result){ |
| | | FunASRFreeResult(result); |
| | |
| | | if(stamp !=""){ |
| | | LOG(INFO) << "Thread: " << this_thread::get_id() << "," << wav_ids[i] << " : " << stamp; |
| | | } |
| | | string stamp_sents = FunASRGetStampSents(result); |
| | | if(stamp_sents !=""){ |
| | | LOG(INFO)<< wav_ids[i] <<" : "<<stamp_sents; |
| | | } |
| | | float snippet_time = FunASRGetRetSnippetTime(result); |
| | | n_total_length += snippet_time; |
| | | FunASRFreeResult(result); |