mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-15 11:47:54 +00:00
Sync from bytedesk-private: update
This commit is contained in:
21
modules/python/vendors/FunASR/runtime/onnxruntime/include/vad-model.h
vendored
Normal file
21
modules/python/vendors/FunASR/runtime/onnxruntime/include/vad-model.h
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
#ifndef VAD_MODEL_H
|
||||
#define VAD_MODEL_H
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
namespace funasr {
|
||||
class VadModel {
|
||||
public:
|
||||
virtual ~VadModel(){};
|
||||
virtual void InitVad(const std::string &vad_model, const std::string &vad_cmvn, const std::string &vad_config, int thread_num)=0;
|
||||
virtual std::vector<std::vector<int>> Infer(std::vector<float> &waves, bool input_finished=true)=0;
|
||||
virtual int GetVadSampleRate() = 0;
|
||||
};
|
||||
|
||||
VadModel *CreateVadModel(std::map<std::string, std::string>& model_path, int thread_num);
|
||||
VadModel *CreateVadModel(void* fsmnvad_handle);
|
||||
} // namespace funasr
|
||||
#endif
|
||||
Reference in New Issue
Block a user