2个文件已修改
1个文件已添加
11 文件已重命名
1个文件已删除
| File was renamed from funasr/runtime/onnxruntime/include/Audio.h |
| | |
| | | |
| | | #include <queue> |
| | | #include <stdint.h> |
| | | #include "Model.h" |
| | | #include "model.h" |
| | | |
| | | #ifndef WAV_HEADER_SIZE |
| | | #define WAV_HEADER_SIZE 44 |
| File was renamed from funasr/runtime/onnxruntime/include/Model.h |
| | |
| | | virtual std::string AddPunc(const char* szInput)=0; |
| | | }; |
| | | |
| | | Model *create_model(const char *path,int nThread=0,bool quantize=false, bool use_vad=false, bool use_punc=false); |
| | | Model *CreateModel(const char *path,int nThread=0,bool quantize=false, bool use_vad=false, bool use_punc=false); |
| | | #endif |
| File was renamed from funasr/runtime/onnxruntime/src/Audio.cpp |
| | |
| | | #include <fstream> |
| | | #include <assert.h> |
| | | |
| | | #include "Audio.h" |
| | | #include "audio.h" |
| | | #include "precomp.h" |
| | | |
| | | using namespace std; |
| | |
| | | // APIs for funasr |
| | | _FUNASRAPI FUNASR_HANDLE FunASRInit(const char* szModelDir, int nThreadNum, bool quantize, bool use_vad, bool use_punc) |
| | | { |
| | | Model* mm = create_model(szModelDir, nThreadNum, quantize, use_vad, use_punc); |
| | | Model* mm = CreateModel(szModelDir, nThreadNum, quantize, use_vad, use_punc); |
| | | return mm; |
| | | } |
| | | |
| New file |
| | |
| | | #include "precomp.h" |
| | | |
| | | Model *CreateModel(const char *path, int nThread, bool quantize, bool use_vad, bool use_punc) |
| | | { |
| | | Model *mm; |
| | | |
| | | mm = new paraformer::ModelImp(path, nThread, quantize, use_vad, use_punc); |
| | | |
| | | return mm; |
| | | } |
| File was renamed from funasr/runtime/onnxruntime/src/OnlineFeature.cc |
| | |
| | | |
| | | #include "OnlineFeature.h" |
| | | #include "online-feature.h" |
| | | #include <utility> |
| | | |
| | | OnlineFeature::OnlineFeature(int sample_rate, knf::FbankOptions fbank_opts, int lfr_m, int lfr_n, |
| | |
| | | #include "kaldi-native-fbank/csrc/online-feature.h" |
| | | |
| | | // mine |
| | | #include "ComDefine.h" |
| | | #include "common-struct.h" |
| | | #include "com-define.h" |
| | | #include "commonfunc.h" |
| | | #include "predefine_coe.h" |
| | | #include "predefine-coe.h" |
| | | #include "tokenizer.h" |
| | | #include "ct-transformer.h" |
| | | #include "fsmn-vad.h" |
| | | #include "e2e-vad.h" |
| | | #include "Vocab.h" |
| | | #include "CommonStruct.h" |
| | | #include "Audio.h" |
| | | #include "Tensor.h" |
| | | #include "vocab.h" |
| | | #include "audio.h" |
| | | #include "tensor.h" |
| | | #include "util.h" |
| | | #include "resample.h" |
| | | #include "Model.h" |
| | | #include "model.h" |
| | | #include "paraformer_onnx.h" |
| | | #include "libfunasrapi.h" |
| | | |
| File was renamed from funasr/runtime/onnxruntime/src/Vocab.cpp |
| | |
| | | #include "Vocab.h" |
| | | #include "vocab.h" |
| | | #include "yaml-cpp/yaml.h" |
| | | |
| | | #include <fstream> |