| | |
| | | return mm; |
| | | } |
| | | |
| | | _FUNASRAPI FUNASR_HANDLE FunOfflineInit(std::map<std::string, std::string>& model_path, int thread_num) |
| | | _FUNASRAPI FUNASR_HANDLE FunOfflineInit(std::map<std::string, std::string>& model_path, int thread_num, bool use_gpu) |
| | | { |
| | | funasr::OfflineStream* mm = funasr::CreateOfflineStream(model_path, thread_num); |
| | | funasr::OfflineStream* mm = funasr::CreateOfflineStream(model_path, thread_num, use_gpu); |
| | | return mm; |
| | | } |
| | | |
| | |
| | | return p_result; |
| | | } |
| | | if(offline_stream->UseVad()){ |
| | | audio.Split(offline_stream); |
| | | audio.CutSplit(offline_stream); |
| | | } |
| | | |
| | | float* buff; |
| | |
| | | return p_result; |
| | | } |
| | | if(offline_stream->UseVad()){ |
| | | audio.Split(offline_stream); |
| | | audio.CutSplit(offline_stream); |
| | | } |
| | | |
| | | float* buff; |