| | |
| | | #include "precomp.h" |
| | | |
| | | namespace funasr { |
| | | VadModel *CreateVadModel(std::map<std::string, std::string>& model_path, int thread_num, int mode) |
| | | VadModel *CreateVadModel(std::map<std::string, std::string>& model_path, int thread_num) |
| | | { |
| | | VadModel *mm; |
| | | if(mode == FSMN_VAD_OFFLINE){ |
| | | mm = new FsmnVad(); |
| | | }else{ |
| | | LOG(ERROR)<<"Online fsmn vad not imp!"; |
| | | } |
| | | mm = new FsmnVad(); |
| | | |
| | | string vad_model_path; |
| | | string vad_cmvn_path; |
| | |
| | | return mm; |
| | | } |
| | | |
| | | VadModel *CreateVadModel(void* fsmnvad_handle) |
| | | { |
| | | VadModel *mm; |
| | | mm = new FsmnVadOnline((FsmnVad*)fsmnvad_handle); |
| | | return mm; |
| | | } |
| | | |
| | | } // namespace funasr |