| | |
| | | vector<const char*> hw_m_szInputNames; |
| | | vector<const char*> hw_m_szOutputNames; |
| | | bool use_hotword; |
| | | std::string language="zh-cn"; |
| | | |
| | | public: |
| | | Paraformer(); |
| | |
| | | string PostProcess(std::vector<string> &raw_char, std::vector<std::vector<float>> ×tamp_list); |
| | | |
| | | string Rescoring(); |
| | | string GetLang(){return language;}; |
| | | |
| | | knf::FbankOptions fbank_opts_; |
| | | vector<float> means_list_; |
| | |
| | | vector<const char*> m_szInputNames; |
| | | vector<const char*> m_szOutputNames; |
| | | |
| | | std::string language="zh-cn"; |
| | | |
| | | // paraformer-online |
| | | std::shared_ptr<Ort::Session> encoder_session_ = nullptr; |
| | | std::shared_ptr<Ort::Session> decoder_session_ = nullptr; |